{
	"Version":"6.8.5.2",
	"Font":{
		"Name":"宋体",
		"Size":105000,
		"Weight":400,
		"Charset":134
	},
	"Printer":{
		"LeftMargin":0.3175,
		"TopMargin":0.899583,
		"RightMargin":0.396875
	},
	"DetailGrid":{
		"CenterView":true,
		"AppendBlankRow":true,
		"Recordset":{
			"ConnectionString":"MYSQL;\r\nDatabase=hkcdb;\r\nPassword=qq1223;\r\nPort=3307;\r\nServer=127.0.0.1;\r\nUser=root;",
			"QuerySQL":"SELECT \r\n  dmr.`drawer_no` AS drawerNo,\r\n  dmr.`col_no` AS colNo,\r\n  dmr.`type` AS `type`,\r\n  dmr.`quantity` AS quantity,\r\n  dmr.`manu_no` AS manuNo,\r\n  dmr.`eff_date` AS effDate,\r\n  dmr.`operation_time` AS operationTime,\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  dmr.`drug_id` AS drugId,\r\n  ul.`user_name` AS nickname\r\nFROM\r\n  dm_machine_record dmr\r\nLEFT JOIN drug_info di ON di.`drug_id` = dmr.`drug_id`\r\nLEFT JOIN user_list ul ON ul.`id` = dmr.`Operator`\r\nWHERE dmr.`type` = 2 \r\n AND dmr.`machine_id` = :machine_id\r\n AND dmr.`operation_time` > :startDate\r\n AND dmr.`operation_time` < :endDate",
			"Field":[
				{
					"Name":"操作人",
					"DBFieldName":"Nickname"
				},
				{
					"Name":"时间",
					"Type":"DateTime",
					"Format":"yyyy/MM/dd HH:mm:ss",
					"DBFieldName":"operationTime"
				},
				{
					"Name":"药品名称",
					"DBFieldName":"DrugName"
				},
				{
					"Name":"数量",
					"DBFieldName":"quantity"
				},
				{
					"Name":"批次",
					"DBFieldName":"manuNo"
				},
				{
					"Name":"效期",
					"Type":"DateTime",
					"Format":"yyyy/MM/dd",
					"DBFieldName":"effDate"
				},
				{
					"Name":"库位",
					"DBFieldName":"drawerNo"
				},
				{
					"Name":"colNo"
				},
				{
					"Name":"type2",
					"Type":"Integer",
					"DBFieldName":"type"
				}
			]
		},
		"Column":[
			{
				"Name":"操作人",
				"Width":2.38125
			},
			{
				"Name":"时间",
				"Width":3.78354
			},
			{
				"Name":"药品名称",
				"Width":4.63021
			},
			{
				"Name":"数量",
				"Width":1.98438
			},
			{
				"Name":"批次",
				"Width":2.61938
			},
			{
				"Name":"效期",
				"Width":2.38125
			},
			{
				"Name":"库位",
				"Width":2.59292
			}
		],
		"ColumnContent":{
			"Height":1.00542,
			"ColumnContentCell":[
				{
					"Column":"操作人",
					"TextAlign":"MiddleCenter",
					"DataField":"操作人"
				},
				{
					"Column":"时间",
					"TextAlign":"MiddleCenter",
					"DataField":"时间"
				},
				{
					"Column":"药品名称",
					"TextAlign":"MiddleCenter",
					"DataField":"药品名称"
				},
				{
					"Column":"数量",
					"TextAlign":"MiddleCenter",
					"DataField":"数量"
				},
				{
					"Column":"批次",
					"TextAlign":"MiddleCenter",
					"DataField":"批次"
				},
				{
					"Column":"效期",
					"TextAlign":"MiddleCenter",
					"DataField":"效期"
				},
				{
					"Column":"库位",
					"FreeCell":true,
					"Control":[
						{
							"Type":"FieldBox",
							"Name":"FieldBox1",
							"Left":9.60438,
							"Top":-2.16958,
							"Width":2.80458,
							"Height":0.661458
						},
						{
							"Type":"MemoBox",
							"Name":"MemoBox1",
							"Dock":"Fill",
							"Center":"Both",
							"TextAlign":"MiddleCenter",
							"Text":"[#库位#] - [#colNo#]"
						}
					]
				}
			]
		},
		"ColumnTitle":{
			"Height":1.40229,
			"RepeatStyle":"OnPage",
			"ColumnTitleCell":[
				{
					"GroupTitle":false,
					"Column":"操作人",
					"Font":{
						"Name":"宋体",
						"Size":120000,
						"Bold":true,
						"Charset":134
					},
					"TextAlign":"MiddleCenter",
					"Text":"操作人"
				},
				{
					"GroupTitle":false,
					"Column":"时间",
					"Font":{
						"Name":"宋体",
						"Size":120000,
						"Bold":true,
						"Charset":134
					},
					"TextAlign":"MiddleCenter",
					"Text":"时间"
				},
				{
					"GroupTitle":false,
					"Column":"药品名称",
					"Font":{
						"Name":"宋体",
						"Size":120000,
						"Bold":true,
						"Charset":134
					},
					"TextAlign":"MiddleCenter",
					"Text":"药品名称"
				},
				{
					"GroupTitle":false,
					"Column":"数量",
					"Font":{
						"Name":"宋体",
						"Size":120000,
						"Bold":true,
						"Charset":134
					},
					"TextAlign":"MiddleCenter",
					"Text":"数量"
				},
				{
					"GroupTitle":false,
					"Column":"批次",
					"Font":{
						"Name":"宋体",
						"Size":120000,
						"Bold":true,
						"Charset":134
					},
					"TextAlign":"MiddleCenter",
					"Text":"批次"
				},
				{
					"GroupTitle":false,
					"Column":"效期",
					"Font":{
						"Name":"宋体",
						"Size":120000,
						"Bold":true,
						"Charset":134
					},
					"TextAlign":"MiddleCenter",
					"Text":"效期"
				},
				{
					"GroupTitle":false,
					"Column":"库位",
					"Font":{
						"Name":"宋体",
						"Size":120000,
						"Bold":true,
						"Charset":134
					},
					"TextAlign":"MiddleCenter",
					"Text":"库位"
				}
			]
		}
	},
	"Parameter":[
		{
			"Name":"startDate",
			"DataType":"DateTime",
			"Format":"yyyy-MM-dd hh:mm:ss",
			"Value":"2023/1/1"
		},
		{
			"Name":"endDate",
			"DataType":"DateTime",
			"Format":"yyyy-MM-dd hh:mm:ss",
			"Value":"2023/4/28 23:59:59"
		},
		{
			"Name":"machine_id",
			"Value":"DM1"
		}
	],
	"ReportHeader":[
		{
			"Name":"ReportHeader1",
			"Height":1.79917,
			"Control":[
				{
					"Type":"MemoBox",
					"Name":"MemoBox2",
					"Left":7.59354,
					"Top":0.211667,
					"Width":5.60917,
					"Height":1.19063,
					"Font":{
						"Name":"宋体",
						"Size":217500,
						"Bold":true,
						"Charset":134
					},
					"TextAlign":"MiddleCenter",
					"Text":"出库记录"
				}
			],
			"RepeatOnPage":true
		}
	]
}