/*
         * 填充报表头
         * 
         * Param pageIndex 页号
         * Param orderHead 订单头对象
         * Param orderDetails 订单明细对象
         */
        protected void FillHead(PrintMiscOrderMaster miscOrderMaster)
        {
            //抬头
            this.SetRowCell(0, 4, miscOrderMaster.Title);

            //计划外出入库单号:
            string orderCode = Utility.BarcodeHelper.GetBarcodeStr(miscOrderMaster.MiscOrderNo, this.barCodeFontName);
            this.SetRowCell(1, 4, orderCode);

            //Order No.:
            this.SetRowCell(2, 4, miscOrderMaster.MiscOrderNo);

            if (miscOrderMaster.Status == 2)
            {
                this.SetRowCell(2, 2, "☑已冲销");
            }
            else
            {
                this.SetRowCell(2, 2, string.Empty);
            }

            //创建日期:	
            this.SetRowCell(4, 2, miscOrderMaster.CreateDate.ToString("yyyy-MM-dd HH:mm:ss"));
            //创建者: 
            this.SetRowCell(4, 5, miscOrderMaster.CreateUserName);

            //区域:
            this.SetRowCell(5, 2, miscOrderMaster.Region);

            //库位:
            this.SetRowCell(5, 5, miscOrderMaster.Location);

            //质量类型:
            this.SetRowCell(6, 2, miscOrderMaster.QualityTypeDescription);

            //参考订单号:
            this.SetRowCell(6, 5, miscOrderMaster.ReferenceNo);

            //移库类型:
            this.SetRowCell(7, 2, miscOrderMaster.MoveType);

            //移动原因:
            this.SetRowCell(7, 5, miscOrderMaster.Note);

            //生效日期:	
            this.SetRowCell(8, 2, miscOrderMaster.EffectiveDate.ToString("yyyy-MM-dd HH:mm:ss"));

            //成本中心:
            if (miscOrderMaster.MoveType == "201" || miscOrderMaster.MoveType == "202")
            {
       
                this.SetRowCell(8, 5, miscOrderMaster.CostCenter);
            }
            else
            {
                this.SetRowCell(8, 4, string.Empty);
                this.SetRowCell(8, 5, string.Empty);
            }
            //路线:
            if (miscOrderMaster.MoveType == "261" || miscOrderMaster.MoveType == "262"
                || miscOrderMaster.MoveType == "281" || miscOrderMaster.MoveType == "581")
            {

                if (!string.IsNullOrWhiteSpace(miscOrderMaster.Flow))
                {
                    this.SetRowCell(9, 2, miscOrderMaster.Flow);
                }
                else
                {
                    this.SetRowCell(9, 0, string.Empty);
                    this.SetRowCell(9, 2, string.Empty);
                }
            }
            else
            {
                this.SetRowCell(9, 0, string.Empty);
                this.SetRowCell(9, 2, string.Empty);
            }
            //WBS:
            if (miscOrderMaster.MoveType == "581")
            {

                this.SetRowCell(9, 5, miscOrderMaster.WBS);
            }
            else
            {
                this.SetRowCell(9, 4, string.Empty);
                this.SetRowCell(9, 5, string.Empty);
            }

            ////科目代码:	
            //this.SetRowCell(6, 2, "");

            ////分账号代码:	
            //this.SetRowCell(7, 2, "");


            ////项目代码:
            //this.SetRowCell(7, 5, "");
        }
Пример #2
0
        /*
         * 填充报表头
         * 
         * Param pageIndex 页号
         * Param orderHead 订单头对象
         * Param orderDetails 订单明细对象
         */
        protected void FillHead(PrintMiscOrderMaster miscOrderMaster)
        {
            //计划外出入库单号:
            string orderCode = Utility.BarcodeHelper.GetBarcodeStr(miscOrderMaster.MiscOrderNo, this.barCodeFontName);
            this.SetRowCell(1, 5, orderCode);

            //Order No.:
            this.SetRowCell(2, 5, miscOrderMaster.MiscOrderNo);

            //区域:
            this.SetRowCell(4, 2, miscOrderMaster.Region);

            //移库类型:
            this.SetRowCell(5, 2, miscOrderMaster.MoveType);

            //科目代码:	
            this.SetRowCell(6, 2, "");

            //分账号代码:	
            this.SetRowCell(7, 2, "");

            //质量类型:
            this.SetRowCell(8, 2, miscOrderMaster.QualityType.ToString());

            //创建日期:	
            this.SetRowCell(9, 2, miscOrderMaster.EffectiveDate.ToString("yyyy-MM-dd hh:nn:ss"));

            //生效日期:	
            this.SetRowCell(10, 2, miscOrderMaster.EffectiveDate.ToString("yyyy-MM-dd"));

            //参考订单号:
            this.SetRowCell(4, 5, miscOrderMaster.ReferenceNo);

            //移动原因:
            this.SetRowCell(5, 5, miscOrderMaster.Note);
            
            //成本中心:
            this.SetRowCell(6, 5, miscOrderMaster.CostCenter);

            //项目代码:
            this.SetRowCell(7, 5, "");

            //WBS:
            this.SetRowCell(8, 5, miscOrderMaster.WBS);
            
            //创建者: 
            this.SetRowCell(9, 5, miscOrderMaster.CreateUserName);
          
        }