cuenta a la mitad

This commit is contained in:
carlos
2024-01-22 02:50:41 -06:00
parent 068491d22e
commit 9f07542364
12 changed files with 199 additions and 137 deletions
+20
View File
@@ -240,17 +240,37 @@ namespace compabetov2.database
string fecha = reader["fecha"].ToString();
string estado = reader["estado"].ToString();
string descripcion = reader["descripcion"].ToString();
string cliente = reader["cliente"].ToString();
Cuenta cuenta = new Cuenta(
(int) total,
fecha,
estado,
descripcion,
cliente,
(int)idCuenta
);
cuentas.Add(cuenta);
}
return cuentas;
}
public static List<DetalleCuentaModel> conseguirDetalleCuante(int idCuenta)
{
List<DetalleCuentaModel> detallesCuentas = new List<DetalleCuentaModel>();
SQLiteDataReader reader = DAO.conseguirDetalleCuanteDAO(idCuenta);
while (reader.Read())
{
DetalleCuentaModel detalleCuenta = new DetalleCuentaModel(
new Producto(0, reader["nombre"].ToString()),
(int)reader.GetInt64(1)
);
detallesCuentas.Add(detalleCuenta);
}
return detallesCuentas;
}
}
}