瀏覽代碼

同步卡号

master
xxe 1 年之前
父節點
當前提交
867ffb2ff3
共有 1 個檔案被更改,包括 10 行新增0 行删除
  1. +10
    -0
      HKCardOUT/ViewModels/RootViewModel.cs

+ 10
- 0
HKCardOUT/ViewModels/RootViewModel.cs 查看文件

@@ -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


Loading…
取消
儲存