Beispiel #1
0
 private void txtEuid_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)13)
     {
         var caja = InfoDryersBusiness.GetDryerBox(txtBox.Text.ToUpper());
         if (txtEuid.Text.Trim() != "" && txtBox.Text != "" && caja != null)
         {
             GrabaInformacion();
         }
         else
         {
             MessageBox.Show("Datos Incorrectos", "Módulo Packing", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1);
             txtEuid.Focus();
         }
     }
 }
Beispiel #2
0
 private void txtBox_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)13)
     {
         if (txtBox.Text.Trim() != "")
         {
             var caja = InfoDryersBusiness.GetDryerBox(txtBox.Text.ToUpper());
             if (caja == null)
             {
                 MessageBox.Show("Caja no existe", "Módulo Packing", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
                 txtBox.Text = "";
                 txtBox.Focus();
                 dataEuid.DataSource = null;
                 return;
             }
             else
             {
                 LlenaGrilla(txtBox.Text);
                 txtEuid.Focus();
             }
         }
     }
 }