346 lines
		
	
	
		
			6.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			346 lines
		
	
	
		
			6.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
									"Version":"6.3.0.1",
							 | 
						||
| 
								 | 
							
									"Font":{
							 | 
						||
| 
								 | 
							
										"Name":"宋体",
							 | 
						||
| 
								 | 
							
										"Size":105000,
							 | 
						||
| 
								 | 
							
										"Weight":400,
							 | 
						||
| 
								 | 
							
										"Charset":134
							 | 
						||
| 
								 | 
							
									},
							 | 
						||
| 
								 | 
							
									"Printer":{
							 | 
						||
| 
								 | 
							
										"Oriention":"Landscape"
							 | 
						||
| 
								 | 
							
									},
							 | 
						||
| 
								 | 
							
									"DetailGrid":{
							 | 
						||
| 
								 | 
							
										"CenterView":true,
							 | 
						||
| 
								 | 
							
										"PrintAdaptMethod":"ResizeToFit",
							 | 
						||
| 
								 | 
							
										"AppendBlankRow":true,
							 | 
						||
| 
								 | 
							
										"Recordset":{
							 | 
						||
| 
								 | 
							
											"QuerySQL":"SELECT \r\n  cl.`row_no` AS drawerNo,\r\n  cl.`col_no` AS colNo,\r\n  cl.`quantity` AS quantity,\r\n  cl.`manu_no` AS manuNo,\r\n  cl.`eff_date` AS effDate,\r\n  di.`drug_name` AS drugName,\r\n  di.`drug_spec` AS drugSpec,\r\n  di.`pack_unit` AS packUnit,\r\n  di.`manufactory` AS manuFactory,\r\n  di.`max_stock` AS baseQuantity,\r\n  cl.`drug_id` AS drugId\r\nFROM\r\n  channel_stock cl\r\nINNER JOIN drug_info di ON di.`drug_id` = cl.`drug_id`\r\nWHERE cl.`machine_id` =  :machine_id\r\n AND cl.`drawer_type` = 1\r\n ORDER BY cl.`drug_id`",
							 | 
						||
| 
								 | 
							
											"Field":[
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Name":"drugName"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Name":"drugSpec"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Name":"manuFactory"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Name":"quantityCount"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Name":"manuNo"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Name":"effDate"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Name":"quantity",
							 | 
						||
| 
								 | 
							
													"Type":"Integer",
							 | 
						||
| 
								 | 
							
													"Format":"0"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Name":"drawerNo"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Name":"drugId"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Name":"baseQuantity",
							 | 
						||
| 
								 | 
							
													"Type":"Integer"
							 | 
						||
| 
								 | 
							
												}
							 | 
						||
| 
								 | 
							
											]
							 | 
						||
| 
								 | 
							
										},
							 | 
						||
| 
								 | 
							
										"Column":[
							 | 
						||
| 
								 | 
							
											{
							 | 
						||
| 
								 | 
							
												"Name":"drugName",
							 | 
						||
| 
								 | 
							
												"Width":5.37104
							 | 
						||
| 
								 | 
							
											},
							 | 
						||
| 
								 | 
							
											{
							 | 
						||
| 
								 | 
							
												"Name":"drugSpec"
							 | 
						||
| 
								 | 
							
											},
							 | 
						||
| 
								 | 
							
											{
							 | 
						||
| 
								 | 
							
												"Name":"manuFactory",
							 | 
						||
| 
								 | 
							
												"Width":4.60375
							 | 
						||
| 
								 | 
							
											},
							 | 
						||
| 
								 | 
							
											{
							 | 
						||
| 
								 | 
							
												"Name":"Column1"
							 | 
						||
| 
								 | 
							
											},
							 | 
						||
| 
								 | 
							
											{
							 | 
						||
| 
								 | 
							
												"Name":"quantityCount",
							 | 
						||
| 
								 | 
							
												"Width":2.59292
							 | 
						||
| 
								 | 
							
											},
							 | 
						||
| 
								 | 
							
											{
							 | 
						||
| 
								 | 
							
												"Name":"manuNo"
							 | 
						||
| 
								 | 
							
											},
							 | 
						||
| 
								 | 
							
											{
							 | 
						||
| 
								 | 
							
												"Name":"effDate"
							 | 
						||
| 
								 | 
							
											},
							 | 
						||
| 
								 | 
							
											{
							 | 
						||
| 
								 | 
							
												"Name":"quantity",
							 | 
						||
| 
								 | 
							
												"Width":2.43417
							 | 
						||
| 
								 | 
							
											}
							 | 
						||
| 
								 | 
							
										],
							 | 
						||
| 
								 | 
							
										"ColumnContent":{
							 | 
						||
| 
								 | 
							
											"Height":0.79375,
							 | 
						||
| 
								 | 
							
											"ColumnContentCell":[
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Column":"drugName",
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"DataField":"drugName"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Column":"drugSpec",
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"DataField":"drugSpec"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Column":"manuFactory",
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"DataField":"manuFactory"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Column":"Column1",
							 | 
						||
| 
								 | 
							
													"FreeCell":true
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Column":"quantityCount",
							 | 
						||
| 
								 | 
							
													"FreeCell":true
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Column":"manuNo",
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"DataField":"manuNo"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Column":"effDate",
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"DataField":"effDate"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Column":"quantity",
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"DataField":"quantity"
							 | 
						||
| 
								 | 
							
												}
							 | 
						||
| 
								 | 
							
											]
							 | 
						||
| 
								 | 
							
										},
							 | 
						||
| 
								 | 
							
										"ColumnTitle":{
							 | 
						||
| 
								 | 
							
											"Height":1.19063,
							 | 
						||
| 
								 | 
							
											"RepeatStyle":"OnPage",
							 | 
						||
| 
								 | 
							
											"ColumnTitleCell":[
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"GroupTitle":false,
							 | 
						||
| 
								 | 
							
													"Column":"drugName",
							 | 
						||
| 
								 | 
							
													"Font":{
							 | 
						||
| 
								 | 
							
														"Name":"宋体",
							 | 
						||
| 
								 | 
							
														"Size":142500,
							 | 
						||
| 
								 | 
							
														"Bold":true,
							 | 
						||
| 
								 | 
							
														"Charset":134
							 | 
						||
| 
								 | 
							
													},
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"Text":"药品名称"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"GroupTitle":false,
							 | 
						||
| 
								 | 
							
													"Column":"drugSpec",
							 | 
						||
| 
								 | 
							
													"Font":{
							 | 
						||
| 
								 | 
							
														"Name":"宋体",
							 | 
						||
| 
								 | 
							
														"Size":142500,
							 | 
						||
| 
								 | 
							
														"Bold":true,
							 | 
						||
| 
								 | 
							
														"Charset":134
							 | 
						||
| 
								 | 
							
													},
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"Text":"规格"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"GroupTitle":false,
							 | 
						||
| 
								 | 
							
													"Column":"manuFactory",
							 | 
						||
| 
								 | 
							
													"Font":{
							 | 
						||
| 
								 | 
							
														"Name":"宋体",
							 | 
						||
| 
								 | 
							
														"Size":142500,
							 | 
						||
| 
								 | 
							
														"Bold":true,
							 | 
						||
| 
								 | 
							
														"Charset":134
							 | 
						||
| 
								 | 
							
													},
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"Text":"厂家"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"GroupTitle":false,
							 | 
						||
| 
								 | 
							
													"Column":"Column1",
							 | 
						||
| 
								 | 
							
													"Font":{
							 | 
						||
| 
								 | 
							
														"Name":"宋体",
							 | 
						||
| 
								 | 
							
														"Size":142500,
							 | 
						||
| 
								 | 
							
														"Bold":true,
							 | 
						||
| 
								 | 
							
														"Charset":134
							 | 
						||
| 
								 | 
							
													},
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"Text":"基数"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"GroupTitle":false,
							 | 
						||
| 
								 | 
							
													"Column":"quantityCount",
							 | 
						||
| 
								 | 
							
													"Font":{
							 | 
						||
| 
								 | 
							
														"Name":"宋体",
							 | 
						||
| 
								 | 
							
														"Size":142500,
							 | 
						||
| 
								 | 
							
														"Bold":true,
							 | 
						||
| 
								 | 
							
														"Charset":134
							 | 
						||
| 
								 | 
							
													},
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"Text":"总库存"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"GroupTitle":false,
							 | 
						||
| 
								 | 
							
													"Column":"manuNo",
							 | 
						||
| 
								 | 
							
													"Font":{
							 | 
						||
| 
								 | 
							
														"Name":"宋体",
							 | 
						||
| 
								 | 
							
														"Size":142500,
							 | 
						||
| 
								 | 
							
														"Bold":true,
							 | 
						||
| 
								 | 
							
														"Charset":134
							 | 
						||
| 
								 | 
							
													},
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"Text":"批次"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"GroupTitle":false,
							 | 
						||
| 
								 | 
							
													"Column":"effDate",
							 | 
						||
| 
								 | 
							
													"Font":{
							 | 
						||
| 
								 | 
							
														"Name":"宋体",
							 | 
						||
| 
								 | 
							
														"Size":142500,
							 | 
						||
| 
								 | 
							
														"Bold":true,
							 | 
						||
| 
								 | 
							
														"Charset":134
							 | 
						||
| 
								 | 
							
													},
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"Text":"效期"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"GroupTitle":false,
							 | 
						||
| 
								 | 
							
													"Column":"quantity",
							 | 
						||
| 
								 | 
							
													"Font":{
							 | 
						||
| 
								 | 
							
														"Name":"宋体",
							 | 
						||
| 
								 | 
							
														"Size":142500,
							 | 
						||
| 
								 | 
							
														"Bold":true,
							 | 
						||
| 
								 | 
							
														"Charset":134
							 | 
						||
| 
								 | 
							
													},
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"Text":"数量"
							 | 
						||
| 
								 | 
							
												}
							 | 
						||
| 
								 | 
							
											]
							 | 
						||
| 
								 | 
							
										},
							 | 
						||
| 
								 | 
							
										"Group":[
							 | 
						||
| 
								 | 
							
											{
							 | 
						||
| 
								 | 
							
												"Name":"drugId",
							 | 
						||
| 
								 | 
							
												"ByFields":"drugId",
							 | 
						||
| 
								 | 
							
												"GroupHeader":{
							 | 
						||
| 
								 | 
							
													"Visible":false,
							 | 
						||
| 
								 | 
							
													"Height":0.79375,
							 | 
						||
| 
								 | 
							
													"RepeatOnPage":true,
							 | 
						||
| 
								 | 
							
													"OccupyColumn":true,
							 | 
						||
| 
								 | 
							
													"IncludeFooter":true,
							 | 
						||
| 
								 | 
							
													"OccupiedColumns":"drugName;drugSpec;manuFactory;quantityCount;Column1",
							 | 
						||
| 
								 | 
							
													"VAlign":"Middle"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												"GroupFooter":{
							 | 
						||
| 
								 | 
							
													"Visible":false,
							 | 
						||
| 
								 | 
							
													"Height":0.396875
							 | 
						||
| 
								 | 
							
												}
							 | 
						||
| 
								 | 
							
											},
							 | 
						||
| 
								 | 
							
											{
							 | 
						||
| 
								 | 
							
												"Name":"Group1",
							 | 
						||
| 
								 | 
							
												"ByFields":"drugId",
							 | 
						||
| 
								 | 
							
												"GroupHeader":{
							 | 
						||
| 
								 | 
							
													"Control":[
							 | 
						||
| 
								 | 
							
														{
							 | 
						||
| 
								 | 
							
															"Type":"MemoBox",
							 | 
						||
| 
								 | 
							
															"Name":"MemoBox3",
							 | 
						||
| 
								 | 
							
															"AlignColumn":"drugName",
							 | 
						||
| 
								 | 
							
															"Width":5.3975,
							 | 
						||
| 
								 | 
							
															"Height":1.19063,
							 | 
						||
| 
								 | 
							
															"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
															"Text":"[#drugName#]"
							 | 
						||
| 
								 | 
							
														},
							 | 
						||
| 
								 | 
							
														{
							 | 
						||
| 
								 | 
							
															"Type":"MemoBox",
							 | 
						||
| 
								 | 
							
															"Name":"MemoBox4",
							 | 
						||
| 
								 | 
							
															"AlignColumn":"drugSpec",
							 | 
						||
| 
								 | 
							
															"Left":5.37104,
							 | 
						||
| 
								 | 
							
															"Width":3.01625,
							 | 
						||
| 
								 | 
							
															"Height":1.19063,
							 | 
						||
| 
								 | 
							
															"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
															"Text":"[#drugSpec#]"
							 | 
						||
| 
								 | 
							
														},
							 | 
						||
| 
								 | 
							
														{
							 | 
						||
| 
								 | 
							
															"Type":"MemoBox",
							 | 
						||
| 
								 | 
							
															"Name":"MemoBox5",
							 | 
						||
| 
								 | 
							
															"AlignColumn":"manuFactory",
							 | 
						||
| 
								 | 
							
															"Left":8.36083,
							 | 
						||
| 
								 | 
							
															"Width":4.63021,
							 | 
						||
| 
								 | 
							
															"Height":1.19063,
							 | 
						||
| 
								 | 
							
															"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
															"Text":"[#manuFactory#]"
							 | 
						||
| 
								 | 
							
														},
							 | 
						||
| 
								 | 
							
														{
							 | 
						||
| 
								 | 
							
															"Type":"MemoBox",
							 | 
						||
| 
								 | 
							
															"Name":"MemoBox6",
							 | 
						||
| 
								 | 
							
															"AlignColumn":"Column1",
							 | 
						||
| 
								 | 
							
															"Left":12.9646,
							 | 
						||
| 
								 | 
							
															"Width":3.01625,
							 | 
						||
| 
								 | 
							
															"Height":1.19063,
							 | 
						||
| 
								 | 
							
															"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
															"Text":"[#baseQuantity#]"
							 | 
						||
| 
								 | 
							
														},
							 | 
						||
| 
								 | 
							
														{
							 | 
						||
| 
								 | 
							
															"Type":"SummaryBox",
							 | 
						||
| 
								 | 
							
															"Name":"SummaryBox1",
							 | 
						||
| 
								 | 
							
															"AlignColumn":"quantityCount",
							 | 
						||
| 
								 | 
							
															"Left":15.9544,
							 | 
						||
| 
								 | 
							
															"Width":2.61938,
							 | 
						||
| 
								 | 
							
															"Height":1.19063,
							 | 
						||
| 
								 | 
							
															"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
															"DataField":"quantity",
							 | 
						||
| 
								 | 
							
															"Format":"0"
							 | 
						||
| 
								 | 
							
														}
							 | 
						||
| 
								 | 
							
													],
							 | 
						||
| 
								 | 
							
													"OccupyColumn":true,
							 | 
						||
| 
								 | 
							
													"SameAsColumn":false,
							 | 
						||
| 
								 | 
							
													"OccupiedColumns":"Column1;drugName;drugSpec;manuFactory;quantityCount",
							 | 
						||
| 
								 | 
							
													"VAlign":"Middle"
							 | 
						||
| 
								 | 
							
												},
							 | 
						||
| 
								 | 
							
												"GroupFooter":{
							 | 
						||
| 
								 | 
							
													"Visible":false
							 | 
						||
| 
								 | 
							
												}
							 | 
						||
| 
								 | 
							
											}
							 | 
						||
| 
								 | 
							
										]
							 | 
						||
| 
								 | 
							
									},
							 | 
						||
| 
								 | 
							
									"Parameter":[
							 | 
						||
| 
								 | 
							
										{
							 | 
						||
| 
								 | 
							
											"Name":"machine_id",
							 | 
						||
| 
								 | 
							
											"Value":"DM1"
							 | 
						||
| 
								 | 
							
										}
							 | 
						||
| 
								 | 
							
									],
							 | 
						||
| 
								 | 
							
									"ReportHeader":[
							 | 
						||
| 
								 | 
							
										{
							 | 
						||
| 
								 | 
							
											"Name":"ReportHeader1",
							 | 
						||
| 
								 | 
							
											"Height":2.40771,
							 | 
						||
| 
								 | 
							
											"Control":[
							 | 
						||
| 
								 | 
							
												{
							 | 
						||
| 
								 | 
							
													"Type":"StaticBox",
							 | 
						||
| 
								 | 
							
													"Name":"StaticBox1",
							 | 
						||
| 
								 | 
							
													"Center":"Horizontal",
							 | 
						||
| 
								 | 
							
													"Left":8.89,
							 | 
						||
| 
								 | 
							
													"Top":0.608542,
							 | 
						||
| 
								 | 
							
													"Width":9.18104,
							 | 
						||
| 
								 | 
							
													"Height":1.21708,
							 | 
						||
| 
								 | 
							
													"Font":{
							 | 
						||
| 
								 | 
							
														"Name":"宋体",
							 | 
						||
| 
								 | 
							
														"Size":217500,
							 | 
						||
| 
								 | 
							
														"Bold":true,
							 | 
						||
| 
								 | 
							
														"Charset":134
							 | 
						||
| 
								 | 
							
													},
							 | 
						||
| 
								 | 
							
													"TextAlign":"MiddleCenter",
							 | 
						||
| 
								 | 
							
													"Text":"毒麻药品库存信息"
							 | 
						||
| 
								 | 
							
												}
							 | 
						||
| 
								 | 
							
											],
							 | 
						||
| 
								 | 
							
											"RepeatOnPage":true
							 | 
						||
| 
								 | 
							
										}
							 | 
						||
| 
								 | 
							
									]
							 | 
						||
| 
								 | 
							
								}
							 |