Ejemplo n.º 1
0
 private void BtnOrderNo_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new Form_Orders(product.product_code);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             lblOrderNo.Text = frm.OrderNo;
             LoadData();
             lblMessage.Text = Constants.WEIGHT_WAITING;
         }
     }
     catch (Exception ex)
     {
         DisplayNotification("Error", ex.Message, Color.Red);
     }
 }
Ejemplo n.º 2
0
 private void BtnOrderNo_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new Form_Orders(string.Empty);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             lblOrderNo.Text = frm.OrderNo;
             LoadOrder();
             txtBarcodeNo.Text = "";
             txtBarcodeNo.Focus();
             btnView.Enabled = true;
         }
     }
     catch (Exception ex)
     {
         lblOrderNo.Text = "";
         DisplayNotification("Error", ex.Message, Color.Red);
     }
 }
 private void BtnOrderNo_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new Form_Orders(string.Empty);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             lblOrderNo.Text = frm.OrderNo;
             LoadOrder();
             lblProduct.Text   = "";
             lblLotNo.Text     = "";
             txtBarcodeNo.Text = "";
             txtBarcodeNo.Focus();
             lblMessage.Text = Constants.PLEASE_SCAN;
         }
     }
     catch (Exception ex)
     {
         lblOrderNo.Text = "";
         DisplayNotification("Error", ex.Message, Color.Red);
     }
 }