/* * 填充报表头 * * Param pageIndex 页号 * Param orderHead 订单头对象 * Param orderDetails 订单明细对象 */ protected void FillHead(PrintIpMaster ipMaster) { //首部 //No. this.SetRowCell(3, 14, ipMaster.IpNo); //收货单位 this.SetRowCell(5, 2, ipMaster.PartyToName); //地址 this.SetRowCell(5, 9, ipMaster.ShipTo == null ? string.Empty : ipMaster.ShipToAddress); //卸货地点 //运输方法 //车号 //介绍信编号 //货物出门性质 //CodeMaster codeMaster = codeMasterMgrE.LoadCodeMaster(BusinessConstants.CODE_MASTER_ORDER_TYPE, ipMaster.OrderType); //this.SetRowCell(6, 16, codeMaster.Description); }
/* * 填充报表头 * * Param pageIndex 页号 * Param orderHead 订单头对象 * Param orderDetails 订单明细对象 */ protected void FillHead(PrintIpMaster ipMaster) { //订单号: string orderCode = Utility.BarcodeHelper.GetBarcodeStr(ipMaster.IpNo, this.barCodeFontName); this.SetRowCell(2, 8, orderCode); //Order No.: this.SetRowCell(3, 8, ipMaster.IpNo); //制单时间 Create Time: this.SetRowCell(4, 7, ipMaster.CreateDate.ToString("yyyy-MM-dd HH:mm:ss")); //供应商代码 Supplier Code: this.SetRowCell(6, 3, ipMaster.PartyFrom); //目的区域 this.SetRowCell(6, 8, ipMaster.PartyTo); //供应商名称 Supplier Name: this.SetRowCell(7, 3, ipMaster.PartyFromName); //目的区域名称 this.SetRowCell(7, 8, ipMaster.PartyToName); //供应商地址 Address: this.SetRowCell(8, 3, ipMaster.ShipFromAddress); //目的区域地址 this.SetRowCell(8, 8, ipMaster.ShipToAddress); //供应商联系人 Contact: this.SetRowCell(9, 3, ipMaster.ShipFromContact); //目的库位 //this.SetRowCell(9, 8, ipMaster.IpDetails[0].LocationTo); //供应商电话 Telephone: //this.SetRowCell(10, 3, ipMaster.ShipFromTel); //收货道口 this.SetRowCell(9, 8, ipMaster.Dock); ////供应商传真 Fax: //this.SetRowCell(11, 3, orderHead.ShipFromFax); ////YFV传真 Fax: //this.SetRowCell(11, 8, orderHead.ShipToFax); //系统号 SysCode: //this.SetRowCell(++rowNum, 3, ""); //版本号 Version: //this.SetRowCell(rowNum, 8, ""); }
/* * 填充报表头 * * Param pageIndex 页号 * Param orderHead 订单头对象 * Param orderDetails 订单明细对象 */ protected void FillHead(PrintIpMaster ipMaster) { if (ipMaster.OrderSubType == 1) { this.SetRowCell(2, 6, "退货"); } //订单号: string orderCode = Utility.BarcodeHelper.GetBarcodeStr(ipMaster.IpNo, this.barCodeFontName); this.SetRowCell(0, 7, orderCode); //Order No.: this.SetRowCell(2, 7, ipMaster.IpNo); //制单时间 Create Time: this.SetRowCell(4, 2, ipMaster.CreateDate.ToString("yyyy-MM-dd HH:mm:ss")); //窗口时间 Window Time: this.SetRowCell(4, 7, ipMaster.WindowTime.ToString("yyyy-MM-dd HH:mm:ss")); //*****收货方信息 //目的(收货)区域名称 Region To: this.SetRowCell(6, 1, string.Format("{0} {1}", ipMaster.PartyTo, ipMaster.PartyToName)); //this.SetRowCell(6, 1, (ipMaster.PartyTo == null || ipMaster.PartyTo == "" ? "" : ipMaster.PartyTo + " ") + ipMaster.PartyToName); //收货库位 //string LocTo = ipMaster.LocationTo; //if (!string.IsNullOrWhiteSpace(ipMaster.LocationToName)) //{ // LocTo = LocTo + "[" + ipMaster.LocationToName + "]"; //} //this.SetRowCell(7, 1, LocTo); //供应商地址 this.SetRowCell(7, 1, ipMaster.ShipToAddress); //道口 Address: this.SetRowCell(8, 1, ipMaster.Dock ); //收货方联系人 Contact: this.SetRowCell(6, 7, ipMaster.ShipToContact); //收货方电话 Telephone: this.SetRowCell(7, 7, string.Format("{0} {1}", ipMaster.ShipToTel, ipMaster.ShipToCell)); //收货方传真 Fax: this.SetRowCell(8, 7, ipMaster.ShipToFax); //*****发货方信息 //供应商代码 Supplier Code: //this.SetRowCell(10, 1, ipMaster.PartyFrom); //供应商名称 Supplier Name: this.SetRowCell(10, 1, string.Format("{0} {1}", ipMaster.PartyFrom, ipMaster.PartyFromName)); //发货库位 string LocFrom = ipMaster.LocationFrom; if (!string.IsNullOrWhiteSpace(ipMaster.LocationFromName)) { LocFrom = LocFrom + " " + ipMaster.LocationFromName; } this.SetRowCell(11, 1, LocFrom); //供应商地址 Address: this.SetRowCell(12, 1, ipMaster.ShipFromAddress); //目的区域地址 //this.SetRowCell(11, 2, ipMaster.ShipToAddress); //供应商联系人 Contact: this.SetRowCell(10, 7, ipMaster.ShipFromContact); //供应商电话 this.SetRowCell(11, 7, string.Format("{0} {1}", ipMaster.ShipFromTel, ipMaster.ShipFromCell)); //YFV传真 Fax: this.SetRowCell(12, 7, ipMaster.ShipFromFax); //this.SetRowCell(9, 2, LocTo); }