Esempio n. 1
0
 private void repositoryItemHyperLinkEdit1_Click_1(object sender, EventArgs e)
 {
     Model.PCPGOnlineCheckDetail d = (this.bsPCPGOnlineCheckDetail.Current as Model.PCPGOnlineCheckDetail);
     if (d != null)
     {
         ProduceOtherCompact.EditForm f;
         PronoteHeader.EditForm       f1;
         Invoices.CO.EditForm         f2;
         if (this._pcpgoc.PCPGOnlineCheckType == 1)
         {
             if (new BL.ProduceOtherCompactManager().Get(d.FromInvoiceId) != null)
             {
                 f = new Book.UI.produceManager.ProduceOtherCompact.EditForm(new BL.ProduceOtherCompactManager().Get(d.FromInvoiceId));
                 f.ShowDialog();
             }
         }
         else if (this._pcpgoc.PCPGOnlineCheckType == -1)
         {
             if (new BL.PronoteHeaderManager().Get(d.FromInvoiceId) != null)
             {
                 f1 = new Book.UI.produceManager.PronoteHeader.EditForm(new BL.PronoteHeaderManager().Get(d.FromInvoiceId));
                 f1.ShowDialog();
             }
         }
         else if (this._pcpgoc.PCPGOnlineCheckType == 0)
         {
             if (new BL.InvoiceCOManager().Get(d.FromInvoiceId) != null)
             {
                 f2 = new Book.UI.Invoices.CO.EditForm(new BL.InvoiceCOManager().Get(d.FromInvoiceId));
                 f2.ShowDialog();
             }
         }
     }
 }
Esempio n. 2
0
        //加工单查看
        private void repositoryItemHyperLinkEdit1_Click(object sender, EventArgs e)
        {
            string pronoteHeaderid = (this.bindingSource1.Current as Model.ProduceInDepotDetail).PronoteHeaderId;

            Model.PronoteHeader d = new BL.PronoteHeaderManager().Get(pronoteHeaderid);
            if (d != null)
            {
                PronoteHeader.EditForm f = new Book.UI.produceManager.PronoteHeader.EditForm(d);
                f.ShowDialog();
            }
        }
Esempio n. 3
0
        private void repositoryItemHyperLinkEdit1_Click(object sender, EventArgs e)
        {
            string id = (this.bindingSource1.Current as HelpClass) == null ? null : (this.bindingSource1.Current as HelpClass).Id;

            if (!string.IsNullOrEmpty(id))
            {
                if (id.Contains("XD"))
                {
                    Invoices.XO.EditForm xo = new Book.UI.Invoices.XO.EditForm(id);
                    xo.Show(this);
                }
                else if (id.Contains("CD"))
                {
                    Invoices.CO.EditForm co = new Book.UI.Invoices.CO.EditForm(id);
                    co.Show(this);
                }
                else if (id.Contains("MRP"))
                {
                    MRSHeader.EditForm mrp = new Book.UI.produceManager.MRSHeader.EditForm(id);
                    mrp.Show(this);
                }
                else if (id.Contains("POM"))
                {
                    ProduceOtherMaterial.EditForm pom = new Book.UI.produceManager.ProduceOtherMaterial.EditForm(id);
                    pom.Show(this);
                }
                else if (id.Contains("PDM"))
                {
                    ProduceMaterial.EditForm pdm = new Book.UI.produceManager.ProduceMaterial.EditForm(id);
                    pdm.Show(this);
                }
                else if (id.Contains("CC") && !id.Contains("QCC"))
                {
                    Settings.StockLimitations.OutStockEditForm cc = new Book.UI.Settings.StockLimitations.OutStockEditForm(id);
                    cc.Show(this);
                }
                else if (id.Contains("XC"))
                {
                    Invoices.XS.EditForm xc = new Book.UI.Invoices.XS.EditForm(id);
                    xc.Show(this);
                }
                else if (id.Contains("PID"))
                {
                    ProduceInDepot.EditForm pid = new Book.UI.produceManager.ProduceInDepot.EditForm(id);
                    pid.Show(this);
                }
                else if (id.Contains("POC"))            //委外合同或者产品上线检验单
                {
                    if (this.invoiceType.Contains("委外合同單"))
                    {
                        ProduceOtherCompact.EditForm p = new Book.UI.produceManager.ProduceOtherCompact.EditForm(id);
                        p.Show(this);
                    }
                    else
                    {
                        ProductOnlineCheck.Editform poc = new Book.UI.produceManager.ProductOnlineCheck.Editform(id);
                        poc.Show(this);
                    }
                }
                else if (id.Contains("PNT"))
                {
                    PronoteHeader.EditForm pnt = new Book.UI.produceManager.PronoteHeader.EditForm(id);
                    pnt.Show(this);
                }
                else if (id.Contains("QCC"))
                {
                    PCFinishCheck.EditForm qcc = new Book.UI.produceManager.PCFinishCheck.EditForm(id);
                    qcc.Show(this);
                }
                else if (id.Contains("QC") && !id.Contains("QCC"))
                {
                    PCPGOnlineCheck.EditForm qc = new Book.UI.produceManager.PCPGOnlineCheck.EditForm(id);
                    qc.Show(this);
                }
                else if (id.Contains("pcOptics"))
                {
                    PCOpticsCheck.EditForm pcOptics = new Book.UI.produceManager.PCOpticsCheck.EditForm(id);
                    pcOptics.Show(this);
                }
                else if (id.Contains("QAN"))
                {
                    ANSIPCImpactCheck.EditForm qan = new Book.UI.produceManager.ANSIPCImpactCheck.EditForm(id);
                    qan.Show(this);
                }
                else if (id.Contains("PCOC"))
                {
                    PCOtherCheck.EditForm pcoc = new Book.UI.produceManager.PCOtherCheck.EditForm(id);
                    pcoc.Show(this);
                }
            }
        }