Example #1
0
 private void tbProductQty_Leave(object sender, EventArgs e)
 {
     try
     {
         //tbProductAvailableQty
         if (tbProductAvailableQty.Text == null || tbProductAvailableQty.Text == "")
         {
             JIMessageBox.ExclamationMessage("Available Stock Field is Empty !");
             return;
         }
         {
             try
             {
                 if (Convert.ToInt32(tbProductQty.Text) > Convert.ToInt32(tbProductAvailableQty.Text))
                 {
                     JIMessageBox.AsteriskMessage("Available Stock is :  " + tbProductAvailableQty.Text + " !");
                     tbProductQty.Focus();
                 }
             }
             catch (Exception)
             {
                 tbProductQty.Focus();
                 JIMessageBox.ErrorMessage("Please Enter Digit !");
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         tbAdvance.Focus();
     }
 }