xxe hace 2 años
padre
commit
3f8c90087a
Se han modificado 2 ficheros con 1 adiciones y 10 borrados
  1. +1
    -9
      HKCardOUT/Logic/Service/HKCore.cs
  2. +0
    -1
      HKCardOUT/ViewModels/RootViewModel.cs

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

@@ -17,13 +17,6 @@ namespace HKCardOUT.Logic.Service
{
public class HKCore
{
public void GetRecrod()
{
MemoryBus.CardRecord = DbContext.Context.Queryable<SaleLog>()
.Where(t => t.CreateTime.Year == DateTime.Now.Year)
.Where(t => t.CreateTime.Month == DateTime.Now.Month)
.Where(t => t.CreateTime.Day == DateTime.Now.Day).ToList();
}
List<SaleLog> Commom(SaleLog input)
{
if (DataBus.StartDevice)
@@ -33,7 +26,7 @@ namespace HKCardOUT.Logic.Service
HKLogImport.WriteInfo("设备出餐状态:" + checkDevice);
if (checkDevice) return null;
}
var Old = MemoryBus.CardRecord
var Old = DbContext.Context.Queryable<SaleLog>()
.Where(t => t.CardNo == input.CardNo)
.Where(t => t.CreateTime.Year == DateTime.Now.Year)
.Where(t => t.CreateTime.Month == DateTime.Now.Month)
@@ -308,7 +301,6 @@ namespace HKCardOUT.Logic.Service
entity.State = true;
HKLogImport.WriteInfo("正在写入数据库,当前数据:" + entity.ToJson());
DbContext.Context.Insertable(entity).CallEntityMethod(t => t.Create()).ExecuteReturnEntity();
GetRecrod();
}
}
}


+ 0
- 1
HKCardOUT/ViewModels/RootViewModel.cs Ver fichero

@@ -37,7 +37,6 @@ namespace HKCardOUT.ViewModels
this.Closed += RootViewModel_Closed;
var serv = Container.Get<HKCore>();
serv.GetAllCardStatus();
serv.GetRecrod();
ProcessCard();
InsertData();
}


Cargando…
Cancelar
Guardar