コード例 #1
0
 protected void TxtFBRCD_TextChanged(object sender, EventArgs e)
 {
     try
     {
         if (TxtFBRCD.Text != "")
         {
             string bname = AST.GetBranchName(TxtFBRCD.Text);
             if (bname != null)
             {
                 TxtFBRCDName.Text = bname;
             }
             else
             {
                 WebMsgBox.Show("Enter valid Branch Code.....!", this.Page);
                 TxtFBRCD.Text = "";
                 TxtFBRCD.Focus();
             }
         }
         else
         {
             WebMsgBox.Show("Enter Branch Code!....", this.Page);
             TxtFBRCD.Text = "";
             TxtFBRCD.Focus();
         }
     }
     catch (Exception ex)
     {
         ExceptionLogging.SendErrorToText(ex);
     }
 }
コード例 #2
0
    protected void TxtFBRCD_TextChanged(object sender, EventArgs e)
    {
        if (TxtFBRCD.Text != "")
        {
            if (TxtTBRCD.Text != "" && (Convert.ToInt32(TxtFBRCD.Text) > Convert.ToInt32(TxtTBRCD.Text)))
            {
                WebMsgBox.Show("Invalid FROM and TO Branch Code....!", this.Page);
                //Clear();
                return;
            }

            string bname = AST.GetBranchName(TxtFBRCD.Text);
            if (bname != null)
            {
                TxtFBRCDName.Text = bname;
                TxtTBRCD.Focus();
            }
            else
            {
                WebMsgBox.Show("Enter valid Branch Code.....!", this.Page);
                TxtFBRCD.Text = "";
                TxtFBRCD.Focus();
            }
        }
        else
        {
            WebMsgBox.Show("Enter Branch Code!....", this.Page);
            TxtFBRCD.Text = "";
            TxtFBRCD.Focus();
        }
    }
コード例 #3
0
    protected void txttodate_TextChanged(object sender, EventArgs e)
    {
        try
        {
            DateTime Edate, TDATE;
            Edate = Convert.ToDateTime(Session["ENTRYDATE"].ToString());
            TDATE = DateTime.Parse(txttodate.Text);


            if (Edate < TDATE)
            {
                txttodate.Text = "";
                WebMsgBox.Show("ToDate Should Not Greater Than EntryDate", this.Page);
                return;
            }
            else
            {
                TxtFBRCD.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
コード例 #4
0
 protected void TxtTDate_TextChanged(object sender, EventArgs e)
 {
     try
     {
         TxtFBRCD.Focus();
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
コード例 #5
0
 public void Clear()
 {
     // TxtAsOnDate.Text = "";
     TxtFBRCD.Text     = "";
     TxtFBRCDName.Text = "";
     TxtTBRCD.Text     = "";
     TxtTBRCDName.Text = "";
     TxtFPRD.Text      = "";
     TxtTPRD.Text      = "";
     TxtFPRDName.Text  = "";
     TXtTPRDName.Text  = "";
     TxtFBRCD.Focus();
 }