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(); } } } }
private void btn_InvoiceCOId3_DoubleClick(object sender, EventArgs e) { if (!string.IsNullOrEmpty(this.btn_InvoiceCOId3.Text)) { Invoices.CO.EditForm f = new Book.UI.Invoices.CO.EditForm(this.btn_InvoiceCOId3.Text); f.ShowDialog(this); } }