protected void Txtcstno_TextChanged(object sender, EventArgs e) { try { if (Txtcstno.Text == "") { return; } string custname = accop.Getcustname(Txtcstno.Text.ToString()); string[] name = custname.Split('_'); TxtCname.Text = name[0].ToString(); string RC = TxtCname.Text; if (RC == "") { WebMsgBox.Show("Customer not found", this.Page); Txtcstno.Text = ""; Txtcstno.Focus(); return; } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtBRCDC_TextChanged(object sender, EventArgs e) { try { if (TxtBRCDC.Text != "") { string bname = AST.GetBranchName(TxtBRCDC.Text); if (bname != null) { TxtBRCDNameC.Text = bname; Txtcstno.Focus(); } else { WebMsgBox.Show("Enter valid Branch Code.....!", this.Page); TxtBRCDC.Text = ""; TxtBRCDC.Focus(); } } else { WebMsgBox.Show("Enter Branch Code!....", this.Page); TxtBRCDC.Text = ""; TxtBRCDC.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtCname_TextChanged(object sender, EventArgs e) { try { string CUNAME = TxtCname.Text; string[] custnob = CUNAME.Split('_'); if (custnob.Length > 1) { TxtCname.Text = custnob[0].ToString(); Txtcstno.Text = (string.IsNullOrEmpty(custnob[1].ToString()) ? "" : custnob[1].ToString()); } else { WebMsgBox.Show("Customer Number is Invalid....!", this.Page); Txtcstno.Text = ""; Txtcstno.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }