Exemplo n.º 1
0
    protected void TxtExrec_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string   GL     = BD.GetAccTypeGL(TxtExrec.Text, Session["BRCD"].ToString());
            string[] GLCODE = GL.Split('_');

            ViewState["DRGL"]   = GL[1].ToString();
            ViewState["GLCODE"] = GLCODE[1].ToString();
            string PDName = customcs.GetProductName(TxtExrec.Text, Session["BRCD"].ToString());
            if (PDName != null)
            {
                TxtEname.Text = PDName;
                TxtMarati.Focus();
            }
            else
            {
                WebMsgBox.Show("Product Number is Invalid....!", this.Page);
                TxtExrec.Text = "";
                TxtExrec.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Exemplo n.º 2
0
 protected void TxtEname_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string   CUNAME  = TxtEname.Text;
         string[] custnob = CUNAME.Split('_');
         if (custnob.Length > 1)
         {
             TxtEname.Text = custnob[0].ToString();
             TxtExrec.Text = (string.IsNullOrEmpty(custnob[1].ToString()) ? "" : custnob[1].ToString());
             string[] AC = LI.Getaccno(TxtExrec.Text, Session["BRCD"].ToString()).Split('_');
             ViewState["GLCODE"] = AC[0].ToString();
             TxtMarati.Focus();
         }
         else
         {
             TxtExrec.Focus();
             return;
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }