/* * 填充报表头 * * Param pickList 订单头对象 */ private void FillHead(PrintPickListMaster pickListMaster) { //订单号: string orderCode = Utility.BarcodeHelper.GetBarcodeStr(pickListMaster.PickListNo, this.barCodeFontName); this.SetRowCell(2, 7, orderCode); //Order No.: this.SetRowCell(3, 7, pickListMaster.PickListNo); //if (pickListMaster.PrintPickListDetails == null // || pickListMaster.PrintPickListDetails[0] == null // || pickListMaster.PrintPickListDetails[0]. == null // || pickListMaster.PrintPickListDetails[0].o.OrderDetail == null // || pickListMaster.PrintPickListDetails[0].OrderLocationTransaction.OrderDetail.OrderHead == null // || "Normal".Equals(pickListMaster.PrintPickListDetails[0].OrderLocationTransaction.OrderDetail.OrderHead.Priority)) //{ // this.SetRowCell(2, 4, ""); //} //else //{ // this.SetRowCell(1, 4, ""); //} //源超市: //if (pickListMaster != null )//&& pickListMaster.Flow.Trim() != string.Empty) //{ // //Flow flow = this.flowMgrE.LoadFlow(pickList.Flow); // this.SetRowCell(2, 2, flow.LocationFrom == null ? string.Empty : flow.LocationFrom.Code); // //目的超市: // this.SetRowCell(3, 2, pickList.Flow); // //领料地点: // this.SetRowCell(4, 2, flow.LocationFrom == null ? string.Empty : flow.LocationFrom.Region.Code); //} //窗口时间 // this.SetRowCell(2, 8, pickListMaster.WindowTime.ToString("yyyy-MM-dd HH:mm")); //订单时间 this.SetRowCell(4, 7, pickListMaster.CreateDate.ToString("yyyy-MM-dd HH:mm")); }
/* * 填充报表头 * * Param pickList 订单头对象 */ private void FillHead(PrintPickListMaster pickListMaster) { //拣货单号: string PickorderCode = Utility.BarcodeHelper.GetBarcodeStr(pickListMaster.PickListNo, this.barCodeFontName); this.SetRowCell(0, 6, PickorderCode); //Pick No.: this.SetRowCell(2, 6, pickListMaster.PickListNo); //订单 号 this.SetRowCell(5, 2, pickListMaster.OrderNo); //制单时间 this.SetRowCell(4, 2, pickListMaster.CreateDate.ToString("yyyy-MM-dd HH:mm")); //开始时间 this.SetRowCell(4, 6, pickListMaster.StartTime.ToString("yyyy-MM-dd HH:mm")); //窗口时间 this.SetRowCell(5, 6, pickListMaster.WindowTime.ToString("yyyy-MM-dd HH:mm")); //参考订单号 //this.SetRowCell(5, 2, pickListMaster.ReferenceOrderNo); //*****收货方信息 //目的(收货)区域名称 Region To: this.SetRowCell(8, 2, string.Format("{0} {1}", pickListMaster.PartyTo, pickListMaster.PartyToName)); //收货库位 string LocTo = pickListMaster.LocationTo; if (!string.IsNullOrWhiteSpace(pickListMaster.LocationToName)) { LocTo = LocTo + " " + pickListMaster.LocationToName; } this.SetRowCell(9, 2, LocTo); //供应商地址/道口 Address: string AddressDock = string.Format("{0}/{1}", pickListMaster.ShipToAddress, pickListMaster.Dock); this.SetRowCell(10, 2, AddressDock); //收货方联系人 Contact: this.SetRowCell(8, 6, pickListMaster.ShipToContact); //收货方电话 Telephone: this.SetRowCell(9, 6, string.Format("{0} {1}", pickListMaster.ShipToTel, pickListMaster.ShipToCell)); //收货方传真 Fax: this.SetRowCell(10, 6, pickListMaster.ShipToFax); //*****发货方信息 //供应商代码 Supplier Code: this.SetRowCell(12, 2, string.Format("{0} {1}", pickListMaster.PartyFrom, pickListMaster.PartyFromName)); //供应商名称 Supplier Name: //this.SetRowCell(6, 1, pickListMaster.PartyFromName); //发货库位 string LocFrom = pickListMaster.LocationFrom; if (!string.IsNullOrWhiteSpace(pickListMaster.LocationFromName)) { LocFrom = LocFrom + " " + pickListMaster.LocationFromName; } this.SetRowCell(13, 2, LocFrom); //供应商地址 Address: this.SetRowCell(14, 2, pickListMaster.ShipFromAddress); //目的区域地址 //this.SetRowCell(11, 2, pickListMaster.ShipToAddress); //供应商联系人 Contact: this.SetRowCell(12, 6, pickListMaster.ShipFromContact); //供应商电话 this.SetRowCell(13, 6, string.Format("{0} {1}", pickListMaster.ShipFromTel, pickListMaster.ShipFromCell)); //YFV传真 Fax: this.SetRowCell(14, 6, pickListMaster.ShipFromFax); //订单号: //string orderCode = Utility.BarcodeHelper.GetBarcodeStr(pickListMaster.PickListNo, this.barCodeFontName); //this.SetRowCell(2, 8, orderCode); //Order No.: //this.SetRowCell(3, 8, pickListMaster.PickListNo); //if (pickListMaster.PrintPickListDetails == null // || pickListMaster.PrintPickListDetails[0] == null // || pickListMaster.PrintPickListDetails[0]. == null // || pickListMaster.PrintPickListDetails[0].o.OrderDetail == null // || pickListMaster.PrintPickListDetails[0].OrderLocationTransaction.OrderDetail.OrderHead == null // || "Normal".Equals(pickListMaster.PrintPickListDetails[0].OrderLocationTransaction.OrderDetail.OrderHead.Priority)) //{ // this.SetRowCell(2, 4, ""); //} //else //{ // this.SetRowCell(1, 4, ""); //} //源超市: //if (pickListMaster != null )//&& pickListMaster.Flow.Trim() != string.Empty) //{ // //Flow flow = this.flowMgrE.LoadFlow(pickList.Flow); // this.SetRowCell(2, 2, flow.LocationFrom == null ? string.Empty : flow.LocationFrom.Code); // //目的超市: // this.SetRowCell(3, 2, pickList.Flow); // //领料地点: // this.SetRowCell(4, 2, flow.LocationFrom == null ? string.Empty : flow.LocationFrom.Region.Code); //} //窗口时间 // this.SetRowCell(2, 8, pickListMaster.WindowTime.ToString("yyyy-MM-dd HH:mm")); //订单时间 // this.SetRowCell(4, 8, pickListMaster.CreateDate.ToString("yyyy-MM-dd HH:mm")); }