personal arreglado

This commit is contained in:
carlos
2024-01-23 20:43:38 -06:00
parent f516c3d45a
commit cfd142504b
8 changed files with 3 additions and 7 deletions
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
-2
View File
@@ -171,8 +171,6 @@ namespace compabetov2.database
SQLiteCommand commandEmpleado = new SQLiteCommand(sqlEmpleado, conexion);
commandEmpleado.Parameters.AddWithValue("@fklogin", fkLogin);
commandEmpleado.Parameters.AddWithValue("@idempleado", idempleado);
commandEmpleado.ExecuteNonQuery();
transaccion.Commit();
+3 -5
View File
@@ -125,11 +125,9 @@ namespace compabetov2.database
while (reader.Read())
{
int fkIdLogin = -1;
try {
long fkIdLoginTemp = reader.GetInt64(13);
fkIdLogin = Convert.ToInt32(fkIdLoginTemp);
}catch (Exception ex) { }
long fkIdLoginTemp = reader.GetInt64(14);
int fkIdLogin = Convert.ToInt32(fkIdLoginTemp);
long id = reader.GetInt64(0);
Empleado empleado = new Empleado(
Convert.ToInt32(id),
Binary file not shown.
Binary file not shown.
Binary file not shown.