cambios menores
This commit is contained in:
+4
-3
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user