parte visual envios

This commit is contained in:
carlos
2024-01-23 17:44:38 -06:00
parent da855a6c85
commit 2b2624fb41
11 changed files with 183 additions and 12 deletions
+25 -2
View File
@@ -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;
}
}
}