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