|
|
@@ -23,6 +23,7 @@ namespace HKCardOUT.ViewModels |
|
|
|
{ |
|
|
|
Foods.Add(""); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#region 属性 |
|
|
@@ -34,9 +35,9 @@ namespace HKCardOUT.ViewModels |
|
|
|
private AdInfoModel _mRAdinfo = new AdInfoModel(); |
|
|
|
|
|
|
|
public ObservableCollection<string> Foods { get; set; } = new ObservableCollection<string>(); |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
void FoodsInit(int[] ScreenLoc) |
|
|
|
{ |
|
|
@@ -60,6 +61,16 @@ namespace HKCardOUT.ViewModels |
|
|
|
{ |
|
|
|
FoodsInit(BindScreen); |
|
|
|
|
|
|
|
ThreadManage.GetInstance().StartLong(() => |
|
|
|
{ |
|
|
|
if (DateTime.Now.Hour == 16) |
|
|
|
{ |
|
|
|
LAdInfo.AInfo = new ObservableCollection<ScreenInfoDto>(); |
|
|
|
RAdinfo.AInfo = new ObservableCollection<ScreenInfoDto>(); |
|
|
|
} |
|
|
|
Thread.Sleep(5000); |
|
|
|
}, "清理屏幕数据", true); |
|
|
|
|
|
|
|
ThreadManage.GetInstance().StartLong(() => |
|
|
|
{ |
|
|
|
var model = (new HKCore()).PullDaySaleLog(BindScreen); |
|
|
@@ -105,7 +116,7 @@ namespace HKCardOUT.ViewModels |
|
|
|
data.UserName = DataBus.UserListDto |
|
|
|
.Where(t => t.Cards.Select(x => x.CardNum).Contains(data.CardNo)) |
|
|
|
.Select(x => x.Name).FirstOrDefault(); |
|
|
|
|
|
|
|
HKLog.HKLogImport.WriteInfo("取出刷卡信息" + data.ToJsonString()); |
|
|
|
App.Current.Dispatcher.Invoke(() => |
|
|
|
{ |
|
|
|
if (LAdInfo.Info != null && !string.IsNullOrEmpty(LAdInfo.Info.UserName)) |
|
|
@@ -118,6 +129,10 @@ namespace HKCardOUT.ViewModels |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
HKLog.HKLogImport.WriteInfo("未包含屏幕" + BindScreen[i]); |
|
|
|
} |
|
|
|
} |
|
|
|
Thread.Sleep(10); |
|
|
|
}, $"屏幕刷卡信息{BindScreen[0]}-{BindScreen[1]}", true); |
|
|
|