cambios menores

This commit is contained in:
carlos
2024-01-23 21:03:31 -06:00
parent cfd142504b
commit 8b4563fa4e
11 changed files with 144 additions and 93 deletions
+4 -3
View File
@@ -324,7 +324,7 @@ namespace compabetov2.database
conexion.Open();
string sql = "SELECT * FROM Empleado";
string sql = "SELECT * FROM Empleado WHERE idempleado > 1";
SQLiteCommand command = new SQLiteCommand(sql, conexion);
reader = command.ExecuteReader();
@@ -914,7 +914,7 @@ namespace compabetov2.database
conexion.Open();
string sql = "SELECT * FROM cuenta WHERE estado = 'ACTIVO'";
string sql = "SELECT * FROM cuenta ORDER BY idCuenta DESC";
SQLiteCommand command = new SQLiteCommand(sql, conexion);
reader = command.ExecuteReader();
@@ -1097,6 +1097,7 @@ namespace compabetov2.database
SQLiteCommand commandCuenta = new SQLiteCommand(sqlCuenta, conexion);
commandCuenta.Parameters.AddWithValue("@idCuenta", cuenta.id);
commandCuenta.ExecuteNonQuery();
SQLiteCommand commandConsulta = new SQLiteCommand(sqlIdVenta, conexion);
SQLiteDataReader reader = commandConsulta.ExecuteReader();
@@ -1269,7 +1270,7 @@ namespace compabetov2.database
conexion.Open();
string sql = "SELECT * FROM envios";
string sql = "SELECT * FROM envios ORDER BY idEnvios DESC";
SQLiteCommand command = new SQLiteCommand(sql, conexion);
reader = command.ExecuteReader();