parte visual envios
This commit is contained in:
+25
-2
@@ -333,13 +333,36 @@ namespace compabetov2.database
|
||||
reader.GetString(1),
|
||||
reader.GetString(2),
|
||||
reader.GetString(3),
|
||||
reader.GetString(4)
|
||||
);
|
||||
reader.GetString(4),
|
||||
reader.GetString(5),
|
||||
reader.GetString(7),
|
||||
reader.GetDecimal(6)
|
||||
) ;
|
||||
|
||||
envios.Add(envio);
|
||||
}
|
||||
|
||||
return envios;
|
||||
}
|
||||
|
||||
public static List<DetalleEnvioModel> conseguirDetalleEnvio(int idEnvio)
|
||||
{
|
||||
List<DetalleEnvioModel> detallesEnvio = new List<DetalleEnvioModel>();
|
||||
|
||||
SQLiteDataReader reader = DAO.conseguirDetalleEnvioDAO(idEnvio);
|
||||
|
||||
while (reader.Read())
|
||||
{
|
||||
int idProducto = (int)reader.GetInt64(0);
|
||||
DetalleEnvioModel detalleEnvio = new DetalleEnvioModel(
|
||||
idEnvio,
|
||||
new Producto(idProducto, reader["nombre"].ToString()),
|
||||
(int)reader.GetInt64(2)
|
||||
);
|
||||
detallesEnvio.Add(detalleEnvio);
|
||||
}
|
||||
|
||||
return detallesEnvio;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user