|
|
@@ -2,6 +2,7 @@ |
|
|
|
using DTO; |
|
|
|
using Helper.BigScreen; |
|
|
|
using HKCardOUT.Helper; |
|
|
|
using HKCardOUT.Logic; |
|
|
|
using HKCardOUT.Logic.Model; |
|
|
|
using HKCardOUT.Logic.Service; |
|
|
|
using HKCardOUT.Views; |
|
|
@@ -42,6 +43,7 @@ namespace HKCardOUT.ViewModels |
|
|
|
InsertData(); |
|
|
|
DataCenter.InitQueeue(); |
|
|
|
DataCenter.CreateData(); |
|
|
|
SyncCard(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
@@ -287,6 +289,14 @@ namespace HKCardOUT.ViewModels |
|
|
|
Thread.Sleep(1000); |
|
|
|
}, "写入数据", true); |
|
|
|
} |
|
|
|
private void SyncCard() |
|
|
|
{ |
|
|
|
ThreadManage.GetInstance().StartLong(() => |
|
|
|
{ |
|
|
|
RemoteService.GetCardStuatas(); |
|
|
|
Thread.Sleep(1000 * 60 * 60); |
|
|
|
}, "同步卡号", true); |
|
|
|
} |
|
|
|
|
|
|
|
private static ConcurrentQueue<SaleLogDto> Stacks = new ConcurrentQueue<SaleLogDto>(); |
|
|
|
#endregion |
|
|
|