protected void TxtTprdcode_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string   GL     = BD.GetAccTypeGL(TxtTprdcode.Text, Session["BRCD"].ToString());
            string[] GLCODE = GL.Split('_');

            ViewState["DRGL"]       = GL[1].ToString();
            autoAccname1.ContextKey = Session["BRCD"].ToString() + "_" + TxtTprdcode.Text + "_" + ViewState["DRGL"].ToString();
            string PDName = customcs.GetProductName(TxtTprdcode.Text, Session["BRCD"].ToString());
            if (PDName != null)
            {
                TxtTprdname.Text = PDName;
                TxtFaccno.Focus();
            }
            else
            {
                WebMsgBox.Show("Product Number is Invalid....!", this.Page);
                TxtTprdcode.Text = "";
                TxtTprdcode.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
 protected void TxtFaccno_TextChanged(object sender, EventArgs e)
 {
     {
         try
         {
             string[] AN;
             AN = customcs.GetAccountName(TxtFaccno.Text, TxtFprdcode.Text, Session["BRCD"].ToString()).Split('_');
             if (AN != null)
             {
                 TxtFaccname.Text = AN[1].ToString();
                 TxtTaccno.Focus();
             }
             else
             {
                 WebMsgBox.Show("Account Number is Invalid....!", this.Page);
                 TxtFaccno.Text = "";
                 TxtFaccno.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)
         {
             TxtFprdname.Text = CT[0].ToString();
             TxtFprdcode.Text = CT[1].ToString();
             TxtFaccno.Focus();
             string[] GLS = BD.GetAccTypeGL(TxtFprdcode.Text, Session["BRCD"].ToString()).Split('_');
             ViewState["DRGL"]      = GLS[1].ToString();
             AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + TxtFprdcode.Text + "_" + ViewState["DRGL"].ToString();
         }
     }
     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();
             TxtFaccno.Text   = custnob[1].ToString();
             TxtTaccno.Focus();
         }
         else
         {
             WebMsgBox.Show("Account Number is Invalid....!", this.Page);
             TxtFaccno.Text = "";
             TxtFaccno.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }