コード例 #1
0
        /*
         * 填充报表头
         * 
         * Param repack 报验单头对象
         */
        private void FillHead(PrintOrderMaster sequenceMaster)
        {
            //排序单号:
            string seqCode = Utility.BarcodeHelper.GetBarcodeStr(sequenceMaster.OrderNo, this.barCodeFontName);
            this.SetRowCell(1, 7, seqCode);
            //排序单号 No.:
            this.SetRowCell(2, 7, sequenceMaster.OrderNo);

            //来源组织
            this.SetRowCell(3, 2, sequenceMaster.PartyFrom);

            //线体
            this.SetRowCell(2, 4, sequenceMaster.SequenceGroup.Substring(sequenceMaster.SequenceGroup.Length-1));

            //来源库位
            this.SetRowCell(3, 4, sequenceMaster.LocationFrom);

            //发出时间 Create Time:
            this.SetRowCell(3, 7, sequenceMaster.CreateDate.ToString("yyyy-MM-dd HH:mm:ss"));

            ////目的组织
            //this.SetRowCell(4, 2, sequenceMaster.PartyTo);

            //排序组
            this.SetRowCell(4, 4, sequenceMaster.FlowDescription);
            //拨次
            this.SetRowCell(4, 2, sequenceMaster.TraceCode);

            //窗口时间 
            this.SetRowCell(4, 7, sequenceMaster.WindowTime.ToString("yyyy-MM-dd HH:mm:ss"));
        }
コード例 #2
0
        /*
         * 填充报表头
         * 
         * Param repack 报验单头对象
         */
        private void FillHead(PrintOrderMaster orderHead)
        {
            if (orderHead.SubType == 1)
            {
                this.SetRowCell(2, 6, "退货");
            }
            //订单号:
            string orderCode = Utility.BarcodeHelper.GetBarcodeStr(orderHead.OrderNo, this.barCodeFontName);
            this.SetRowCell(0, 7, orderCode);
            //Order No.:
            this.SetRowCell(2, 7, orderHead.OrderNo);
            //参考订单号
            this.SetRowCell(6, 2, orderHead.ReferenceOrderNo);
            //外部订单号
            this.SetRowCell(6, 7, orderHead.ExternalOrderNo);
            //if (orderHead.SubType == (short)com.Sconit.CodeMaster.OrderSubType.Return)
            //{
            //    this.SetRowCell(0, 6, "采购退货单:");
            //}
            if (orderHead.Priority == (short)com.Sconit.CodeMaster.OrderPriority.Normal)
            {
                this.SetRowCell(4, 2, "☑正常");
            }
            else
            {
                this.SetRowCell(4, 2, "☑紧急");
            }
            if (orderHead.QualityType == 0)
            {
                this.SetRowCell(4, 3, "质量状态:合格");
            }
            else
            {
                this.SetRowCell(4, 3, "质量状态:不合格");
            }

            //制单时间 Create Time:
            this.SetRowCell(5, 2, orderHead.CreateDate.ToString("yyyy-MM-dd HH:mm:ss"));

            //目的(收货)区域代码	
            //this.SetRowCell(8, 2, orderHead.PartyTo);
            //开始时间 Start Time:
            this.SetRowCell(4, 8, orderHead.StartTime.ToString("yyyy-MM-dd HH:mm:ss"));


            //目的(收货)区域名称 Region To:	
            this.SetRowCell(8, 2, string.Format("{0} {1}", orderHead.PartyTo, orderHead.PartyToName));
            //发货区域名称 Region To:	
            this.SetRowCell(12, 2, string.Format("{0} {1}", orderHead.PartyFrom, orderHead.PartyFromName));
            //窗口时间 Window Time:
            this.SetRowCell(5, 7, orderHead.WindowTime.ToString("yyyy-MM-dd HH:mm:ss"));

            //供应商地址/道口 Address:	
            string AddressDock = string.Format("{0}/{1}", orderHead.ShipToAddress, orderHead.Dock);
            this.SetRowCell(10, 2, AddressDock);
            //发货地址 Address:	
            this.SetRowCell(14, 2, orderHead.ShipFromAddress);
            //道口:
            //this.SetRowCell(10, 2, orderHead.Dock);

            //收货方联系人 Contact:	
            this.SetRowCell(8, 7, orderHead.ShipToContact);
            //物流协调员 Follow Up:
            this.SetRowCell(12, 7, orderHead.ShipFromContact);

            //收货方电话 Telephone:		
            this.SetRowCell(9, 7, string.Format("{0} {1}", orderHead.ShipToTel, orderHead.ShipToCell));
            //发货方电话 Telephone:
            this.SetRowCell(13, 7, string.Format("{0} {1}", orderHead.ShipFromTel, orderHead.ShipFromCell));

            //收货库位
            string LocTo = orderHead.LocationTo;
            if (!string.IsNullOrWhiteSpace(orderHead.LocationToName))
            {
                LocTo = LocTo + " " + orderHead.LocationToName;
            }
            this.SetRowCell(9, 2, LocTo);
            //发货库位
            string LocFrom = orderHead.LocationFrom;
            if (!string.IsNullOrWhiteSpace(orderHead.LocationFromName))
            {
                LocFrom = LocFrom + " " + orderHead.LocationFromName;
            }
            this.SetRowCell(13, 2, LocFrom);
            //供应商传真 Fax:	
            this.SetRowCell(10, 7, orderHead.ShipToFax);
            //YFV传真 Fax:
            this.SetRowCell(14, 7, orderHead.ShipFromFax);

            //系统号 SysCode:
            //this.SetRowCell(++rowNum, 3, "");
            //版本号 Version:
            //this.SetRowCell(rowNum, 8, "");
        }
コード例 #3
0
 /*
  * 填充报表头
  * 
  * Param repack 报验单头对象
  */
 private void FillHead(PrintOrderMaster sequenceMaster)
 {
     //排序单号 No.:
     this.SetRowCell(2, 5, sequenceMaster.OrderNo);
 }
コード例 #4
0
 /*
  * 填充报表头
  * 
  * Param repack 报验单头对象
  */
 private void FillHead(PrintOrderMaster orderMaster)
 {
     
 }
コード例 #5
0
        /*
         * 填充报表头
         * 
         * Param repack
         */
        private void FillHead(PrintOrderMaster orderHead)
        {
            #region 报表头
            if (orderHead.SubType == 1)
            {
                this.SetRowCell(2, 4, "退货");
            }
            //this.SetRowCell(pageIndex, 0, 4, orderHead.Sequence.ToString());

            //工单号码Order code
            string orderCode = Utility.BarcodeHelper.GetBarcodeStr(orderHead.OrderNo, this.barCodeFontName);
            this.SetRowCell(0, 5, orderCode);
            this.SetRowCell(2, 5, orderHead.OrderNo);
            // "生产线:Prodline:"
            //Flow flow = this.flowMgr.LoadFlow(orderHead.Flow);
            this.SetRowCell(4, 1, orderHead.FlowDescription + "(" + orderHead.Flow + ")");
            //"生产班组:Shift:"
            this.SetRowCell(4, 5, orderHead.Shift == null ? string.Empty : orderHead.Shift);
            ////"发单人:Issuer:"
            //this.SetRowCell(3, 1, orderHead.CreateUserName);
            ////"交货地点:Shipto:"
            //this.SetRowCell(3, 4, orderHead.PartyToName);
            //开始时间
            this.SetRowCell(3, 1, orderHead.StartTime.ToString("yyyy-MM-dd HH:mm"));
            //结束时间
            this.SetRowCell(3, 5, orderHead.WindowTime.ToString("yyyy-MM-dd HH:mm"));
            //"注意事项:Remarks:"
             this.SetRowCell(6, 1, orderHead.Dock);
            //"联系电话:Tel:"
            //this.SetRowCell(pageIndex, 6, 1, string.Empty);


            // "生产单号:No. PO:"
            //this.SetRowCell(pageIndex, 3, 7, orderHead.OrderNo);
            //"交货日期:Deli. Date:"
            //this.SetRowCell(pageIndex, 4, 7, orderHead.WindowTime.ToString("yyyy-MM-dd"));
            //"发出日期:Release Date:"
            //this.SetRowCell(pageIndex, 4, 1, orderHead.CreateDate.ToString("yyyy-MM-dd hh:mm"));
            //"窗口时间:Win Time:"
            //this.SetRowCell(pageIndex, 5, 7, orderHead.WindowTime.ToString("HH:mm"));

            //正常 紧急 返工
            //if ((CodeMaster.OrderPriority)orderHead.Priority == CodeMaster.OrderPriority.Urgent)
            //{
            //    this.SetRowCell(pageIndex, 4, 2, "■");
            //}
            //else
            //{
            //    this.SetRowCell(pageIndex, 3, 2, "■");
            //}

            ////返工
            //if ((CodeMaster.OrderSubType)orderHead.SubType == CodeMaster.OrderSubType.Return)
            //{
            //    this.SetRowCell(pageIndex, 5, 2, "■");
            //}

            #endregion
        }
コード例 #6
0
        /*
         * 填充报表头
         * 
         * Param repack 报验单头对象
         */
        private void FillHead(PrintOrderMaster orderMaster)
        {
            if (orderMaster.SubType == 1)
            {
                this.SetRowCell(2, 6, "退货");
            }
            //订单号:
            string orderCode = Utility.BarcodeHelper.GetBarcodeStr(orderMaster.OrderNo, this.barCodeFontName);
            this.SetRowCell(0, 7, orderCode);
            //Order No.:
            this.SetRowCell(2, 7, orderMaster.OrderNo);
            //参考订单号
            //this.SetRowCell(6, 2, orderMaster.ReferenceOrderNo);
            //外部订单号
            //this.SetRowCell(6, 6, orderMaster.ExternalOrderNo);
            //if (orderMaster.SubType == (short)com.Sconit.CodeMaster.OrderSubType.Return)
            //{
            //    this.SetRowCell(0, 6, "采购退货单:");
            //}
            if (orderMaster.Priority == (short)com.Sconit.CodeMaster.OrderPriority.Normal)
            {
                this.SetRowCell(4, 2, "☑正常");
            }
            else
            {
                this.SetRowCell(4, 2, "☑紧急");
            }

            //打印时间
            this.SetRowCell(5, 2, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));

            //目的(收货)区域代码	
            //this.SetRowCell(8, 2, orderMaster.PartyTo);
            //发单时间 Start Time:
            this.SetRowCell(4, 7, orderMaster.StartTime.ToString("yyyy-MM-dd HH:mm:ss"));


            ////目的(收货)区域名称 Region To:	 (Equal with 客户号,名称收货。。)
            this.SetRowCell(7, 2, string.Format("{0} {1}", orderMaster.PartyTo, orderMaster.PartyToName));
            //发货区域名称 Region To:	
            this.SetRowCell(11, 2, string.Format("{0} {1}", orderMaster.PartyFrom, orderMaster.PartyFromName));
            //窗口时间 Window Time:
            this.SetRowCell(5, 7, orderMaster.WindowTime.ToString("yyyy-MM-dd HH:mm:ss"));

            //供应商地址/道口 Address:	
            //string AddressDock = orderMaster.ShipToAddress + (orderMaster.Dock == null || orderMaster.Dock.Trim() == "" ? "" : "/" + orderMaster.Dock);
            this.SetRowCell(8, 2, orderMaster.ShipToAddress);
            this.SetRowCell(9, 2, orderMaster.Dock);
            //发货地址 Address:	
            this.SetRowCell(13, 2, orderMaster.ShipFromAddress);
            //道口:
            //this.SetRowCell(10, 2, orderMaster.Dock);

            //收货方联系人 Contact:	
            this.SetRowCell(7, 7, orderMaster.ShipToContact);
            //物流协调员 Follow Up:
            this.SetRowCell(11, 7, orderMaster.ShipFromContact);

            //收货方电话 Telephone:		
            this.SetRowCell(8, 7, string.Format("{0} {1}", orderMaster.ShipToTel, orderMaster.ShipToCell));
            //发货方电话 Telephone:
            this.SetRowCell(12, 7, string.Format("{0} {1}", orderMaster.ShipFromTel, orderMaster.ShipFromCell));

            //收货库位
            //string LocTo = orderMaster.LocationTo;
            //if (!string.IsNullOrWhiteSpace(orderMaster.LocationToName))
            //{
            //    LocTo = LocTo + "[" + orderMaster.LocationToName + "]";
            //}
            //this.SetRowCell(9, 2, LocTo);
            //发货库位
            string LocFrom = orderMaster.LocationFrom;
            if (!string.IsNullOrWhiteSpace(orderMaster.LocationFromName))
            {
                LocFrom = LocFrom + " " + orderMaster.LocationFromName ;
            }
            this.SetRowCell(12, 2, LocFrom);
            //供应商传真 Fax:	
            this.SetRowCell(9, 7, orderMaster.ShipToFax);
            //YFV传真 Fax:
            this.SetRowCell(13, 7, orderMaster.ShipFromFax);

            //系统号 SysCode:
            //this.SetRowCell(++rowNum, 3, "");
            //版本号 Version:
            //this.SetRowCell(rowNum, 8, "");
        }
コード例 #7
0
        /*
         * 填充报表头
         * 
         * Param repack 报验单头对象
         */
        private void FillHead(PrintOrderMaster orderHead)
        {
            //订单号:
            string orderCode = Utility.BarcodeHelper.GetBarcodeStr(orderHead.OrderNo, this.barCodeFontName);
            this.SetRowCell(2, 8, orderCode);
            //Order No.:
            this.SetRowCell(3, 8, orderHead.OrderNo);
            if (orderHead.SubType ==(short)com.Sconit.CodeMaster.OrderSubType.Return)
            {
                this.SetRowCell(0, 3, "退货");
            }
            if (orderHead.Priority == (short)com.Sconit.CodeMaster.OrderPriority.Normal)
            {
                this.SetRowCell(4, 5, "");
            }
            else
            {
                this.SetRowCell(3, 5, "");
            }

            //制单时间 Create Time:
            this.SetRowCell(4, 9, orderHead.CreateDate.ToString("yyyy-MM-dd HH:mm:ss"));

            //供应商代码 Supplier Code:	
            this.SetRowCell(6, 3, orderHead.PartyFrom);
            //开始时间 Start Time:
            this.SetRowCell(6, 8, orderHead.StartTime.ToString("yyyy-MM-dd HH:mm:ss"));


            //供应商名称 Supplier Name:		
            this.SetRowCell(7, 3, orderHead.PartyFromName);
            //窗口时间 Window Time:
            this.SetRowCell(7, 8, orderHead.WindowTime.ToString("yyyy-MM-dd HH:mm:ss"));

            //供应商地址 Address:	
            this.SetRowCell(8, 3, orderHead.ShipFromAddr);
            //货币:
            this.SetRowCell(8, 8, orderHead.Currency);

            //供应商联系人 Contact:	
            this.SetRowCell(9, 3, orderHead.ShipFromContact);
            //物流协调员 Follow Up:
            this.SetRowCell(9, 8, orderHead.ShipToContact);

            //供应商电话 Telephone:		
            this.SetRowCell(10, 3, orderHead.ShipFromTel);
            //YFV电话 Telephone:
            this.SetRowCell(10, 8, orderHead.ShipToTel);

            //供应商传真 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, "");
        }
コード例 #8
0
        /*
         * 填充报表头
         * 
         * Param repack 报验单头对象
         */
        private void FillHead(PrintOrderMaster orderMaster)
        {
            //顺序号:
            this.SetRowCell(0, 5, orderMaster.Sequence.ToString());
            //订单号:
            if (!string.IsNullOrEmpty(orderMaster.TraceCode))
            {
                string vanCode = Utility.BarcodeHelper.GetBarcodeStr(orderMaster.TraceCode, this.barCodeFontName);
                this.SetRowCell(1, 3, vanCode);
            }
            //Order No.:
            this.SetRowCell(2, 3, orderMaster.TraceCode);

            //订单号:
            string orderCode = Utility.BarcodeHelper.GetBarcodeStr(orderMaster.OrderNo, this.barCodeFontName);
            this.SetRowCell(1, 7, orderCode);
            //Order No.:
            this.SetRowCell(2, 7, orderMaster.OrderNo);

            this.SetRowCell(3, 3, orderMaster.Flow+"["+orderMaster.FlowDescription+"]");

            //线体
            this.SetRowCell(4, 3, orderMaster.SequenceGroup.Substring(orderMaster.SequenceGroup.Length - 1));
  
            //来源库位
           // this.SetRowCell(3, 5, orderMaster.OrderDetails[0].LocationFrom);

            //发出时间 Create Time:
            this.SetRowCell(3, 9, orderMaster.CreateDate.ToString("yyyy-MM-dd HH:mm:ss"));


            //目的库位
            //this.SetRowCell(4, 5, orderMaster.OrderDetails[0].LocationTo);

            //窗口时间 
            this.SetRowCell(4, 9, orderMaster.WindowTime.ToString("yyyy-MM-dd HH:mm:ss"));
        }
コード例 #9
0
        /*
         * 填充报表头
         * 
         * Param repack 报验单头对象
         */
        private void FillHead(PrintOrderMaster orderMaster)
        {
            //订单号:
            string orderCode = Utility.BarcodeHelper.GetBarcodeStr(orderMaster.OrderNo, this.barCodeFontName);
            this.SetRowCell(2, 8, orderCode);
            //Order No.:
            this.SetRowCell(3, 8, orderMaster.OrderNo);

            if (orderMaster.SubType == (short)CodeMaster.OrderSubType.Return)
            {
                this.SetRowCell(0, 3, "退货");
            }

            if (orderMaster.Priority == (short)CodeMaster.OrderPriority.Normal)
            {
                this.SetRowCell(4, 5, "");
            }
            else
            {
                this.SetRowCell(3, 5, "");
            }

            //制单时间 Create Time:
            this.SetRowCell(4, 9, orderMaster.CreateDate.ToString("yyyy-MM-dd HH:mm:ss"));

            //供应商代码 Supplier Code:	
            this.SetRowCell(6, 3, orderMaster.PartyFrom != null ? orderMaster.PartyFrom : String.Empty);
            //开始时间 Start Time:
            this.SetRowCell(6, 8, orderMaster.StartTime.ToString("yyyy-MM-dd HH:mm:ss"));


            //供应商名称 Supplier Name:		
            this.SetRowCell(7, 3, orderMaster.PartyFrom != null ? orderMaster.PartyFromName : String.Empty);
            //窗口时间 Window Time:
            this.SetRowCell(7, 8, orderMaster.WindowTime.ToString("yyyy-MM-dd HH:mm:ss"));

            //供应商地址 Address:	
            this.SetRowCell(8, 3, orderMaster.ShipFrom != null ? orderMaster.ShipFromAddr : String.Empty);
            //交货道口 Delivery Dock:
            this.SetRowCell(8, 8, orderMaster.Dock != null ? orderMaster.Dock : string.Empty);

            //供应商联系人 Contact:	
            this.SetRowCell(9, 3, orderMaster.ShipFrom != null ? orderMaster.ShipFromContact : String.Empty);
            //物流协调员 Follow Up:
            this.SetRowCell(9, 8, orderMaster.ShipTo != null ? orderMaster.ShipToContact : String.Empty);

            //供应商电话 Telephone:		
            this.SetRowCell(10, 3, orderMaster.ShipFrom != null ? orderMaster.ShipFromTel : String.Empty);
            //YFV电话 Telephone:
            this.SetRowCell(10, 8, orderMaster.ShipTo != null ? orderMaster.ShipToTel : String.Empty);

            //内部移库显示库位信息
            if (orderMaster.Type == (short)CodeMaster.OrderType.Transfer)
            {
                //来源库位:	
                this.SetRowCell(11, 3, orderMaster.PartyFrom != null ? orderMaster.PartyFrom + "@" + orderMaster.PartyFromName : String.Empty);
                //目的库位:
                this.SetRowCell(11, 8, orderMaster.PartyTo != null ? orderMaster.PartyTo + "@" + orderMaster.PartyToName : String.Empty);
            }
            else
            {
                //供应商传真 Fax:	
                this.SetRowCell(11, 3, orderMaster.ShipFrom != null ? orderMaster.ShipFromFax : String.Empty);
                //YFV传真 Fax:
                this.SetRowCell(11, 8, orderMaster.ShipTo != null ? orderMaster.ShipToFax : String.Empty);
            }
        }
コード例 #10
0
ファイル: Program.cs プロジェクト: Novthirteen/sih-les
        private PrintOrderMaster PrepareEvent(int i)
        {
            PrintOrderMaster orderMaster = new PrintOrderMaster();
            if (i == 1)
            {
                orderMaster.OrderNo = "a12345678";
                orderMaster.CreateDate = DateTime.Now;
                orderMaster.PartyFrom = "partfrom";
                orderMaster.PartyTo = "vv";
                orderMaster.WindowTime = DateTime.Now;
                orderMaster.StartTime = DateTime.Now;
                orderMaster.ReleaseDate = DateTime.Now;
                //orderMaster.LastModifyDate = DateTime.Now;
                //orderMaster.EffDate = DateTime.Now;
                orderMaster.CreateUserId = 1;
                //orderMaster.LastModifyUserId = 1;
                //orderMaster.OrderStrategy = com.Sconit.CodeMaster.FlowStrategy.ANDON;
                orderMaster.Flow = "aa";
                orderMaster.Type = 1;
                //orderMaster.SubType = com.Sconit.CodeMaster.OrderSubType.Normal;
                orderMaster.Priority = 0;     
            }
            else if (i == 2)
            {
                orderMaster.OrderNo = "b12345678";
                orderMaster.CreateDate = DateTime.Now;
                orderMaster.PartyFrom = "partfrom";
                orderMaster.PartyTo = "sd";
                orderMaster.WindowTime = DateTime.Now;
                orderMaster.StartTime = DateTime.Now;
                orderMaster.ReleaseDate = DateTime.Now;
                //orderMaster.LastModifyDate = DateTime.Now;
                //orderMaster.EffDate = DateTime.Now;
                orderMaster.CreateUserId = 1;
                //orderMaster.LastModifyUserId = 1;
                orderMaster.OrderStrategy = 1;
                orderMaster.Flow = "aasdsd";
                orderMaster.Type = 2;
                orderMaster.SubType = 3;
                orderMaster.Priority = 0; 
 
            }
            else if (i == 3)
            {
                orderMaster.OrderNo = "c12345678";
                orderMaster.CreateDate = DateTime.Now;
                orderMaster.PartyFrom = "partfrom";
                orderMaster.PartyTo = "2222";
                orderMaster.WindowTime = DateTime.Now;
                orderMaster.StartTime = DateTime.Now;
                orderMaster.ReleaseDate = DateTime.Now;
                //orderMaster.LastModifyDate = DateTime.Now;
                //orderMaster.EffDate = DateTime.Now;
                orderMaster.CreateUserId = 1;
                //orderMaster.LastModifyUserId = 1;
                orderMaster.OrderStrategy = 1;
                orderMaster.Flow = "111";
                orderMaster.Type = 2;
                orderMaster.SubType = 3;
                orderMaster.Priority = 0; 

            }
            return orderMaster;
        }
コード例 #11
0
        /*
         * 填充报表头
         * 
         * Param pageIndex 页号
         * Param orderHead 订单头对象
         * Param orderDetails 订单明细对象
         */
        protected void FillHead(int pageIndex, PrintOrderMaster orderMaster, IList<PrintOrderDetail> orderDetails)
        {

            #region 报表头

            this.SetRowCell(pageIndex, 0, 7, orderMaster.Sequence.ToString());

            //工单号码Order code
            string orderCode = Utility.BarcodeHelper.GetBarcodeStr(orderMaster.OrderNo, this.barCodeFontName);
            this.SetRowCell(pageIndex, 2, 5, orderCode);

            // "生产线:Prodline:"
            //Flow flow = this.flowMgr.LoadFlow(orderHead.Flow);
            this.SetRowCell(pageIndex, 2, 1, orderMaster.FlowDescription + "(" + orderMaster.Flow + ")");
            //"生产班组:Shift:"
            this.SetRowCell(pageIndex, 3, 1, orderMaster.Shift == null ? string.Empty : orderMaster.Shift);
            //"发出日期:Release Date:"
            this.SetRowCell(pageIndex, 4, 1, orderMaster.CreateDate.ToString("yyyy-MM-dd hh:mm"));
            //"发单人:Issuer:"
            this.SetRowCell(pageIndex, 5, 1, orderMaster.CreateUserName);
            //"联系电话:Tel:"
            this.SetRowCell(pageIndex, 6, 1, string.Empty);


            // "生产单号:No. PO:"
            this.SetRowCell(pageIndex, 3, 7, orderMaster.OrderNo);
            //"交货日期:Deli. Date:"
            this.SetRowCell(pageIndex, 4, 7, orderMaster.WindowTime.ToString("yyyy-MM-dd"));
            //"窗口时间:Win Time:"
            this.SetRowCell(pageIndex, 5, 7, orderMaster.WindowTime.ToString("HH:mm"));
            //"交货地点:Shipto:"
            this.SetRowCell(pageIndex, 6, 7, orderMaster.PartyToName);

            //"注意事项:Remarks:"
            //this.SetRowCell(pageIndex, 7, 1, orderMaster.n);


            //正常 紧急 返工
            if ((CodeMaster.OrderPriority)orderMaster.Priority == CodeMaster.OrderPriority.Urgent)
            {
                this.SetRowCell(pageIndex, 4, 2, "■");
            }
            else
            {
                this.SetRowCell(pageIndex, 3, 2, "■");
            }

            //返工
            if ((CodeMaster.OrderSubType)orderMaster.SubType == CodeMaster.OrderSubType.Return)
            {
                this.SetRowCell(pageIndex, 5, 2, "■");
            }

            #endregion

            int rowIndex = 10;

            #region 产品信息  Product Information
            if (orderIndex == 1)//首页
            {
                foreach (PrintOrderDetail orderDetail in orderDetails)
                {

                    if (rowIndex == 15)
                    {
                        break;
                    }
                    //"成品物料号 FG Item Code"	
                    this.SetRowCell(pageIndex, rowIndex, 0, orderDetail.Item);
                    //"描述Description"	
                    this.SetRowCell(pageIndex, rowIndex, 1, orderDetail.ItemDescription);
                    //"单位Unit"	
                    this.SetRowCell(pageIndex, rowIndex, 2, orderDetail.Uom);
                    //"包装UC"	
                    this.SetRowCell(pageIndex, rowIndex, 3, orderDetail.UnitCount.ToString("0.########"));
                    //"计划数Dmd Qty"	
                    this.SetRowCell(pageIndex, rowIndex, 4, orderDetail.OrderedQty.ToString("0.########"));
                    //"合格数Conf Qty"	
                    //this.SetRowCell(pageIndex, rowIndex, 5, string.Empty);
                    //"不合格数NC Qty"	
                    //this.SetRowCell(pageIndex, rowIndex, 6, string.Empty);
                    //"废品数Scrap Qty"	
                    //this.SetRowCell(pageIndex, rowIndex, 7, string.Empty);
                    //"收货人Receiver"	
                    //this.SetRowCell(pageIndex, rowIndex, 8, string.Empty);
                    // "收货日期Rct Date"
                    //this.SetRowCell(pageIndex, rowIndex, 9, string.Empty);

                    rowIndex++;

                    orderIndex++;
                }
            }
            #endregion

        }
コード例 #12
0
        /*
         * 填充报表头
         * 
         * Param repack
         */
        private void FillHead(PrintOrderMaster orderHead)
        {
            #region 报表头
            if (orderHead.SubType == 1)
            {
                this.SetRowCell(1, 5, "退货");
            }
            //this.SetRowCell(pageIndex, 0, 4, orderHead.Sequence.ToString());
            //注意事项
            this.SetRowCell(4, 1, orderHead.Dock);
            //工单号码Order code
            string orderCode = Utility.BarcodeHelper.GetBarcodeStr(orderHead.OrderNo, this.barCodeFontName);
            this.SetRowCell(0, 6, orderCode);
            this.SetRowCell(1, 6, orderHead.OrderNo);
            // "生产线:Prodline:"
            //Flow flow = this.flowMgr.LoadFlow(orderHead.Flow);
            this.SetRowCell(2, 1, orderHead.FlowDescription + "(" + orderHead.Flow + ")");
            //"生产班组:Shift:"
            this.SetRowCell(2, 3, orderHead.Shift == null ? string.Empty : orderHead.Shift);
            //"发单人:Issuer:"
            this.SetRowCell(2, 7, orderHead.CreateUserName);
            ////"交货地点:Shipto:"
            //this.SetRowCell(3, 7, orderHead.PartyToName);
            //"参考订单号:Shipto:"
            this.SetRowCell(3, 7, orderHead.ReferenceOrderNo);
            //开始时间
            this.SetRowCell(3, 1, orderHead.StartTime.ToString("yyyy-MM-dd HH:mm"));
            //结束时间
            this.SetRowCell(3, 3, orderHead.WindowTime.ToString("yyyy-MM-dd HH:mm"));
            //备注
            //this.SetRowCell(4, 1, orderHead.remark);
            //"注意事项:Remarks:"
            // this.SetRowCell(7, 1, headremark);
            //"联系电话:Tel:"
            //this.SetRowCell(pageIndex, 6, 1, string.Empty);

            #endregion
        }
コード例 #13
0
        /*
         * 填充报表头
         * 
         * Param repack 报验单头对象
         */
        private void FillHead(PrintOrderMaster orderHead)
        {
            if (orderHead.SubType == 1)
            {
                if (orderHead.QualityType == 0)
                {
                    this.SetRowCell(2, 6, "退货");
                }
                else
                {
                    this.SetRowCell(2, 6, "不合格品退货");
                }
            }

            //订单号:
            string orderCode = Utility.BarcodeHelper.GetBarcodeStr(orderHead.OrderNo, this.barCodeFontName);//orderHead.IpNo can not be null or error will appear
            this.SetRowCell(0, 7, orderCode);
            //Order No.:
            this.SetRowCell(2, 7, orderHead.OrderNo);

            if (orderHead.Priority == (short)com.Sconit.CodeMaster.OrderPriority.Normal)
            {
                this.SetRowCell(4, 2, "☑正常");
            }
            else
            {
                this.SetRowCell(4, 2, "☑紧急");
            }

            //打印时间
            this.SetRowCell(6, 2, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));

            //制单时间 Create Time:
            this.SetRowCell(4, 7, orderHead.CreateDate.ToString("yyyy-MM-dd HH:mm:ss"));

            //窗口时间 Window Time:
            this.SetRowCell(6, 7, orderHead.WindowTime.ToString("yyyy-MM-dd HH:mm:ss"));

            //*****收货方信息
            //目的(收货)区域名称 Region To:	
            this.SetRowCell(9, 2, string.Format("{0} {1}", orderHead.PartyTo, orderHead.PartyToName));

            //收货库位
            string LocTo = orderHead.LocationTo;
            if (!string.IsNullOrWhiteSpace(orderHead.LocationToName))
            {
                LocTo = LocTo + " " + orderHead.LocationToName;
            }
            this.SetRowCell(11, 2, LocTo);
            //供应商地址/道口 Address:	
            string AddressDock = string.Format("{0}/{1}", orderHead.ShipToAddress, orderHead.Dock);
            this.SetRowCell(13, 2, AddressDock);

            //收货方联系人 Contact:	
            this.SetRowCell(9, 7, orderHead.ShipToContact);

            //收货方电话 Telephone:		
            this.SetRowCell(11, 7, string.Format("{0} {1}", orderHead.ShipToTel, orderHead.ShipToCell));

            //收货方传真 Fax:	
            this.SetRowCell(13, 7, orderHead.ShipToFax);

            //*****发货方信息
            //供应商代码 Supplier Code:	
            this.SetRowCell(16, 2, orderHead.PartyFrom);

            //供应商名称 Supplier Name:		
            this.SetRowCell(18, 2, orderHead.PartyFromName);

            //供应商地址 Address:	
            this.SetRowCell(20, 2, orderHead.ShipFromAddress);

            //目的区域地址
            //this.SetRowCell(11, 2, orderHead.ShipToAddress);

            //供应商联系人 Contact:	
            this.SetRowCell(16, 7, orderHead.ShipFromContact);
            //供应商电话
            this.SetRowCell(18, 7, orderHead.ShipFromCell);
            //YFV传真 Fax:
            this.SetRowCell(20, 7, orderHead.ShipFromFax);

            //this.SetRowCell(9, 2, LocTo);

            ////物流协调员 Follow Up:
            //this.SetRowCell(12, 6, orderHead.ShipFromContact);

            ////收货方电话 Telephone:		
            //this.SetRowCell(9, 6, orderHead.ShipToTel);
            ////发货方电话 Telephone:
            //this.SetRowCell(13, 6, orderHead.ShipFromTel);

            //string LocFrom = orderHead.LocationFrom;
            //if (!string.IsNullOrWhiteSpace(orderHead.LocationFromName))
            //{
            //    LocFrom = LocFrom + "[" + orderHead.LocationFromName + "]";
            //}
            //this.SetRowCell(13, 2, LocFrom);
            ////供应商传真 Fax:	
            //this.SetRowCell(10, 6, orderHead.ShipToFax);

            //系统号 SysCode:
            //this.SetRowCell(++rowNum, 3, "");
            //版本号 Version:
            //this.SetRowCell(rowNum, 8, "");
        }