protected void TxtTPRD_TextChanged(object sender, EventArgs e) { try { //if ((Convert.ToInt32(TxtFPRD.Text.Trim().ToString()) > Convert.ToInt32(TxtTPRD.Text.Trim().ToString()))) //{ // WebMsgBox.Show("Invalid From And To Product code....!", this.Page); // TxtTPRD.Text = ""; // TxtTPRD.Focus(); // return; //} //string TD1 = BD.GetDepoGL(TxtTPRD.Text.Trim().ToString(), txtBrCode.Text.Trim().ToString()); //if (TD1 != null) //{ // string[] TD = TD1.Split('_'); // if (TD.Length > 1) // { TxtFAcc.Focus(); // } //} //else //{ // WebMsgBox.Show("Invalid Product code...!", this.Page); // TxtTPRD.Text = ""; // TxtTPRD.Focus(); // return; //} } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtTPRD_TextChanged(object sender, EventArgs e) { try { if ((Convert.ToInt32(TxtFPRD.Text) > Convert.ToInt32(TxtTPRD.Text))) { WebMsgBox.Show("Invalid FROM and TO Product code....!", this.Page); TxtTPRD.Text = ""; TxtTPRD.Focus(); return; } string TD1 = BD.GetDepoGLRD(TxtTPRD.Text, Session["BRCD"].ToString()); if (TD1 != null) { string[] TD = TD1.Split('_'); if (TD.Length > 1) { } TXtTPRDName.Text = TD[0].ToString(); TxtFAcc.Focus(); } else { WebMsgBox.Show("Invalid Product code...!", this.Page); TxtTPRD.Text = ""; TxtTPRD.Focus(); return; } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtFAcc_TextChanged(object sender, EventArgs e) { { try { string[] AN; AN = customcs.GetAccountName(TxtFAcc.Text, TxtFAccName.Text, Session["BRCD"].ToString()).Split('_'); if (AN != null) { TxtFAccName.Text = AN[1].ToString(); TxtFAcc.Focus(); } else { WebMsgBox.Show("Account Number is Invalid....!", this.Page); TxtFAcc.Text = ""; TxtFAcc.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } } }
protected void TxtFPRD_TextChanged(object sender, EventArgs e) { try { string GRP = BD.GetGLGroup(TxtFPRD.Text, Session["BRCD"].ToString(), "4"); if (GRP != null && GRP == "SHR") { string TD = BD.GetAccTypeGL(TxtFPRD.Text, Session["BRCD"].ToString()); string[] TD1 = TD.Split('_'); if (TD1.Length > 1) { } TxtFPRDName.Text = TD1[0].ToString(); ViewState["FGL"] = TD1[1].ToString(); TxtFAcc.Focus(); } else { WebMsgBox.Show("Invalid product code, Only SHR group Product accepted...!", this.Page); TxtFPRD.Text = ""; TxtFPRDName.Text = ""; TxtFPRD.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TXtTPRDName_TextChanged(object sender, EventArgs e) { try { string custno = TXtTPRDName.Text; string[] CT = custno.Split('_'); if (CT.Length > 0) { //Added By Amol on 22092017 as per ambika mam instruction if (BD.GetProdOperate(Session["BRCD"].ToString(), CT[1].ToString()).ToString() != "3") { STR = MT.GetDepositCat(Session["BRCD"].ToString(), CT[1].ToString(), "MISTRF"); if (STR == "MIS") { TXtTPRDName.Text = CT[0].ToString(); TxtTPRD.Text = CT[1].ToString(); //TxtGLCD.Text = CT[2].ToString(); string[] GLS = BD.GetAccTypeGL(TxtTPRD.Text, Session["BRCD"].ToString()).Split('_'); ViewState["DRGL"] = GLS[1].ToString(); //AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + TxtProcode.Text + "_" + ViewState["DRGL"].ToString(); if (TXtTPRDName.Text == "") { WebMsgBox.Show("Please enter valid Product code", this.Page); TxtTPRD.Text = ""; TxtTPRD.Focus(); } else { TxtFAcc.Focus(); } } else { WebMsgBox.Show("Invalid Deposit Code,Enter MIS code only...!", this.Page); Clear(); return; } } else { TxtTPRD.Text = ""; TXtTPRDName.Text = ""; lblMessage.Text = "Product is not operating...!!"; ModalPopup.Show(this.Page); return; } } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); //Response.Redirect("FrmLogin.aspx", true); } }
protected void TxtFAcc_TextChanged(object sender, EventArgs e) { try { if (TxtTAcc.Text != "" && (Convert.ToInt32(TxtFAcc.Text) > Convert.ToInt32(TxtTAcc.Text))) { WebMsgBox.Show("Invalid From And To Account Number....!", this.Page); TxtFAcc.Text = ""; TxtTAcc.Text = ""; TxtFAcc.Focus(); return; } TxtTAcc.Focus(); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtFPRDName_TextChanged(object sender, EventArgs e) { try { string custno = TxtFPRDName.Text; string[] CT = custno.Split('_'); if (CT.Length > 0) { string GRP = BD.GetGLGroup(CT[1].ToString(), Session["BRCD"].ToString(), "4"); if (GRP != null && GRP == "SHR") { TxtFPRDName.Text = CT[0].ToString(); TxtFPRD.Text = CT[1].ToString(); string[] GLS = BD.GetAccTypeGL(TxtFPRD.Text, Session["BRCD"].ToString()).Split('_'); ViewState["DRGL"] = GLS[1].ToString(); autoglname.ContextKey = Session["BRCD"].ToString() + "_" + TxtFPRD.Text + "_" + ViewState["DRGL"].ToString(); string[] TD = Session["EntryDate"].ToString().Split('/'); if (TxtFPRDName.Text == "") { WebMsgBox.Show("Please enter valid Product code", this.Page); TxtFPRD.Text = ""; TxtFPRD.Focus(); } TxtFAcc.Focus(); } else { WebMsgBox.Show("Invalid product code, Only SHR group Product accepted...!", this.Page); TxtFPRD.Text = ""; TxtFPRDName.Text = ""; TxtFPRD.Focus(); } } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtTAcc_TextChanged(object sender, EventArgs e) { try { if (Convert.ToInt32(TxtFAcc.Text) > Convert.ToInt32(TxtTAcc.Text)) { WebMsgBox.Show("Invalid FROM and TO Account Number....!", this.Page); TxtFAcc.Text = ""; TxtTAcc.Text = ""; TxtFAccName.Text = ""; TxtTAccName.Text = ""; TxtFAcc.Focus(); return; } TxtTAccName.Text = BD.AccName(TxtTAcc.Text, TxtFPRD.Text, TxtTPRD.Text, Session["BRCD"].ToString()); BtnCalculate.Focus(); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtFAccName_TextChanged(object sender, EventArgs e) { try { string CUNAME = TxtFAccName.Text; string[] custnob = CUNAME.Split('_'); if (custnob.Length > 1) { TxtFAccName.Text = custnob[0].ToString(); TxtFAcc.Text = custnob[1].ToString(); TxtFAcc.Focus(); } else { WebMsgBox.Show("Account Number is Invalid....!", this.Page); TxtFAcc.Text = ""; TxtFAcc.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }