protected void Page_Load(object sender, EventArgs e) { string code = Master.TextBoxCode.Text.Trim(); Master.TextBoxCode.Text = ""; if (code.Length == 0) { return; } if (BarcodeBLL.IsValidDINCode(code)) { EnterDIN(BarcodeBLL.ParseDIN(code)); } else if (BarcodeBLL.IsValidProductCode(code)) { EnterProductCode(BarcodeBLL.ParseProductCode(code)); } else if (BarcodeBLL.IsValidBloodGroupCode(code)) { //TODO: ProductCode must enter before BloodGroup EnterBloodGroup(BarcodeBLL.ParseBloodGroupCode(code)); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { } else { ucPeople.PeopleChanged += new EventHandler(ucPeople_PeopleChanged); string code = Master.TextBoxCode.Text.Trim(); Master.TextBoxCode.Text = ""; if (code.Length == 0) { return; } if (BarcodeBLL.IsValidDINCode(code)) { DINEnter(code); } else if (BarcodeBLL.IsValidCampaignCode(code)) { CampaignEnter(code); } else if (BarcodeBLL.IsValidProductCode(code)) { } else { ucPeople.Code = code; } } }
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 = receiptBLL.AddProductCodeIn(BarcodeBLL.ParseProductCode(code)); DataListProductIn.DataBind(); } } else if (rdbProductCodeOut.Checked) { if (BarcodeBLL.IsValidProductCode(code)) { ProductCodeOutList = receiptBLL.AddProductCodeOut(BarcodeBLL.ParseProductCode(code)); DataListProductOut.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int returnID = Request.Params["key"].ToInt(); if (returnID != 0) { ReturnID = returnID; } } else { string code = Master.TextBoxCode.Text.Trim(); Master.TextBoxCode.Text = ""; if (BarcodeBLL.IsValidDINCode(code)) { LoadCurrentDIN(BarcodeBLL.ParseDIN(code)); } else if (BarcodeBLL.IsValidReturnCode(code)) { ReturnID = BarcodeBLL.ParseReturnID(code); } else if (BarcodeBLL.IsValidProductCode(code)) { AddPackOrder(BarcodeBLL.ParseProductCode(code)); } } }
void EnterDIN(string DINCode) { DIN = DINCode; DonationBLL.UpdateCollector(DIN, txtDefaultCollector.Text.Trim()); if (BarcodeBLL.IsValidProductCode(txtProductCode.Text.Trim())) { PackBLL.Add(DIN, BarcodeBLL.ParseProductCode(txtProductCode.Text.Trim()), txtDefaultVolume.Text.ToInt()); } LoadDIN(); }
protected void Page_Load(object sender, EventArgs e) { string code = Master.TextBoxCode.Text.Trim(); Master.TextBoxCode.Text = ""; if (BarcodeBLL.IsValidDINCode(code)) { LoadDIN(BarcodeBLL.ParseDIN(code)); } else if (BarcodeBLL.IsValidProductCode(code)) { LoadPack(BarcodeBLL.ParseProductCode(code)); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int orgID = Request.Params["key"].ToInt(); if (orgID != 0) { OrderID = orgID; } } else { string code = Master.TextBoxCode.Text.Trim(); Master.TextBoxCode.Text = ""; if (BarcodeBLL.IsValidDINCode(code)) { LoadCurrentDIN(BarcodeBLL.ParseDIN(code)); } else if (BarcodeBLL.IsValidOrderCode(code)) { OrderID = BarcodeBLL.ParseOrderID(code); } else if (BarcodeBLL.IsValidProductCode(code)) { AddPack(BarcodeBLL.ParseProductCode(code)); } else if (BarcodeBLL.IsValidPeopleCode(code)) { //People1.Code = code; } else if (code.Length >= 9) { //People1.Code = code; } } }
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(); } } }
public static bool IsValidProductCodeList(this List <string> s) { return(s.Where(r => BarcodeBLL.IsValidProductCode(r) == false).Count() == 0); }
public static bool IsValidProductCode(this string s) { return(BarcodeBLL.IsValidProductCode(s)); }