protected void btnReset_Click(object sender, EventArgs e) { ProductCodeInList.Clear(); DataListProductIn.DataBind(); GridViewVolume.DataBind(); DINInList.Clear(); DataListDINIn.DataBind(); rdbDINIn.Checked = false; rdbProductCodeIn.Checked = true; }
public void DisplayToGUI() { Receipt e = ReceiptBLL.Get(ReceiptID); if (e == null) { e = new Receipt(); ProductCodeInList.Clear(); ProductCodeOutList.Clear(); rdbProductCodeIn.Checked = true; } else { ProductCodeInList = e.ReceiptProducts.Where(r => r.Type == ReceiptProduct.TypeX.In).Select(r => r.ProductCode).ToList(); ProductCodeOutList = e.ReceiptProducts.Where(r => r.Type == ReceiptProduct.TypeX.Out).Select(r => r.ProductCode).ToList(); } txtName.Text = e.Name; txtNote.Text = e.Note; DataListProductIn.DataBind(); DataListProductOut.DataBind(); }