cuenta a la mitad
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user