예제 #1
0
        //客户订单
        private void BarBtnCutomerOrder_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            createProduce.EditForm f = new Book.UI.produceManager.createProduce.EditForm(false);
            if (f.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }
            if (f.SelectList == null || f.SelectList.Count == 0)
            {
                return;
            }
            Model.InvoiceXODetail xd = f.SelectList[0];


            this._PCExportReportANSI.Customer       = xd.Invoice.xocustomer;
            this._PCExportReportANSI.CustomerId     = xd.Invoice.xocustomerId;
            this._PCExportReportANSI.Specification  = xd.Invoice.Customer.CheckedStandard;
            this._PCExportReportANSI.Product        = xd.Product;
            this._PCExportReportANSI.InvoiceCusXOId = xd.Invoice.CustomerInvoiceXOId;
            this._PCExportReportANSI.Amount         = xd.InvoiceXODetailQuantity.HasValue ? xd.InvoiceXODetailQuantity.Value : 0;
            this._PCExportReportANSI.ProductUnitId  = xd.Product.SellUnitId;

            //获取质检统计记录
            //Model.PCExportReportANSIDetail _PCExportReportANSIDetail = new BL.PCExportReportANSIDetailManager().SelectForExpCSADetailsSUM(xd.Invoice.CustomerInvoiceXOId, xd.Product.ProductId);

            //if (_PCExportReportANSIDetail != null)
            //{
            #region 测试数量、合格数量

            //受测数量默认为订单数量的1/500,无条件进位,最大为12
            //int Orderamount = int.Parse(this._PCExportReportANSI.Amount.HasValue ? this._PCExportReportANSI.Amount.ToString() : "0");
            //double MustCheck = 0;

            //if (Orderamount < 500)
            //    MustCheck = 1;
            //else
            //    MustCheck = Orderamount % 500 == 0 ? Orderamount / 500 : Orderamount / 500 + 1;

            //this._PCExportReportANSI.AmountTest = MustCheck > 12 ? 12 : MustCheck;//受测数量12个,无条件进位
            this._PCExportReportANSI.AmountTest = Common.AutoCalculation.Calculation("csa", Convert.ToInt32(this._PCExportReportANSI.Amount));

            //this._PCExportReportANSI.ShouCeShu1 = this._PCExportReportANSI.ShouCeShu2 = this._PCExportReportANSI.ShouCeShu3 = this._PCExportReportANSI.ShouCeShu4 = this._PCExportReportANSI.ShouCeShu5 = this._PCExportReportANSI.ShouCeShu6 = this._PCExportReportANSI.AmountTest;

            //this._PCExportReportANSI.PanDing0 = _PCExportReportANSIDetail.pCSAGX;
            //this._PCExportReportANSI.QuYangShu1 = _PCExportReportANSIDetail.qCSAGX;
            //this._PCExportReportANSI.PanDing1 = _PCExportReportANSIDetail.pCSAQXD;
            //this._PCExportReportANSI.QuYangShu2 = _PCExportReportANSIDetail.qCSAQXD;
            //this._PCExportReportANSI.PanDing2 = _PCExportReportANSIDetail.pCSAPGPCL;
            //this._PCExportReportANSI.QuYangShu3 = _PCExportReportANSIDetail.qCSAPGPCL;
            //this._PCExportReportANSI.PanDing3 = _PCExportReportANSIDetail.pCSAWDCS;
            //this._PCExportReportANSI.QuYangShu4 = _PCExportReportANSIDetail.qCSAWDCS;
            //this._PCExportReportANSI.PanDing4 = _PCExportReportANSIDetail.pCSAKJGTSL;
            //this._PCExportReportANSI.QuYangShu5 = _PCExportReportANSIDetail.qCSAKJGTSL;
            //this._PCExportReportANSI.PanDing5 = _PCExportReportANSIDetail.pCSAGSCJCS;
            //this._PCExportReportANSI.QuYangShu6 = _PCExportReportANSIDetail.qCSAGSCJCS;

            #endregion
            //}
            this.InitControls();
        }
예제 #2
0
        //客户订单
        private void BarBtnCutomerOrder_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            createProduce.EditForm f = new Book.UI.produceManager.createProduce.EditForm();
            if (f.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }
            if (f.SelectList == null || f.SelectList.Count == 0)
            {
                return;
            }
            Model.InvoiceXODetail xd = f.SelectList[0];


            this._PCExportReportANSI.Customer       = xd.Invoice.xocustomer;
            this._PCExportReportANSI.CustomerId     = xd.Invoice.xocustomerId;
            this._PCExportReportANSI.Specification  = xd.Invoice.Customer.CheckedStandard;
            this._PCExportReportANSI.Product        = xd.Product;
            this._PCExportReportANSI.InvoiceCusXOId = xd.Invoice.CustomerInvoiceXOId;
            this._PCExportReportANSI.Amount         = xd.InvoiceXODetailQuantity.HasValue ? xd.InvoiceXODetailQuantity.Value : 0;
            this._PCExportReportANSI.ProductUnit    = this._PCExportReportANSI.Product.ProduceUnit;
            this._PCExportReportANSI.ProductUnitId  = this._PCExportReportANSI.Product.ProduceUnitId;

            //获取质检统计记录
            Model.PCExportReportANSIDetail _PCExportReportANSIDetail = new BL.PCExportReportANSIDetailManager().SelectForExpASDetailsSUM(xd.Invoice.CustomerInvoiceXOId, xd.Product.ProductId);

            if (_PCExportReportANSIDetail != null)
            {
                #region 测试数量、合格数量

                //受测数量默认为订单数量的1/500,无条件进位,最大为12
                int    Orderamount = int.Parse(this._PCExportReportANSI.Amount.HasValue ? this._PCExportReportANSI.Amount.ToString() : "0");
                double MustCheck   = 0;

                if (Orderamount < 500)
                {
                    MustCheck = 1;
                }
                else
                {
                    MustCheck = Orderamount % 500 == 0 ? Orderamount / 500 : Orderamount / 500 + 1;
                }

                this._PCExportReportANSI.AmountTest = MustCheck > 12 ? 12 : MustCheck;//受测数量12个,无条件进位

                this._PCExportReportANSI.ShouCeShu2 = this._PCExportReportANSI.AmountTest;

                this._PCExportReportANSI.PanDing2   = _PCExportReportANSIDetail.pASCCSL;
                this._PCExportReportANSI.QuYangShu2 = _PCExportReportANSIDetail.qASCCSL;

                #endregion
            }
            this.InitControls();
        }
예제 #3
0
        //客户订单
        private void BarBtnCutomerOrder_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            createProduce.EditForm f = new Book.UI.produceManager.createProduce.EditForm();
            if (f.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }
            if (f.SelectList == null || f.SelectList.Count == 0)
            {
                return;
            }
            Model.InvoiceXODetail xd = f.SelectList[0];


            this._PCExportReportANSI.Customer       = xd.Invoice.xocustomer;
            this._PCExportReportANSI.CustomerId     = xd.Invoice.xocustomer.CustomerId;
            this._PCExportReportANSI.Specification  = xd.Invoice.xocustomer.CheckedStandard;
            this._PCExportReportANSI.Product        = xd.Product;
            this._PCExportReportANSI.InvoiceCusXOId = xd.Invoice.CustomerInvoiceXOId;
            this._PCExportReportANSI.Amount         = xd.InvoiceXODetailQuantity.HasValue ? xd.InvoiceXODetailQuantity.Value : 0;

            //获取质检统计记录
            //Model.PCExportReportANSIDetail _PCExportReportANSIDetail = new BL.PCExportReportANSIDetailManager().SelectForExpCEENDetailsSUM(xd.Invoice.CustomerInvoiceXOId, xd.Product.ProductId);

            //if (_PCExportReportANSIDetail != null)
            //{
            #region 测试数量、合格数量

            //受测数量默认为订单数量的1/500,无条件进位,最大为12
            int    Orderamount = int.Parse(this._PCExportReportANSI.Amount.HasValue ? this._PCExportReportANSI.Amount.ToString() : "0");
            double MustCheck   = 0;

            if (Orderamount < 500)
            {
                MustCheck = 1;
            }
            else
            {
                MustCheck = Orderamount % 500 == 0 ? Orderamount / 500 : Orderamount / 500 + 1;
            }

            this._PCExportReportANSI.AmountTest = MustCheck > 12 ? 12 : MustCheck;//受测数量12个,无条件进位

            this._PCExportReportANSI.QuYangShu2 = this._PCExportReportANSI.QuYangShu3 = this._PCExportReportANSI.QuYangShu4 = this._PCExportReportANSI.QuYangShu5 = this._PCExportReportANSI.QuYangShu6 = this._PCExportReportANSI.QuYangShu7 = this._PCExportReportANSI.QuYangShu8 = this._PCExportReportANSI.QuYangShu9 = this._PCExportReportANSI.QuYangShu10 = this._PCExportReportANSI.QuYangShu11 = this._PCExportReportANSI.QuYangShu12 = this._PCExportReportANSI.QuYangShu13 = this._PCExportReportANSI.QuYangShu15 = this._PCExportReportANSI.QuYangShu16 = this._PCExportReportANSI.QuYangShu17 = this._PCExportReportANSI.QuYangShu18 = this._PCExportReportANSI.QuYangShu19 = this._PCExportReportANSI.AmountTest;

            //2019年12月26日22:17:15:改和上面带一样
            //this._PCExportReportANSI.QuYangShu1 = this._PCExportReportANSI.QuYangShu14 = 100;
            this._PCExportReportANSI.QuYangShu1 = this._PCExportReportANSI.QuYangShu14 = this._PCExportReportANSI.AmountTest;

            #endregion
            //}
            this.InitControls();
        }
예제 #4
0
        //选择客户订单
        private void barBtnInvoiceXO_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            createProduce.EditForm f = new Book.UI.produceManager.createProduce.EditForm();
            if (f.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }
            if (f.SelectList == null || f.SelectList.Count == 0)
            {
                return;
            }
            Model.InvoiceXODetail xod = f.SelectList[0];

            this._pcExpANSI.Customer       = xod.Invoice.xocustomer;
            this._pcExpANSI.CustomerId     = xod.Invoice.xocustomerId;
            this._pcExpANSI.Specification  = xod.Invoice.Customer.CheckedStandard;
            this._pcExpANSI.Product        = xod.Product;
            this._pcExpANSI.ProductId      = xod.Product.ProductId;
            this._pcExpANSI.InvoiceCusXOId = xod.Invoice.CustomerInvoiceXOId;
            this._pcExpANSI.Amount         = xod.InvoiceXODetailQuantity.HasValue ? xod.InvoiceXODetailQuantity.Value : 0;
            this._pcExpANSI.ProductUnit    = this._pcExpANSI.Product.ProduceUnit;
            this._pcExpANSI.ProductUnitId  = this._pcExpANSI.Product.ProduceUnitId;

            //获取ANSI,Finish质检统计记录
            //Model.PCExportReportANSI mPCExpANSI = this._pcExpANSIManager.SelectForExpANSI(xod.Invoice.CustomerInvoiceXOId, xod.Product.ProductId);
            Model.PCExportReportANSIDetail mPCExpANSIDet = new BL.PCExportReportANSIDetailManager().SelectForExpANSIDetailsSUM(xod.Invoice.CustomerInvoiceXOId, xod.Product.ProductId);
            if (mPCExpANSIDet != null)
            {
                //测试数量
                //this._pcExpANSI.AmountTest = mPCExpANSI.mCountANSI;

                //this._pcExpANSI.PanDing0 = mPCExpANSI.SUMIsMuShiJianYan;
                //this._pcExpANSI.PanDing3 = mPCExpANSI.SUMIsKeJianGuang;
                //this._pcExpANSI.PanDing4 = mPCExpANSI.SUMIsZiWaiXian;
                //this._pcExpANSI.PanDing7 = mPCExpANSI.SUMIsGaoSuChongJi;
                //this._pcExpANSI.PanDing8 = mPCExpANSI.SUMIsYuanZhuiZhuiLuo;
                //this._pcExpANSI.PanDing10 = mPCExpANSI.SUMIsFogPassing;
                //this._pcExpANSI.PanDing11 = mPCExpANSI.SUMIsNaiRanXing;
                //this._pcExpANSI.PanDing9 = mPCExpANSI.SUMIsPenetrate;

                //this._pcExpANSI.ShouCeShu3 = mPCExpANSI.mCountOptics;
                //this._pcExpANSI.ShouCeShu4 = mPCExpANSI.mCountOptics;

                //this._pcExpANSI.ShouCeShu7 = mPCExpANSI.mCountANSI;
                //this._pcExpANSI.ShouCeShu8 = mPCExpANSI.mCountANSI;
                //this._pcExpANSI.ShouCeShu11 = mPCExpANSI.mCountANSI;

                //this._pcExpANSI.ShouCeShu10 = mPCExpANSI.mCountFog;

                //this._pcExpANSI.ShouCeShu9 = mPCExpANSI.mCountPenetrate;

                //this._pcExpANSI.QuYangShu3 = this._pcExpANSI.QuYangShu4 = mPCExpANSI.mCountOptics;
                //this._pcExpANSI.QuYangShu7 = this._pcExpANSI.QuYangShu8 = this._pcExpANSI.QuYangShu11 = mPCExpANSI.mCountANSI;
                //this._pcExpANSI.QuYangShu10 = mPCExpANSI.mCountFog;
                //this._pcExpANSI.QuYangShu9 = mPCExpANSI.mCountPenetrate;

                #region 测试数量与合格数量

                //受测数量默认为订单数量的1/500,无条件进位.最大12
                int mInvoiceXoDetailQuantity = int.Parse(this._pcExpANSI.Amount.HasValue ? this._pcExpANSI.Amount.ToString() : "0");

                double mMustCheck = 0;

                if (mInvoiceXoDetailQuantity < 500)
                {
                    mMustCheck = 1;
                }
                else
                {
                    mMustCheck = mInvoiceXoDetailQuantity % 500 == 0 ? mInvoiceXoDetailQuantity / 500 : mInvoiceXoDetailQuantity / 500 + 1;
                }

                this._pcExpANSI.AmountTest = mMustCheck > 12 ? 12 : mMustCheck;    //受测数量1/500订单数量,上限12个,无条件进位

                this._pcExpANSI.ShouCeShu1 = this._pcExpANSI.ShouCeShu2 = this._pcExpANSI.ShouCeShu3 = this._pcExpANSI.ShouCeShu4 = this._pcExpANSI.ShouCeShu5 = this._pcExpANSI.ShouCeShu6 = this._pcExpANSI.ShouCeShu7 = this._pcExpANSI.ShouCeShu8 = this._pcExpANSI.ShouCeShu9 = this._pcExpANSI.ShouCeShu10 = this._pcExpANSI.ShouCeShu11 = this._pcExpANSI.AmountTest;

                this._pcExpANSI.PanDing0 = this._pcExpANSI.AmountTest;
                //this._pcExpANSI.QuYangShu1 = mPCExpANSIDet.qQXD;
                //this._pcExpANSI.PanDing1 = mPCExpANSIDet.pQXD;
                //this._pcExpANSI.QuYangShu2 = mPCExpANSIDet.qLJPHDS;
                //this._pcExpANSI.PanDing2 = mPCExpANSIDet.pLJPHDS;
                //this._pcExpANSI.QuYangShu3 = mPCExpANSIDet.qKJGTSL;
                //this._pcExpANSI.PanDing3 = mPCExpANSIDet.pKJGTSL;
                //this._pcExpANSI.QuYangShu4 = mPCExpANSIDet.qZWXTSL;
                //this._pcExpANSI.PanDing4 = mPCExpANSIDet.pZWXTSL;
                //this._pcExpANSI.QuYangShu5 = mPCExpANSIDet.qQMDS;
                //this._pcExpANSI.PanDing5 = mPCExpANSIDet.pQMDS;
                //this._pcExpANSI.QuYangShu6 = mPCExpANSIDet.qSGDS;
                //this._pcExpANSI.PanDing6 = mPCExpANSIDet.pSGDS;
                //this._pcExpANSI.QuYangShu7 = mPCExpANSIDet.qGSCJCS;
                //this._pcExpANSI.PanDing7 = mPCExpANSIDet.pGSCJCS;
                //this._pcExpANSI.QuYangShu8 = mPCExpANSIDet.qYZZLZJCS;
                //this._pcExpANSI.PanDing8 = mPCExpANSIDet.pYZZLZJCS;
                //this._pcExpANSI.QuYangShu9 = mPCExpANSIDet.qJPCTSC;
                //this._pcExpANSI.PanDing9 = mPCExpANSIDet.pJPCTSC;
                //this._pcExpANSI.QuYangShu10 = mPCExpANSIDet.qWDCS;
                //this._pcExpANSI.PanDing10 = mPCExpANSIDet.pWDCS;
                //this._pcExpANSI.QuYangShu11 = mPCExpANSIDet.qNRXCS;
                //this._pcExpANSI.PanDing11 = mPCExpANSIDet.pNRXCS;
                #endregion
            }
            this.InitControls();
        }
예제 #5
0
        //客户订单
        private void BarBtnCutomerOrder_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            createProduce.EditForm f = new Book.UI.produceManager.createProduce.EditForm();
            if (f.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }
            if (f.SelectList == null || f.SelectList.Count == 0)
            {
                return;
            }
            Model.InvoiceXODetail xd = f.SelectList[0];


            this._PCExportReportANSI.Customer       = xd.Invoice.xocustomer;
            this._PCExportReportANSI.CustomerId     = xd.Invoice.xocustomerId;
            this._PCExportReportANSI.Specification  = xd.Invoice.Customer.CheckedStandard;
            this._PCExportReportANSI.Product        = xd.Product;
            this._PCExportReportANSI.InvoiceCusXOId = xd.Invoice.CustomerInvoiceXOId;
            this._PCExportReportANSI.Amount         = xd.InvoiceXODetailQuantity.HasValue ? xd.InvoiceXODetailQuantity.Value : 0;

            //获取质检统计记录
            //Model.PCExportReportANSIDetail _PCExportReportANSIDetail = new BL.PCExportReportANSIDetailManager().SelectForExpCEENDetailsSUM(xd.Invoice.CustomerInvoiceXOId, xd.Product.ProductId);

            //if (_PCExportReportANSIDetail != null)
            //{
            #region 测试数量、合格数量

            //受测数量默认为订单数量的1/500,无条件进位,最大为12
            int    Orderamount = int.Parse(this._PCExportReportANSI.Amount.HasValue ? this._PCExportReportANSI.Amount.ToString() : "0");
            double MustCheck   = 0;

            if (Orderamount < 500)
            {
                MustCheck = 1;
            }
            else
            {
                MustCheck = Orderamount % 500 == 0 ? Orderamount / 500 : Orderamount / 500 + 1;
            }

            this._PCExportReportANSI.AmountTest = MustCheck > 12 ? 12 : MustCheck;    //受测数量12个,无条件进位

            this._PCExportReportANSI.ShouCeShu1 = this._PCExportReportANSI.AmountTest;
            //this._PCExportReportANSI.ShouCeShu2 = this._PCExportReportANSI.ShouCeShu3 = this._PCExportReportANSI.ShouCeShu4 = this._PCExportReportANSI.ShouCeShu5 = this._PCExportReportANSI.ShouCeShu6 = this._PCExportReportANSI.ShouCeShu7 = this._PCExportReportANSI.ShouCeShu8 = this._PCExportReportANSI.ShouCeShu9 == this._PCExportReportANSI.ShouCeShu12

            this._PCExportReportANSI.PanDing1 = this._PCExportReportANSI.AmountTest;
            //this._PCExportReportANSI.QuYangShu1 = _PCExportReportANSIDetail.qCEENCONSTRUCTION;
            //this._PCExportReportANSI.PanDing2 = _PCExportReportANSIDetail.pCEENQMDS;
            //this._PCExportReportANSI.QuYangShu2 = _PCExportReportANSIDetail.qCEENQMDS;
            //this._PCExportReportANSI.PanDing3 = _PCExportReportANSIDetail.pCEENSGDS;
            //this._PCExportReportANSI.QuYangShu3 = _PCExportReportANSIDetail.qCEENSGDS;
            //this._PCExportReportANSI.PanDing4 = _PCExportReportANSIDetail.pCEENLJDS;
            //this._PCExportReportANSI.QuYangShu4 = _PCExportReportANSIDetail.qCEENLJDS;
            //this._PCExportReportANSI.PanDing5 = _PCExportReportANSIDetail.pCEENZB;
            //this._PCExportReportANSI.QuYangShu5 = _PCExportReportANSIDetail.qCEENZB;
            //this._PCExportReportANSI.PanDing6 = _PCExportReportANSIDetail.pCEENTSL;
            //this._PCExportReportANSI.QuYangShu6 = _PCExportReportANSIDetail.qCEENTSL;
            //this._PCExportReportANSI.PanDing7 = _PCExportReportANSIDetail.pCEENBMPZ;
            //this._PCExportReportANSI.QuYangShu7 = _PCExportReportANSIDetail.qCEENBMPZ;
            //this._PCExportReportANSI.PanDing8 = _PCExportReportANSIDetail.pCEENZSCJ;
            //this._PCExportReportANSI.QuYangShu8 = _PCExportReportANSIDetail.qCEENZSCJ;
            //this._PCExportReportANSI.PanDing9 = _PCExportReportANSIDetail.pCEENGSCJ; ;
            //this._PCExportReportANSI.QuYangShu9 = _PCExportReportANSIDetail.qCEENGSCJ;
            //this._PCExportReportANSI.PanDing10 = this._PCExportReportANSI.AmountTest;
            //this._PCExportReportANSI.QuYangShu10 = _PCExportReportANSIDetail.qCEENJH;
            //this._PCExportReportANSI.PanDing11 = this._PCExportReportANSI.AmountTest;
            //this._PCExportReportANSI.QuYangShu11 = _PCExportReportANSIDetail.qCEENZX;
            //this._PCExportReportANSI.PanDingShu12 = _PCExportReportANSIDetail.pCEENUVCF;
            //this._PCExportReportANSI.QuYangShu12 = _PCExportReportANSIDetail.qCEENUVCF;

            #endregion
            //}
            this.InitControls();
        }
예제 #6
0
        //客户订单
        private void BarBtnCutomerOrder_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            createProduce.EditForm f = new Book.UI.produceManager.createProduce.EditForm();
            if (f.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }
            if (f.SelectList == null || f.SelectList.Count == 0)
            {
                return;
            }
            Model.InvoiceXODetail xd = f.SelectList[0];


            this._PCExportReportANSI.Customer       = xd.Invoice.xocustomer;
            this._PCExportReportANSI.CustomerId     = xd.Invoice.xocustomer.CustomerId;
            this._PCExportReportANSI.Specification  = xd.Invoice.xocustomer.CheckedStandard;
            this._PCExportReportANSI.Product        = xd.Product;
            this._PCExportReportANSI.InvoiceCusXOId = xd.Invoice.CustomerInvoiceXOId;
            this._PCExportReportANSI.Amount         = xd.InvoiceXODetailQuantity.HasValue ? xd.InvoiceXODetailQuantity.Value : 0;
            //this._PCExportReportANSI.ProductUnitId = xd.Product.SellUnitId;

            var unit = UnitList.ToList().FirstOrDefault(D => D.CnName == xd.InvoiceProductUnit);

            if (unit != null)
            {
                this._PCExportReportANSI.ProductUnit   = unit;
                this._PCExportReportANSI.ProductUnitId = unit.ProductUnitId;
            }

            //获取质检统计记录
            //Model.PCExportReportANSIDetail _PCExportReportANSIDetail = new BL.PCExportReportANSIDetailManager().SelectForExpCEENDetailsSUM(xd.Invoice.CustomerInvoiceXOId, xd.Product.ProductId);

            //if (_PCExportReportANSIDetail != null)
            //{
            #region 测试数量、合格数量

            //受测数量默认为订单数量的1/500,无条件进位,最大为12
            //int Orderamount = int.Parse(this._PCExportReportANSI.Amount.HasValue ? this._PCExportReportANSI.Amount.ToString() : "0");
            //double MustCheck = 0;

            //if (Orderamount < 500)
            //    MustCheck = 1;
            //else
            //    MustCheck = Orderamount % 500 == 0 ? Orderamount / 500 : Orderamount / 500 + 1;

            //this._PCExportReportANSI.AmountTest = MustCheck > 12 ? 12 : MustCheck;//受测数量12个,无条件进位
            this._PCExportReportANSI.AmountTest = Common.AutoCalculation.Calculation("ansi", Convert.ToInt32(this._PCExportReportANSI.Amount));

            //this._PCExportReportANSI.QuYangShu2 = this._PCExportReportANSI.QuYangShu3 = this._PCExportReportANSI.QuYangShu4 = this._PCExportReportANSI.QuYangShu5 = this._PCExportReportANSI.QuYangShu6 = this._PCExportReportANSI.QuYangShu7 = this._PCExportReportANSI.QuYangShu8 = this._PCExportReportANSI.QuYangShu9 = this._PCExportReportANSI.QuYangShu10 = this._PCExportReportANSI.QuYangShu11 = this._PCExportReportANSI.QuYangShu12 = this._PCExportReportANSI.QuYangShu13 = this._PCExportReportANSI.QuYangShu15 = this._PCExportReportANSI.QuYangShu16 = this._PCExportReportANSI.QuYangShu17 = this._PCExportReportANSI.QuYangShu18 = this._PCExportReportANSI.PanDing2 = this._PCExportReportANSI.PanDing3 = this._PCExportReportANSI.PanDing4 = this._PCExportReportANSI.PanDing5 = this._PCExportReportANSI.PanDing6 = this._PCExportReportANSI.PanDing7 = this._PCExportReportANSI.PanDing8 = this._PCExportReportANSI.PanDing9 = this._PCExportReportANSI.PanDing10 = this._PCExportReportANSI.PanDing11 = this._PCExportReportANSI.PanDingShu12 = this._PCExportReportANSI.PanDingShu13 = this._PCExportReportANSI.PanDingShu15 = this._PCExportReportANSI.PanDingShu16 =
            this._PCExportReportANSI.QuYangShu17 = this._PCExportReportANSI.QuYangShu18 = this._PCExportReportANSI.PanDingShu17 = this._PCExportReportANSI.PanDingShu18 = this._PCExportReportANSI.AmountTest;

            this._PCExportReportANSI.QuYangShu1 = this._PCExportReportANSI.QuYangShu14 = this._PCExportReportANSI.PanDing1 = this._PCExportReportANSI.PanDingShu14 = 100;

            //2017年9月28日22:58:08  Cindy要求设为固定
            this._PCExportReportANSI.QuYangShu2  = this._PCExportReportANSI.PanDing2 = 1;
            this._PCExportReportANSI.QuYangShu3  = this._PCExportReportANSI.PanDing3 = 0;
            this._PCExportReportANSI.QuYangShu4  = this._PCExportReportANSI.PanDing4 = 2;
            this._PCExportReportANSI.QuYangShu5  = this._PCExportReportANSI.PanDing5 = 2;
            this._PCExportReportANSI.QuYangShu6  = this._PCExportReportANSI.PanDing6 = 2;
            this._PCExportReportANSI.QuYangShu7  = this._PCExportReportANSI.PanDing7 = 2;
            this._PCExportReportANSI.QuYangShu8  = this._PCExportReportANSI.PanDing8 = 2;
            this._PCExportReportANSI.QuYangShu9  = this._PCExportReportANSI.PanDing9 = 1;
            this._PCExportReportANSI.QuYangShu10 = this._PCExportReportANSI.PanDing10 = 2;
            this._PCExportReportANSI.QuYangShu11 = this._PCExportReportANSI.PanDing11 = 2;
            this._PCExportReportANSI.QuYangShu12 = this._PCExportReportANSI.PanDingShu12 = 2;
            this._PCExportReportANSI.QuYangShu13 = this._PCExportReportANSI.PanDingShu13 = 2;
            this._PCExportReportANSI.QuYangShu15 = this._PCExportReportANSI.PanDingShu15 = 4;
            this._PCExportReportANSI.QuYangShu16 = this._PCExportReportANSI.PanDingShu16 = 2;
            #endregion
            //}
            this.InitControls();
        }