protected void LinkButton1_Click(object sender, EventArgs e) { LinkButton btn = sender as LinkButton; if (btn != null) { DINInList.Remove(btn.CommandArgument); DataListDINIn.DataBind(); } }
protected void btnDINRemove_Click(object sender, ImageClickEventArgs e) { ImageButton btn = sender as ImageButton; if (btn != null) { DINInList.Remove(btn.CommandArgument); DataListDINIn.DataBind(); } }
protected void btnReset_Click(object sender, EventArgs e) { ProductCodeInList.Clear(); DataListProductIn.DataBind(); GridViewVolume.DataBind(); DINInList.Clear(); DataListDINIn.DataBind(); rdbDINIn.Checked = false; rdbProductCodeIn.Checked = true; }
protected void Page_Load(object sender, EventArgs e) { string code = Master.TextBoxCode.Text.Trim(); Master.TextBoxCode.Text = ""; if (code.Length == 0) { return; } if (rdbProductCodeIn.Checked) { if (BarcodeBLL.IsValidProductCode(code)) { ProductCodeInList = productionBLL.AddProductCodeIn(BarcodeBLL.ParseProductCode(code)); DataListProductIn.DataBind(); } } else if (rdbProductCodeOut.Checked) { if (BarcodeBLL.IsValidProductCode(code)) { ProductCodeOutList = productionBLL.AddProductCodeOut(BarcodeBLL.ParseProductCode(code)); DataListProductOut.DataBind(); } } else if (rdbDINIn.Checked) { if (BarcodeBLL.IsValidDINCode(code)) { DINInList = productionBLL.AddDIN(BarcodeBLL.ParseDIN(code)); DataListDINIn.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { string code = Master.TextBoxCode.Text.Trim(); Master.TextBoxCode.Text = ""; if (code.Length == 0) { return; } if (rdbProductCodeIn.Checked) { if (BarcodeBLL.IsValidProductCode(code)) { ProductCodeInList = productionBLL.AddProductCodeIn4Divide(BarcodeBLL.ParseProductCode(code)); DataListProductIn.DataBind(); GridViewVolume.DataSource = ProductionBLL.GetDivideList(code).Select(r => new { Division = r, Volume = "", }); GridViewVolume.DataBind(); } } else if (rdbDINIn.Checked) { if (BarcodeBLL.IsValidDINCode(code)) { DINInList = productionBLL.AddDIN4Divide(BarcodeBLL.ParseDIN(code)); DataListDINIn.DataBind(); } } }