Example #1
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();
        }
Example #2
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();
        }
Example #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.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.ShouCeShu10 = this._PCExportReportANSI.ShouCeShu11 = 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();
        }
Example #4
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().SelectForExpJISDetailsSUM(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.ShouCeShu2 = this._PCExportReportANSI.ShouCeShu3 = this._PCExportReportANSI.ShouCeShu4 = this._PCExportReportANSI.ShouCeShu5 = this._PCExportReportANSI.ShouCeShu6 = this._PCExportReportANSI.ShouCeShu7 = this._PCExportReportANSI.ShouCeShu8 = this._PCExportReportANSI.ShouCeShu9 = this._PCExportReportANSI.ShouCeShu10 = this._PCExportReportANSI.ShouCeShu11 = this._PCExportReportANSI.ShouCeShu12 = this._PCExportReportANSI.ShouCeShu13 = this._PCExportReportANSI.ShouCeShu14 = this._PCExportReportANSI.ShouCeShu15 = this._PCExportReportANSI.ShouCeShu16 = this._PCExportReportANSI.ShouCeShu17 = this._PCExportReportANSI.ShouCeShu18 = this._PCExportReportANSI.ShouCeShu19 = this._PCExportReportANSI.ShouCeShu20 = this._PCExportReportANSI.ShouCeShu21 = this._PCExportReportANSI.AmountTest;

                this._PCExportReportANSI.PanDing1     = _PCExportReportANSIDetail.pJISJPWG;
                this._PCExportReportANSI.QuYangShu1   = _PCExportReportANSIDetail.qJISJPWG;
                this._PCExportReportANSI.PanDing2     = _PCExportReportANSIDetail.pJISJPLJD;
                this._PCExportReportANSI.QuYangShu2   = _PCExportReportANSIDetail.qJISJPLJD;
                this._PCExportReportANSI.PanDing3     = _PCExportReportANSIDetail.pJISJPQGD;
                this._PCExportReportANSI.QuYangShu3   = _PCExportReportANSIDetail.qJISJPQGD;
                this._PCExportReportANSI.PanDing4     = _PCExportReportANSIDetail.pJISJPSGD;
                this._PCExportReportANSI.QuYangShu4   = _PCExportReportANSIDetail.qJISJPSGD;
                this._PCExportReportANSI.PanDing5     = _PCExportReportANSIDetail.pJISJPTGL;
                this._PCExportReportANSI.QuYangShu5   = _PCExportReportANSIDetail.qJISJPTGL;
                this._PCExportReportANSI.PanDing6     = _PCExportReportANSIDetail.pJISJPNCCX;
                this._PCExportReportANSI.QuYangShu6   = _PCExportReportANSIDetail.qJISJPNCCX;
                this._PCExportReportANSI.PanDing7     = _PCExportReportANSIDetail.pJISJPBMNMHDK;
                this._PCExportReportANSI.QuYangShu7   = _PCExportReportANSIDetail.qJISJPBMNMHDK;
                this._PCExportReportANSI.PanDing8     = _PCExportReportANSIDetail.pJISJPNREX;
                this._PCExportReportANSI.QuYangShu8   = _PCExportReportANSIDetail.qJISJPNREX;
                this._PCExportReportANSI.PanDing9     = _PCExportReportANSIDetail.pJISJPNSX;;
                this._PCExportReportANSI.QuYangShu9   = _PCExportReportANSIDetail.qJISJPNSX;
                this._PCExportReportANSI.PanDing10    = _PCExportReportANSIDetail.pJISJPNRAX;
                this._PCExportReportANSI.QuYangShu10  = _PCExportReportANSIDetail.qJISJPNRAX;
                this._PCExportReportANSI.PanDing11    = _PCExportReportANSIDetail.pJISWCPWG;
                this._PCExportReportANSI.QuYangShu11  = _PCExportReportANSIDetail.qJISWCPWG;
                this._PCExportReportANSI.PanDingShu12 = _PCExportReportANSIDetail.pJISWCPNCCX;
                this._PCExportReportANSI.QuYangShu12  = _PCExportReportANSIDetail.qJISWCPNCCX;
                this._PCExportReportANSI.PanDingShu13 = _PCExportReportANSIDetail.pJISWCPJMXDYSY;
                this._PCExportReportANSI.QuYangShu13  = _PCExportReportANSIDetail.qJISWCPJMXDYSY;
                this._PCExportReportANSI.PanDingShu14 = _PCExportReportANSIDetail.pJISWCPJMXDESY;
                this._PCExportReportANSI.QuYangShu14  = _PCExportReportANSIDetail.qJISWCPJMXDESY;
                this._PCExportReportANSI.PanDingShu15 = _PCExportReportANSIDetail.pJISWCPTDQD;
                this._PCExportReportANSI.QuYangShu15  = _PCExportReportANSIDetail.qJISWCPTDQD;
                this._PCExportReportANSI.PanDingShu16 = _PCExportReportANSIDetail.pJISWCPNXDX;
                this._PCExportReportANSI.QuYangShu16  = _PCExportReportANSIDetail.qJISWCPNXDX;
                this._PCExportReportANSI.PanDingShu17 = _PCExportReportANSIDetail.pJISWCPGZ;
                this._PCExportReportANSI.QuYangShu17  = _PCExportReportANSIDetail.qJISWCPGZ;
                this._PCExportReportANSI.PanDingShu18 = _PCExportReportANSIDetail.pJISWCPCL;
                this._PCExportReportANSI.QuYangShu18  = _PCExportReportANSIDetail.qJISWCPCL;
                this._PCExportReportANSI.PanDingShu19 = _PCExportReportANSIDetail.pJISWCPJHBS;
                this._PCExportReportANSI.QuYangShu19  = _PCExportReportANSIDetail.qJISWCPJHBS;
                this._PCExportReportANSI.PanDingShu20 = _PCExportReportANSIDetail.pJISWCPBZSJH;
                this._PCExportReportANSI.QuYangShu20  = _PCExportReportANSIDetail.qJISWCPBZSJH;
                this._PCExportReportANSI.PanDingShu21 = _PCExportReportANSIDetail.pJISWCPSYSC;;
                this._PCExportReportANSI.QuYangShu21  = _PCExportReportANSIDetail.qJISWCPSYSC;

                #endregion
            }
            this.InitControls();
        }