bajar cambios

This commit is contained in:
carlos
2024-02-03 06:58:01 -06:00
parent d439cb5fbb
commit bfb0a71b42
16 changed files with 308 additions and 12 deletions
-1
View File
@@ -1110,7 +1110,6 @@ namespace compabetov2.database
}
foreach (DetalleCuentaModel detalleCuenta in detallesCuentas)
{
MessageBox.Show(detalleCuenta.producto.idProducto.ToString());
SQLiteCommand commandEmpleado = new SQLiteCommand(sqlDetalle, conexion);
commandEmpleado.Parameters.AddWithValue("@idVenta", idVenta);
commandEmpleado.Parameters.AddWithValue("@idProducto", detalleCuenta.producto.idProducto);
+22 -3
View File
@@ -456,17 +456,36 @@ namespace compabetov2.database
int.Parse(reader["stock"].ToString())
);
productos.Add(producto);
}
return productos;
}
public static List<Envio> conseguirEnvioMes(DateTime fecha)
public static Dictionary<string, dynamic> conseguirEnvioMes(DateTime fecha)
{
List<Envio> envios = new List<Envio>();
Dictionary<string,dynamic> dic = new Dictionary<String,dynamic>();
string formato = "dd/MM/yyyy";
List<Envio> enviosDia = new List<Envio>();
List<Envio> enviosMes = new List<Envio>();
return envios;
SQLiteDataReader reader = DAO.conseguirEnvioMesDAO(fecha);
while (reader.Read()) {
Envio envio = new Envio((int)reader.GetInt64(0),"","","", "","","",0);
string[] fecha_hora = envio.fecha.Split(' ');
string fechaVentaStr = fecha_hora[0];
DateTime.TryParseExact(fechaVentaStr, formato, CultureInfo.InvariantCulture, DateTimeStyles.None, out DateTime fechaVenta);
if (fecha.Day == fechaVenta.Day)
{
enviosDia.Add(envio);
}
enviosDia.Add(envio);
}
return dic;
}
}
}