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)); } }