protected void TxtPayAccName_TextChanged(object sender, EventArgs e) { try { string[] custnob = TxtPayAccName.Text.ToString().Split('_'); if (custnob.Length > 1) { sResult = SR.GetAccStatus(txtPayBrCode.Text.ToString(), txtPayProdType.Text.ToString(), (string.IsNullOrEmpty(custnob[1].ToString()) ? "" : custnob[1].ToString())); if (sResult != "3") { TxtPayAccName.Text = custnob[0].ToString(); TxtPayAccNo.Text = (string.IsNullOrEmpty(custnob[1].ToString()) ? "" : custnob[1].ToString()); txtNarration.Focus(); } else { TxtPayAccNo.Text = ""; TxtPayAccName.Text = ""; lblMessage.Text = "Account is closed...!!"; ModalPopup.Show(this.Page); TxtPayAccNo.Focus(); } } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtPayAccNo_TextChanged(object sender, EventArgs e) { try { sResult = SR.GetAccStatus(txtPayBrCode.Text.ToString(), txtPayProdType.Text.ToString(), TxtPayAccNo.Text.ToString()); if (sResult != "3") { DataTable DT = new DataTable(); DT = SR.GetCustName(txtPayProdType.Text, TxtPayAccNo.Text, txtPayBrCode.Text.Trim().ToString()); if (DT.Rows.Count > 0) { string[] CustName = DT.Rows[0]["CustName"].ToString().Split('_'); TxtPayAccName.Text = CustName[0].ToString(); txtNarration.Focus(); } } else { TxtPayAccNo.Text = ""; TxtPayAccName.Text = ""; lblMessage.Text = "Account is closed...!!"; ModalPopup.Show(this.Page); TxtPayAccNo.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void txtPayProdType_TextChanged(object sender, EventArgs e) { try { string Stage = SR.Getaccno(txtPayBrCode.Text.Trim().ToString(), txtPayProdType.Text); if (Stage != null) { string[] AC = Stage.Split('_');; ViewState["PayGlCode"] = AC[0].ToString(); txtPayProdName.Text = AC[1].ToString(); AutoPayAccName.ContextKey = txtPayBrCode.Text.Trim().ToString() + "_" + txtPayProdType.Text.Trim().ToString() + "_" + ViewState["PayGlCode"].ToString(); if (Convert.ToInt32(ViewState["PayGlCode"].ToString() == "" ? "0" : ViewState["PayGlCode"].ToString()) >= 100) { TxtPayAccNo.Text = ""; TxtPayAccName.Text = ""; TxtPayAccNo.Text = txtPayProdType.Text.ToString(); TxtPayAccName.Text = txtPayProdName.Text.ToString(); TxtChequeNo.Focus(); } else { TxtPayAccNo.Text = ""; TxtPayAccName.Text = ""; TxtPayAccNo.Focus(); } } else { WebMsgBox.Show("Enter valid Product code...!!", this.Page); txtPayProdType.Text = ""; txtPayProdName.Text = ""; TxtPayAccNo.Text = ""; TxtPayAccName.Text = ""; txtPayProdType.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void txtPayProdName_TextChanged(object sender, EventArgs e) { try { string CUNAME = txtPayProdName.Text; string[] custnob = CUNAME.Split('_'); if (custnob.Length > 1) { txtPayProdName.Text = custnob[0].ToString(); txtPayProdType.Text = (string.IsNullOrEmpty(custnob[1].ToString()) ? "" : custnob[1].ToString()); string[] AC = SR.Getaccno(txtPayBrCode.Text.Trim().ToString(), txtPayProdType.Text).Split('_'); ViewState["PayGlCode"] = AC[0].ToString(); AutoPayAccName.ContextKey = txtPayBrCode.Text.Trim().ToString() + "_" + txtPayProdType.Text.Trim().ToString() + "_" + ViewState["PayGlCode"].ToString(); if (Convert.ToInt32(ViewState["PayGlCode"].ToString() == "" ? "0" : ViewState["PayGlCode"].ToString()) >= 100) { TxtPayAccNo.Text = ""; TxtPayAccName.Text = ""; TxtPayAccNo.Text = txtPayProdType.Text.ToString(); TxtPayAccName.Text = txtPayProdName.Text.ToString(); TxtChequeNo.Focus(); } else { TxtPayAccNo.Text = ""; TxtPayAccName.Text = ""; TxtPayAccNo.Focus(); } } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }