Esempio n. 1
0
 public void SenInsertarSolicitud(string tabla, string fecha, string estado, string transferenciaExterna)
 {
     try
     {
         string Parametro = "INSERT INTO " + tabla + " VALUES (0, '" + fecha + "', '" + estado + "', '" + transferenciaExterna + "');";
         CapaDatosOperacionesExternas cpd = new CapaDatosOperacionesExternas();
         cpd.EjectuarOperacionExterna(Parametro);
         //MessageBox.Show("Ingreso de datos exitoso");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Esempio n. 2
0
 public void SenInsertar(string tabla, string codigo, string fecha, string importe, string nota, string cuenta, string benExterno, string agencia, string empleado, string estado, string status)
 {
     try
     {
         string Parametro = "INSERT INTO " + tabla + " VALUES ('" + codigo + "', '" + fecha + "', '" + importe + "', '" + nota + "', '" + cuenta + "', '" + benExterno + "', '" + agencia + "', '" + empleado + "', '" + estado + "', '" + status + "');";
         CapaDatosOperacionesExternas cpd = new CapaDatosOperacionesExternas();
         cpd.EjectuarOperacionExterna(Parametro);
         MessageBox.Show("Ingreso de datos exitoso");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }