瀏覽代碼

鸿鹄中学版本

煮面机(新)
lyw 2 月之前
父節點
當前提交
5b02db498a
共有 4 個文件被更改,包括 28 次插入13 次删除
  1. +4
    -1
      BPASmartClient.Device/BaseDevice.cs
  2. +10
    -9
      BPASmartClient.MorkSUpgradedVer/Control_MorkSUpgradedVer.cs
  3. +1
    -1
      BPASmartClient/App.xaml
  4. +13
    -2
      BPASmartClient/App.xaml.cs

+ 4
- 1
BPASmartClient.Device/BaseDevice.cs 查看文件

@@ -405,7 +405,10 @@ namespace BPASmartClient.Device
#region 任务流程
TaskManage.GetInstance.StartLong(new Action(() =>
{
MainTask();
if (IsConnected)
{
MainTask();
}
Thread.Sleep(10);
}), $"MainTask:{DeviceId}", true);
#endregion


+ 10
- 9
BPASmartClient.MorkSUpgradedVer/Control_MorkSUpgradedVer.cs 查看文件

@@ -863,15 +863,16 @@ namespace BPASmartClient.MorkSUpgradedVer
{
if (mORKS.RBTakeNoodleTask.ElementAt(0).Loc != 0)
{
if (!mORKS.TurntableLocLists.Contains(mORKS.RBTakeNoodleTask.ElementAt(0).Loc))
{
TurntableStart(mORKS.RBTakeNoodleTask.ElementAt(0).Loc);
}
else
{
DeviceProcessLogShow("未找到可用的物料信息");
mORKS.TurntableLocLists.Clear();
}
TurntableStart(mORKS.RBTakeNoodleTask.ElementAt(0).Loc);
//if (!mORKS.TurntableLocLists.Contains(mORKS.RBTakeNoodleTask.ElementAt(0).Loc))
//{
// TurntableStart(mORKS.RBTakeNoodleTask.ElementAt(0).Loc);
//}
//else
//{
// DeviceProcessLogShow("未找到可用的物料信息");
// mORKS.TurntableLocLists.Clear();
//}
}
else
{


+ 1
- 1
BPASmartClient/App.xaml 查看文件

@@ -4,7 +4,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:con="clr-namespace:BPASmartClient.CustomResource.Converters;assembly=BPASmartClient.CustomResource"
xmlns:local="clr-namespace:BPASmartClient"
xmlns:myConvert="[myConvert ]clr-namespace:MyConvert"
xmlns:myConvert="clr-namespace:MyConvert"
xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2">
<Application.Resources>
<ResourceDictionary>


+ 13
- 2
BPASmartClient/App.xaml.cs 查看文件

@@ -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(); }));
}



Loading…
取消
儲存