Ejemplo n.º 1
0
        private void repositoryItemHyperLinkEdit1_Click(object sender, EventArgs e)
        {
            string invoiceCusId = this.txt_InvoiceCusXoId.Text;

            if (string.IsNullOrEmpty(invoiceCusId))
            {
                MessageBox.Show("客戶訂單編號為空!", this.Text, MessageBoxButtons.OK);
                return;
            }
            if (this.bindingSource1.Current != null)
            {
                DataRowView dr = this.bindingSource1.Current as DataRowView;
                if (dr != null)
                {
                    //string id = dr[1].ToString();
                    string name = dr[0].ToString();
                    //string[] ids = new string[] { };
                    //if (!string.IsNullOrEmpty(id))
                    //{
                    //    if (id.Contains(" "))
                    //        ids = id.Split(' ');
                    //    if (ids.Length > 1)
                    //    {
                    //        IList<HelpClass> idList = new List<HelpClass>();
                    //        foreach (var item in ids)
                    //        {
                    //            HelpClass d = new HelpClass();
                    //            d.Id = item.Trim();
                    //            idList.Add(d);
                    //        }
                    //        JISOutPutFileHelp j = new JISOutPutFileHelp(idList, dr[0].ToString());
                    //        j.ShowDialog(this);
                    //    }
                    //else
                    //{
                    //string str = id.Trim();
                    if (name.Contains("訂單通知") || name.Contains("採購單"))
                    {
                        //Invoices.XO.EditForm xo = new Book.UI.Invoices.XO.EditForm(str);
                        //xo.Show(this);
                        Invoices.XO.ListForm listform = new Book.UI.Invoices.XO.ListForm(invoiceCusId);
                        listform.Show(this);
                    }
                    else if (name.Contains("生產加工單") || name.Contains("組裝半成品日報表"))
                    {
                        //PronoteHeader.EditForm pnt = new Book.UI.produceManager.PronoteHeader.EditForm(str);
                        //pnt.Show(this);
                        PronoteHeader.ListForm listform = new Book.UI.produceManager.PronoteHeader.ListForm();
                        if (name.Contains("組裝加工單"))
                        {
                            listform = new Book.UI.produceManager.PronoteHeader.ListForm(invoiceCusId, 4);
                        }
                        else if (name.Contains("生產加工單"))
                        {
                            listform = new Book.UI.produceManager.PronoteHeader.ListForm(invoiceCusId, 0);
                        }
                        else if (name.Contains("組裝半成品日報表"))
                        {
                            listform = new Book.UI.produceManager.PronoteHeader.ListForm(invoiceCusId, 5);
                            ProduceInDepot.ListForm listform2 = new Book.UI.produceManager.ProduceInDepot.ListForm(invoiceCusId);
                            listform2.Show(this);
                        }
                        listform.Show(this);
                    }
                    else if (name.Contains("物料採購訂單"))
                    {
                        //Invoices.CO.EditForm co = new Book.UI.Invoices.CO.EditForm(str);
                        //co.Show(this);
                        Invoices.CO.ListForm listform = new Book.UI.Invoices.CO.ListForm(invoiceCusId);
                        listform.Show(this);
                        PCOtherCheck.ListForm listform2 = new Book.UI.produceManager.PCOtherCheck.ListForm(invoiceCusId);
                        listform2.Show(this);
                    }
                    else if (name.Contains("委外加工單"))            //委外合同或者产品上线检验单
                    {
                        //ProduceOtherCompact.EditForm p = new Book.UI.produceManager.ProduceOtherCompact.EditForm(str);
                        //p.Show(this);
                        ProduceOtherCompact.ListForm listform = new Book.UI.produceManager.ProduceOtherCompact.ListForm(invoiceCusId);
                        listform.Show(this);
                    }
                    //else if (str.Contains("MRP"))
                    //{
                    //    MRSHeader.EditForm mrp = new Book.UI.produceManager.MRSHeader.EditForm(str);
                    //    mrp.Show(this);
                    //}
                    //else if (str.Contains("POM"))
                    //{
                    //    //ProduceOtherMaterial.EditForm pom = new Book.UI.produceManager.ProduceOtherMaterial.EditForm(str);
                    //    //pom.Show(this);
                    //    ProduceOtherMaterial.ListForm listform = new Book.UI.produceManager.ProduceOtherMaterial.ListForm(invoiceCusId);
                    //    listform.Show(this);
                    //}
                    else if (name.Contains("領料單"))
                    {
                        //ProduceMaterial.EditForm pdm = new Book.UI.produceManager.ProduceMaterial.EditForm(str);
                        //pdm.Show(this);
                        ProduceMaterial.ListForm listform = new Book.UI.produceManager.ProduceMaterial.ListForm(invoiceCusId);
                        listform.Show(this);

                        ProduceOtherMaterial.ListForm listform2 = new Book.UI.produceManager.ProduceOtherMaterial.ListForm(invoiceCusId);
                        listform2.Show(this);

                        Settings.StockLimitations.ChooseOutStockDepot f = new Book.UI.Settings.StockLimitations.ChooseOutStockDepot(invoiceCusId);
                        f.Show(this);
                    }
                    //else if (name.Contains("出庫單"))
                    //{
                    //    //Settings.StockLimitations.OutStockEditForm cc = new Book.UI.Settings.StockLimitations.OutStockEditForm(str);
                    //    //cc.Show(this);
                    //    Settings.StockLimitations.ChooseOutStockDepot f = new Book.UI.Settings.StockLimitations.ChooseOutStockDepot(invoiceCusId);
                    //    f.Show(this);
                    //}
                    else if (name.Contains("出貨通知單") || name.Contains("出庫單"))
                    {
                        //Invoices.XS.EditForm xc = new Book.UI.Invoices.XS.EditForm(str);
                        //xc.Show(this);
                        Invoices.XS.ListFormBackup listform = new Book.UI.Invoices.XS.ListFormBackup(invoiceCusId);
                        listform.Show(this);
                    }
                    else if (name.Contains("生產日報表") || name.Contains("強化/防霧工作日報表") || name.Contains("品檢日報表") || name.Contains("成品組裝日報表"))
                    {
                        //ProduceInDepot.EditForm pid = new Book.UI.produceManager.ProduceInDepot.EditForm(str);
                        //pid.Show(this);
                        ProduceInDepot.ListForm listform = new Book.UI.produceManager.ProduceInDepot.ListForm(invoiceCusId);
                        listform.Show(this);
                    }
                    else if (name.Contains("模具上線檢查表"))
                    {
                        //ProductOnlineCheck.Editform poc = new Book.UI.produceManager.ProductOnlineCheck.Editform(str);
                        //poc.Show(this);
                        PCMouldOnlineCheck.ListFrom listform = new Book.UI.produceManager.PCMouldOnlineCheck.ListFrom(invoiceCusId);
                        listform.Show(this);
                    }
                    else if (name.Contains("組裝檢驗日報表"))
                    {
                        PCAssemblyInspection.ListForm listform = new Book.UI.produceManager.PCAssemblyInspection.ListForm(invoiceCusId);
                        listform.Show(this);
                    }
                    else if (name.Contains("光譜測試") || name.Contains("成品檢驗單"))
                    {
                        //PCFinishCheck.EditForm qcc = new Book.UI.produceManager.PCFinishCheck.EditForm(str);
                        //qcc.Show(this);
                        PCFinishCheck.ListForm listform = new Book.UI.produceManager.PCFinishCheck.ListForm(invoiceCusId);
                        listform.Show(this);
                    }
                    else if (name.Contains("光學/厚度表"))
                    {
                        //PCPGOnlineCheck.EditForm qc = new Book.UI.produceManager.PCPGOnlineCheck.EditForm(str);
                        //qc.Show(this);
                        PCPGOnlineCheck.ListForm listform = new Book.UI.produceManager.PCPGOnlineCheck.ListForm(invoiceCusId);
                        listform.Show(this);
                    }
                    else if (name.Contains("衝擊測試表"))
                    {
                        //ANSIPCImpactCheck.EditForm qan = new Book.UI.produceManager.ANSIPCImpactCheck.EditForm(str);
                        //qan.Show(this);
                        ANSIPCImpactCheck.ListForm listform = new Book.UI.produceManager.ANSIPCImpactCheck.ListForm(invoiceCusId, 1);
                        listform.Show(this);

                        PCImpactCheck.ListForm listform2 = new Book.UI.produceManager.PCImpactCheck.ListForm(invoiceCusId);
                        listform2.Show(this);
                    }
                    //else if (str.Contains("pcOptics"))
                    //{
                    //    //PCOpticsCheck.EditForm pcOptics = new Book.UI.produceManager.PCOpticsCheck.EditForm(str);
                    //    //pcOptics.Show(this);
                    //    PCOpticsCheck.ListForm listform = new Book.UI.produceManager.PCOpticsCheck.ListForm(invoiceCusId);
                    //    listform.Show(this);
                    //}
                    else if (name.Contains("委外加工檢驗單"))
                    {
                        //PCOtherCheck.EditForm pcoc = new Book.UI.produceManager.PCOtherCheck.EditForm(str);
                        //pcoc.Show(this);
                        PCOtherCheck.ListForm listform = new Book.UI.produceManager.PCOtherCheck.ListForm(invoiceCusId);
                        listform.Show(this);

                        PCPGOnlineCheck.ListForm listform2 = new Book.UI.produceManager.PCPGOnlineCheck.ListForm(invoiceCusId);
                        listform2.Show(this);

                        PCImpactCheck.ListForm listform3 = new Book.UI.produceManager.PCImpactCheck.ListForm(invoiceCusId);
                        listform3.Show(this);
                    }
                    else if (name.Contains("入料檢驗單"))
                    {
                        //PCInputCheck.ListForm listform = new Book.UI.produceManager.PCInputCheck.ListForm(invoiceCusId);
                        //listform.Show(this);
                        PCInputCheck.RelationXOForm f = new Book.UI.produceManager.PCInputCheck.RelationXOForm(invoiceCusId);
                        if (f._relationXO == null)
                        {
                            MessageBox.Show("無記錄!", this.Text, MessageBoxButtons.OK);
                            return;
                        }
                        else
                        {
                            f.Show(this);
                        }
                    }

                    else if (name.Contains("出貨報告"))
                    {
                        //PCExportReportANSI.ListForm listform = new ListForm(invoiceCusId, "JIS");
                        //listform.Show(this);
                        //2018年11月6日22:17:33:cindy要求改拉成品检验单
                        PCFinishCheck.ListForm listform = new Book.UI.produceManager.PCFinishCheck.ListForm(invoiceCusId);
                        listform.Show(this);
                    }
                    //}
                    //}
                }
            }
        }
Ejemplo n.º 2
0
        private void repositoryItemHyperLinkEdit1_Click(object sender, EventArgs e)
        {
            string invoiceCusId = this.txt_InvoiceCusXoId.Text;

            if (string.IsNullOrEmpty(invoiceCusId))
            {
                MessageBox.Show("客戶訂單編號為空!", this.Text, MessageBoxButtons.OK);
                return;
            }
            if (this.bindingSource1.Current != null)
            {
                DataRowView dr = this.bindingSource1.Current as DataRowView;
                if (dr != null)
                {
                    //string id = dr[1].ToString();
                    string name = dr[0].ToString();
                    //string[] ids = new string[] { };
                    //if (!string.IsNullOrEmpty(id))
                    //{
                    //    if (id.Contains(" "))
                    //        ids = id.Split(' ');
                    //    if (ids.Length > 1)
                    //    {
                    //        IList<HelpClass> idList = new List<HelpClass>();
                    //        foreach (var item in ids)
                    //        {
                    //            HelpClass d = new HelpClass();
                    //            d.Id = item.Trim();
                    //            idList.Add(d);
                    //        }
                    //        JISOutPutFileHelp j = new JISOutPutFileHelp(idList, dr[0].ToString());
                    //        j.ShowDialog(this);
                    //    }
                    //else
                    //{
                    //string str = id.Trim();
                    if (name.Contains("客戶訂單通知") || name.Contains("客戶採購單"))
                    {
                        //Invoices.XO.EditForm xo = new Book.UI.Invoices.XO.EditForm(str);
                        //xo.Show(this);
                        Invoices.XO.ListForm listform = new Book.UI.Invoices.XO.ListForm(invoiceCusId);
                        listform.Show(this);
                    }
                    else if (name.Contains("組裝加工單") || name.Contains("半成品加工單") || name.Contains("生產加工單"))
                    {
                        //PronoteHeader.EditForm pnt = new Book.UI.produceManager.PronoteHeader.EditForm(str);
                        //pnt.Show(this);
                        PronoteHeader.ListForm listform = new Book.UI.produceManager.PronoteHeader.ListForm();
                        //PronoteHeader.ListForm listform = new Book.UI.produceManager.PronoteHeader.ListForm();
                        //if (name.Contains("組裝加工單"))
                        //    listform = new Book.UI.produceManager.MRSHeader.ListForm(invoiceCusId, 4);
                        //else if (name.Contains("半成品加工單"))
                        //    listform = new Book.UI.produceManager.MRSHeader.ListForm(invoiceCusId, 5);
                        //else if (name.Contains("生產加工單"))
                        //    listform = new Book.UI.produceManager.MRSHeader.ListForm(invoiceCusId, 0);
                        //else if (name.Contains("原物料採購單"))
                        //    listform = new Book.UI.produceManager.MRSHeader.ListForm(invoiceCusId, 1);
                        //else if (name.Contains("委外合同單"))
                        //    listform = new Book.UI.produceManager.MRSHeader.ListForm(invoiceCusId, 3);
                        if (name.Contains("組裝加工單"))
                        {
                            listform = new Book.UI.produceManager.PronoteHeader.ListForm(invoiceCusId, 4);
                        }
                        else if (name.Contains("半成品加工單"))
                        {
                            listform = listform = new Book.UI.produceManager.PronoteHeader.ListForm(invoiceCusId, 5);
                        }
                        else if (name.Contains("生產加工單"))
                        {
                            listform = new Book.UI.produceManager.PronoteHeader.ListForm(invoiceCusId, 0);
                        }

                        listform.Show(this);
                    }
                    else if (name.Contains("原物料採購單"))
                    {
                        //Invoices.CO.EditForm co = new Book.UI.Invoices.CO.EditForm(str);
                        //co.Show(this);
                        Invoices.CO.ListForm listform = new Book.UI.Invoices.CO.ListForm(invoiceCusId);
                        listform.Show(this);
                    }
                    else if (name.Contains("委外合同單") && !name.Contains("委外合同單檢驗單"))            //委外合同
                    {
                        //ProduceOtherCompact.EditForm p = new Book.UI.produceManager.ProduceOtherCompact.EditForm(str);
                        //p.Show(this);
                        ProduceOtherCompact.ListForm listform = new Book.UI.produceManager.ProduceOtherCompact.ListForm(invoiceCusId);
                        listform.Show(this);
                    }
                    //else if (str.Contains("MRP"))
                    //{
                    //    MRSHeader.EditForm mrp = new Book.UI.produceManager.MRSHeader.EditForm(str);
                    //    mrp.Show(this);
                    //}
                    //else if (str.Contains("POM"))
                    //{
                    //    //ProduceOtherMaterial.EditForm pom = new Book.UI.produceManager.ProduceOtherMaterial.EditForm(str);
                    //    //pom.Show(this);
                    //    ProduceOtherMaterial.ListForm listform = new Book.UI.produceManager.ProduceOtherMaterial.ListForm(invoiceCusId);
                    //    listform.Show(this);
                    //}
                    else if (name.Contains("領料單.委外領料"))
                    {
                        //ProduceMaterial.EditForm pdm = new Book.UI.produceManager.ProduceMaterial.EditForm(str);
                        //pdm.Show(this);
                        ProduceMaterial.ListForm listform = new Book.UI.produceManager.ProduceMaterial.ListForm(invoiceCusId);
                        listform.Show(this);

                        ProduceOtherMaterial.ListForm listform2 = new Book.UI.produceManager.ProduceOtherMaterial.ListForm(invoiceCusId);
                        listform2.Show(this);
                    }
                    else if (name.Contains("出倉單.(加工.委外)"))
                    {
                        //Settings.StockLimitations.OutStockEditForm cc = new Book.UI.Settings.StockLimitations.OutStockEditForm(str);
                        //cc.Show(this);
                        Settings.StockLimitations.ChooseOutStockDepot f = new Book.UI.Settings.StockLimitations.ChooseOutStockDepot(invoiceCusId);
                        f.Show(this);
                    }
                    else if (name.Contains("出貨單/出貨通知單"))
                    {
                        //Invoices.XS.EditForm xc = new Book.UI.Invoices.XS.EditForm(str);
                        //xc.Show(this);
                        Invoices.XS.ListForm listform = new Book.UI.Invoices.XS.ListForm(invoiceCusId);
                        listform.Show(this);
                    }
                    //else if (name.Contains("射出日報表") || name.Contains("強化/防霧日報表") || name.Contains("品檢日報表") || name.Contains("成品組裝日報表"))
                    //{
                    //    //ProduceInDepot.EditForm pid = new Book.UI.produceManager.ProduceInDepot.EditForm(str);
                    //    //pid.Show(this);
                    //    ProduceInDepot.ListForm listform = new Book.UI.produceManager.ProduceInDepot.ListForm(invoiceCusId);
                    //    listform.Show(this);
                    //}
                    //else if (name.Contains("模具上線檢查表"))
                    //{
                    //    //ProductOnlineCheck.Editform poc = new Book.UI.produceManager.ProductOnlineCheck.Editform(str);
                    //    //poc.Show(this);
                    //    PCMouldOnlineCheck.ListFrom listform = new Book.UI.produceManager.PCMouldOnlineCheck.ListFrom(invoiceCusId);
                    //    listform.Show(this);
                    //}
                    //else if (name.Contains("組裝檢驗日報表") || name.Contains("光譜測試") || name.Contains("成品檢驗單") || name.Contains("出貨報告"))
                    //{
                    //    //PCFinishCheck.EditForm qcc = new Book.UI.produceManager.PCFinishCheck.EditForm(str);
                    //    //qcc.Show(this);
                    //    PCFinishCheck.ListForm listform = new Book.UI.produceManager.PCFinishCheck.ListForm(invoiceCusId);
                    //    listform.Show(this);
                    //}
                    else if (name.Contains("光學/厚度表"))
                    {
                        //PCPGOnlineCheck.EditForm qc = new Book.UI.produceManager.PCPGOnlineCheck.EditForm(str);
                        //qc.Show(this);
                        PCPGOnlineCheck.ListForm listform = new Book.UI.produceManager.PCPGOnlineCheck.ListForm(invoiceCusId);
                        listform.Show(this);
                    }
                    else if (name.Contains("衝擊測試表"))
                    {
                        //ANSIPCImpactCheck.EditForm qan = new Book.UI.produceManager.ANSIPCImpactCheck.EditForm(str);
                        //qan.Show(this);
                        ANSIPCImpactCheck.ListForm listform = new Book.UI.produceManager.ANSIPCImpactCheck.ListForm(invoiceCusId, 0);
                        listform.Show(this);
                        PCDoubleImpactCheck.ListForm listform1 = new Book.UI.produceManager.PCDoubleImpactCheck.ListForm(invoiceCusId, 0);
                        listform1.Show(this);
                        PCDoubleImpactCheck.ListForm listform2 = new Book.UI.produceManager.PCDoubleImpactCheck.ListForm(invoiceCusId, 1);
                        listform2.Show(this);
                        PCDoubleImpactCheck.ListForm listform3 = new Book.UI.produceManager.PCDoubleImpactCheck.ListForm(invoiceCusId, 2);
                        listform3.Show(this);

                        PCImpactCheck.ListForm listform4 = new Book.UI.produceManager.PCImpactCheck.ListForm(invoiceCusId);
                        listform4.Show(this);
                    }
                    //else if (str.Contains("pcOptics"))
                    //{
                    //    //PCOpticsCheck.EditForm pcOptics = new Book.UI.produceManager.PCOpticsCheck.EditForm(str);
                    //    //pcOptics.Show(this);
                    //    PCOpticsCheck.ListForm listform = new Book.UI.produceManager.PCOpticsCheck.ListForm(invoiceCusId);
                    //    listform.Show(this);
                    //}
                    else if (name.Contains("委外合同單檢驗單"))
                    {
                        //PCOtherCheck.EditForm pcoc = new Book.UI.produceManager.PCOtherCheck.EditForm(str);
                        //pcoc.Show(this);
                        PCOtherCheck.ListForm listform = new Book.UI.produceManager.PCOtherCheck.ListForm(invoiceCusId);
                        listform.Show(this);

                        PCPGOnlineCheck.ListForm listform2 = new Book.UI.produceManager.PCPGOnlineCheck.ListForm(invoiceCusId);
                        listform2.Show(this);

                        PCImpactCheck.ListForm listform3 = new Book.UI.produceManager.PCImpactCheck.ListForm(invoiceCusId);
                        listform3.Show(this);
                    }
                    //else if (name.Contains("入料檢驗單"))
                    //{
                    //    PCInputCheck.ListForm listform = new Book.UI.produceManager.PCInputCheck.ListForm(invoiceCusId);
                    //    listform.Show(this);
                    //}

                    else if (name.Contains("成品檢驗單") || name.Contains("出貨報告"))
                    {
                        PCFinishCheck.ListForm listform = new Book.UI.produceManager.PCFinishCheck.ListForm(invoiceCusId);
                        listform.Show(this);
                    }

                    else if (name.Contains("耳塞測試"))
                    {
                        PCEarplugs.ListFormDecibel decibel = new Book.UI.produceManager.PCEarplugs.ListFormDecibel(invoiceCusId);
                        decibel.Show(this);

                        PCEarplugs.ListFormResilience resilience = new Book.UI.produceManager.PCEarplugs.ListFormResilience(invoiceCusId);
                        resilience.Show(this);

                        PCEarplugs.ListFormStayWire stayWire = new Book.UI.produceManager.PCEarplugs.ListFormStayWire(invoiceCusId);
                        stayWire.Show(this);
                    }

                    //}
                    //}
                }
            }
        }
Ejemplo n.º 3
0
        private void repositoryItemHyperLinkEdit1_Click(object sender, EventArgs e)
        {
            string invoiceCusId = this.txt_InvoiceCusXoId.Text;

            if (string.IsNullOrEmpty(invoiceCusId))
            {
                MessageBox.Show("客户订单编号不能为空!", this.Text, MessageBoxButtons.OK);
                return;
            }
            if (this.bindingSource1.Current != null)
            {
                DataRowView dr = this.bindingSource1.Current as DataRowView;
                if (dr != null)
                {
                    string name = dr[0].ToString();


                    if (name.Contains("订单通知") || name.Contains("采购单"))
                    {
                        Invoices.XO.ListForm listform = new Book.UI.Invoices.XO.ListForm(invoiceCusId);
                        listform.Show(this);
                    }

                    //else if (name.Contains("入料检验单") || name.Contains("材质证明") || name.Contains("原物料采购订单"))
                    else if (name.Contains("入料检验单"))
                    {
                        PCIncomingCheck.RelationXOForm f = new Book.UI.produceManager.PCIncomingCheck.RelationXOForm(invoiceCusId);
                        //if (f._relationXO == null)       //不管有没有数据,这个窗口都要出来,往里面添加数据
                        //{
                        //    MessageBox.Show("无记录!", this.Text, MessageBoxButtons.OK);
                        //    return;
                        //}
                        //else
                        f.Show(this);
                    }
                    else if (name.Contains("物料采购订单"))
                    {
                        //Invoices.CO.EditForm co = new Book.UI.Invoices.CO.EditForm(str);
                        //co.Show(this);
                        Invoices.CO.ListForm listform = new Book.UI.Invoices.CO.ListForm(invoiceCusId);
                        listform.Show(this);
                        PCOtherCheck.ListForm listform2 = new Book.UI.produceManager.PCOtherCheck.ListForm(invoiceCusId);
                        listform2.Show(this);
                    }
                    else if (name.Contains("领料单"))
                    {
                        ProduceMaterial.ListForm listform = new Book.UI.produceManager.ProduceMaterial.ListForm(invoiceCusId);
                        listform.Show(this);

                        ProduceOtherMaterial.ListForm listform2 = new Book.UI.produceManager.ProduceOtherMaterial.ListForm(invoiceCusId);
                        listform2.Show(this);

                        Settings.StockLimitations.ChooseOutStockDepot listform3 = new Book.UI.Settings.StockLimitations.ChooseOutStockDepot(invoiceCusId);
                        listform3.Show(this);
                    }

                    else if (name.Contains("生产加工单"))
                    {
                        //PronoteHeader.EditForm pnt = new Book.UI.produceManager.PronoteHeader.EditForm(str);
                        //pnt.Show(this);
                        PronoteHeader.ListForm listform = new Book.UI.produceManager.PronoteHeader.ListForm(invoiceCusId);
                        listform.Show(this);
                    }

                    else if (name.Contains("模具上线检查表"))
                    {
                        //ProductOnlineCheck.List listform = new Book.UI.produceManager.ProductOnlineCheck.List(invoiceCusId);
                        //listform.Show(this);
                        PCMouldOnlineCheck.ListFrom listform = new Book.UI.produceManager.PCMouldOnlineCheck.ListFrom(invoiceCusId);
                        listform.Show(this);
                    }

                    else if (name.Contains("生产日报表") || name.Contains("强化/防雾工作日报表") || name.Contains("品检日报表") || name.Contains("成品组装日报表") || name.Contains("组装半成品日报表"))
                    {
                        ProduceInDepot.ListForm listform = new Book.UI.produceManager.ProduceInDepot.ListForm(invoiceCusId);
                        listform.Show(this);
                    }

                    else if (name.Contains("委外加工单"))            //委外合同或者产品上线检验单
                    {
                        //ProduceOtherCompact.EditForm p = new Book.UI.produceManager.ProduceOtherCompact.EditForm(str);
                        //p.Show(this);
                        ProduceOtherCompact.ListForm listform = new Book.UI.produceManager.ProduceOtherCompact.ListForm(invoiceCusId);
                        listform.Show(this);
                    }

                    //else if (name.Contains("品管线上检查表"))
                    //{
                    //    PCBoxFootCheck.ListForm listform = new Book.UI.produceManager.PCBoxFootCheck.ListForm(invoiceCusId);
                    //    listform.Show(this);
                    //}

                    else if (name.Contains("光学/厚度表"))
                    {
                        PCPGOnlineCheck.ListForm listform = new Book.UI.produceManager.PCPGOnlineCheck.ListForm(invoiceCusId);
                        listform.Show(this);
                    }

                    //else if (name.Contains("JIS光学棱镜度制程测试换算表"))
                    //{
                    //    Invoices.XO.ListForm listform = new Book.UI.Invoices.XO.ListForm(invoiceCusId);
                    //    listform.Show(this);
                    //}

                    //else if (name.Contains("雾度测试"))
                    //{
                    //    PCFogCheck.ListForm listform = new Book.UI.produceManager.PCFogCheck.ListForm(invoiceCusId);
                    //    listform.Show(this);
                    //}
                    else if (name.Contains("光谱测试"))
                    {
                        //PCFinishCheck.ListForm listform = new Book.UI.produceManager.PCFinishCheck.ListForm(invoiceCusId);
                        //listform.Show(this);
                        PronoteHeader.ListForm listform = new Book.UI.produceManager.PronoteHeader.ListForm(invoiceCusId);
                        listform.Show(this);
                    }

                    else if (name.Contains("成品检验单"))
                    {
                        PCFinishCheck.ListForm listform = new Book.UI.produceManager.PCFinishCheck.ListForm(invoiceCusId);
                        listform.Show(this);
                        //PronoteHeader.ListForm listform = new Book.UI.produceManager.PronoteHeader.ListForm(invoiceCusId);
                        //listform.Show(this);
                    }

                    else if (name.Contains("出货报告"))
                    {
                        ListForm listform = new ListForm(invoiceCusId, "JIS");
                        listform.Show(this);
                    }

                    else if (name.Contains("组装检验日报表"))
                    {
                        PCSampling.ListForm listform1 = new Book.UI.produceManager.PCSampling.ListForm(invoiceCusId);
                        listform1.Show(this);
                        PCSamplingEar.ListForm listform2 = new Book.UI.produceManager.PCSamplingEar.ListForm(invoiceCusId);
                        listform2.Show(this);
                    }

                    else if (name.Contains("委外加工检验单"))
                    {
                        //PCOtherCheck.EditForm pcoc = new Book.UI.produceManager.PCOtherCheck.EditForm(str);
                        //pcoc.Show(this);
                        PCOtherCheck.ListForm listform = new Book.UI.produceManager.PCOtherCheck.ListForm(invoiceCusId);
                        listform.Show(this);

                        PCPGOnlineCheck.ListForm listform2 = new Book.UI.produceManager.PCPGOnlineCheck.ListForm(invoiceCusId);
                        listform2.Show(this);

                        PCImpactCheck.ListForm listform3 = new Book.UI.produceManager.PCImpactCheck.ListForm(invoiceCusId);
                        listform3.Show(this);
                    }

                    else if (name.Contains("冲击测试表"))
                    {
                        //PCImpactCheck.ListForm listform = new Book.UI.produceManager.PCImpactCheck.ListForm(invoiceCusId);
                        //listform.Show(this);

                        //ANSIPCImpactCheck.ListForm listform2 = new Book.UI.produceManager.ANSIPCImpactCheck.ListForm(invoiceCusId, 0);
                        //listform2.Show(this);

                        ANSIPCImpactCheck.ListForm listform3 = new Book.UI.produceManager.ANSIPCImpactCheck.ListForm(invoiceCusId, 1);
                        listform3.Show(this);

                        //PCDoubleImpactCheck.ListForm listform4 = new Book.UI.produceManager.PCDoubleImpactCheck.ListForm(invoiceCusId, 0);
                        //listform4.Show(this);

                        //PCDoubleImpactCheck.ListForm listform5 = new Book.UI.produceManager.PCDoubleImpactCheck.ListForm(invoiceCusId, 1);
                        //listform5.Show(this);

                        //PCDoubleImpactCheck.ListForm listform6 = new Book.UI.produceManager.PCDoubleImpactCheck.ListForm(invoiceCusId, 2);
                        //listform6.Show(this);
                    }

                    //else if (name.Contains("品管抽检日报表"))
                    //{
                    //    PCSampling.ListForm listform1 = new Book.UI.produceManager.PCSampling.ListForm(invoiceCusId);
                    //    listform1.Show(this);
                    //    PCSamplingEar.ListForm listform2 = new Book.UI.produceManager.PCSamplingEar.ListForm(invoiceCusId);
                    //    listform2.Show(this);
                    //}

                    //else if (name.Contains("成品测试报告"))
                    //{
                    //    ListForm listform = new ListForm(invoiceCusId, "JIS");
                    //    listform.Show(this);
                    //}

                    //else if (name.Contains("出货验货单"))
                    //{
                    //    //Invoices.XO.ListForm listform = new Book.UI.Invoices.XO.ListForm(invoiceCusId);
                    //    //listform.Show(this);

                    //    PCFinishCheck.ListForm listform2 = new Book.UI.produceManager.PCFinishCheck.ListForm(invoiceCusId);
                    //    listform2.Show(this);
                    //}

                    else if (name.Contains("出货通知单") || name.Contains("出库单"))
                    {
                        //Invoices.XS.EditForm xc = new Book.UI.Invoices.XS.EditForm(str);
                        //xc.Show(this);
                        Invoices.XS.ListForm listform = new Book.UI.Invoices.XS.ListForm(invoiceCusId);
                        listform.Show(this);
                    }

                    //else if (name.Contains("出库单"))
                    //{
                    //    //Settings.StockLimitations.OutStockEditForm cc = new Book.UI.Settings.StockLimitations.OutStockEditForm(str);
                    //    //cc.Show(this);
                    //    Settings.StockLimitations.ChooseOutStockDepot f = new Book.UI.Settings.StockLimitations.ChooseOutStockDepot(invoiceCusId);
                    //    f.Show(this);
                    //}

                    //else if (name.Contains("物料检验单"))
                    //{
                    //    //PCMaterialCheck.ListForm listform = new Book.UI.produceManager.PCMaterialCheck.ListForm(invoiceCusId);
                    //    //listform.Show(this);

                    //    //ProduceOtherMaterial.ListForm listform2 = new Book.UI.produceManager.ProduceOtherMaterial.ListForm(invoiceCusId);
                    //    //listform2.Show(this);
                    //    ProduceMaterial.ListForm listform4 = new Book.UI.produceManager.ProduceMaterial.ListForm(invoiceCusId);
                    //    listform4.BringToFront();

                    //    Invoices.CG.ListForm listform3 = new Book.UI.Invoices.CG.ListForm(invoiceCusId);
                    //    listform3.BringToFront();

                    //    PCOtherCheck.ListForm listform2 = new Book.UI.produceManager.PCOtherCheck.ListForm(invoiceCusId);

                    //    Invoices.CO.ListForm listform1 = new Book.UI.Invoices.CO.ListForm(invoiceCusId);

                    //    listform4.Show(this);
                    //    listform3.Show(this);
                    //    listform2.Show(this);
                    //    listform1.Show(this);
                    //}
                }
            }
        }