agrega cliente cuenta

This commit is contained in:
carlos
2024-02-03 07:02:31 -06:00
parent 648aee965c
commit db5a82b9e1
8 changed files with 9 additions and 9 deletions
+7 -4
View File
@@ -463,9 +463,9 @@ namespace compabetov2.database
return productos;
}
public static Dictionary<string, dynamic> conseguirEnvioMes(DateTime fecha)
public static Dictionary<string, List<Envio>> conseguirEnvioMes(DateTime fecha)
{
Dictionary<string,dynamic> dic = new Dictionary<String,dynamic>();
Dictionary<string, List<Envio>> dic = new Dictionary<string, List<Envio>>();
string formato = "dd/MM/yyyy";
List<Envio> enviosDia = new List<Envio>();
List<Envio> enviosMes = new List<Envio>();
@@ -473,7 +473,7 @@ namespace compabetov2.database
SQLiteDataReader reader = DAO.conseguirEnvioMesDAO(fecha);
while (reader.Read()) {
Envio envio = new Envio((int)reader.GetInt64(0),"","","", "","","",0);
Envio envio = new Envio((int)reader.GetInt64(0),reader.GetString(1),"","", "","","",0);
string[] fecha_hora = envio.fecha.Split(' ');
string fechaVentaStr = fecha_hora[0];
@@ -482,9 +482,12 @@ namespace compabetov2.database
{
enviosDia.Add(envio);
}
enviosDia.Add(envio);
enviosMes.Add(envio);
}
dic.Add("mes", enviosMes);
dic.Add("dia", enviosDia);
return dic;
}
}