|
|
@@ -31,7 +31,7 @@ namespace BPASmartClient |
|
|
|
protected override void OnStartup(StartupEventArgs e) |
|
|
|
{ |
|
|
|
base.OnStartup(e); |
|
|
|
InternetInfo.IsEnableNetwork = true; |
|
|
|
InternetInfo.IsEnableNetwork = false; |
|
|
|
DataRead(); |
|
|
|
SystemHelper.GetInstance.CreateDesktopShortcut(); |
|
|
|
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; |
|
|
@@ -40,7 +40,7 @@ namespace BPASmartClient |
|
|
|
mainView.Show(); |
|
|
|
|
|
|
|
SplitScreenDisplay(); |
|
|
|
NoCompleteOrderInit(); |
|
|
|
//NoCompleteOrderInit(); |
|
|
|
ActionManage.GetInstance.Register(new Action<object>(par => |
|
|
|
{ |
|
|
|
if (par != null) |
|
|
@@ -149,6 +149,16 @@ namespace BPASmartClient |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
public void OrderClean() |
|
|
|
{ |
|
|
|
Json<NoodOrder>.Data.historyOrderLists.ToList().ForEach(o => |
|
|
|
{ |
|
|
|
if (DateTime.Now.Month- o.Date.Month>2) |
|
|
|
{ |
|
|
|
Json<NoodOrder>.Data.historyOrderLists.Remove(o); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 输入读取 |
|
|
|
/// </summary> |
|
|
@@ -156,6 +166,7 @@ namespace BPASmartClient |
|
|
|
{ |
|
|
|
Json<KeepDataBase>.Read(); |
|
|
|
Json<NoodOrder>.Read(); |
|
|
|
OrderClean(); |
|
|
|
Task.Run(new Action(() => { Sqlite<BPASmartClient.Model.Alarm>.GetInstance.GetData(); })); |
|
|
|
} |
|
|
|
|
|
|
|