/* * 填充报表头 * * Param pageIndex 页号 * Param orderHead 订单头对象 * Param orderDetails 订单明细对象 */ private void FillHead(PrintReceiptMaster receiptMaster, PrintReceiptDetail receiptDetail) { if (receiptMaster.OrderSubType == 1) { if (receiptMaster.QualityType == 0) { this.SetRowCell(2, 5, "退货"); } else { this.SetRowCell(2, 5, "不合格品退货"); } } //订单号: string orderCode = Utility.BarcodeHelper.GetBarcodeStr(receiptMaster.ReceiptNo, this.barCodeFontName); this.SetRowCell(0, 6, orderCode); //Order No.: this.SetRowCell(2, 6, receiptMaster.ReceiptNo); ////采购送货单: this.SetRowCell(4, 1, receiptMaster.IpNo); //收货时间 this.SetRowCell(4, 6, receiptMaster.CreateDate.ToString("yyyy-MM-dd HH:mm:ss")); //*****收货方信息 //目的(收货)区域名称 Region To: if (receiptMaster.OrderSubType == 1) { this.SetRowCell(6, 0, "收货方:"); } this.SetRowCell(6, 1, string.Format("{0} {1}", receiptMaster.PartyTo, receiptMaster.PartyToName)); //收货库位 string LocTo = receiptDetail.LocationTo; if (!string.IsNullOrWhiteSpace(receiptDetail.LocationToName)) { LocTo = LocTo + " " + receiptDetail.LocationToName; } this.SetRowCell(7, 1, LocTo); //收货地址/道口 Address: string AddressDock = receiptMaster.ShipToAddress + (receiptMaster.Dock == null || receiptMaster.Dock.Trim() == "" ? "" : "/" + receiptMaster.Dock); this.SetRowCell(8, 1, AddressDock); //收货方联系人 Contact: this.SetRowCell(6, 6, receiptMaster.ShipToContact); //收货方电话 Telephone: this.SetRowCell(7, 6, receiptMaster.ShipToTel); //收货方传真 Fax: this.SetRowCell(8, 6, receiptMaster.ShipToFax); //*****发货方信息 //供应商代码 Supplier Code: if (receiptMaster.OrderSubType == 1) { this.SetRowCell(10, 0, "发货方编码:"); this.SetRowCell(11, 0, "发货方:"); } this.SetRowCell(10, 1, receiptMaster.PartyFrom); //供应商名称 Supplier Name: this.SetRowCell(11, 1, receiptMaster.PartyFromName); //供应商地址 Address: this.SetRowCell(12, 1, receiptMaster.ShipFromAddress); //供应商联系人 Contact: this.SetRowCell(10, 6, receiptMaster.ShipFromContact); //供应商电话 this.SetRowCell(11, 6, receiptMaster.ShipFromTel); //传真 Fax: this.SetRowCell(12, 6, receiptMaster.ShipFromFax); }
/* * 填充报表头 * * Param pageIndex 页号 * Param orderHead 订单头对象 * Param orderDetails 订单明细对象 */ private void FillHead(PrintReceiptMaster receiptMaster, PrintReceiptDetail receiptDetail) { //if (Receipt.ReceiptDetails[0].OrderLocationTransaction.OrderDetail.OrderHead.SubType == BusinessConstants.CODE_MASTER_ORDER_SUB_TYPE_VALUE_RTN) //{ // this.SetRowCell(2, 5, "退货"); //} string receiptCode = Utility.BarcodeHelper.GetBarcodeStr(receiptMaster.ReceiptNo, this.barCodeFontName); //收货单号: this.SetRowCell(2, 5, receiptCode); this.SetRowCell(3, 5, receiptMaster.ReceiptNo); this.SetRowCell(4, 1, receiptMaster.PartyFrom); this.SetRowCell(4, 5, receiptMaster.PartyTo); this.SetRowCell(5, 1, receiptMaster.ExternalReceiptNo); this.SetRowCell(5, 5, receiptMaster.IpNo); this.SetRowCell(6, 1, receiptDetail.LocationFrom); this.SetRowCell(6, 5, receiptMaster.CreateDate.ToString("yyyy-MM-dd HH:mm")); }
/* * 填充报表头 * * Param pageIndex 页号 * Param orderHead 订单头对象 * Param orderDetails 订单明细对象 */ private void FillHead(PrintReceiptMaster receiptMaster, PrintReceiptDetail receiptDetail) { if (receiptMaster.OrderSubType == 1) { this.SetRowCell(2, 4, "退货"); } //订单号: string orderCode = Utility.BarcodeHelper.GetBarcodeStr(receiptMaster.ReceiptNo, this.barCodeFontName); this.SetRowCell(0, 5, orderCode); //Order No.: this.SetRowCell(2, 5, receiptMaster.ReceiptNo); //制单时间??? this.SetRowCell(4, 2, receiptMaster.CreateDate.ToString("yyyy-MM-dd HH:mm:ss")); //领料时间 this.SetRowCell(4, 6, receiptMaster.CreateDate.ToString("yyyy-MM-dd HH:mm:ss")); //质量状态 if (receiptMaster.QualityType == 0) { this.SetRowCell(5, 2, "合格"); } else { this.SetRowCell(5, 2, "不合格"); } //外部单据号 this.SetRowCell(5, 6, receiptMaster.ExternalReceiptNo); //*****收货方信息 //目的(收货)区域名称 Region To: this.SetRowCell(7, 2, string.Format("{0} {1}", receiptMaster.PartyTo, receiptMaster.PartyToName)); //收货库位 string LocTo = receiptDetail.LocationTo; if (!string.IsNullOrWhiteSpace(receiptDetail.LocationToName)) { LocTo = LocTo + " " + receiptDetail.LocationToName; } this.SetRowCell(8, 2, LocTo); //供应商地址/道口 Address: string AddressDock = string.Format("{0}/{1}", receiptMaster.ShipToAddress, receiptMaster.Dock); this.SetRowCell(9, 2, AddressDock); //收货方联系人 Contact: this.SetRowCell(7, 6, receiptMaster.ShipToContact); //收货方电话 Telephone: this.SetRowCell(8, 6, string.Format("{0} {1}", receiptMaster.ShipToTel, receiptMaster.ShipToCell)); //收货方传真 Fax: this.SetRowCell(9, 6, receiptMaster.ShipToFax); //*****发货方信息 //供应商代码 Supplier Code: this.SetRowCell(11, 2, string.Format("{0} {1}", receiptMaster.PartyFrom, receiptMaster.PartyFromName)); //供应商名称 Supplier Name: //this.SetRowCell(6, 1, receiptMaster.PartyFromName); //发货库位 string LocFrom = receiptDetail.LocationFrom; if (!string.IsNullOrWhiteSpace(receiptDetail.LocationFromName)) { LocFrom = LocFrom + " " + receiptDetail.LocationFromName; } this.SetRowCell(12, 2, LocFrom); //供应商地址 Address: this.SetRowCell(13, 2, receiptMaster.ShipFromAddress); //目的区域地址 //this.SetRowCell(11, 2, receiptMaster.ShipToAddress); //供应商联系人 Contact: this.SetRowCell(11, 6, receiptMaster.ShipFromContact); //供应商电话 this.SetRowCell(12, 6, string.Format("{0} {1}", receiptMaster.ShipFromTel, receiptMaster.ShipFromCell)); //YFV传真 Fax: this.SetRowCell(13, 6, receiptMaster.ShipFromFax); }
/* * 填充报表头 * * Param pageIndex 页号 * Param orderHead 订单头对象 * Param orderDetails 订单明细对象 */ private void FillHead(PrintReceiptMaster receiptMaster, PrintReceiptDetail receiptDetail) { if (receiptMaster.OrderSubType == 1) { this.SetRowCell(2, 5, "退货"); } string receiptCode = Utility.BarcodeHelper.GetBarcodeStr(receiptMaster.ReceiptNo, this.barCodeFontName); //收货单号条码: this.SetRowCell(0, 6, receiptCode); this.SetRowCell(2, 6, receiptMaster.ReceiptNo); //销售送货单: 4.1 this.SetRowCell(4, 1, receiptMaster.IpNo); //收货时间: 4.6 this.SetRowCell(4, 6, receiptMaster.CreateDate.ToString("yyyy-MM-dd HH:mm")); //外部订单: 5.1 this.SetRowCell(5, 1, receiptMaster.ExternalReceiptNo); //收货方 //客户号/名称: 7.1 this.SetRowCell(7, 1, string.Format("{0} {1}", receiptMaster.PartyTo, receiptMaster.PartyToName)); //联系人: 7.6 this.SetRowCell(7, 6, receiptMaster.ShipToContact); //收货地址: 8.1 this.SetRowCell(8, 1, receiptMaster.ShipToAddress); //电话: 8.6 this.SetRowCell(8, 6, string.Format("{0} {1}", receiptMaster.ShipToTel, receiptMaster.ShipToCell)); //卸货道口: 9.1 if (receiptMaster.OrderSubType == 1) { this.SetRowCell(9, 0, "收货库位:"); this.SetRowCell(9, 1, string.Format("{0} {1}", receiptDetail.LocationTo, receiptDetail.LocationToName)); } else { this.SetRowCell(9, 1, receiptMaster.Dock); } //传真: 9.6 this.SetRowCell(9, 6, receiptMaster.ShipToFax); //发货方 //发货区域: 11.1 this.SetRowCell(11, 1, string.Format("{0} {1}", receiptMaster.PartyFrom, receiptMaster.PartyFromName)); //联系人: 11.6 this.SetRowCell(11, 6, receiptMaster.ShipFromContact); //发货库位: 12.1 if (receiptMaster.OrderSubType == 1) { this.SetRowCell(12, 0, "卸货道口:"); this.SetRowCell(12, 1, receiptMaster.Dock); } else { this.SetRowCell(12, 1, string.Format("{0} {1}", receiptDetail.LocationFrom, receiptDetail.LocationFromName)); } //电话: 12.6 this.SetRowCell(12, 6, string.Format("{0} {1}", receiptMaster.ShipFromTel, receiptMaster.ShipFromCell)); //发货地址: 13.1 this.SetRowCell(13, 1, receiptMaster.ShipFromAddress); //传真: 13.6 this.SetRowCell(13, 6, receiptMaster.ShipFromFax); }