/// <summary> /// Update a PCPGOnlineCheckDetail. /// </summary> public void Update(Model.PCPGOnlineCheckDetail pCPGOnlineCheckDetail) { // // todo: add other logic here. // accessor.Update(pCPGOnlineCheckDetail); }
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(); } } } }
/// <summary> /// Insert a PCPGOnlineCheckDetail. /// </summary> public void Insert(Model.PCPGOnlineCheckDetail pCPGOnlineCheckDetail) { // // todo:add other logic here // accessor.Insert(pCPGOnlineCheckDetail); }
private void AddDataRows() { ChooseProductForm f = new ChooseProductForm(); if (f.ShowDialog(this) == DialogResult.OK) { if (ChooseProductForm.ProductList != null || ChooseProductForm.ProductList.Count > 0) { Model.PCPGOnlineCheckDetail detail = null; foreach (Model.Product product in ChooseProductForm.ProductList) { detail = new Book.Model.PCPGOnlineCheckDetail(); detail.PCPGOnlineCheckDetailId = Guid.NewGuid().ToString(); detail.PCPGOnlineCheckId = this._pcpgoc.PCPGOnlineCheckId; detail.Product = new BL.ProductManager().Get(product.ProductId); detail.ProductId = product.ProductId; detail.PCPGOnlineCheckDetailDate = DateTime.Now; detail.PCPGOnlineCheckDetailTime = DateTime.Now; this._pcpgoc.Details.Add(detail); } this.bsPCPGOnlineCheckDetail.Position = this.bsPCPGOnlineCheckDetail.IndexOf(detail); this.gridControl1.RefreshDataSource(); } } f.Dispose(); System.GC.Collect(); }
//厚度 private void ItemHyperLinkHouDu_Click_1(object sender, EventArgs e) { Model.PCPGOnlineCheckDetail d = (this.bsPCPGOnlineCheckDetail.Current as Model.PCPGOnlineCheckDetail); if (d != null) { ThicknessTest f = new ThicknessTest(d); f.ShowDialog(); } }
//光学 private void ItemHyperLinkGuangXue_Click_1(object sender, EventArgs e) { Model.PCPGOnlineCheckDetail d = (this.bsPCPGOnlineCheckDetail.Current as Model.PCPGOnlineCheckDetail); if (d != null) { OpticsTest f = new OpticsTest(d); f.ShowDialog(); } }
public OpticsTestCopyForm_Backup(Model.PCPGOnlineCheckDetail pCPGOnlineCheckDetail) { InitializeComponent(); this.StartPosition = FormStartPosition.CenterParent; this._pCPGOnlineCheckDetailId = pCPGOnlineCheckDetail.PCPGOnlineCheckDetailId; DataTable dt = new DataTable(); if (pCPGOnlineCheckDetail != null && pCPGOnlineCheckDetail.FromInvoiceId.StartsWith("PNT")) { dt = pCPGOnlineCheckDetailManager.SelectOpticsTestByFromInvoiceId(pCPGOnlineCheckDetail.FromInvoiceId); } if (dt.Rows.Count > 0) { this.bindingSource1.DataSource = dt; } else { throw new Exception("無數據!"); } }
public ThicknessTest(Model.PCPGOnlineCheckDetail pCPGOnlineCheckDetail) : this() { this._pCPGOnlineCheckDetail = pCPGOnlineCheckDetail; this._PCPGOnlineCheckDetailId = pCPGOnlineCheckDetail.PCPGOnlineCheckDetailId; }
public void Update(Model.PCPGOnlineCheckDetail e) { this.Update <Model.PCPGOnlineCheckDetail>(e); }
public void Insert(Model.PCPGOnlineCheckDetail e) { this.Insert <Model.PCPGOnlineCheckDetail>(e); }