コード例 #1
0
 protected void TxtTAcc_TextChanged(object sender, EventArgs e)
 {
     try
     {
         TxtTAccName.Text = BD.AccName(TxtTAcc.Text, TxtFPRD.Text, TxtTPRD.Text, Session["BRCD"].ToString());
         TrailEntry.Focus();
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
コード例 #2
0
 protected void TxtTPRD_TextChanged(object sender, EventArgs e)
 {
     try
     {
         //Added By Amol on 22092017 as per ambika mam instruction
         if (BD.GetProdOperate(Session["BRCD"].ToString(), TxtTPRD.Text.Trim().ToString()).ToString() != "3")
         {
             string tds = BD.GetLoanGL(TxtTPRD.Text, Session["BRCD"].ToString());
             if (tds != null)
             {
                 string[] TD = tds.Split('_');
                 STR = MT.GetDepositCat(Session["BRCD"].ToString(), TxtFPRD.Text, "MISTRF");
                 if (STR == "MIS" || STR == "QIS")
                 {
                     if (TD.Length > 1)
                     {
                     }
                     //TXtTPRDName.Text = TD[0].ToString();
                     //TxtFAcc.Focus();
                     TxtFPRDName.Text = TD[0].ToString();
                     TXtTPRDName.Text = TD[0].ToString();
                     TxtFPRD.Text     = TxtFPRD.Text;
                     TrailEntry.Focus();
                 }
                 else
                 {
                     WebMsgBox.Show("Invalid Deposit Code,Enter  MIS/QIS code only...!", this.Page);
                     Clear();
                     return;
                 }
             }
             else
             {
                 WebMsgBox.Show("Invalid Deposit Code...!", this.Page);
                 Clear();
                 return;
             }
         }
         else
         {
             TxtTPRD.Text     = "";
             TXtTPRDName.Text = "";
             lblMessage.Text  = "Product is not operating...!!";
             ModalPopup.Show(this.Page);
             return;
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
コード例 #3
0
 protected void TxtTPRD_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string[] TD = BD.GetInvGL1(TxtTPRD.Text, Session["BRCD"].ToString()).Split('_');
         if (TD.Length > 1)
         {
             TXtTPRDName.Text = TD[0].ToString();
             TrailEntry.Focus();
         }
         else
         {
             TxtTPRD.Text = "";
             TxtTPRD.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }