示例#1
0
 private void btSiguiente_Click(object sender, EventArgs e)
 {
     if (lbCantidad.Text != "(0)")
     {
         IronMountainFunctions.RecibirCajasCarrito();
         actualizarCantidad(0);
     }
 }
示例#2
0
 private void btSiguiente_Click(object sender, EventArgs e)
 {
     if (lbCantidad.Text != "(0)")
     {
         IronMountainFunctions.EnviarCajasCarrito();
         btActualizar_Click(sender, e);
     }
 }
示例#3
0
 private void btSiguiente_Click(object sender, EventArgs e)
 {
     if (lbCantidad.Text != "(0)")
     {
         string numero = Microsoft.VisualBasic.Interaction.InputBox("Escriba el numero de caja:", "Numero de Caja", "");
         if (numero != "")
         {
             int    n;
             string check  = "REEMPLAZAR";
             string strSQL = "SELECT COUNT(*) FROM INVENTARIO_GENERAL WHERE NUMERO_DE_CAJA = '" + numero + "'";
             try
             {
                 if (!Conexion.conectar())
                 {
                     return;
                 }
                 if (!Conexion.iniciaCommand(strSQL))
                 {
                     return;
                 }
                 if (!Conexion.ejecutarQuery())
                 {
                     return;
                 }
                 n = Conexion.ejecutarQueryEscalar();
                 Conexion.cerrar();
                 LoadingScreen.cerrarLoading();
             }
             catch (Exception ex)
             {
                 GlobalFunctions.casoError(ex, strSQL);
                 return;
             }
             if (n > 0)
             {
                 check = Microsoft.VisualBasic.Interaction.InputBox("La Caja no es nueva\nEscriba \"AGREGAR\" para agregar el documento o \"REEMPLAZAR\" para reemplazar el contenido", "Ya registrado", "");
             }
             if (check == "REEMPLAZAR")
             {
                 IronMountainFunctions.ArmarCajasCarrito(numero, true);
                 btBuscar_Click(sender, e);
             }
             if (check == "AGREGAR")
             {
                 IronMountainFunctions.ArmarCajasCarrito(numero, false);
                 btBuscar_Click(sender, e);
             }
         }
     }
 }