예제 #1
0
 protected void Txtprdcode_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string   GL     = BD.GetAccTypeGL(Txtprdcode.Text, Session["BRCD"].ToString());
         string[] GLCODE = GL.Split('_');
         ViewState["DRGL"]       = GL[1].ToString();
         AutoPlGlName.ContextKey = Session["BRCD"].ToString() + "_" + Txtprdcode.Text + "_" + ViewState["DRGL"].ToString();
         string PDName = customcs.GetProductName(Txtprdcode.Text, Session["BRCD"].ToString());
         if (PDName != null)
         {
             Txtprdname.Text = PDName;
             Txtaccno.Focus();
         }
         else
         {
             WebMsgBox.Show("Product Number is Invalid....!", this.Page);
             Txtprdcode.Text = "";
             Txtprdcode.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
예제 #2
0
 protected void Txtaccno_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string[] AN;
         AN = customcs.GetPLAccName(Txtaccno.Text, Session["BRCD"].ToString()).Split('_');
         if (AN != null)
         {
             Txtaccname.Text = AN[0].ToString();
             Txteffcdate.Focus();
         }
         else
         {
             WebMsgBox.Show("Account Number is Invalid....!", this.Page);
             Txtaccno.Text = "";
             Txtaccno.Focus();
         }
         CallEdit();
         Bindgrid("PA");
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
예제 #3
0
 protected void Txtaccname_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string   CUNAME  = Txtaccname.Text;
         string[] custnob = CUNAME.Split('_');
         if (custnob.Length > 1)
         {
             Txtaccname.Text = custnob[0].ToString();
             Txtaccno.Text   = custnob[1].ToString();
         }
         else
         {
             WebMsgBox.Show("Account Number is Invalid....!", this.Page);
             Txtaccno.Text = "";
             Txtaccno.Focus();
         }
         Bindgrid("PA");
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }