diff --git a/BPASmartClient.Business/BPASmartClient.Business.csproj b/BPASmartClient.Business/BPASmartClient.Business.csproj
index 39f36251..87d1b161 100644
--- a/BPASmartClient.Business/BPASmartClient.Business.csproj
+++ b/BPASmartClient.Business/BPASmartClient.Business.csproj
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/BPASmartClient.Business/Plugin/DeviceMgr.cs b/BPASmartClient.Business/Plugin/DeviceMgr.cs
index 887ec80a..d960924c 100644
--- a/BPASmartClient.Business/Plugin/DeviceMgr.cs
+++ b/BPASmartClient.Business/Plugin/DeviceMgr.cs
@@ -6,6 +6,7 @@ using BPASmartClient.Http;
using BPASmartClient.Message;
using BPASmartClient.Model;
using BPASmartClient.Model.小炒机;
+using BPASmartClient.Model.调酒机;
using BPASmartClient.Peripheral;
using Newtonsoft.Json;
using System;
@@ -95,7 +96,7 @@ namespace BPASmartClient.Business
#region 获取物料数据
string result = string.Empty;
- for (int i = 0; i < 3; i++)
+ for (int i = 0; i < 4; i++)
{
try
{
@@ -138,6 +139,15 @@ namespace BPASmartClient.Business
}.Publish();
MessageLog.GetInstance.Show("接收到【 API 】获取的小炒流程信息");
}
+ else if (PushType == 3)
+ {
+ new MorkMWGoodsEvent()
+ {
+ DeviceId = device.DeviceId,
+ morkMWPushMessage = JsonConvert.DeserializeObject(result)
+ }.Publish();
+ MessageLog.GetInstance.Show("接收到【API】获取的调酒机配方信息");
+ }
}
catch (Exception ex)
{
diff --git a/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj b/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj
index 68a96d9a..b728b8dd 100644
--- a/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj
+++ b/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj
@@ -410,7 +410,7 @@
-
+
diff --git a/BPASmartClient.Device/BPASmartClient.Device.csproj b/BPASmartClient.Device/BPASmartClient.Device.csproj
index 34e40440..91f97e5b 100644
--- a/BPASmartClient.Device/BPASmartClient.Device.csproj
+++ b/BPASmartClient.Device/BPASmartClient.Device.csproj
@@ -7,7 +7,7 @@
-
+
diff --git a/BPASmartClient.JXJFoodBigStation/Properties/Settings.Designer.cs b/BPASmartClient.JXJFoodBigStation/Properties/Settings.Designer.cs
index 804602c2..02053c8a 100644
--- a/BPASmartClient.JXJFoodBigStation/Properties/Settings.Designer.cs
+++ b/BPASmartClient.JXJFoodBigStation/Properties/Settings.Designer.cs
@@ -12,7 +12,7 @@ namespace BPASmartClient.JXJFoodBigStation.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.3.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
diff --git a/BPASmartClient.JXJFoodSmallStation/BPASmartClient.JXJFoodSmallStation.csproj b/BPASmartClient.JXJFoodSmallStation/BPASmartClient.JXJFoodSmallStation.csproj
index fc69dd26..61188e67 100644
--- a/BPASmartClient.JXJFoodSmallStation/BPASmartClient.JXJFoodSmallStation.csproj
+++ b/BPASmartClient.JXJFoodSmallStation/BPASmartClient.JXJFoodSmallStation.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/BPASmartClient.Model/BPASmartClient.Model.csproj b/BPASmartClient.Model/BPASmartClient.Model.csproj
index 5c60f04d..660a436c 100644
--- a/BPASmartClient.Model/BPASmartClient.Model.csproj
+++ b/BPASmartClient.Model/BPASmartClient.Model.csproj
@@ -17,7 +17,7 @@
-
+
diff --git a/BPASmartClient.Model/MixWinkModel.cs b/BPASmartClient.Model/MixWinkModel.cs
new file mode 100644
index 00000000..ae41ddbb
--- /dev/null
+++ b/BPASmartClient.Model/MixWinkModel.cs
@@ -0,0 +1,25 @@
+using Microsoft.Toolkit.Mvvm.ComponentModel;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BPASmartClient.Model
+{
+ public class MixWinkModel:ObservableObject
+ {
+ private string _materialName;
+ public string materialName { get { return _materialName; } set { _materialName = value;OnPropertyChanged(); } }
+ ///
+ /// 位置
+ ///
+ private int _loc;
+ public int Loc { get { return _loc; } set { _loc = value;OnPropertyChanged(); } }
+ ///
+ /// 停留时间
+ ///
+ public int Time { get { return _time; } set { _time = value;OnPropertyChanged(); } }
+ private int _time;
+ }
+}
diff --git a/BPASmartClient.Model/订单/MorkMWSimOrder.cs b/BPASmartClient.Model/订单/MorkMWSimOrder.cs
new file mode 100644
index 00000000..60e110fa
--- /dev/null
+++ b/BPASmartClient.Model/订单/MorkMWSimOrder.cs
@@ -0,0 +1,14 @@
+using BPA.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BPASmartClient.Model.订单
+{
+ public class MorkMWSimOrder:BaseEvent
+ {
+ public List mixWink = new List();
+ }
+}
diff --git a/BPASmartClient.Model/调酒机/MorkMWGoodsEvent.cs b/BPASmartClient.Model/调酒机/MorkMWGoodsEvent.cs
new file mode 100644
index 00000000..f9814dba
--- /dev/null
+++ b/BPASmartClient.Model/调酒机/MorkMWGoodsEvent.cs
@@ -0,0 +1,15 @@
+using BPA.Message;
+using BPA.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BPASmartClient.Model.调酒机
+{
+ public class MorkMWGoodsEvent : BaseEvent
+ {
+ public MORKMWPushMessage morkMWPushMessage = new MORKMWPushMessage();
+ }
+}
diff --git a/BPASmartClient.MorkF/BPASmartClient.MorkF.csproj b/BPASmartClient.MorkF/BPASmartClient.MorkF.csproj
index 2984a36c..e7ac07e7 100644
--- a/BPASmartClient.MorkF/BPASmartClient.MorkF.csproj
+++ b/BPASmartClient.MorkF/BPASmartClient.MorkF.csproj
@@ -10,7 +10,7 @@
-
+
diff --git a/BPASmartClient.MorkF/Control_MorkF.cs b/BPASmartClient.MorkF/Control_MorkF.cs
index 085bf88e..8b657e91 100644
--- a/BPASmartClient.MorkF/Control_MorkF.cs
+++ b/BPASmartClient.MorkF/Control_MorkF.cs
@@ -33,7 +33,7 @@ namespace BPASmartClient.MorkF
///
/// 菜品库while循环最大sleep次数
///
- private const int materialSleepCount = 400;
+ private const int materialSleepCount = 600;
///
/// 菜品库while循环每次sleep时间
@@ -54,17 +54,17 @@ namespace BPASmartClient.MorkF
private const int materialHigh = 34500;
///
- ///
+ /// 菜品库第一层的起始基点,为最下层盒子的中间点
///
private const int materialOne = 34500;
///
- ///
+ /// 菜品库第二层的起始基点,为最下层盒子的中间点
///
private const int materialTwo = 34500;
///
- ///
+ /// 菜品库第三层的起始基点,为最下层盒子的中间点
///
private const int materialThree = 34500;
@@ -109,7 +109,7 @@ namespace BPASmartClient.MorkF
///
/// 小炒菜单集合
- ///
+ /// f
public static List LocalstirFryGoods = new List();
///
@@ -153,6 +153,18 @@ namespace BPASmartClient.MorkF
///初始化菜品库
//FoodLibInit();
Task2ReadMaterialData();
+
+ ScreenDataServer();
+
+ //读取坐标系
+ MaterialCoordinate materialCoordinate = ReadMaterialCoordinate();
+ if(materialCoordinate != null)
+ {
+ MaterialCoordinate.GetInstance().dicNoMaterialCoordinate = materialCoordinate.dicNoMaterialCoordinate;
+ MaterialCoordinate.GetInstance().MLCoordinateList = materialCoordinate.MLCoordinateList;
+ }
+ ////菜品库编号与坐标系对象存储
+ //SaveMaterialCoordinate();
}
///
@@ -168,6 +180,50 @@ namespace BPASmartClient.MorkF
//SingleProcess();
}
+ private static object saveMaterialLock = new object();
+ private void SaveMaterialData()
+ {
+ lock (saveMaterialLock)
+ {
+ Json.Data = MaterialSurplusOperation.GetInstance().materialSurplus;
+ Json.Save();
+ }
+ }
+
+ private static object saveMaterialCoordinateLock = new object();
+ ///
+ /// 保存当前的坐标系
+ ///
+ public void SaveMaterialCoordinate()
+ {
+ lock (saveMaterialLock)
+ {
+ Json.Data = MaterialCoordinate.GetInstance();
+ Json.Save();
+ }
+ }
+
+ ///
+ /// 读取坐标系
+ ///
+ ///
+ private MaterialCoordinate ReadMaterialCoordinate()
+ {
+ try
+ {
+ lock (saveMaterialLock)
+ {
+ Json.Read();
+ MaterialCoordinate materialCoordinate = Json.Data;
+ return materialCoordinate;
+ }
+ }
+ catch(Exception ex)
+ {
+ return null;
+ }
+ }
+
private void Task2ReadMaterialData()
{
ThreadManage.GetInstance().StartLong(new Action(() => {
@@ -299,6 +355,16 @@ namespace BPASmartClient.MorkF
FoodLibInit();
}), "FoodLibInit");
}), "FoodLibInit");
+ ActionManage.GetInstance.Register(new Action(() =>
+ {
+ ThreadManage.GetInstance().Start(new Action(() =>
+ {
+ if(!UpdateMaterialLibraryStock())
+ {
+ MessageLog.GetInstance.Show("菜品库检测余量失败");
+ }
+ }), "SurplusCheck");
+ }), "SurplusCheck");
ActionManage.GetInstance.Register(new Action
-
+
diff --git a/BPASmartClient.ScreenLib/分餐机/ScreenSplitMealsControl3.xaml b/BPASmartClient.ScreenLib/分餐机/ScreenSplitMealsControl3.xaml
index 5e3c1601..14cd17f9 100644
--- a/BPASmartClient.ScreenLib/分餐机/ScreenSplitMealsControl3.xaml
+++ b/BPASmartClient.ScreenLib/分餐机/ScreenSplitMealsControl3.xaml
@@ -1,188 +1,189 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 设备工作状态
-
-
-
- 今日刷卡数
-
-
-
-
-
-
-
-
-
-
-
- 前一位刷卡人
-
-
-
- 当前刷卡人
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 设备工作状态
-
-
-
- 今日刷卡数
-
-
-
-
-
-
-
-
-
-
-
- 前一位刷卡人
-
-
-
- 当前刷卡人
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 设备工作状态
+
+
+
+ 今日刷卡数
+
+
+
+
+
+
+
+
+
+
+
+ 前一位刷卡人
+
+
+
+ 当前刷卡人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 设备工作状态
+
+
+
+ 今日刷卡数
+
+
+
+
+
+
+
+
+
+
+
+ 前一位刷卡人
+
+
+
+ 当前刷卡人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BPASmartClient.ScreenLib/分餐机/ScreenSplitMealsControl3.xaml.cs b/BPASmartClient.ScreenLib/分餐机/ScreenSplitMealsControl3.xaml.cs
index 4d3a69f0..1f94f8bf 100644
--- a/BPASmartClient.ScreenLib/分餐机/ScreenSplitMealsControl3.xaml.cs
+++ b/BPASmartClient.ScreenLib/分餐机/ScreenSplitMealsControl3.xaml.cs
@@ -23,8 +23,55 @@ namespace BPASmartClient.ScreenLib
public ScreenSplitMealsControl3()
{
InitializeComponent();
- this.DataContext = new ScreenSplitMealsControl3ViewModel();
+ if (int.Parse(System.Configuration.ConfigurationManager.AppSettings["ShowForm"].ToString()) == 0)
+ {
+ guanggao.Visibility = Visibility.Visible;
+ diqiu.Visibility = Visibility.Collapsed;
+ }
+ else
+ {
+ guanggao.Visibility = Visibility.Collapsed;
+ diqiu.Visibility = Visibility.Visible;
+ }
+ Show();
+ }
+
+
+ ///
+ /// 点击切换广告
+ ///
+ ///
+ ///
+ private void StackPanel_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
+ {
+ try
+ {
+ guanggao.Visibility = guanggao.Visibility == Visibility.Collapsed ? Visibility.Visible : Visibility.Collapsed;
+ diqiu.Visibility = guanggao.Visibility == Visibility.Collapsed ? Visibility.Visible : Visibility.Collapsed;
+ Show();
+ }
+ catch (Exception ex)
+ {
+
+ }
+ }
+
+ ///
+ /// 显示广告
+ ///
+ public void Show()
+ {
+ string str = string.Empty;
+ if (Main.GetInstance.SaasRouteReturn != null && Main.GetInstance.SaasRouteReturn.Count >= 6)
+ {
+ AdDTO dto = Main.GetInstance.SaasRouteReturn?.Find(par => par.Address == "02");
+ if (dto != null)
+ {
+ str = dto.Ad;
+ Main.GetInstance.InitView2(str, webView, guanggao);
+ }
+ }
}
}
}
diff --git a/BPASmartClient.ScreenLib/分餐机/ScreenSplitMealsControl3ViewModel.cs b/BPASmartClient.ScreenLib/分餐机/ScreenSplitMealsControl3ViewModel.cs
index de1fff1c..d935667d 100644
--- a/BPASmartClient.ScreenLib/分餐机/ScreenSplitMealsControl3ViewModel.cs
+++ b/BPASmartClient.ScreenLib/分餐机/ScreenSplitMealsControl3ViewModel.cs
@@ -38,6 +38,19 @@ namespace BPASmartClient.ScreenLib
/// 当前刷新数据类型
///
public ScreenDeviceType type = ScreenDeviceType.分餐机;
+ ///
+ /// 订单总数
+ ///
+ public int OrderCount
+ {
+ get { return _OrderCount; }
+ set
+ {
+ _OrderCount = value;
+ OnPropertyChanged();
+ }
+ }
+ private int _OrderCount = 0;
#endregion
public ScreenSplitMealsControl3ViewModel()
@@ -52,6 +65,7 @@ namespace BPASmartClient.ScreenLib
if (modelMaxWok != null && modelMaxWok.Alarm != null)
modelMaxWok.Alarm = modelMaxWok.Alarm?.OrderByDescending(k => DateTime.Parse(k.AlarmTime)).ToList();
ViewData = modelMaxWok;
+ OrderCount = modelMaxWok.SplitMeals_CreditCardCount_5 + modelMaxWok.SplitMeals_CreditCardCount_6;
}
}));
Thread.Sleep(1000);
diff --git a/BPASmartClient.ScreenLib/炒锅/ScreenMaxWokControl.xaml b/BPASmartClient.ScreenLib/炒锅/ScreenMaxWokControl.xaml
index 1a5c6e34..82519346 100644
--- a/BPASmartClient.ScreenLib/炒锅/ScreenMaxWokControl.xaml
+++ b/BPASmartClient.ScreenLib/炒锅/ScreenMaxWokControl.xaml
@@ -115,7 +115,7 @@
-
+
diff --git a/BPASmartClient/App.config b/BPASmartClient/App.config
index 8550e35d..3c70f691 100644
--- a/BPASmartClient/App.config
+++ b/BPASmartClient/App.config
@@ -7,9 +7,9 @@
-
+
-
+
diff --git a/BPASmartClient/BPASmartClient.csproj b/BPASmartClient/BPASmartClient.csproj
index 20441fba..f1d75a84 100644
--- a/BPASmartClient/BPASmartClient.csproj
+++ b/BPASmartClient/BPASmartClient.csproj
@@ -15,6 +15,7 @@
+
@@ -32,6 +33,7 @@
+
diff --git a/BPASmartClient/DeviceInfo.xml b/BPASmartClient/DeviceInfo.xml
index f56b3e6b..c7f30b52 100644
--- a/BPASmartClient/DeviceInfo.xml
+++ b/BPASmartClient/DeviceInfo.xml
@@ -61,7 +61,7 @@
-->-->
-
+
-
+ -->
-
+ -->
+ -->
+
+
+
+
+ 192.168.0.100
+ 8001
+ M,M0.1,1;M,M1.0,8;M,M2.0,9;M,M8.0,4;M,M13.5,1;M,M16.0,7;
+
+
+