diff --git a/.vs/HighWayIot/FileContentIndex/5a565e98-84ca-4fa1-96e0-7dd77e803d93.vsidx b/.vs/HighWayIot/FileContentIndex/5a565e98-84ca-4fa1-96e0-7dd77e803d93.vsidx new file mode 100644 index 0000000..c9cbe8e Binary files /dev/null and b/.vs/HighWayIot/FileContentIndex/5a565e98-84ca-4fa1-96e0-7dd77e803d93.vsidx differ diff --git a/.vs/HighWayIot/FileContentIndex/5dffe236-e69e-44a9-b9a5-90983356d344.vsidx b/.vs/HighWayIot/FileContentIndex/5dffe236-e69e-44a9-b9a5-90983356d344.vsidx new file mode 100644 index 0000000..bd98189 Binary files /dev/null and b/.vs/HighWayIot/FileContentIndex/5dffe236-e69e-44a9-b9a5-90983356d344.vsidx differ diff --git a/.vs/HighWayIot/FileContentIndex/c0a097c3-e5fa-4d5e-8e02-bc30c7f39b95.vsidx b/.vs/HighWayIot/FileContentIndex/c0a097c3-e5fa-4d5e-8e02-bc30c7f39b95.vsidx new file mode 100644 index 0000000..89c8117 Binary files /dev/null and b/.vs/HighWayIot/FileContentIndex/c0a097c3-e5fa-4d5e-8e02-bc30c7f39b95.vsidx differ diff --git a/.vs/HighWayIot/FileContentIndex/f77a71fa-cb06-4736-b82b-ab9100e8f8f0.vsidx b/.vs/HighWayIot/FileContentIndex/f77a71fa-cb06-4736-b82b-ab9100e8f8f0.vsidx new file mode 100644 index 0000000..2f0be7c Binary files /dev/null and b/.vs/HighWayIot/FileContentIndex/f77a71fa-cb06-4736-b82b-ab9100e8f8f0.vsidx differ diff --git a/.vs/HighWayIot/v17/.suo b/.vs/HighWayIot/v17/.suo index 8ec00df..72da692 100644 Binary files a/.vs/HighWayIot/v17/.suo and b/.vs/HighWayIot/v17/.suo differ diff --git a/Aucma.Scada.Business/InStoreBusiness.cs b/Aucma.Scada.Business/InStoreBusiness.cs index c4b1046..b4cc911 100644 --- a/Aucma.Scada.Business/InStoreBusiness.cs +++ b/Aucma.Scada.Business/InStoreBusiness.cs @@ -4,8 +4,10 @@ using HighWayIot.Config; using HighWayIot.Log4net; using HighWayIot.Repository.service; using System; +using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; +using static Aucma.Scada.Business.InStoreTaskHandle; namespace Aucma.Scada.Business { @@ -79,6 +81,7 @@ namespace Aucma.Scada.Business { _spaceInfoService = registerServices.GetService(); _taskInfoService = registerServices.GetService(); + taskHandle.InStoreFinsihEvent += TaskFeedback; grabImage.RefreshMaterialCodeStrEvent += InStore; grabImage.RefreshLogMessageEvent += PrintLogInfoMessage; StartPassDown(); @@ -299,28 +302,38 @@ namespace Aucma.Scada.Business return taskInfo; } + private void TaskFeedback(string storeCode,string taskCode) + { + if(storeCode == appConfig.shellStoreCode) + { + ShellTaskFeedback(taskCode); + } + else + { + LinerTaskFeedback(taskCode); + } + } + /// /// 箱壳执行反馈 /// - private void ShellTaskFeedback() + private void ShellTaskFeedback(string taskCode) { - Thread.Sleep(4000); - PrintLogInfoMessage("箱壳执行完成,自动释放信号量"); + InStoreFinish(appConfig.shellStoreCode, taskCode); + shellSemaphore.Release(); } /// /// 内胆执行反馈 /// - private void LinerTaskFeedback() + private void LinerTaskFeedback(string LinerTaskFeedback) { - Thread.Sleep(8000); - PrintLogInfoMessage("内胆执行完成,自动释放信号量"); - + InStoreFinish(appConfig.linerStoreCode, LinerTaskFeedback); linerSemaphore.Release(); } #endregion @@ -380,7 +393,7 @@ namespace Aucma.Scada.Business } /// - /// 截图条码 + /// 截取条码 /// /// /// @@ -394,5 +407,10 @@ namespace Aucma.Scada.Business return result; } + + public List GetInStoreTask() + { + return _taskInfoService.GetTaskInfosByStoreCode(new string[] { appConfig.shellStoreCode,appConfig.linerStoreCode }, 1); + } } } diff --git a/Aucma.Scada.Business/bin/Debug/Aucma.Scada.Business.dll b/Aucma.Scada.Business/bin/Debug/Aucma.Scada.Business.dll index 54cf72e..0fc65b6 100644 Binary files a/Aucma.Scada.Business/bin/Debug/Aucma.Scada.Business.dll and b/Aucma.Scada.Business/bin/Debug/Aucma.Scada.Business.dll differ diff --git a/Aucma.Scada.Business/bin/Debug/Aucma.Scada.Business.pdb b/Aucma.Scada.Business/bin/Debug/Aucma.Scada.Business.pdb index 6632ed0..a9a23b3 100644 Binary files a/Aucma.Scada.Business/bin/Debug/Aucma.Scada.Business.pdb and b/Aucma.Scada.Business/bin/Debug/Aucma.Scada.Business.pdb differ diff --git a/Aucma.Scada.Business/obj/Debug/Aucma.Scada.Business.csproj.AssemblyReference.cache b/Aucma.Scada.Business/obj/Debug/Aucma.Scada.Business.csproj.AssemblyReference.cache index d8473aa..55bc2ac 100644 Binary files a/Aucma.Scada.Business/obj/Debug/Aucma.Scada.Business.csproj.AssemblyReference.cache and b/Aucma.Scada.Business/obj/Debug/Aucma.Scada.Business.csproj.AssemblyReference.cache differ diff --git a/Aucma.Scada.Business/obj/Debug/Aucma.Scada.Business.dll b/Aucma.Scada.Business/obj/Debug/Aucma.Scada.Business.dll index 54cf72e..0fc65b6 100644 Binary files a/Aucma.Scada.Business/obj/Debug/Aucma.Scada.Business.dll and b/Aucma.Scada.Business/obj/Debug/Aucma.Scada.Business.dll differ diff --git a/Aucma.Scada.Business/obj/Debug/Aucma.Scada.Business.pdb b/Aucma.Scada.Business/obj/Debug/Aucma.Scada.Business.pdb index 6632ed0..a9a23b3 100644 Binary files a/Aucma.Scada.Business/obj/Debug/Aucma.Scada.Business.pdb and b/Aucma.Scada.Business/obj/Debug/Aucma.Scada.Business.pdb differ diff --git a/Aucma.Scada.HikRobot/obj/Debug/Aucma.Scada.HikRobot.csproj.AssemblyReference.cache b/Aucma.Scada.HikRobot/obj/Debug/Aucma.Scada.HikRobot.csproj.AssemblyReference.cache index 9f94a75..d7223df 100644 Binary files a/Aucma.Scada.HikRobot/obj/Debug/Aucma.Scada.HikRobot.csproj.AssemblyReference.cache and b/Aucma.Scada.HikRobot/obj/Debug/Aucma.Scada.HikRobot.csproj.AssemblyReference.cache differ diff --git a/Aucma.Scada.UI/bin/Debug/Aucma.Scada.Business.dll b/Aucma.Scada.UI/bin/Debug/Aucma.Scada.Business.dll index 54cf72e..0fc65b6 100644 Binary files a/Aucma.Scada.UI/bin/Debug/Aucma.Scada.Business.dll and b/Aucma.Scada.UI/bin/Debug/Aucma.Scada.Business.dll differ diff --git a/Aucma.Scada.UI/bin/Debug/Aucma.Scada.Business.pdb b/Aucma.Scada.UI/bin/Debug/Aucma.Scada.Business.pdb index 6632ed0..a9a23b3 100644 Binary files a/Aucma.Scada.UI/bin/Debug/Aucma.Scada.Business.pdb and b/Aucma.Scada.UI/bin/Debug/Aucma.Scada.Business.pdb differ diff --git a/Aucma.Scada.UI/bin/Debug/Aucma.Scada.UI.exe b/Aucma.Scada.UI/bin/Debug/Aucma.Scada.UI.exe index fcd6952..40a7bdb 100644 Binary files a/Aucma.Scada.UI/bin/Debug/Aucma.Scada.UI.exe and b/Aucma.Scada.UI/bin/Debug/Aucma.Scada.UI.exe differ diff --git a/Aucma.Scada.UI/bin/Debug/Aucma.Scada.UI.pdb b/Aucma.Scada.UI/bin/Debug/Aucma.Scada.UI.pdb index 95536b1..fb47338 100644 Binary files a/Aucma.Scada.UI/bin/Debug/Aucma.Scada.UI.pdb and b/Aucma.Scada.UI/bin/Debug/Aucma.Scada.UI.pdb differ diff --git a/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.csproj.AssemblyReference.cache b/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.csproj.AssemblyReference.cache index 19b7264..d4f8e85 100644 Binary files a/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.csproj.AssemblyReference.cache and b/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.csproj.AssemblyReference.cache differ diff --git a/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.exe b/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.exe index fcd6952..40a7bdb 100644 Binary files a/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.exe and b/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.exe differ diff --git a/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.pdb b/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.pdb index 95536b1..fb47338 100644 Binary files a/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.pdb and b/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.pdb differ diff --git a/Aucma.Scada.UI/viewModel/InStoreInfo/InStoreInfoViewModel.cs b/Aucma.Scada.UI/viewModel/InStoreInfo/InStoreInfoViewModel.cs index ab7476f..a21f5c0 100644 --- a/Aucma.Scada.UI/viewModel/InStoreInfo/InStoreInfoViewModel.cs +++ b/Aucma.Scada.UI/viewModel/InStoreInfo/InStoreInfoViewModel.cs @@ -222,6 +222,11 @@ namespace Aucma.Scada.UI.viewModel.InStoreInfo /// public void Query() { + var info = inStoreBusiness.GetInStoreTask(); + if (info != null) + { + info.ForEach(x => RefreshInStoreTask(x)); + } if (materialTypeCombox == "箱壳") { materialTypeCombox = "X-001"; @@ -254,6 +259,7 @@ namespace Aucma.Scada.UI.viewModel.InStoreInfo /// public void Init() { + Query(); MaterialNameList = new List() { "SC232", diff --git a/HighWayIot.Common/obj/Debug/HighWayIot.Common.csproj.AssemblyReference.cache b/HighWayIot.Common/obj/Debug/HighWayIot.Common.csproj.AssemblyReference.cache index df51c11..247847a 100644 Binary files a/HighWayIot.Common/obj/Debug/HighWayIot.Common.csproj.AssemblyReference.cache and b/HighWayIot.Common/obj/Debug/HighWayIot.Common.csproj.AssemblyReference.cache differ diff --git a/HighWayIot.Config/obj/Debug/HighWayIot.Config.csproj.AssemblyReference.cache b/HighWayIot.Config/obj/Debug/HighWayIot.Config.csproj.AssemblyReference.cache index 8d356c8..2ac2218 100644 Binary files a/HighWayIot.Config/obj/Debug/HighWayIot.Config.csproj.AssemblyReference.cache and b/HighWayIot.Config/obj/Debug/HighWayIot.Config.csproj.AssemblyReference.cache differ diff --git a/HighWayIot.Log4net/obj/Debug/HighWayIot.Log4net.csproj.AssemblyReference.cache b/HighWayIot.Log4net/obj/Debug/HighWayIot.Log4net.csproj.AssemblyReference.cache index 8e73522..ebb1331 100644 Binary files a/HighWayIot.Log4net/obj/Debug/HighWayIot.Log4net.csproj.AssemblyReference.cache and b/HighWayIot.Log4net/obj/Debug/HighWayIot.Log4net.csproj.AssemblyReference.cache differ diff --git a/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.csproj.AssemblyReference.cache b/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.csproj.AssemblyReference.cache index d6f0f0a..b5a831a 100644 Binary files a/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.csproj.AssemblyReference.cache and b/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.csproj.AssemblyReference.cache differ diff --git a/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.csproj.AssemblyReference.cache b/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.csproj.AssemblyReference.cache index 15d2636..41faf87 100644 Binary files a/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.csproj.AssemblyReference.cache and b/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.csproj.AssemblyReference.cache differ diff --git a/HighWayIot.Rfid/obj/Debug/HighWayIot.Rfid.csproj.AssemblyReference.cache b/HighWayIot.Rfid/obj/Debug/HighWayIot.Rfid.csproj.AssemblyReference.cache index 432060d..7cbfec9 100644 Binary files a/HighWayIot.Rfid/obj/Debug/HighWayIot.Rfid.csproj.AssemblyReference.cache and b/HighWayIot.Rfid/obj/Debug/HighWayIot.Rfid.csproj.AssemblyReference.cache differ diff --git a/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache b/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache index e60976b..57c4e38 100644 Binary files a/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache and b/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache differ