protected void TxtBrcd_TextChanged(object sender, EventArgs e) { try { if (TxtBrcd.Text != "") { string bname = AST.GetBranchName(TxtBrcd.Text); if (bname != null) { TxtBrcdName.Text = bname; automemname.ContextKey = TxtBrcd.Text; autoglname.ContextKey = TxtBrcd.Text; TxtPcd.Focus(); } else { WebMsgBox.Show("Enter valid Branch Code.....!", this.Page); TxtBrcd.Text = ""; TxtBrcd.Focus(); } } else { WebMsgBox.Show("Enter Branch Code!....", this.Page); TxtBrcd.Text = ""; TxtBrcd.Focus(); } } catch (Exception ex) { ExceptionLogging.SendErrorToText(ex); } }
protected void TxtPcd_TextChanged(object sender, EventArgs e) { try { TxtPcdName.Text = customcs.GetProductName(TxtPcd.Text.ToString(), TxtBrcd.Text); if (TxtPcdName.Text == "") { WebMsgBox.Show("Enter Valid Product code..!!", this.Page); TxtPcd.Text = ""; TxtPcdName.Text = ""; TxtPcd.Focus(); } AutoAccname.ContextKey = TxtBrcd.Text + "_" + TxtPcd.Text.ToString(); TxtAccno.Focus(); } catch (Exception ex) { ExceptionLogging.SendErrorToText(ex); } }