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