protected void TxtPrd_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string   GL     = BD.GetAccTypeGL(TxtPrd.Text, Session["BRCD"].ToString());
         string[] GLCODE = GL.Split('_');
         if (GLCODE[1] == "3")
         {
             ViewState["DRGL"] = GL[1].ToString();
             string PDName = customcs.GetProductName(TxtPrd.Text, Session["BRCD"].ToString());
             if (PDName != null)
             {
                 TxtPrdName.Text = PDName;
                 TxtMonth.Focus();
             }
             else
             {
                 WebMsgBox.Show("Product Number is Invalid....!", this.Page);
                 TxtPrd.Text = "";
                 TxtPrd.Focus();
             }
         }
         else
         {
             WebMsgBox.Show("Enter only Loan Product Code....!", this.Page);
             TxtPrd.Text = "";
             TxtPrd.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
示例#2
0
 protected void lnkAdd_Click(object sender, EventArgs e)
 {
     try
     {
         Btn_Submit.Visible = true;
         Btn_Modify.Visible = false;
         Btn_Delete.Visible = false;
         clear();
         TxtPrd.Focus();
     }
     catch (Exception ex)
     {
         ExceptionLogging.SendErrorToText(ex);
     }
 }