protected void TxtTYYYY_TextChanged(object sender, EventArgs e)
 {
     try
     {
         int Len = 0;
         Len = TxtFYYYY.Text.Length;
         if (Len != 4)
         {
             WebMsgBox.Show("Inavlid Year, Enter valid Year....!", this.Page);
             TxtTYYYY.Text = "";
             TxtTYYYY.Focus();
         }
         else if (Convert.ToInt32(TxtFYYYY.Text) != Convert.ToInt32(TxtTYYYY.Text))
         {
             WebMsgBox.Show("Invalid To Year, From year and To Year Must be same...!", this.Page);
             TxtTYYYY.Text = "";
             TxtTYYYY.Focus();
         }
         else
         {
             Btn_Report.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
 protected void TxtTBRCD_TextChanged(object sender, EventArgs e)
 {
     try
     {
         if (TxtTBRCD.Text != "")
         {
             string bname = AST.GetBranchName(TxtTBRCD.Text);
             if (bname != null)
             {
                 TxtTBRCDName.Text = bname;
                 Btn_Report.Focus();
             }
             else
             {
                 WebMsgBox.Show("Enter valid Branch Code.....!", this.Page);
                 TxtTBRCD.Text = "";
                 TxtTBRCD.Focus();
             }
         }
         else
         {
             WebMsgBox.Show("Enter Branch Code!....", this.Page);
             TxtTBRCD.Text = "";
             TxtTBRCD.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
 protected void Btn_TrailEntry_Click(object sender, EventArgs e)
 {
     try
     {
         DT = DC.GetTrailRun("", DdlCalcType.SelectedValue.ToString(), Session["EntryDate"].ToString(), TxtFDate.Text, TxtTDate.Text, TxtFPRD.Text, TxtFPRD.Text, TxtFAcc.Text, TxtTAcc.Text, TxtDiviRate.Text, Session["BRCD"].ToString(), Session["MID"].ToString());
         if (DT.Rows.Count > 0)
         {
             if (DT.Rows.Count > 2)
             {
                 WebMsgBox.Show("Calculation Process completed, You can run Trail Report...", this.Page);
                 Btn_Report.Focus();
                 FL = "Insert";//Dhanya Shetty 23/09/2017
                 string Res = CLM.LOGDETAILS(FL, Session["BRCD"].ToString(), Session["MID"].ToString(), "DivCalc_Trail" + "_" + Session["LOGINCODE"].ToString() + "", "00", Session["MID"].ToString());
             }
             else
             {
                 WebMsgBox.Show(DT.Rows[0]["RESULT"].ToString(), this.Page);
             }
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
Beispiel #4
0
 protected void TxtYYYY_TextChanged(object sender, EventArgs e)
 {
     try
     {
         int Len = 0;
         Len = TxtYYYY.Text.Length;
         if (Len != 4)
         {
             WebMsgBox.Show("Inavlid Month, Enter Valid Month....!", this.Page);
             TxtYYYY.Text = "";
             TxtYYYY.Focus();
         }
         else
         {
             Btn_Report.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }