Exemplo n.º 1
0
        public override void Refresh()
        {
            if (this._PCExportReportANSI == null)
            {
                this.AddNew();
                this.action = "insert";
            }
            if (this.action == "view")
            {
                this._PCExportReportANSI = this._PCExportReportANSIManager.Get(this._PCExportReportANSI.ExportReportId);
            }

            InitControls();

            base.Refresh();
            switch (this.action)
            {
            case "insert":
                this.BarBtnCutomerOrder.Enabled = true;
                this.NccCustomer.Enabled        = true;
                break;

            case "update":
                this.BarBtnCutomerOrder.Enabled = true;
                this.NccCustomer.Enabled        = true;
                break;

            case "view":
                this.BarBtnCutomerOrder.Enabled = false;
                this.NccCustomer.Enabled        = false;
                break;
            }

            this.TxtOrderId.Properties.ReadOnly = true;
            this.SpinOrderAmount.Enabled        = false;
            //this.SpinTestAmount.Enabled = false;
            this.TxtProduct.Enabled     = false;
            this.TxtCustomersId.Enabled = false;
        }
Exemplo n.º 2
0
        public override void Refresh()
        {
            if (this._pcExpANSI == null)
            {
                this.AddNew();
                this.action = "insert";
            }
            if (this.action == "view")
            {
                this._pcExpANSI = this._pcExpANSIManager.Get(this._pcExpANSI.ExportReportId);
            }

            this.InitControls();

            base.Refresh();

            switch (this.action)
            {
            case "insert":
                this.barBtnInvoiceXO.Enabled = true;
                this.nccCustomer.Enabled     = true;
                break;

            case "update":
                this.barBtnInvoiceXO.Enabled = true;
                this.nccCustomer.Enabled     = true;
                break;

            case "view":
                this.barBtnInvoiceXO.Enabled = false;
                this.nccCustomer.Enabled     = false;
                break;
            }
            this.txtPCExportReportId.Properties.ReadOnly = true;
            this.txtCusXOid.Enabled     = false;
            this.btnEditProduct.Enabled = false;
            this.spinEditDDSL.Enabled   = false;
        }
 public void Update(Model.PCExportReportANSI e)
 {
     this.Update <Model.PCExportReportANSI>(e);
 }
Exemplo n.º 4
0
 protected override void MoveFirst()
 {
     this._PCExportReportANSI = this._PCExportReportANSIManager.mget_first("JIS");
 }
Exemplo n.º 5
0
 protected override void MoveFirst()
 {
     this._pcExpANSI = this._pcExpANSIManager.mget_first("ANSI");
 }
Exemplo n.º 6
0
        public ASRO2017(Model.PCExportReportANSI _PCExportReportANSI, int tag)
            : this()
        {
            if (tag == 1)
            {
                this.xrLabel1.Text      = "ALAN    SAFETY    COMPANY.";
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("ALANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ALANSignature")[0].SettingCurrentValue;
            }
            else if (tag == 2)
            {
                this.xrLabel1.Text      = "PPE   SAFETY   INC.";
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("PPESignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("PPESignature")[0].SettingCurrentValue;
            }
            else
            {
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("ASWANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ASWANSignature")[0].SettingCurrentValue;
            }

            this.xrLabel2.Text   = "Assembled Eye protectors – Quality Control Test Report";
            this.LbModelNo.Text  = _PCExportReportANSI.Product == null ? null : _PCExportReportANSI.Product.CustomerProductName;
            this.LbTestDate.Text = _PCExportReportANSI.ReportDate == null ? null : _PCExportReportANSI.ReportDate.Value.ToShortDateString();
            //this.xrLabel7.Text = "Issue date : " + (_PCExportReportANSI.ReportDate == null ? null : _PCExportReportANSI.ReportDate.Value.ToString("MMM,yyyy", new System.Globalization.CultureInfo("en-us")));  日期固定
            this.xrLabel13.Text = string.IsNullOrEmpty(_PCExportReportANSI.CSAJiShuBiaoZhun) ? "Tested against AS/NZS 1337.1:2010 " : _PCExportReportANSI.CSAJiShuBiaoZhun;

            this.LbQtyTest.Text          = (_PCExportReportANSI.QuYangShu2.HasValue ? _PCExportReportANSI.QuYangShu2.Value.ToString() : "0") + "PCS";
            this.LbBuyer.Text           += "   " + (_PCExportReportANSI.Customer == null ? null : _PCExportReportANSI.Customer.CustomerName);
            this.LbOrderNo.Text         += "   " + (_PCExportReportANSI.InvoiceCusXOId == null ? null : _PCExportReportANSI.InvoiceCusXOId.ToString());
            this.lbl_OrderQuantity.Text += "   " + (_PCExportReportANSI.Amount.HasValue ? _PCExportReportANSI.Amount.ToString() + "PCS" : "");

            this.LbBatchNo.Text       = _PCExportReportANSI.ProductBatchNo == null ? null : _PCExportReportANSI.ProductBatchNo.ToString();
            this.CheckVisual.Checked  = _PCExportReportANSI.VisualTest.HasValue ? _PCExportReportANSI.VisualTest.Value : false;
            this.CheckThermal.Checked = _PCExportReportANSI.ThermalStability.HasValue ? _PCExportReportANSI.ThermalStability.Value : false;
            this.CheckPriHIn.Checked  = _PCExportReportANSI.PrismaticPowerHIn.HasValue ? _PCExportReportANSI.PrismaticPowerHIn.Value : false;
            this.CheckPriHOut.Checked = _PCExportReportANSI.PrismaticPowerHOut.HasValue ? _PCExportReportANSI.PrismaticPowerHOut.Value : false;
            this.CheckPriVUp.Checked  = _PCExportReportANSI.PrismaticPowerVUp.HasValue ? _PCExportReportANSI.PrismaticPowerVUp.Value : false;
            this.CheckPriVDwn.Checked = _PCExportReportANSI.PrismaticPowerVDwn.HasValue ? _PCExportReportANSI.PrismaticPowerVDwn.Value : false;
            if (_PCExportReportANSI.IsShowGX2.HasValue && _PCExportReportANSI.IsShowGX2.Value)
            {
                //this.LbRefractive.Text = _PCExportReportANSI.RefractivePower.HasValue ? "(" + _PCExportReportANSI.RefractivePower.Value.ToString("0.00") + ") 2" : "(0.00) 2";
                this.LbRefractive.Text = (_PCExportReportANSI.RefractivePower.HasValue && _PCExportReportANSI.RefractivePower.Value != 0.0) ? _PCExportReportANSI.RefractivePower.Value.ToString("0.00") : "0.00";
            }
            //else
            //{
            //    this.LbRefractive.Text = (_PCExportReportANSI.RefractivePower.HasValue && _PCExportReportANSI.RefractivePower.Value != 0.0) ? _PCExportReportANSI.RefractivePower.Value.ToString("0.00") : "0.00";
            //    //this.LbRefractive.Text = _PCExportReportANSI.RefractivePower.HasValue ? _PCExportReportANSI.RefractivePower.Value.ToString("0.00") : "";
            //}
            this.CheckScatter.Checked   = _PCExportReportANSI.ScatterLight.HasValue ? _PCExportReportANSI.ScatterLight.Value : false;
            this.CheckMdeium.Checked    = _PCExportReportANSI.MediumImpact.HasValue ? _PCExportReportANSI.MediumImpact.Value : false;
            this.CheckLow.Checked       = _PCExportReportANSI.LowImpact.HasValue ? _PCExportReportANSI.LowImpact.Value : false;
            this.CheckHigh.Checked      = _PCExportReportANSI.HighImpact.HasValue ? _PCExportReportANSI.HighImpact.Value : false;
            this.CheckExtraHigh.Checked = _PCExportReportANSI.ExtraHighImpact.HasValue ? _PCExportReportANSI.ExtraHighImpact.Value : false;
            this.CheckPemer.Checked     = _PCExportReportANSI.PermertrationTest.HasValue ? _PCExportReportANSI.PermertrationTest.Value : false;
            this.CheckIgnition.Checked  = _PCExportReportANSI.IgnitionTest.HasValue ? _PCExportReportANSI.IgnitionTest.Value : false;
            this.CheckCorrosion.Checked = _PCExportReportANSI.Corrsion.HasValue ? _PCExportReportANSI.Corrsion.Value : false;
            this.CheckMarkings.Checked  = _PCExportReportANSI.Markings.HasValue ? _PCExportReportANSI.Markings.Value : false;
            this.CheckSplash.Checked    = _PCExportReportANSI.Splash.HasValue ? _PCExportReportANSI.Splash.Value : false;

            //this.lbl_ApproverdDate.Text = _PCExportReportANSI.ReportDate.HasValue ? _PCExportReportANSI.ReportDate.Value.ToString("yyyy-MM-dd") : "";
            //对外观,加热,坐标等判定新增的 测试数量

            this.lbl1.Text  = _PCExportReportANSI.ShouCeShu4.HasValue ? _PCExportReportANSI.ShouCeShu4.Value.ToString() : "";
            this.lbl2.Text  = _PCExportReportANSI.ShouCeShu5.HasValue ? _PCExportReportANSI.ShouCeShu5.Value.ToString() : "";
            this.lbl3.Text  = _PCExportReportANSI.ShouCeShu6.HasValue ? _PCExportReportANSI.ShouCeShu6.Value.ToString() : "";
            this.lbl4.Text  = _PCExportReportANSI.ShouCeShu7.HasValue ? _PCExportReportANSI.ShouCeShu7.Value.ToString() : "";
            this.lbl5.Text  = _PCExportReportANSI.ShouCeShu8.HasValue ? _PCExportReportANSI.ShouCeShu8.Value.ToString() : "";
            this.lbl6.Text  = _PCExportReportANSI.ShouCeShu9.HasValue ? _PCExportReportANSI.ShouCeShu9.Value.ToString() : "";
            this.lbl7.Text  = _PCExportReportANSI.ShouCeShu10.HasValue ? _PCExportReportANSI.ShouCeShu10.Value.ToString() : "";
            this.lbl8.Text  = _PCExportReportANSI.ShouCeShu11.HasValue ? _PCExportReportANSI.ShouCeShu11.Value.ToString() : "";
            this.lbl9.Text  = _PCExportReportANSI.ShouCeShu12.HasValue ? _PCExportReportANSI.ShouCeShu12.Value.ToString() : "";
            this.lbl10.Text = _PCExportReportANSI.ShouCeShu13.HasValue ? _PCExportReportANSI.ShouCeShu13.Value.ToString() : "";
            this.lbl11.Text = _PCExportReportANSI.ShouCeShu14.HasValue ? _PCExportReportANSI.ShouCeShu14.Value.ToString() : "";
            this.lbl12.Text = _PCExportReportANSI.ShouCeShu15.HasValue ? _PCExportReportANSI.ShouCeShu15.Value.ToString() : "";
            this.lbl13.Text = _PCExportReportANSI.ShouCeShu16.HasValue ? _PCExportReportANSI.ShouCeShu16.Value.ToString() : "";
            this.lbl14.Text = _PCExportReportANSI.ShouCeShu17.HasValue ? _PCExportReportANSI.ShouCeShu17.Value.ToString() : "";
            this.lbl15.Text = _PCExportReportANSI.ShouCeShu18.HasValue ? _PCExportReportANSI.ShouCeShu18.Value.ToString() : "";

            this.xrLabel8.Text = _PCExportReportANSI.ShouCeShu1.HasValue ? _PCExportReportANSI.ShouCeShu1.Value.ToString() : "";

            this.LbTester.Text = (_PCExportReportANSI.Employee == null ? null : _PCExportReportANSI.Employee.ToString()) + (_PCExportReportANSI.Employee2 == null ? null : ";" + _PCExportReportANSI.Employee2.ToString()) + (_PCExportReportANSI.Employee3 == null ? null : ";" + _PCExportReportANSI.Employee3.ToString()) + (_PCExportReportANSI.Employee4 == null ? null : ";" + _PCExportReportANSI.Employee4.ToString());
            this.xrLabel4.Text = _PCExportReportANSI.AuditEmp == null ? null : _PCExportReportANSI.AuditEmp.ToString() + " " + (_PCExportReportANSI.ReportDate.HasValue ? _PCExportReportANSI.ReportDate.Value.ToString("yyyy-MM-dd") : "");
        }
Exemplo n.º 7
0
        public override void Refresh()
        {
            if (this._ESM == null)
            {
                this.AddNew();
                this.action = "insert";
            }

            this.txtExportSendMailId.Text   = this._ESM.ExportSendMailId;
            this.txtExportId.Text           = this._ESM.ExportId;
            this.txtExportType.Text         = this._ESM.ExportType;
            this.txtExportSendMailDate.Text = this._ESM.ExportSendMailDate.HasValue ? this._ESM.ExportSendMailDate.Value.ToString("yyyy-MM-dd HH:mm:ss") : _SendTimeOrStatus;
            this.txtMailSubject.Text        = this._ESM.MailSubject;
            this.txtMailContent.Text        = this._ESM.MailContent;
            this.txtSenderMail.Text         = this._ESM.SenderMail;
            this.txtReceiverMail.Text       = this._ESM.ReceiverMail;

            if (!string.IsNullOrEmpty(this._ESM.ExportId))
            {
                this._pcExport = new BL.PCExportReportANSIManager().Get(this._ESM.ExportId);
            }
            else
            {
                this._pcExport = null;
            }
            //获取附件列表
            this.ConstructAccessoriesData();

            base.Refresh();
            switch (this.action)
            {
            case "insert":
                this.barBtn_ChooseExp.Enabled = true;
                this.barBtn_Search.Enabled    = false;
                break;

            case "update":
                this.barBtn_ChooseExp.Enabled = true;
                this.barBtn_Search.Enabled    = false;
                break;

            case "view":
                this.barBtn_ChooseExp.Enabled = false;
                this.barBtn_Search.Enabled    = true;
                break;
            }


            this.txtExportSendMailId.Enabled   = false;
            this.txtExportSendMailDate.Enabled = false;
            this.txtExportType.Enabled         = false;
            this.txtExportId.Enabled           = false;
            this.txtSenderMail.Enabled         = false;
            this.btn_Send.Enabled = true;
            this.gridView1.OptionsBehavior.Editable = true;

            if (this.action != "view")
            {
                MailAccessoriesHelper mah = this.bindingSource1.Current as MailAccessoriesHelper;
                if (mah != null)
                {
                    if (mah.FromExpType == "郵件本身附件")
                    {
                        this.btnDelAccessories.Enabled = true;
                    }
                    else
                    {
                        this.btnDelAccessories.Enabled = false;
                    }
                }
            }
        }
 public Model.PCExportReportANSI GetPrev(Model.PCExportReportANSI e)
 {
     return(accessor.GetPrev(e));
 }
 public bool HasRowsBefore(Model.PCExportReportANSI e)
 {
     return(accessor.HasRowsBefore(e));
 }
Exemplo n.º 10
0
        public DataInputANSI2015ENASRO(Model.PCDataInput pcDataInput, Model.PCExportReportANSI pcExportReportANSI, Model.PCExportReportANSI pcEN, Model.PCExportReportANSI pcAS, int tag, int ENType)
            : this()
        {
            if (pcDataInput == null)
            {
                return;
            }

            this.TCTSData.Text     = pcDataInput.PCDataInputDate.HasValue ? pcDataInput.PCDataInputDate.Value.ToString("yyyy-MM-dd") : "";
            this.TCTSQuantity.Text = pcDataInput.PCPerspectiveList.Count.ToString();
            this.TCTSEmployee.Text = pcDataInput.Employee3 == null ? "" : pcDataInput.Employee3.ToString();

            string customer = string.Empty;

            if (pcExportReportANSI != null)
            {
                this.xrSubreportANSI.ReportSource = new ANSI2015RO(pcExportReportANSI, tag);
                customer = pcExportReportANSI.Customer.CustomerName;
            }
            if (pcEN != null)
            {
                if (ENType != 1)
                {
                    this.xrSubreportEN.ReportSource = new CEENRO(pcEN, tag);
                }
                else
                {
                    this.xrSubreportEN.ReportSource = new CEENRO_WURTH(pcEN, tag);
                }
                customer = pcEN.Customer.CustomerName;
            }
            if (pcAS != null)
            {
                this.xrSubreportAS.ReportSource = new ASRO2017(pcAS, tag);
                customer = pcAS.Customer.CustomerName;
            }
            if (string.IsNullOrEmpty(customer))
            {
                customer = pcDataInput.CustomerShortName;
            }
            this.xrSubreportProductTest.ReportSource = new ProductTestRO(pcDataInput, customer);
            //this.xrSubreportProductTest.ReportSource = new ProductTestRO(pcDataInput);

            if (pcDataInput.PCOpticalMachineList != null && pcDataInput.PCOpticalMachineList.Count != 0)
            {
                this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO(pcDataInput.PCOpticalMachineList, pcDataInput);
            }

            if (pcDataInput.PCHazeList != null && pcDataInput.PCHazeList.Count != 0)
            {
                this.xrSubreportPCHaze.ReportSource = new PCHazeRO(pcDataInput.PCHazeList, pcDataInput);
            }

            if (pcDataInput.PCDefinitionList != null && pcDataInput.PCDefinitionList.Count != 0)
            {
                this.subReport_PCDefinition.ReportSource = new PCDefinitionRO(pcDataInput.PCDefinitionList);
            }
        }
Exemplo n.º 11
0
        public DataInputCSARO(Model.PCDataInput pcDataInput, Model.PCExportReportANSI ANSI, Model.PCExportReportANSI CSA, int tag, bool isJihe)
            : this()
        {
            if (pcDataInput == null)
            {
                return;
            }

            if (!isJihe)
            {
                this.xrSubreportPCPerspective.ReportSource = new PCPerspective(pcDataInput);
            }

            string customer = string.Empty;

            if (ANSI != null)
            {
                this.xrSubreportANSI.ReportSource = new RO(ANSI, tag);
                customer = ANSI.Customer.CustomerName;
            }
            if (CSA != null)
            {
                if (isJihe)
                {
                    this.xrSubreportCSA.ReportSource = new CSARO_Jihe(CSA, tag);
                }
                else
                {
                    this.xrSubreportCSA.ReportSource = new CSARO(CSA, tag);
                }
                customer = CSA.Customer.CustomerName;
            }

            if (string.IsNullOrEmpty(customer))
            {
                customer = pcDataInput.CustomerShortName;
            }
            this.xrSubreportProductTest.ReportSource = new ProductTestRO(pcDataInput, customer);

            //if (pcDataInput.PCOpticalMachineList != null && pcDataInput.PCOpticalMachineList.Count != 0)
            //    this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO(pcDataInput.PCOpticalMachineList, pcDataInput);
            if (pcDataInput.PCOpticalMachineList != null)
            {
                if (pcDataInput.PCOpticalMachineList.Count <= 2)
                {
                    this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO(pcDataInput.PCOpticalMachineList, pcDataInput);
                }
                else
                {
                    this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO_2(pcDataInput.PCOpticalMachineList, pcDataInput);
                }
            }

            if (pcDataInput.PCHazeList != null && pcDataInput.PCHazeList.Count != 0)
            {
                this.xrSubreportPCHaze.ReportSource = new PCHazeRO(pcDataInput.PCHazeList, pcDataInput);
            }

            if (pcDataInput.PCDefinitionList != null && pcDataInput.PCDefinitionList.Count != 0)
            {
                this.subReport_PCDefinition.ReportSource = new PCDefinitionRO(pcDataInput.PCDefinitionList);
            }
        }
Exemplo n.º 12
0
 public Model.PCExportReportANSI GetPrev(Model.PCExportReportANSI e)
 {
     return(sqlmapper.QueryForObject <Model.PCExportReportANSI>("PCExportReportANSI.get_prev", e));
 }
Exemplo n.º 13
0
 public Model.PCExportReportANSI GetNext(Model.PCExportReportANSI e)
 {
     return(sqlmapper.QueryForObject <Model.PCExportReportANSI>("PCExportReportANSI.get_next", e));
 }
Exemplo n.º 14
0
 public bool HasRowsAfter(Model.PCExportReportANSI e)
 {
     return(sqlmapper.QueryForObject <bool>("PCExportReportANSI.has_rows_after", e));
 }
Exemplo n.º 15
0
 public bool HasRowsBefore(Model.PCExportReportANSI e)
 {
     return(sqlmapper.QueryForObject <bool>("PCExportReportANSI.has_rows_before", e));
 }
Exemplo n.º 16
0
        public CEENRO_WURTH(Model.PCExportReportANSI _PCExportReportANSI, int tag)
            : this()
        {
            if (tag == 1)
            {
                this.xrLabel1.Text         = "ALAN    SAFETY    COMPANY.";
                this.lbl_Signature.Text    = new BL.SettingManager().SelectByName("ALANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ALANSignature")[0].SettingCurrentValue;
                this.xrPictureBox1.Visible = true;
            }
            else if (tag == 2)
            {
                this.xrLabel1.Text      = "PPE   SAFETY   INC.";
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("PPESignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("PPESignature")[0].SettingCurrentValue;
            }
            else
            {
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("ASWANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ASWANSignature")[0].SettingCurrentValue;
            }
            this.LbSpecifiction.Text = string.IsNullOrEmpty(_PCExportReportANSI.CSAJiShuBiaoZhun) ? "CEEN166:2001" : _PCExportReportANSI.CSAJiShuBiaoZhun;
            this.LbCustomer.Text     = _PCExportReportANSI.Customer == null ? null : _PCExportReportANSI.Customer.CustomerName;
            this.LbOrderId.Text      = _PCExportReportANSI.InvoiceCusXOId == null ? null : _PCExportReportANSI.InvoiceCusXOId.ToString();
            this.LbProduct.Text      = _PCExportReportANSI.Product.CustomerProductName == null ? null : _PCExportReportANSI.Product.CustomerProductName.ToString();
            this.LbOrderAmount.Text  = (_PCExportReportANSI.Amount.HasValue ? _PCExportReportANSI.Amount.ToString() : "0") + "PCS";
            this.LbTestAmount.Text   = (_PCExportReportANSI.AmountTest.HasValue ? _PCExportReportANSI.AmountTest.ToString() : "0") + "PCS";
            this.LbTesrPerson.Text   = (_PCExportReportANSI.Employee == null ? null : _PCExportReportANSI.Employee.ToString()) + (_PCExportReportANSI.Employee2 == null ? null : " / " + _PCExportReportANSI.Employee2.ToString()) + (_PCExportReportANSI.Employee3 == null ? null : " / " + _PCExportReportANSI.Employee3.ToString()) + (_PCExportReportANSI.Employee4 == null ? null : " / " + _PCExportReportANSI.Employee4.ToString());
            //this.LbReportDate.Text = _PCExportReportANSI.ReportDate == null ? null : _PCExportReportANSI.ReportDate.Value.ToShortDateString();
            this.LbReportDate.Text           = _PCExportReportANSI.ReportDate == null ? null : _PCExportReportANSI.ReportDate.Value.ToString("dd/MM/yyyy");
            this.lblTraceabilityMarking.Text = _PCExportReportANSI.TraceMarking;
            this.LbClearlens.Text            = _PCExportReportANSI.Clearlens == null ? null : _PCExportReportANSI.Clearlens.ToString();
            this.LbClearlens.Multiline       = true;
            this.lblVerifiedBy.Text          = _PCExportReportANSI.AuditEmp == null ? null : _PCExportReportANSI.AuditEmp.ToString();
            this.lblVerifiedBy.Text         += " " + (_PCExportReportANSI.ReportDate.HasValue ? _PCExportReportANSI.ReportDate.Value.ToString("yyyy-MM-dd") : "");

            this.LbHighSpeedParticies.Text = "6mm dia. Steel ball at " + _PCExportReportANSI.Protectionone + (string.IsNullOrEmpty(_PCExportReportANSI.Protectiontwo) ? "" : " or " + _PCExportReportANSI.Protectiontwo) + (string.IsNullOrEmpty(_PCExportReportANSI.ProtectionThree) ? "" : " or " + _PCExportReportANSI.ProtectionThree) + ".No contact with eye of headform. No parts or fragments ejected from protector that could contact eye of headform. ";

            this.LbTestCS.Text        = (_PCExportReportANSI.ShouCeShu1.HasValue ? _PCExportReportANSI.ShouCeShu1.ToString() : "0");
            this.LbTestSp.Text        = (_PCExportReportANSI.ShouCeShu2.HasValue ? _PCExportReportANSI.ShouCeShu2.ToString() : "0");
            this.LbTestAR.Text        = (_PCExportReportANSI.ShouCeShu3.HasValue ? _PCExportReportANSI.ShouCeShu3.ToString() : "0");
            this.LbTestPR.Text        = (_PCExportReportANSI.ShouCeShu4.HasValue ? _PCExportReportANSI.ShouCeShu4.ToString() : "0");
            this.LbTestDP.Text        = (_PCExportReportANSI.ShouCeShu5.HasValue ? _PCExportReportANSI.ShouCeShu5.ToString() : "0");
            this.LbTestDP2.Text       = (_PCExportReportANSI.ShouCeShu5.HasValue ? _PCExportReportANSI.ShouCeShu5.ToString() : "0");
            this.LbTestTS.Text        = (_PCExportReportANSI.ShouCeShu6.HasValue ? _PCExportReportANSI.ShouCeShu6.ToString() : "0");
            this.LbTestSQ.Text        = (_PCExportReportANSI.ShouCeShu7.HasValue ? _PCExportReportANSI.ShouCeShu7.ToString() : "0");
            this.LbTestIR.Text        = (_PCExportReportANSI.ShouCeShu8.HasValue ? _PCExportReportANSI.ShouCeShu8.ToString() : "0");
            this.LbTestHS.Text        = (_PCExportReportANSI.ShouCeShu9.HasValue ? _PCExportReportANSI.ShouCeShu9.ToString() : "0");
            this.LbTestMK.Text        = (_PCExportReportANSI.ShouCeShu10.HasValue ? _PCExportReportANSI.ShouCeShu10.ToString() : "0");
            this.LbTestUT.Text        = (_PCExportReportANSI.ShouCeShu12.HasValue ? _PCExportReportANSI.ShouCeShu12.ToString() : "0");
            this.LbTestPackaging.Text = (_PCExportReportANSI.ShouCeShu13.HasValue ? _PCExportReportANSI.ShouCeShu13.ToString() : "0");
            this.LbTemperature.Text   = (_PCExportReportANSI.ShouCeShu11.HasValue ? _PCExportReportANSI.ShouCeShu11.ToString() : "0");
            this.lblTestFog.Text      = (_PCExportReportANSI.ShouCeShu14.HasValue ? _PCExportReportANSI.ShouCeShu14.ToString() : "0");
            this.lblTestCoating.Text  = (_PCExportReportANSI.ShouCeShu15.HasValue ? _PCExportReportANSI.ShouCeShu15.ToString() : "0");

            //this.LbJudgeCS.Text = "PASS";
            //this.LbJudgeSP.Text = "PASS";
            //this.LbJudgeAR.Text = "PASS";
            //this.LbJudgePR.Text = "PASS";
            //this.LbJudgeDP.Text = "PASS";
            //this.LbJudgeDP2.Text = "PASS";
            //this.LbJudgeTS.Text = "PASS";
            //this.LbJudgeSQ.Text = "PASS";
            //this.LbJudgeIR.Text = "PASS";
            //this.LbJudgeHS.Text = "PASS";
            //this.LbJudgeMK.Text = "PASS";
            //this.LbJudgeUT.Text = "PASS";
            //this.LbJudgePackaging.Text = "PASS";
            //lblJudgeFog.Text = "PASS";
            //lblJudgeCoating.Text = "PASS";
        }
Exemplo n.º 17
0
        private void Validate(Model.PCExportReportANSI mPCExpANSI, int type)
        {
            if (string.IsNullOrEmpty(mPCExpANSI.ExportReportId))
            {
                throw new Helper.RequireValueException(Model.PCExportReportANSI.PRO_ExportReportId);
            }
            if (string.IsNullOrEmpty(mPCExpANSI.ProductId))
            {
                throw new Helper.RequireValueException(Model.PCExportReportANSI.PRO_ProductId);
            }
            if (string.IsNullOrEmpty(mPCExpANSI.InvoiceCusXOId))
            {
                throw new Helper.RequireValueException(Model.PCExportReportANSI.PRO_InvoiceCusXOId);
            }
            if (string.IsNullOrEmpty(mPCExpANSI.CustomerId.ToString()))
            {
                throw new Helper.RequireValueException(Model.PCExportReportANSI.PRO_CustomerId);
            }
            if (string.IsNullOrEmpty(mPCExpANSI.Amount.ToString()))
            {
                throw new Helper.RequireValueException(Model.PCExportReportANSI.PRO_Amount);
            }
            if (string.IsNullOrEmpty(mPCExpANSI.AmountTest.ToString()))
            {
                throw new Helper.RequireValueException(Model.PCExportReportANSI.PRO_AmountTest);
            }
            if (string.IsNullOrEmpty(mPCExpANSI.EmployeeId))
            {
                throw new Helper.RequireValueException(Model.PCExportReportANSI.PRO_EmployeeId);
            }
            if (string.IsNullOrEmpty(mPCExpANSI.ReportDate.ToString()))
            {
                throw new Helper.RequireValueException(Model.PCExportReportANSI.PRO_ReportDate);
            }

            if (type == 0) //insert
            {
                if (this.IsExistsForInsert(mPCExpANSI.ProductId, mPCExpANSI.InvoiceCusXOId, mPCExpANSI.ExpType))
                {
                    throw new Helper.MessageValueException(string.Format("商品:{0},訂單號:{1}重複錄入!", mPCExpANSI.Product.ToString(), mPCExpANSI.InvoiceCusXOId));
                }
            }
            else if (type == 1)
            {
                if (this.IsExistsForUpdate(mPCExpANSI.ProductId, mPCExpANSI.InvoiceCusXOId, mPCExpANSI.ExportReportId, mPCExpANSI.ExpType))
                {
                    throw new Helper.MessageValueException(string.Format("商品:{0},訂單號:{1}重複錄入!", mPCExpANSI.Product.ToString(), mPCExpANSI.InvoiceCusXOId));
                }
            }

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

            //double mMustCheck = 0;

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

            //mMustCheck = mMustCheck > 12 ? 12 : mMustCheck;

            //if (mPCExpANSI.AmountTest.Value != mMustCheck)
            //    throw new Helper.InvalidValueException(Model.PCExportReportANSI.PRO_AmountTest + "_ForInvoiceXoQuantity");

            //double RightCount = mPCExpANSI.ShouCeShu1.Value + mPCExpANSI.ShouCeShu2.Value + mPCExpANSI.ShouCeShu3.Value + mPCExpANSI.ShouCeShu4.Value + mPCExpANSI.ShouCeShu5.Value + mPCExpANSI.ShouCeShu6.Value + mPCExpANSI.ShouCeShu7.Value + mPCExpANSI.ShouCeShu8.Value + mPCExpANSI.ShouCeShu9.Value + mPCExpANSI.ShouCeShu10.Value + mPCExpANSI.ShouCeShu11.Value;
            //if (mPCExpANSI.AmountTest != RightCount)
            //    throw new Helper.InvalidValueException(Model.PCExportReportANSI.PRO_AmountTest + "_ForDetailsCount");
        }
Exemplo n.º 18
0
        public DataInputCSA2015RO(Model.PCDataInput pcDataInput, Model.PCExportReportANSI ANSI, Model.PCExportReportANSI CSA, int tag)
            : this()
        {
            if (pcDataInput == null)
            {
                return;
            }

            this.TCTSData.Text     = pcDataInput.PCDataInputDate.HasValue ? pcDataInput.PCDataInputDate.Value.ToString("yyyy-MM-dd") : "";
            this.TCTSQuantity.Text = pcDataInput.PCPerspectiveList.Count.ToString();
            this.TCTSEmployee.Text = pcDataInput.Employee3 == null ? "" : pcDataInput.Employee3.ToString();

            string customer = string.Empty;

            if (ANSI != null)
            {
                this.xrSubreportANSI.ReportSource = new ANSI2015RO(ANSI, tag);
                customer = ANSI.Customer.CustomerName;
            }
            if (CSA != null)
            {
                this.xrSubreportCSA.ReportSource = new CSARO(CSA, tag);
                customer = CSA.Customer.CustomerName;
            }
            if (string.IsNullOrEmpty(customer))
            {
                customer = pcDataInput.CustomerShortName;
            }
            this.xrSubreportProductTest.ReportSource = new ProductTestRO(pcDataInput, customer);

            if (pcDataInput.PCOpticalMachineList != null && pcDataInput.PCOpticalMachineList.Count != 0)
            {
                this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO(pcDataInput.PCOpticalMachineList, pcDataInput);
            }

            if (pcDataInput.PCHazeList != null && pcDataInput.PCHazeList.Count != 0)
            {
                this.xrSubreportPCHaze.ReportSource = new PCHazeRO(pcDataInput.PCHazeList, pcDataInput);
            }

            if (pcDataInput.PCDefinitionList != null && pcDataInput.PCDefinitionList.Count != 0)
            {
                this.subReport_PCDefinition.ReportSource = new PCDefinitionRO(pcDataInput.PCDefinitionList);
            }
        }
Exemplo n.º 19
0
 public bool HasRowsAfter(Model.PCExportReportANSI e)
 {
     return(accessor.HasRowsAfter(e));
 }
Exemplo n.º 20
0
        //当受测数大于0时,显示受测数,判定数显示:PASS
        //当受测数不大于0时,受测数、判定数表示为:—
        public JISRO1(Model.PCExportReportANSI _PCExportReportANSI, int tag)
            : this()
        {
            if (tag == 1)
            {
                this.xrLabel8.Text = "ALAN    SAFETY    COMPANY.";
            }
            if (tag == 2)
            {
                this.xrLabel8.Text = "PPE   SAFETY   INC.";
            }
            else if (tag == 3)
            {
                this.xrLabel8.Text = "鏡片品質標準檢測表";
            }

            this.LbCustomer.Text    = _PCExportReportANSI.Customer == null ? null : _PCExportReportANSI.Customer.CustomerName;
            this.LbOrderId.Text     = _PCExportReportANSI.InvoiceCusXOId == null ? null : _PCExportReportANSI.InvoiceCusXOId.ToString();
            this.LbProduct.Text     = _PCExportReportANSI.Product.CustomerProductName == null ? null : _PCExportReportANSI.Product.CustomerProductName.ToString();
            this.LbOrderAmount.Text = (_PCExportReportANSI.Amount.HasValue ? _PCExportReportANSI.Amount.ToString() : "0") + "PCS";
            this.LbTesrPerson.Text  = (_PCExportReportANSI.Employee == null ? null : _PCExportReportANSI.Employee.ToString()) + (_PCExportReportANSI.Employee2 == null ? null : " / " + _PCExportReportANSI.Employee2.ToString()) + (_PCExportReportANSI.Employee3 == null ? null : " / " + _PCExportReportANSI.Employee3.ToString()) + (_PCExportReportANSI.Employee4 == null ? null : " / " + _PCExportReportANSI.Employee4.ToString());
            this.LbReportDate.Text  = _PCExportReportANSI.ReportDate == null ? null : _PCExportReportANSI.ReportDate.Value.ToShortDateString();

            string[] test   = new string[10];
            double[] number = new double[10] {
                _PCExportReportANSI.ShouCeShu1.Value, _PCExportReportANSI.ShouCeShu2.Value, _PCExportReportANSI.ShouCeShu3.Value, _PCExportReportANSI.ShouCeShu4.Value, _PCExportReportANSI.ShouCeShu5.Value, _PCExportReportANSI.ShouCeShu6.Value, _PCExportReportANSI.ShouCeShu7.Value, _PCExportReportANSI.ShouCeShu8.Value, _PCExportReportANSI.ShouCeShu9.Value, _PCExportReportANSI.ShouCeShu10.Value
            };
            int b = -1;

            this.lblTestStandard.Text = string.IsNullOrEmpty(_PCExportReportANSI.CSAJiShuBiaoZhun) ? "JIS T8147:2016" : _PCExportReportANSI.CSAJiShuBiaoZhun;
            foreach (double quality in number)
            {
                for (int i = 0; i < test.Length; i++)
                {
                    b++;
                    if (quality > 0)
                    {
                        test[i + b] = quality.ToString() + "PCS/" + quality.ToString() + "PCS";
                        break;
                    }
                    else
                    {
                        test[i + b] = "—";
                        break;
                    }
                }
            }

            this.lblensTestApp.Text   = test[0].ToString();
            this.lblensTestPri.Text   = test[1].ToString();
            this.lblensTestRef.Text   = test[2].ToString();
            this.lblensTestAti.Text   = test[3].ToString();
            this.lblensTestTran.Text  = test[4].ToString();
            this.lblensTestShock.Text = test[5].ToString();
            this.lblensTestSfr.Text   = test[6].ToString();
            this.lblensTestSAET.Text  = test[7].ToString();
            this.lblensTestRTC.Text   = test[8].ToString();
            this.lblensTestIgn.Text   = test[9].ToString();


            //string[] pan = new string[10];
            //double[] amount = new double[10] { _PCExportReportANSI.PanDing1.Value, _PCExportReportANSI.PanDing2.Value, _PCExportReportANSI.PanDing3.Value, _PCExportReportANSI.PanDing4.Value, _PCExportReportANSI.PanDing5.Value, _PCExportReportANSI.PanDing6.Value, _PCExportReportANSI.PanDing7.Value, _PCExportReportANSI.PanDing8.Value, _PCExportReportANSI.PanDing9.Value, _PCExportReportANSI.PanDing10.Value };
            //int a = -1;
            //foreach (double quantity in amount)
            //{
            //    a++;
            //    for (int j = 0; j < pan.Length; j++)
            //    {
            //        if (quantity > 0)
            //        {
            //            pan[j + a] = "PASS";
            //            break;
            //        }
            //        else
            //        {
            //            pan[j + a] = "—";
            //            break;
            //        }
            //    }
            //}

            //this.lblensJudgeApp.Text = pan[0].ToString();
            //this.lblensJudgePri.Text = pan[1].ToString();
            //this.lblensJudgeRef.Text = pan[2].ToString();
            //this.lblensJudgeAti.Text = pan[3].ToString();
            //this.lblensJudgeShock.Text = pan[4].ToString();
            //this.lblensJudgeShock.Text = pan[5].ToString();
            //this.lblensJudgeSAET.Text = pan[6].ToString();
            //this.lblensJudgeSAET.Text = pan[7].ToString();
            //this.lblensJudgeRTC.Text = pan[8].ToString();
            //this.lblensJudgeIgn.Text = pan[9].ToString();
            this.lblensJudgeApp.Text   = "PASS";
            this.lblensJudgePri.Text   = "PASS";
            this.lblensJudgeRef.Text   = "PASS";
            this.lblensJudgeAti.Text   = "PASS";
            this.lblensJudgeTran.Text  = "PASS";
            this.lblensJudgeShock.Text = "PASS";
            this.lblensJudgeSfr.Text   = "PASS";
            this.lblensJudgeSAET.Text  = "PASS";
            this.lblensJudgeRTC.Text   = "PASS";
            this.lblensJudgeIgn.Text   = "PASS";



            string[] test2   = new string[8];
            double[] number2 = new double[8] {
                _PCExportReportANSI.ShouCeShu11.Value, _PCExportReportANSI.ShouCeShu12.Value, _PCExportReportANSI.ShouCeShu13.Value, _PCExportReportANSI.ShouCeShu14.Value, _PCExportReportANSI.ShouCeShu15.Value, _PCExportReportANSI.ShouCeShu16.Value, _PCExportReportANSI.ShouCeShu17.Value, _PCExportReportANSI.ShouCeShu18.Value
            };
            int b2 = -1;

            foreach (double quality in number2)
            {
                for (int i = 0; i < test2.Length; i++)
                {
                    b2++;
                    if (quality > 0)
                    {
                        test2[i + b2] = quality.ToString() + "PCS/" + quality.ToString() + "PCS";
                        break;
                    }
                    else
                    {
                        test2[i + b2] = "—";
                        break;
                    }
                }
            }
            this.lbFinTestApp.Text    = test2[0].ToString();
            this.lbFinTestShock.Text  = test2[1].ToString();
            this.lbFinTestHCOSTE.Text = test2[2].ToString();
            this.lbFinTestHCOS.Text   = test2[3].ToString();
            this.lbFinTestSOHAS.Text  = test2[4].ToString();
            this.lbFinTestSFD.Text    = test2[5].ToString();
            this.lbFinTestMfpro.Text  = test2[6].ToString();
            this.FinTestMfpac.Text    = test2[7].ToString();


            //string[] pan2 = new string[11];
            //double[] amount2 = new double[11] { _PCExportReportANSI.PanDing11.Value, _PCExportReportANSI.PanDingShu12.Value, _PCExportReportANSI.PanDingShu13.Value, _PCExportReportANSI.PanDingShu14.Value, _PCExportReportANSI.PanDingShu15.Value, _PCExportReportANSI.PanDingShu16.Value, _PCExportReportANSI.PanDingShu17.Value, _PCExportReportANSI.PanDingShu18.Value, _PCExportReportANSI.PanDingShu19.Value, _PCExportReportANSI.PanDingShu20.Value, _PCExportReportANSI.PanDingShu21.Value };
            //int a = -1;
            //foreach (double quantity in amount2)
            //{
            //    a++;
            //    for (int j = 0; j < pan2.Length; j++)
            //    {
            //        if (quantity > 0)
            //        {
            //            pan2[j + a] = "PASS";
            //            break;
            //        }
            //        else
            //        {
            //            pan2[j + a] = "—";
            //            break;
            //        }
            //    }
            //}

            //this.lbFinJudgeApp.Text = pan2[0].ToString();
            //this.lbFinJudgeShock.Text = pan2[1].ToString();
            //this.lbFinJudgeHCOSTE.Text = pan2[2].ToString();
            //this.lbFinJudgeHCOS.Text = pan2[3].ToString();
            //this.lbFinJudgeSOHAS.Text = pan2[4].ToString();
            //this.lbFinJudgeSFD.Text = pan2[5].ToString();
            //this.lbFinJudgeCon.Text = pan2[6].ToString();
            //this.lbFinJudgeMat.Text = pan2[7].ToString();
            //this.lbFinJudgeMfpro.Text = pan2[8].ToString();
            //this.lbFinJudgeMfpac.Text = pan2[9].ToString();
            //this.lbFinJudgeIM.Text = pan2[10].ToString();
            this.lbFinJudgeApp.Text    = "PASS";
            this.lbFinJudgeShock.Text  = "PASS";
            this.lbFinJudgeHCOSTE.Text = "PASS";
            this.lbFinJudgeHCOS.Text   = "PASS";
            this.lbFinJudgeSOHAS.Text  = "PASS";
            this.lbFinJudgeSFD.Text    = "PASS";
            this.lbFinJudgeCon.Text    = "PASS";
            this.lbFinJudgeMat.Text    = "PASS";
            this.lbFinJudgeMfpro.Text  = "PASS";
            this.lbFinJudgeMfpac.Text  = "PASS";
            this.lbFinJudgeIM.Text     = "PASS";
        }
Exemplo n.º 21
0
 public Model.PCExportReportANSI GetNext(Model.PCExportReportANSI e)
 {
     return(accessor.GetNext(e));
 }
Exemplo n.º 22
0
        public ASRO(Model.PCExportReportANSI _PCExportReportANSI, int tag)
            : this()
        {
            if (tag == 1)
            {
                this.xrLabel1.Text = "ALAN    SAFETY    COMPANY.";

                this.lbl_Signature.Text    = new BL.SettingManager().SelectByName("ALANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ALANSignature")[0].SettingCurrentValue;
                this.xrPictureBox1.Visible = true;
            }
            else if (tag == 2)
            {
                this.xrLabel1.Text      = "PPE   SAFETY   INC.";
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("PPESignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("PPESignature")[0].SettingCurrentValue;
            }
            else
            {
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("ASWANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ASWANSignature")[0].SettingCurrentValue;
            }
            this.xrLabel2.Text  = "ASSEMBLED EYE PROTECTORS-QUALITY CONTROL TEST TEPORT";
            this.LbModelNo.Text = _PCExportReportANSI.Product == null ? null : _PCExportReportANSI.Product.CustomerProductName;
            //this.LbTestDate.Text = _PCExportReportANSI.ReportDate == null ? null : _PCExportReportANSI.ReportDate.Value.ToShortDateString();
            this.LbTestDate.Text = _PCExportReportANSI.ReportDate == null ? null : _PCExportReportANSI.ReportDate.Value.ToString("dd-MMM-yy", new System.Globalization.CultureInfo("en-us"));

            this.LbQtyTest.Text          = (_PCExportReportANSI.QuYangShu2.HasValue ? _PCExportReportANSI.QuYangShu2.Value.ToString() : "0") + "PCS";
            this.LbBuyer.Text           += "   " + (_PCExportReportANSI.Customer == null ? null : _PCExportReportANSI.Customer.CustomerName);
            this.LbOrderNo.Text         += "   " + (_PCExportReportANSI.InvoiceCusXOId == null ? null : _PCExportReportANSI.InvoiceCusXOId.ToString());
            this.lbl_OrderQuantity.Text += "   " + (_PCExportReportANSI.Amount.HasValue ? _PCExportReportANSI.Amount.ToString() + "PCS" : "");

            this.LbBatchNo.Text         = _PCExportReportANSI.ProductBatchNo == null ? null : _PCExportReportANSI.ProductBatchNo.ToString();
            this.CheckVisual.Checked    = _PCExportReportANSI.VisualTest.HasValue ? _PCExportReportANSI.VisualTest.Value : false;
            this.CheckThermal.Checked   = _PCExportReportANSI.ThermalStability.HasValue ? _PCExportReportANSI.ThermalStability.Value : false;
            this.CheckPriHIn.Checked    = _PCExportReportANSI.PrismaticPowerHIn.HasValue ? _PCExportReportANSI.PrismaticPowerHIn.Value : false;
            this.CheckPriHOut.Checked   = _PCExportReportANSI.PrismaticPowerHOut.HasValue ? _PCExportReportANSI.PrismaticPowerHOut.Value : false;
            this.CheckPriVUp.Checked    = _PCExportReportANSI.PrismaticPowerVUp.HasValue ? _PCExportReportANSI.PrismaticPowerVUp.Value : false;
            this.CheckPriVDwn.Checked   = _PCExportReportANSI.PrismaticPowerVDwn.HasValue ? _PCExportReportANSI.PrismaticPowerVDwn.Value : false;
            this.LbRefractive.Text      = _PCExportReportANSI.RefractivePower.HasValue ? "(" + _PCExportReportANSI.RefractivePower.Value.ToString("0.00") + ") 2" : "(0.00) 2";
            this.CheckScatter.Checked   = _PCExportReportANSI.ScatterLight.HasValue ? _PCExportReportANSI.ScatterLight.Value : false;
            this.CheckMdeium.Checked    = _PCExportReportANSI.MediumImpact.HasValue ? _PCExportReportANSI.MediumImpact.Value : false;
            this.CheckHigh.Checked      = _PCExportReportANSI.HighImpact.HasValue ? _PCExportReportANSI.HighImpact.Value : false;
            this.CheckExtraHigh.Checked = _PCExportReportANSI.ExtraHighImpact.HasValue ? _PCExportReportANSI.ExtraHighImpact.Value : false;
            this.CheckPemer.Checked     = _PCExportReportANSI.PermertrationTest.HasValue ? _PCExportReportANSI.PermertrationTest.Value : false;
            this.CheckIgnition.Checked  = _PCExportReportANSI.IgnitionTest.HasValue ? _PCExportReportANSI.IgnitionTest.Value : false;
            this.CheckCorrosion.Checked = _PCExportReportANSI.Corrsion.HasValue ? _PCExportReportANSI.Corrsion.Value : false;
            this.CheckMarkings.Checked  = _PCExportReportANSI.Markings.HasValue ? _PCExportReportANSI.Markings.Value : false;
            this.LbTester.Text          = _PCExportReportANSI.Employee == null ? null : _PCExportReportANSI.Employee.ToString();
            this.xrLabel4.Text          = _PCExportReportANSI.AuditEmp == null ? null : _PCExportReportANSI.AuditEmp.ToString();

            //对外观,加热,坐标等判定新增的 测试数量

            this.lbl1.Text  = _PCExportReportANSI.ShouCeShu4.HasValue ? _PCExportReportANSI.ShouCeShu4.Value.ToString() : "";
            this.lbl2.Text  = _PCExportReportANSI.ShouCeShu5.HasValue ? _PCExportReportANSI.ShouCeShu5.Value.ToString() : "";
            this.lbl3.Text  = _PCExportReportANSI.ShouCeShu6.HasValue ? _PCExportReportANSI.ShouCeShu6.Value.ToString() : "";
            this.lbl4.Text  = _PCExportReportANSI.ShouCeShu7.HasValue ? _PCExportReportANSI.ShouCeShu7.Value.ToString() : "";
            this.lbl5.Text  = _PCExportReportANSI.ShouCeShu8.HasValue ? _PCExportReportANSI.ShouCeShu8.Value.ToString() : "";
            this.lbl6.Text  = _PCExportReportANSI.ShouCeShu9.HasValue ? _PCExportReportANSI.ShouCeShu9.Value.ToString() : "";
            this.lbl7.Text  = _PCExportReportANSI.ShouCeShu10.HasValue ? _PCExportReportANSI.ShouCeShu10.Value.ToString() : "";
            this.lbl8.Text  = _PCExportReportANSI.ShouCeShu11.HasValue ? _PCExportReportANSI.ShouCeShu11.Value.ToString() : "";
            this.lbl9.Text  = _PCExportReportANSI.ShouCeShu12.HasValue ? _PCExportReportANSI.ShouCeShu12.Value.ToString() : "";
            this.lbl10.Text = _PCExportReportANSI.ShouCeShu13.HasValue ? _PCExportReportANSI.ShouCeShu13.Value.ToString() : "";
            this.lbl11.Text = _PCExportReportANSI.ShouCeShu14.HasValue ? _PCExportReportANSI.ShouCeShu14.Value.ToString() : "";
            this.lbl12.Text = _PCExportReportANSI.ShouCeShu15.HasValue ? _PCExportReportANSI.ShouCeShu15.Value.ToString() : "";
            this.lbl13.Text = _PCExportReportANSI.ShouCeShu16.HasValue ? _PCExportReportANSI.ShouCeShu16.Value.ToString() : "";
            this.lbl14.Text = _PCExportReportANSI.ShouCeShu17.HasValue ? _PCExportReportANSI.ShouCeShu17.Value.ToString() : "";
        }
Exemplo n.º 23
0
        public ANSI2015RO(Model.PCExportReportANSI _PCExportReportANSI, int tag)
            : this()
        {
            if (tag == 1)
            {
                this.xrLabel1.Text      = "ALAN    SAFETY    COMPANY.";
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("ALANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ALANSignature")[0].SettingCurrentValue;
            }
            else if (tag == 2)
            {
                this.xrLabel1.Text      = "PPE   SAFETY   INC.";
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("PPESignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("PPESignature")[0].SettingCurrentValue;
            }
            else
            {
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("ASWANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ASWANSignature")[0].SettingCurrentValue;
            }

            this.LbSpecifiction.Text = string.IsNullOrEmpty(_PCExportReportANSI.CSAJiShuBiaoZhun) ? "ANSI Z87.1-2020" : _PCExportReportANSI.CSAJiShuBiaoZhun;

            this.LbCustomer.Text    = _PCExportReportANSI.Customer == null ? null : _PCExportReportANSI.Customer.CustomerName;
            this.LbOrderId.Text     = _PCExportReportANSI.InvoiceCusXOId == null ? null : _PCExportReportANSI.InvoiceCusXOId.ToString();
            this.LbProduct.Text     = _PCExportReportANSI.Product.CustomerProductName == null ? null : _PCExportReportANSI.Product.CustomerProductName.ToString();
            this.LbOrderAmount.Text = (_PCExportReportANSI.Amount.HasValue ? _PCExportReportANSI.Amount.ToString() : "0") + "PCS";
            this.LbTestAmount.Text  = (_PCExportReportANSI.AmountTest.HasValue ? _PCExportReportANSI.AmountTest.ToString() : "0") + "PCS";
            this.LbTesrPerson.Text  = (_PCExportReportANSI.Employee == null ? null : _PCExportReportANSI.Employee.ToString()) + (_PCExportReportANSI.Employee2 == null ? "" : ";" + _PCExportReportANSI.Employee2.ToString());
            //this.LbReportDate.Text = _PCExportReportANSI.ReportDate == null ? null : _PCExportReportANSI.ReportDate.Value.ToShortDateString();
            this.LbReportDate.Text     = _PCExportReportANSI.ReportDate == null ? null : _PCExportReportANSI.ReportDate.Value.ToString("dd/MM/yyyy");
            this.LbClearlens.Text      = _PCExportReportANSI.Clearlens == null ? null : _PCExportReportANSI.Clearlens.ToString();
            this.LbClearlens.Multiline = true;
            this.lbl_ShouCe1.Text      = (_PCExportReportANSI.QuYangShu1.HasValue ? _PCExportReportANSI.QuYangShu1.ToString() : "0") + " PCS";
            //this.lbl_ShouCe2.Text = (_PCExportReportANSI.QuYangShu2.HasValue ? _PCExportReportANSI.QuYangShu2.ToString() : "0") + " PCS";  //¹Ì¶¨1PCS
            this.lbl_ShouCe3.Text = (_PCExportReportANSI.QuYangShu3.HasValue ? _PCExportReportANSI.QuYangShu3.ToString() : "0") + " PCS";
            this.lbl_ShouCe4.Text = (_PCExportReportANSI.QuYangShu4.HasValue ? _PCExportReportANSI.QuYangShu4.ToString() : "0") + " PCS";
            this.lbl_ShouCe5.Text = (_PCExportReportANSI.QuYangShu5.HasValue ? _PCExportReportANSI.QuYangShu5.ToString() : "0") + " PCS";
            this.lbl_ShouCe6.Text = (_PCExportReportANSI.QuYangShu6.HasValue ? _PCExportReportANSI.QuYangShu6.ToString() : "0") + " PCS";
            this.lbl_ShouCe7.Text = (_PCExportReportANSI.QuYangShu7.HasValue ? _PCExportReportANSI.QuYangShu7.ToString() : "0") + " PCS";
            this.lbl_ShouCe8.Text = (_PCExportReportANSI.QuYangShu8.HasValue ? _PCExportReportANSI.QuYangShu8.ToString() : "0") + " PCS";
            //this.lbl_ShouCe9.Text = (_PCExportReportANSI.QuYangShu9.HasValue ? _PCExportReportANSI.QuYangShu9.ToString() : "0") + " PCS";  //¹Ì¶¨1PCS
            this.lbl_ShouCe10.Text = (_PCExportReportANSI.QuYangShu10.HasValue ? _PCExportReportANSI.QuYangShu10.ToString() : "0") + " PCS";
            this.lbl_ShouCe11.Text = (_PCExportReportANSI.QuYangShu11.HasValue ? _PCExportReportANSI.QuYangShu11.ToString() : "0") + " PCS";
            this.lbl_ShouCe12.Text = (_PCExportReportANSI.QuYangShu12.HasValue ? _PCExportReportANSI.QuYangShu12.ToString() : "0") + " PCS";
            this.lbl_ShouCe13.Text = (_PCExportReportANSI.QuYangShu13.HasValue ? _PCExportReportANSI.QuYangShu13.ToString() : "0") + " PCS";
            this.lbl_ShouCe14.Text = (_PCExportReportANSI.QuYangShu14.HasValue ? _PCExportReportANSI.QuYangShu14.ToString() : "0") + " PCS";
            this.lbl_ShouCe15.Text = (_PCExportReportANSI.QuYangShu15.HasValue ? _PCExportReportANSI.QuYangShu15.ToString() : "0") + " PCS";
            this.lbl_ShouCe16.Text = (_PCExportReportANSI.QuYangShu16.HasValue ? _PCExportReportANSI.QuYangShu16.ToString() : "0") + " PCS";
            this.lbl_ShouCe17.Text = (_PCExportReportANSI.QuYangShu17.HasValue ? _PCExportReportANSI.QuYangShu17.ToString() : "0") + " PCS";
            this.lbl_ShouCe18.Text = (_PCExportReportANSI.QuYangShu18.HasValue ? _PCExportReportANSI.QuYangShu18.ToString() : "0") + " PCS";
            this.lbl_ShouCe19.Text = (_PCExportReportANSI.QuYangShu19.HasValue ? _PCExportReportANSI.QuYangShu19.ToString() : "0") + " PCS";


            this.lbl_PanDing1.Text  = (_PCExportReportANSI.PanDing1.HasValue ? _PCExportReportANSI.PanDing1.ToString() : "0") + " PASS";
            this.lbl_PanDing2.Text  = (_PCExportReportANSI.PanDing2.HasValue ? _PCExportReportANSI.PanDing2.ToString() : "0") + " PASS";
            this.lbl_PanDing3.Text  = (_PCExportReportANSI.PanDing3.HasValue ? _PCExportReportANSI.PanDing3.ToString() : "0") + " PASS";
            this.lbl_PanDing4.Text  = (_PCExportReportANSI.PanDing4.HasValue ? _PCExportReportANSI.PanDing4.ToString() : "0") + " PASS";
            this.lbl_PanDing5.Text  = (_PCExportReportANSI.PanDing5.HasValue ? _PCExportReportANSI.PanDing5.ToString() : "0") + " PASS";
            this.lbl_PanDing6.Text  = (_PCExportReportANSI.PanDing6.HasValue ? _PCExportReportANSI.PanDing6.ToString() : "0") + " PASS";
            this.lbl_PanDing7.Text  = (_PCExportReportANSI.PanDing7.HasValue ? _PCExportReportANSI.PanDing7.ToString() : "0") + " PASS";
            this.lbl_PanDing8.Text  = (_PCExportReportANSI.PanDing8.HasValue ? _PCExportReportANSI.PanDing8.ToString() : "0") + " PASS";
            this.lbl_PanDing9.Text  = (_PCExportReportANSI.PanDing9.HasValue ? _PCExportReportANSI.PanDing9.ToString() : "0") + " PASS";
            this.lbl_PanDing10.Text = (_PCExportReportANSI.PanDing10.HasValue ? _PCExportReportANSI.PanDing10.ToString() : "0") + " PASS";
            this.lbl_PanDing11.Text = (_PCExportReportANSI.PanDing11.HasValue ? _PCExportReportANSI.PanDing11.ToString() : "0") + " PASS";
            this.lbl_PanDing12.Text = (_PCExportReportANSI.PanDingShu12.HasValue ? _PCExportReportANSI.PanDingShu12.ToString() : "0") + " PASS";
            this.lbl_PanDing13.Text = (_PCExportReportANSI.PanDingShu13.HasValue ? _PCExportReportANSI.PanDingShu13.ToString() : "0") + " PASS";
            this.lbl_PanDing14.Text = (_PCExportReportANSI.PanDingShu14.HasValue ? _PCExportReportANSI.PanDingShu14.ToString() : "0") + " PASS";
            this.lbl_PanDing15.Text = (_PCExportReportANSI.PanDingShu15.HasValue ? _PCExportReportANSI.PanDingShu15.ToString() : "0") + " PASS";
            this.lbl_PanDing16.Text = (_PCExportReportANSI.PanDingShu16.HasValue ? _PCExportReportANSI.PanDingShu16.ToString() : "0") + " PASS";
            this.lbl_PanDing17.Text = (_PCExportReportANSI.PanDingShu17.HasValue ? _PCExportReportANSI.PanDingShu17.ToString() : "0") + " PASS";
            this.lbl_PanDing18.Text = (_PCExportReportANSI.PanDingShu18.HasValue ? _PCExportReportANSI.PanDingShu18.ToString() : "0") + " PASS";
            this.lbl_PanDing19.Text = (_PCExportReportANSI.PanDingShu19.HasValue ? _PCExportReportANSI.PanDingShu19.ToString() : "0") + " PASS";


            this.lbl_VerifiedBy.Text = string.Format("{0} {1}", _PCExportReportANSI.AuditEmp == null ? "" : _PCExportReportANSI.AuditEmp.EmployeeName, _PCExportReportANSI.ReportDate.HasValue ? _PCExportReportANSI.ReportDate.Value.ToString("yyyy-MM-dd") : "");
        }
Exemplo n.º 24
0
        public JISRO2(Model.PCExportReportANSI _PCExportReportANSI, int tag)
        {
            InitializeComponent();

            //if (tag == 1)
            //{
            //    this.lbl_Signature.Text = new BL.SettingManager().SelectByName("ALANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ALANSignature")[0].SettingCurrentValue;
            //}
            //else if (tag == 2)
            //{
            //    this.lbl_Signature.Text = new BL.SettingManager().SelectByName("PPESignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("PPESignature")[0].SettingCurrentValue;
            //}
            //else if (tag == 0)
            //    this.lbl_Signature.Text = new BL.SettingManager().SelectByName("ASWANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ASWANSignature")[0].SettingCurrentValue;

            string[] test   = new string[8];
            double[] number = new double[8] {
                _PCExportReportANSI.ShouCeShu11.Value, _PCExportReportANSI.ShouCeShu12.Value, _PCExportReportANSI.ShouCeShu13.Value, _PCExportReportANSI.ShouCeShu14.Value, _PCExportReportANSI.ShouCeShu15.Value, _PCExportReportANSI.ShouCeShu16.Value, _PCExportReportANSI.ShouCeShu17.Value, _PCExportReportANSI.ShouCeShu18.Value
            };
            int b = -1;

            foreach (double quality in number)
            {
                for (int i = 0; i < test.Length; i++)
                {
                    b++;
                    if (quality > 0)
                    {
                        test[i + b] = quality.ToString() + "PCS/" + quality.ToString() + "PCS";
                        break;
                    }
                    else
                    {
                        test[i + b] = "¡ª";
                        break;
                    }
                }
            }
            this.lbFinTestApp.Text    = test[0].ToString();
            this.lbFinTestShock.Text  = test[1].ToString();
            this.lbFinTestHCOSTE.Text = test[2].ToString();
            this.lbFinTestHCOS.Text   = test[3].ToString();
            this.lbFinTestSOHAS.Text  = test[4].ToString();
            this.lbFinTestSFD.Text    = test[5].ToString();
            this.lbFinTestMfpro.Text  = test[6].ToString();
            this.FinTestMfpac.Text    = test[7].ToString();


            string[] pan    = new string[11];
            double[] amount = new double[11] {
                _PCExportReportANSI.PanDing11.Value, _PCExportReportANSI.PanDingShu12.Value, _PCExportReportANSI.PanDingShu13.Value, _PCExportReportANSI.PanDingShu14.Value, _PCExportReportANSI.PanDingShu15.Value, _PCExportReportANSI.PanDingShu16.Value, _PCExportReportANSI.PanDingShu17.Value, _PCExportReportANSI.PanDingShu18.Value, _PCExportReportANSI.PanDingShu19.Value, _PCExportReportANSI.PanDingShu20.Value, _PCExportReportANSI.PanDingShu21.Value
            };
            int a = -1;

            foreach (double quantity in amount)
            {
                a++;
                for (int j = 0; j < pan.Length; j++)
                {
                    if (quantity > 0)
                    {
                        pan[j + a] = "PASS";
                        break;
                    }
                    else
                    {
                        pan[j + a] = "¡ª";
                        break;
                    }
                }
            }

            this.lbFinJudgeApp.Text    = pan[0].ToString();
            this.lbFinJudgeShock.Text  = pan[1].ToString();
            this.lbFinJudgeHCOSTE.Text = pan[2].ToString();
            this.lbFinJudgeHCOS.Text   = pan[3].ToString();
            this.lbFinJudgeSOHAS.Text  = pan[4].ToString();
            this.lbFinJudgeSFD.Text    = pan[5].ToString();
            this.lbFinJudgeCon.Text    = pan[6].ToString();
            this.lbFinJudgeMat.Text    = pan[7].ToString();
            this.lbFinJudgeMfpro.Text  = pan[8].ToString();
            this.lbFinJudgeMfpac.Text  = pan[9].ToString();
            this.lbFinJudgeIM.Text     = pan[10].ToString();
        }
Exemplo n.º 25
0
        public CEENRO_WURTH2(Model.PCExportReportANSI _PCExportReportANSI, int tag)
            : this()
        {
            if (tag == 1)
            {
                this.xrLabel1.Text         = "ALAN    SAFETY    COMPANY.";
                this.lbl_Signature.Text    = new BL.SettingManager().SelectByName("ALANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ALANSignature")[0].SettingCurrentValue;
                this.xrPictureBox1.Visible = true;
            }
            else if (tag == 2)
            {
                this.xrLabel1.Text      = "PPE   SAFETY   INC.";
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("PPESignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("PPESignature")[0].SettingCurrentValue;
            }
            else
            {
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("ASWANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ASWANSignature")[0].SettingCurrentValue;
            }
            this.LbCustomer.Text    = _PCExportReportANSI.Customer == null ? null : _PCExportReportANSI.Customer.CustomerName;
            this.LbOrderId.Text     = _PCExportReportANSI.InvoiceCusXOId == null ? null : _PCExportReportANSI.InvoiceCusXOId.ToString();
            this.LbProduct.Text     = _PCExportReportANSI.Product.CustomerProductName == null ? null : _PCExportReportANSI.Product.CustomerProductName.ToString();
            this.LbOrderAmount.Text = (_PCExportReportANSI.Amount.HasValue ? _PCExportReportANSI.Amount.ToString() : "0") + "PCS";
            this.LbTestAmount.Text  = (_PCExportReportANSI.AmountTest.HasValue ? _PCExportReportANSI.AmountTest.ToString() : "0") + "PCS";
            this.LbTesrPerson.Text  = (_PCExportReportANSI.Employee == null ? null : _PCExportReportANSI.Employee.ToString()) + (_PCExportReportANSI.Employee2 == null ? null : " / " + _PCExportReportANSI.Employee2.ToString()) + (_PCExportReportANSI.Employee3 == null ? null : " / " + _PCExportReportANSI.Employee3.ToString()) + (_PCExportReportANSI.Employee4 == null ? null : " / " + _PCExportReportANSI.Employee4.ToString());
            //this.LbReportDate.Text = _PCExportReportANSI.ReportDate == null ? null : _PCExportReportANSI.ReportDate.Value.ToShortDateString();
            this.LbReportDate.Text           = _PCExportReportANSI.ReportDate == null ? null : _PCExportReportANSI.ReportDate.Value.ToString("dd/MM/yyyy");
            this.lblTraceabilityMarking.Text = _PCExportReportANSI.TraceMarking;
            this.LbClearlens.Text            = _PCExportReportANSI.Clearlens == null ? null : _PCExportReportANSI.Clearlens.ToString();
            this.LbClearlens.Multiline       = true;
            this.LbTestTS.Borders            = DevExpress.XtraPrinting.BorderSide.None;
            this.LbJudgeTS.Borders           = DevExpress.XtraPrinting.BorderSide.None;

            //this.xrTableCell37.DataBindings("Text",);
            //this.xrTableCell37.Text = (_PCExportReportANSI.ShouCeShu6.HasValue ? _PCExportReportANSI.ShouCeShu6.ToString() : "0") + "OF";
            //this.xrTableCell39.Text = (_PCExportReportANSI.PanDing6.HasValue ? _PCExportReportANSI.PanDing6.ToString() : "0") + "PASS";
            //this.lbTraceability.Text = _PCExportReportANSI.TraceMarking == null ? null : _PCExportReportANSI.TraceMarking.ToString();
            this.xrLabel31.Text = "6mm dia. Steel ball at " + _PCExportReportANSI.Protectionone + " + 1.5/-0 m/s or " + _PCExportReportANSI.Protectiontwo + "(+5)FPS. " + this.xrLabel31.Text;

            this.LbTestCS.Text        = (_PCExportReportANSI.ShouCeShu1.HasValue ? _PCExportReportANSI.ShouCeShu1.ToString() : "0");
            this.LbTestSp.Text        = (_PCExportReportANSI.ShouCeShu2.HasValue ? _PCExportReportANSI.ShouCeShu2.ToString() : "0");
            this.LbTestAR.Text        = (_PCExportReportANSI.ShouCeShu3.HasValue ? _PCExportReportANSI.ShouCeShu3.ToString() : "0");
            this.LbTestPR.Text        = (_PCExportReportANSI.ShouCeShu4.HasValue ? _PCExportReportANSI.ShouCeShu4.ToString() : "0");
            this.LbTestDP.Text        = (_PCExportReportANSI.ShouCeShu5.HasValue ? _PCExportReportANSI.ShouCeShu5.ToString() : "0");
            this.LbTestDP2.Text       = (_PCExportReportANSI.ShouCeShu5.HasValue ? _PCExportReportANSI.ShouCeShu5.ToString() : "0");
            this.LbTestTS.Text        = (_PCExportReportANSI.ShouCeShu6.HasValue ? _PCExportReportANSI.ShouCeShu6.ToString() : "0");
            this.LbTestSQ.Text        = (_PCExportReportANSI.ShouCeShu7.HasValue ? _PCExportReportANSI.ShouCeShu7.ToString() : "0");
            this.LbTestIR.Text        = (_PCExportReportANSI.ShouCeShu8.HasValue ? _PCExportReportANSI.ShouCeShu8.ToString() : "0");
            this.LbTestHS.Text        = (_PCExportReportANSI.ShouCeShu9.HasValue ? _PCExportReportANSI.ShouCeShu9.ToString() : "0");
            this.LbTestMK.Text        = (_PCExportReportANSI.ShouCeShu10.HasValue ? _PCExportReportANSI.ShouCeShu10.ToString() : "0");
            this.LbTestUT.Text        = (_PCExportReportANSI.ShouCeShu12.HasValue ? _PCExportReportANSI.ShouCeShu12.ToString() : "0");
            this.LbTestPackaging.Text = (_PCExportReportANSI.ShouCeShu13.HasValue ? _PCExportReportANSI.ShouCeShu13.ToString() : "0");
            this.lblTestFog.Text      = (_PCExportReportANSI.ShouCeShu14.HasValue ? _PCExportReportANSI.ShouCeShu14.ToString() : "0");
            this.lblTestCoating.Text  = (_PCExportReportANSI.ShouCeShu15.HasValue ? _PCExportReportANSI.ShouCeShu15.ToString() : "0");

            this.LbJudgeCS.Text        = "PASS";
            this.LbJudgeSP.Text        = "PASS";
            this.LbJudgeAR.Text        = "PASS";
            this.LbJudgePR.Text        = "PASS";
            this.LbJudgeDP.Text        = "PASS";
            this.LbJudgeDP2.Text       = "PASS";
            this.LbJudgeTS.Text        = "PASS";
            this.LbJudgeSQ.Text        = "PASS";
            this.LbJudgeIR.Text        = "PASS";
            this.LbJudgeHS.Text        = "PASS";
            this.LbJudgeMK.Text        = "PASS";
            this.LbJudgeUT.Text        = "PASS";
            this.LbJudgePackaging.Text = "PASS";
            lblJudgeFog.Text           = "PASS";
            lblJudgeCoating.Text       = "PASS";
        }
Exemplo n.º 26
0
        public RO(Model.PCExportReportANSI _PCExpANSI, int tag)
            : this()
        {
            if (tag == 1)
            {
                this.lblCompanyName.Text   = "ALAN    SAFETY    COMPANY.";
                this.lbl_Signature.Text    = new BL.SettingManager().SelectByName("ALANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ALANSignature")[0].SettingCurrentValue;
                this.xrPictureBox1.Visible = true;
            }
            else if (tag == 2)
            {
                this.lblCompanyName.Text = "PPE   SAFETY   INC.";
                this.lbl_Signature.Text  = new BL.SettingManager().SelectByName("PPESignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("PPESignature")[0].SettingCurrentValue;
            }
            else
            {
                this.lbl_Signature.Text = new BL.SettingManager().SelectByName("ASWANSignature").Count < 1 ? "" : new BL.SettingManager().SelectByName("ASWANSignature")[0].SettingCurrentValue;
            }
            //this.lblCeShiBaoGaoRiQi.Text = _PCExpANSI.ReportDate.Value.ToShortDateString();
            this.lblCeShiBaoGaoRiQi.Text  = _PCExpANSI.ReportDate.Value.ToString("dd/MM/yyyy");
            this.lblCeShiShuLiang.Text    = (_PCExpANSI.AmountTest.HasValue ? _PCExpANSI.AmountTest.ToString() : "0") + "PCS";
            this.lblChanpingpingming.Text = _PCExpANSI.Product.CustomerProductName == null ? "" : _PCExpANSI.Product.CustomerProductName.ToString();
            this.lblDingDanBianHao.Text   = _PCExpANSI.InvoiceCusXOId;
            this.lblDingDanShuLiang.Text  = (_PCExpANSI.Amount.HasValue ? _PCExpANSI.Amount.ToString() : "0") + "PCS";
            this.lblKehu.Text             = _PCExpANSI.Customer == null ? "" : _PCExpANSI.Customer.CustomerName;
            this.lblZhiXingCeShiYuan.Text = _PCExpANSI.Employee == null ? "" : _PCExpANSI.Employee.ToString();

            this.lblCriteria3.Text      = _PCExpANSI.Criteria3;
            this.lblCriteria3.Multiline = true;

            this.lblPanDing1.Text  = (_PCExpANSI.PanDing1.HasValue ? _PCExpANSI.PanDing1.ToString() : "0") + "PASS";
            this.lblPanDing2.Text  = (_PCExpANSI.PanDing2.HasValue ? _PCExpANSI.PanDing2.ToString() : "0") + "PASS";
            this.lblPanDing3.Text  = (_PCExpANSI.PanDing3.HasValue ? _PCExpANSI.PanDing3.ToString() : "0") + "PASS";
            this.lblPanDing4.Text  = (_PCExpANSI.PanDing4.HasValue ? _PCExpANSI.PanDing4.ToString() : "0") + "PASS";
            this.lblPanDing5.Text  = (_PCExpANSI.PanDing5.HasValue ? _PCExpANSI.PanDing5.ToString() : "0") + "PASS";
            this.lblPanDing6.Text  = (_PCExpANSI.PanDing6.HasValue ? _PCExpANSI.PanDing6.ToString() : "0") + "PASS";
            this.lblPanDing7.Text  = (_PCExpANSI.PanDing7.HasValue ? _PCExpANSI.PanDing7.ToString() : "0") + "PASS";
            this.lblPanDing8.Text  = (_PCExpANSI.PanDing8.HasValue ? _PCExpANSI.PanDing8.ToString() : "0") + "PASS";
            this.lblPanDing9.Text  = (_PCExpANSI.PanDing9.HasValue ? _PCExpANSI.PanDing9.ToString() : "0") + "PASS";
            this.lblPanDing10.Text = (_PCExpANSI.PanDing10.HasValue ? _PCExpANSI.PanDing10.ToString() : "0") + "PASS";
            this.lblPanDing11.Text = (_PCExpANSI.PanDing11.HasValue ? _PCExpANSI.PanDing11.ToString() : "0") + "PASS";
            this.lblPanDing12.Text = (_PCExpANSI.PanDingShu12.HasValue ? _PCExpANSI.PanDingShu12.ToString() : "0") + "PASS";

            this.lblQuYangShu1.Text  = (_PCExpANSI.QuYangShu1.HasValue ? _PCExpANSI.QuYangShu1.ToString() : "0") + "PCS";
            this.lblQuYangShu2.Text  = (_PCExpANSI.QuYangShu2.HasValue ? _PCExpANSI.QuYangShu2.ToString() : "0") + "PCS";
            this.lblQuYangShu3.Text  = (_PCExpANSI.QuYangShu3.HasValue ? _PCExpANSI.QuYangShu3.ToString() : "0") + "PCS";
            this.lblQuYangShu4.Text  = (_PCExpANSI.QuYangShu4.HasValue ? _PCExpANSI.QuYangShu4.ToString() : "0") + "PCS";
            this.lblQuYangShu5.Text  = (_PCExpANSI.QuYangShu5.HasValue ? _PCExpANSI.QuYangShu5.ToString() : "0") + "PCS";
            this.lblQuYangShu6.Text  = (_PCExpANSI.QuYangShu6.HasValue ? _PCExpANSI.QuYangShu6.ToString() : "0") + "PCS";
            this.lblQuYangShu7.Text  = (_PCExpANSI.QuYangShu7.HasValue ? _PCExpANSI.QuYangShu7.ToString() : "0") + "PCS";
            this.lblQuYangShu8.Text  = (_PCExpANSI.QuYangShu8.HasValue ? _PCExpANSI.QuYangShu8.ToString() : "0") + "PCS";
            this.lblQuYangShu9.Text  = (_PCExpANSI.QuYangShu9.HasValue ? _PCExpANSI.QuYangShu9.ToString() : "0") + "PCS";
            this.lblQuYangShu10.Text = (_PCExpANSI.QuYangShu10.HasValue ? _PCExpANSI.QuYangShu10.ToString() : "0") + "PCS";
            this.lblQuYangShu11.Text = (_PCExpANSI.QuYangShu11.HasValue ? _PCExpANSI.QuYangShu11.ToString() : "0") + "PCS";
            this.lblQuYangShu12.Text = (_PCExpANSI.QuYangShu12.HasValue ? _PCExpANSI.QuYangShu12.ToString() : "0") + "PCS";

            this.lblShouCeShu1.Text  = (_PCExpANSI.ShouCeShu1.HasValue ? _PCExpANSI.ShouCeShu1.ToString() : "0") + "PCS";
            this.lblShouCeShu2.Text  = (_PCExpANSI.ShouCeShu2.HasValue ? _PCExpANSI.ShouCeShu2.ToString() : "0") + "PCS";
            this.lblShouCeShu3.Text  = (_PCExpANSI.ShouCeShu3.HasValue ? _PCExpANSI.ShouCeShu3.ToString() : "0") + "PCS";
            this.lblShouCeShu4.Text  = (_PCExpANSI.ShouCeShu4.HasValue ? _PCExpANSI.ShouCeShu4.ToString() : "0") + "PCS";
            this.lblShouCeShu5.Text  = (_PCExpANSI.ShouCeShu5.HasValue ? _PCExpANSI.ShouCeShu5.ToString() : "0") + "PCS";
            this.lblShouCeShu6.Text  = (_PCExpANSI.ShouCeShu6.HasValue ? _PCExpANSI.ShouCeShu6.ToString() : "0") + "PCS";
            this.lblShouCeShu7.Text  = (_PCExpANSI.ShouCeShu7.HasValue ? _PCExpANSI.ShouCeShu7.ToString() : "0") + "PCS";
            this.lblShouCeShu8.Text  = (_PCExpANSI.ShouCeShu8.HasValue ? _PCExpANSI.ShouCeShu8.ToString() : "0") + "PCS";
            this.lblShouCeShu9.Text  = (_PCExpANSI.ShouCeShu9.HasValue ? _PCExpANSI.ShouCeShu9.ToString() : "0") + "PCS";
            this.lblShouCeShu10.Text = (_PCExpANSI.ShouCeShu10.HasValue ? _PCExpANSI.ShouCeShu10.ToString() : "0") + "PCS";
            this.lblShouCeShu11.Text = (_PCExpANSI.ShouCeShu11.HasValue ? _PCExpANSI.ShouCeShu11.ToString() : "0") + "PCS";
            this.lblShouCeShu12.Text = (_PCExpANSI.ShouCeShu12.HasValue ? _PCExpANSI.ShouCeShu12.ToString() : "0") + "PCS";
        }
Exemplo n.º 27
0
        //当受测数大于0时,显示受测数,判定数显示:PASS
        //当受测数不大于0时,受测数、判定数表示为:—
        public JISRO(Model.PCExportReportANSI _PCExportReportANSI, int tag)
            : this()
        {
            if (tag == 1)
            {
                this.xrLabel1.Text = "ALAN    SAFETY    COMPANY.(TEST REPORT)";
            }
            if (tag == 2)
            {
                this.xrLabel1.Text = "PPE   SAFETY   INC.(TEST REPORT)";
            }
            this.LbCustomer.Text    = _PCExportReportANSI.Customer == null ? null : _PCExportReportANSI.Customer.ToString();
            this.LbOrderId.Text     = _PCExportReportANSI.InvoiceCusXOId == null ? null : _PCExportReportANSI.InvoiceCusXOId.ToString();
            this.LbProduct.Text     = _PCExportReportANSI.Product.CustomerProductName == null ? null : _PCExportReportANSI.Product.CustomerProductName.ToString();
            this.LbOrderAmount.Text = _PCExportReportANSI.Amount.HasValue ? _PCExportReportANSI.Amount.ToString() : "0";
            this.LbTesrPerson.Text  = _PCExportReportANSI.Employee == null ? null : _PCExportReportANSI.Employee.ToString();
            this.LbReportDate.Text  = _PCExportReportANSI.ReportDate == null ? null : _PCExportReportANSI.ReportDate.Value.ToShortDateString();

            string[] test   = new string[18];
            double[] number = new double[18] {
                _PCExportReportANSI.ShouCeShu1.Value, _PCExportReportANSI.ShouCeShu2.Value, _PCExportReportANSI.ShouCeShu3.Value, _PCExportReportANSI.ShouCeShu4.Value, _PCExportReportANSI.ShouCeShu5.Value, _PCExportReportANSI.ShouCeShu6.Value, _PCExportReportANSI.ShouCeShu7.Value, _PCExportReportANSI.ShouCeShu8.Value, _PCExportReportANSI.ShouCeShu9.Value, _PCExportReportANSI.ShouCeShu10.Value, _PCExportReportANSI.ShouCeShu11.Value, _PCExportReportANSI.ShouCeShu12.Value, _PCExportReportANSI.ShouCeShu13.Value, _PCExportReportANSI.ShouCeShu14.Value, _PCExportReportANSI.ShouCeShu15.Value, _PCExportReportANSI.ShouCeShu16.Value, _PCExportReportANSI.ShouCeShu17.Value, _PCExportReportANSI.ShouCeShu18.Value
            };
            int b = -1;

            foreach (double quality in number)
            {
                for (int i = 0; i < test.Length; i++)
                {
                    b++;
                    if (quality > 0)
                    {
                        test[i + b] = quality.ToString() + "PCS/" + quality.ToString() + "PCS";
                        break;
                    }
                    else
                    {
                        test[i + b] = "—";
                        break;
                    }
                }
            }

            this.lblensTestApp.Text   = test[0].ToString();
            this.lblensTestPri.Text   = test[1].ToString();
            this.lblensTestRef.Text   = test[2].ToString();
            this.lblensTestAti.Text   = test[3].ToString();
            this.lblensTestTran.Text  = test[4].ToString();
            this.lblensTestShock.Text = test[5].ToString();
            this.lblensTestSfr.Text   = test[6].ToString();
            this.lblensTestSAET.Text  = test[7].ToString();
            this.lblensTestRTC.Text   = test[8].ToString();
            this.lblensTestIgn.Text   = test[9].ToString();
            this.lbFinTestApp.Text    = test[10].ToString();
            this.lbFinTestShock.Text  = test[11].ToString();
            this.lbFinTestHCOSTE.Text = test[12].ToString();
            this.lbFinTestHCOS.Text   = test[13].ToString();
            this.lbFinTestSOHAS.Text  = test[14].ToString();
            this.lbFinTestSFD.Text    = test[15].ToString();
            this.lbFinTestMfpro.Text  = test[16].ToString();
            this.FinTestMfpac.Text    = test[17].ToString();


            string[] pan    = new string[21];
            double[] amount = new double[21] {
                _PCExportReportANSI.PanDing1.Value, _PCExportReportANSI.PanDing2.Value, _PCExportReportANSI.PanDing3.Value, _PCExportReportANSI.PanDing4.Value, _PCExportReportANSI.PanDing5.Value, _PCExportReportANSI.PanDing6.Value, _PCExportReportANSI.PanDing7.Value, _PCExportReportANSI.PanDing8.Value, _PCExportReportANSI.PanDing9.Value, _PCExportReportANSI.PanDing10.Value, _PCExportReportANSI.PanDing11.Value, _PCExportReportANSI.PanDingShu12.Value, _PCExportReportANSI.PanDingShu13.Value, _PCExportReportANSI.PanDingShu14.Value, _PCExportReportANSI.PanDingShu15.Value, _PCExportReportANSI.PanDingShu16.Value, _PCExportReportANSI.PanDingShu17.Value, _PCExportReportANSI.PanDingShu18.Value, _PCExportReportANSI.PanDingShu19.Value, _PCExportReportANSI.PanDingShu20.Value, _PCExportReportANSI.PanDingShu21.Value
            };
            int a = -1;

            foreach (double quantity in amount)
            {
                a++;
                for (int j = 0; j < pan.Length; j++)
                {
                    if (quantity > 0)
                    {
                        pan[j + a] = "PASS";
                        break;
                    }
                    else
                    {
                        pan[j + a] = "—";
                        break;
                    }
                }
            }

            this.lblensJudgeApp.Text   = pan[0].ToString();
            this.lblensJudgePri.Text   = pan[1].ToString();
            this.lblensJudgeRef.Text   = pan[2].ToString();
            this.lblensJudgeAti.Text   = pan[3].ToString();
            this.lblensJudgeTran.Text  = pan[4].ToString();
            this.lblensJudgeShock.Text = pan[5].ToString();
            this.lblensJudgeSfr.Text   = pan[6].ToString();
            this.lblensJudgeSAET.Text  = pan[7].ToString();
            this.lblensJudgeRTC.Text   = pan[8].ToString();
            this.lblensJudgeIgn.Text   = pan[9].ToString();
            this.lbFinJudgeApp.Text    = pan[10].ToString();
            this.lbFinJudgeShock.Text  = pan[11].ToString();
            this.lbFinJudgeHCOSTE.Text = pan[12].ToString();
            this.lbFinJudgeHCOS.Text   = pan[13].ToString();
            this.lbFinJudgeSOHAS.Text  = pan[14].ToString();
            this.lbFinJudgeSFD.Text    = pan[15].ToString();
            this.lbFinJudgeCon.Text    = pan[16].ToString();
            this.lbFinJudgeMat.Text    = pan[17].ToString();
            this.lbFinJudgeMfpro.Text  = pan[18].ToString();
            this.lbFinJudgeMfpac.Text  = pan[19].ToString();
            this.lbFinJudgeIM.Text     = pan[20].ToString();
        }
Exemplo n.º 28
0
        //生成对应安规的外銷報告
        private void barMadeReport_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            switch (this._PCDataInput.CheckStandard)
            {
            case "ANSI":
                Model.PCExportReportANSI ansi1  = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "ANSI");
                DataInputANSIRO          ansiro = new DataInputANSIRO(this._PCDataInput, ansi1, this.radioGroup1.SelectedIndex);
                ansiro.ShowPreviewDialog();
                break;

            case "ANSI/CSA":
                Model.PCExportReportANSI ansi2 = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "ANSI");
                Model.PCExportReportANSI csa2  = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "CSA");
                DataInputCSARO           csaro = new DataInputCSARO(this._PCDataInput, ansi2, csa2, this.radioGroup1.SelectedIndex);
                csaro.ShowPreviewDialog();
                break;

            case "EN":
                Model.PCExportReportANSI en   = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "CEEN");
                DataInputENRO            enro = new DataInputENRO(this._PCDataInput, en, this.radioGroup1.SelectedIndex, this.rg_CEENType.SelectedIndex);
                enro.ShowPreviewDialog();
                break;

            case "AS/NZS":
                Model.PCExportReportANSI aso  = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "AS");
                DataInputASRO            asro = new DataInputASRO(this._PCDataInput, aso, this.radioGroup1.SelectedIndex);
                asro.ShowPreviewDialog();
                break;

            //2017年4月23日17:20:39 添加
            case "ANSI2015":
                Model.PCExportReportANSI ansi20151  = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "ANSI2015");
                DataInputANSI2015RO      ansi2015ro = new DataInputANSI2015RO(this._PCDataInput, ansi20151, this.radioGroup1.SelectedIndex);
                ansi2015ro.ShowPreviewDialog();
                break;

            case "ANSI2015/CSA2015":
                Model.PCExportReportANSI ansi20152 = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "ANSI2015");
                Model.PCExportReportANSI csa20152  = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "CSA");
                DataInputCSA2015RO       csa2015ro = new DataInputCSA2015RO(this._PCDataInput, ansi20152, csa20152, this.radioGroup1.SelectedIndex);
                csa2015ro.ShowPreviewDialog();
                break;

            case "AS2017":
                Model.PCExportReportANSI aso2017  = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "AS");
                DataInputAS2017RO        as2017ro = new DataInputAS2017RO(this._PCDataInput, aso2017, this.radioGroup1.SelectedIndex);
                as2017ro.ShowPreviewDialog();
                break;

            //2017年9月1日22:31:05
            case "ANSI2015/EN":
                Model.PCExportReportANSI ansi20154 = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "ANSI2015");
                Model.PCExportReportANSI en4       = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "CEEN");
                DataInputANSI2015ENRO    ansiEN    = new DataInputANSI2015ENRO(this._PCDataInput, ansi20154, en4, this.radioGroup1.SelectedIndex, this.rg_CEENType.SelectedIndex);
                ansiEN.ShowPreviewDialog();
                break;

            case "ANSI2015/EN/AS2017":
                Model.PCExportReportANSI ansi20155 = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "ANSI2015");
                Model.PCExportReportANSI en5       = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "CEEN");
                Model.PCExportReportANSI aso20175  = this.pCExportReportANSIManager.SelectByCusIdAndProduct(this._PCDataInput.InvoiceCusId, this._PCDataInput.ProductId, "AS");
                DataInputANSI2015ENASRO  ansiASEN  = new DataInputANSI2015ENASRO(this._PCDataInput, ansi20155, en5, aso20175, this.radioGroup1.SelectedIndex, this.rg_CEENType.SelectedIndex);
                ansiASEN.ShowPreviewDialog();
                break;
            }
        }
Exemplo n.º 29
0
        public DataInputANSI2015ENASRO(Model.PCDataInput pcDataInput, Model.PCExportReportANSI pcExportReportANSI, Model.PCExportReportANSI pcEN, Model.PCExportReportANSI pcAS, int tag, int ENType, bool isJihe)
            : this()
        {
            if (pcDataInput == null)
            {
                return;
            }
            if (!isJihe)
            {
                this.xrSubreportPCPerspective.ReportSource = new PCPerspective(pcDataInput);
            }

            string customer = string.Empty;

            if (pcExportReportANSI != null)
            {
                this.xrSubreportANSI.ReportSource = new ANSI2015RO(pcExportReportANSI, tag);
                customer = pcExportReportANSI.Customer.CustomerName;
            }
            if (pcEN != null)
            {
                if (ENType != 1)
                {
                    this.xrSubreportEN.ReportSource = new CEENRO(pcEN, tag);
                }
                else
                {
                    this.xrSubreportEN.ReportSource = new CEENRO_WURTH(pcEN, tag);
                }
                customer = pcEN.Customer.CustomerName;
            }
            if (pcAS != null)
            {
                this.xrSubreportAS.ReportSource = new ASRO2017(pcAS, tag);
                customer = pcAS.Customer.CustomerName;
            }
            if (string.IsNullOrEmpty(customer))
            {
                customer = pcDataInput.CustomerShortName;
            }
            this.xrSubreportProductTest.ReportSource = new ProductTestRO(pcDataInput, customer);
            //this.xrSubreportProductTest.ReportSource = new ProductTestRO(pcDataInput);

            if (pcDataInput.PCOpticalMachineList != null)
            {
                if (pcDataInput.PCOpticalMachineList.Count <= 2)
                {
                    this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO(pcDataInput.PCOpticalMachineList, pcDataInput);
                }
                else
                {
                    this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO_2(pcDataInput.PCOpticalMachineList, pcDataInput);
                }
            }

            if (pcDataInput.PCHazeList != null && pcDataInput.PCHazeList.Count != 0)
            {
                this.xrSubreportPCHaze.ReportSource = new PCHazeRO(pcDataInput.PCHazeList, pcDataInput);
            }

            if (pcDataInput.PCDefinitionList != null && pcDataInput.PCDefinitionList.Count != 0)
            {
                this.subReport_PCDefinition.ReportSource = new PCDefinitionRO(pcDataInput.PCDefinitionList);
            }
        }
Exemplo n.º 30
0
 public void Insert(Model.PCExportReportANSI e)
 {
     this.Insert <Model.PCExportReportANSI>(e);
 }