pry hace 2 años
padre
commit
4725f2db4a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      HKCardOUT/Logic/Service/HKCore.cs

+ 2
- 1
HKCardOUT/Logic/Service/HKCore.cs Ver fichero

@@ -257,7 +257,8 @@ namespace HKCardOUT.Logic.Service
/// <returns></returns>
public List<SaleLog> PullDaySaleLog(int screen)
{
var data = DbContext.Context.Queryable<SaleLog>()
var today = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
var data = DbContext.Context.Queryable<SaleLog>().Where(t => t.CreateTime >= today)
.WhereIF(screen == 0, t => t.Location == "3" || t.Location == "4")
.WhereIF(screen == 1, t => t.Location == "1" || t.Location == "2")
.WhereIF(screen == 2, t => t.Location == "5" || t.Location == "6")


Cargando…
Cancelar
Guardar