diff --git a/.vs/HighWayIot/FileContentIndex/4d356083-a032-4659-9a68-eace8a9c9f6a.vsidx b/.vs/HighWayIot/FileContentIndex/4d356083-a032-4659-9a68-eace8a9c9f6a.vsidx deleted file mode 100644 index 3808fcc3..00000000 Binary files a/.vs/HighWayIot/FileContentIndex/4d356083-a032-4659-9a68-eace8a9c9f6a.vsidx and /dev/null differ diff --git a/.vs/HighWayIot/FileContentIndex/f2e873d3-5c46-4aae-aee6-18d95dd3e289.vsidx b/.vs/HighWayIot/FileContentIndex/999a97ba-e7ed-4a23-b42d-9be89a7ef54b.vsidx similarity index 77% rename from .vs/HighWayIot/FileContentIndex/f2e873d3-5c46-4aae-aee6-18d95dd3e289.vsidx rename to .vs/HighWayIot/FileContentIndex/999a97ba-e7ed-4a23-b42d-9be89a7ef54b.vsidx index b0aa13a5..be731956 100644 Binary files a/.vs/HighWayIot/FileContentIndex/f2e873d3-5c46-4aae-aee6-18d95dd3e289.vsidx and b/.vs/HighWayIot/FileContentIndex/999a97ba-e7ed-4a23-b42d-9be89a7ef54b.vsidx differ diff --git a/.vs/HighWayIot/v17/.suo b/.vs/HighWayIot/v17/.suo index 45755741..df5ae54f 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 c9b77a47..b7fc3293 100644 --- a/Aucma.Scada.Business/InStoreBusiness.cs +++ b/Aucma.Scada.Business/InStoreBusiness.cs @@ -108,10 +108,10 @@ namespace Aucma.Scada.Business //Task.Run(() => //{ // Thread.Sleep(6000); - // for (int i = 1; i < 3; i++) + // for (int i = 1; i < 5; i++) // { - // InStore("F2340600122510190" + i.ToString().PadLeft(2, '0')); - // Thread.Sleep(1000); + // InStore("F2340600122511150" + i.ToString().PadLeft(2, '0')); + // Thread.Sleep(1000 * 10); // } //}); } @@ -541,7 +541,7 @@ namespace Aucma.Scada.Business PrintLogInfoMessage($"通过PLC读取货道信息,货道:{spaceInfo.spaceName};在库数量:{item.spaceStock};在途数量:{item.onRouteAmount};货道状态:{item.spaceStatus}"); } - var list = info.Where(x => x.spaceStock > 0 ? x.spaceCapacity > (x.spaceStock + x.onRouteAmount) : 1 == 1 && x.spaceStatus == 1).ToList(); + var list = info.Where(x => x.spaceCapacity > 0 ? x.spaceCapacity > (x.spaceStock + x.onRouteAmount) : 1 == 1 && x.spaceStatus == 1).ToList(); if (list.Count > 0) { diff --git a/Aucma.Scada.Business/InStoreTaskHandle.cs b/Aucma.Scada.Business/InStoreTaskHandle.cs index 02e22ea7..1a1f9882 100644 --- a/Aucma.Scada.Business/InStoreTaskHandle.cs +++ b/Aucma.Scada.Business/InStoreTaskHandle.cs @@ -85,7 +85,7 @@ namespace Aucma.Scada.Business bool result = false; try { - IPlc _plc = _plcDictionary[taskInfo.storeCode]; + IPlc _plc = _plcDictionary[appConfig.foamStoreCode]; if (_plc != null) { @@ -154,7 +154,7 @@ namespace Aucma.Scada.Business WritePlc(taskInfo.storeCode, taskInfo.spaceCode, false); //ReadShellFinish_InStore(taskCode); - InStoreAnswerEvent?.Invoke(appConfig.shellStoreCode, taskInfo.taskCode); + InStoreAnswerEvent?.Invoke(appConfig.foamStoreCode, taskInfo.taskCode); foamRearTaskInfos.Add(taskInfo); } @@ -270,7 +270,7 @@ namespace Aucma.Scada.Business string spaceCode = spaceCodes[i]; - BaseSpaceInfo spaceInfo = new BaseSpaceInfo() { storeCode = appConfig.shellStoreCode, spaceCode = spaceCode }; + BaseSpaceInfo spaceInfo = new BaseSpaceInfo() { storeCode = appConfig.foamStoreCode, spaceCode = spaceCode }; spaceInfo = ReadSpaceInfoByPlc(spaceInfo); diff --git a/Aucma.Scada.Business/bin/Debug/Aucma.Scada.Business.dll b/Aucma.Scada.Business/bin/Debug/Aucma.Scada.Business.dll index c0ea1c6d..3f9a57a4 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 48b128ba..9e674c3e 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/bin/Debug/HighWayIot.Config.dll b/Aucma.Scada.Business/bin/Debug/HighWayIot.Config.dll index 0f43b000..eda4065c 100644 Binary files a/Aucma.Scada.Business/bin/Debug/HighWayIot.Config.dll and b/Aucma.Scada.Business/bin/Debug/HighWayIot.Config.dll differ diff --git a/Aucma.Scada.Business/bin/Debug/HighWayIot.Config.pdb b/Aucma.Scada.Business/bin/Debug/HighWayIot.Config.pdb index b37254eb..32a790bb 100644 Binary files a/Aucma.Scada.Business/bin/Debug/HighWayIot.Config.pdb and b/Aucma.Scada.Business/bin/Debug/HighWayIot.Config.pdb differ diff --git a/Aucma.Scada.Business/bin/Debug/HighWayIot.Plc.dll b/Aucma.Scada.Business/bin/Debug/HighWayIot.Plc.dll index 8180362d..d7d6cd31 100644 Binary files a/Aucma.Scada.Business/bin/Debug/HighWayIot.Plc.dll and b/Aucma.Scada.Business/bin/Debug/HighWayIot.Plc.dll differ diff --git a/Aucma.Scada.Business/bin/Debug/HighWayIot.Plc.pdb b/Aucma.Scada.Business/bin/Debug/HighWayIot.Plc.pdb index b3e95b0c..a605be63 100644 Binary files a/Aucma.Scada.Business/bin/Debug/HighWayIot.Plc.pdb and b/Aucma.Scada.Business/bin/Debug/HighWayIot.Plc.pdb differ diff --git a/Aucma.Scada.Business/bin/Debug/HighWayIot.Repository.dll b/Aucma.Scada.Business/bin/Debug/HighWayIot.Repository.dll index 2a89a0db..73d0da65 100644 Binary files a/Aucma.Scada.Business/bin/Debug/HighWayIot.Repository.dll and b/Aucma.Scada.Business/bin/Debug/HighWayIot.Repository.dll differ diff --git a/Aucma.Scada.Business/bin/Debug/HighWayIot.Repository.pdb b/Aucma.Scada.Business/bin/Debug/HighWayIot.Repository.pdb index adca5614..90fa4e3b 100644 Binary files a/Aucma.Scada.Business/bin/Debug/HighWayIot.Repository.pdb and b/Aucma.Scada.Business/bin/Debug/HighWayIot.Repository.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 4f13f5c9..38eb25fc 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 c0ea1c6d..3f9a57a4 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 48b128ba..9e674c3e 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/bin/Debug/HighWayIot.Config.dll b/Aucma.Scada.HikRobot/bin/Debug/HighWayIot.Config.dll index 0f43b000..eda4065c 100644 Binary files a/Aucma.Scada.HikRobot/bin/Debug/HighWayIot.Config.dll and b/Aucma.Scada.HikRobot/bin/Debug/HighWayIot.Config.dll differ diff --git a/Aucma.Scada.HikRobot/bin/Debug/HighWayIot.Config.pdb b/Aucma.Scada.HikRobot/bin/Debug/HighWayIot.Config.pdb index b37254eb..32a790bb 100644 Binary files a/Aucma.Scada.HikRobot/bin/Debug/HighWayIot.Config.pdb and b/Aucma.Scada.HikRobot/bin/Debug/HighWayIot.Config.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 1f1f48c7..a3989b02 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.Model/obj/Debug/Aucma.Scada.Model.csproj.AssemblyReference.cache b/Aucma.Scada.Model/obj/Debug/Aucma.Scada.Model.csproj.AssemblyReference.cache index 561fa9ab..761b2fe1 100644 Binary files a/Aucma.Scada.Model/obj/Debug/Aucma.Scada.Model.csproj.AssemblyReference.cache and b/Aucma.Scada.Model/obj/Debug/Aucma.Scada.Model.csproj.AssemblyReference.cache differ diff --git a/Aucma.Scada.UI/Page/InStoreInfo/InStoreInfoControl.xaml b/Aucma.Scada.UI/Page/InStoreInfo/InStoreInfoControl.xaml index 3444bee3..c7884564 100644 --- a/Aucma.Scada.UI/Page/InStoreInfo/InStoreInfoControl.xaml +++ b/Aucma.Scada.UI/Page/InStoreInfo/InStoreInfoControl.xaml @@ -162,7 +162,7 @@ - + diff --git a/Aucma.Scada.UI/Page/InventoryInfo/MaterialStatisticsWindow.xaml b/Aucma.Scada.UI/Page/InventoryInfo/MaterialStatisticsWindow.xaml index 00bd9a70..073ed1d4 100644 --- a/Aucma.Scada.UI/Page/InventoryInfo/MaterialStatisticsWindow.xaml +++ b/Aucma.Scada.UI/Page/InventoryInfo/MaterialStatisticsWindow.xaml @@ -91,7 +91,7 @@ - + // 此代码由工具生成。 diff --git a/Aucma.Scada.UI/obj/Debug/Page/InStoreInfo/InStoreInfoControl.g.i.cs b/Aucma.Scada.UI/obj/Debug/Page/InStoreInfo/InStoreInfoControl.g.i.cs index 466f9335..adf34565 100644 --- a/Aucma.Scada.UI/obj/Debug/Page/InStoreInfo/InStoreInfoControl.g.i.cs +++ b/Aucma.Scada.UI/obj/Debug/Page/InStoreInfo/InStoreInfoControl.g.i.cs @@ -1,4 +1,4 @@ -#pragma checksum "..\..\..\..\Page\InStoreInfo\InStoreInfoControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "799341851DF4A31059EBF44128122192259D792DA974B31DABB90BE7E2701C88" +#pragma checksum "..\..\..\..\Page\InStoreInfo\InStoreInfoControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "2B8D2B5D6D8824A68899B8BBF491AF577C470A1C522B78141C3A08DB9A772394" //------------------------------------------------------------------------------ // // 此代码由工具生成。 diff --git a/Aucma.Scada.UI/obj/Debug/Page/InventoryInfo/MaterialStatisticsWindow.baml b/Aucma.Scada.UI/obj/Debug/Page/InventoryInfo/MaterialStatisticsWindow.baml index 38463e77..861ea220 100644 Binary files a/Aucma.Scada.UI/obj/Debug/Page/InventoryInfo/MaterialStatisticsWindow.baml and b/Aucma.Scada.UI/obj/Debug/Page/InventoryInfo/MaterialStatisticsWindow.baml differ diff --git a/Aucma.Scada.UI/obj/Debug/Page/InventoryInfo/MaterialStatisticsWindow.g.cs b/Aucma.Scada.UI/obj/Debug/Page/InventoryInfo/MaterialStatisticsWindow.g.cs index 821ef9ce..56e42b95 100644 --- a/Aucma.Scada.UI/obj/Debug/Page/InventoryInfo/MaterialStatisticsWindow.g.cs +++ b/Aucma.Scada.UI/obj/Debug/Page/InventoryInfo/MaterialStatisticsWindow.g.cs @@ -1,4 +1,4 @@ -#pragma checksum "..\..\..\..\Page\InventoryInfo\MaterialStatisticsWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "6115A2C17413027853AD6AD01ACA0BF1E9A9CE6A7FB8974C23DB19A81304037F" +#pragma checksum "..\..\..\..\Page\InventoryInfo\MaterialStatisticsWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "E412F80108BCA4EC02AA76F22EC87D4EAC59619196131B5C38E306CDE02720F6" //------------------------------------------------------------------------------ // // 此代码由工具生成。 diff --git a/Aucma.Scada.UI/obj/Debug/Page/InventoryInfo/MaterialStatisticsWindow.g.i.cs b/Aucma.Scada.UI/obj/Debug/Page/InventoryInfo/MaterialStatisticsWindow.g.i.cs index 821ef9ce..56e42b95 100644 --- a/Aucma.Scada.UI/obj/Debug/Page/InventoryInfo/MaterialStatisticsWindow.g.i.cs +++ b/Aucma.Scada.UI/obj/Debug/Page/InventoryInfo/MaterialStatisticsWindow.g.i.cs @@ -1,4 +1,4 @@ -#pragma checksum "..\..\..\..\Page\InventoryInfo\MaterialStatisticsWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "6115A2C17413027853AD6AD01ACA0BF1E9A9CE6A7FB8974C23DB19A81304037F" +#pragma checksum "..\..\..\..\Page\InventoryInfo\MaterialStatisticsWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "E412F80108BCA4EC02AA76F22EC87D4EAC59619196131B5C38E306CDE02720F6" //------------------------------------------------------------------------------ // // 此代码由工具生成。 diff --git a/HighWayIot.Common/obj/Debug/HighWayIot.Common.csproj.AssemblyReference.cache b/HighWayIot.Common/obj/Debug/HighWayIot.Common.csproj.AssemblyReference.cache index a19aa128..338e1dd3 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/PlcSpaceConfig.cs b/HighWayIot.Config/PlcSpaceConfig.cs index 4abeb8cc..1f800a18 100644 --- a/HighWayIot.Config/PlcSpaceConfig.cs +++ b/HighWayIot.Config/PlcSpaceConfig.cs @@ -9,8 +9,8 @@ namespace HighWayIot.Config { public sealed class PlcSpaceConfig { - private static IniHelper iniHelper = new IniHelper(System.Environment.CurrentDirectory + "/config/PlcSpace.Ini"); - //private static IniHelper iniHelper = new IniHelper("E:/桌面/澳柯玛MES项目/程序设计/Aucma.Scada/Aucma.Scada.UI/bin/Debug/config/PlcSpace.Ini"); + //private static IniHelper iniHelper = new IniHelper(System.Environment.CurrentDirectory + "/config/PlcSpace.Ini"); + private static IniHelper iniHelper = new IniHelper("E:\\桌面\\澳柯玛MES项目\\程序设计\\Aucma.Scada\\Aucma.Scada.UI\\bin\\Debug\\config\\PlcSpace.Ini"); private static readonly Lazy lazy = new Lazy(() => new PlcSpaceConfig()); public static PlcSpaceConfig Instance diff --git a/HighWayIot.Config/bin/Debug/HighWayIot.Config.dll b/HighWayIot.Config/bin/Debug/HighWayIot.Config.dll index 0f43b000..eda4065c 100644 Binary files a/HighWayIot.Config/bin/Debug/HighWayIot.Config.dll and b/HighWayIot.Config/bin/Debug/HighWayIot.Config.dll differ diff --git a/HighWayIot.Config/bin/Debug/HighWayIot.Config.pdb b/HighWayIot.Config/bin/Debug/HighWayIot.Config.pdb index b37254eb..32a790bb 100644 Binary files a/HighWayIot.Config/bin/Debug/HighWayIot.Config.pdb and b/HighWayIot.Config/bin/Debug/HighWayIot.Config.pdb differ diff --git a/HighWayIot.Config/obj/Debug/HighWayIot.Config.csproj.AssemblyReference.cache b/HighWayIot.Config/obj/Debug/HighWayIot.Config.csproj.AssemblyReference.cache index a2157e22..919754dd 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.Config/obj/Debug/HighWayIot.Config.dll b/HighWayIot.Config/obj/Debug/HighWayIot.Config.dll index 0f43b000..eda4065c 100644 Binary files a/HighWayIot.Config/obj/Debug/HighWayIot.Config.dll and b/HighWayIot.Config/obj/Debug/HighWayIot.Config.dll differ diff --git a/HighWayIot.Config/obj/Debug/HighWayIot.Config.pdb b/HighWayIot.Config/obj/Debug/HighWayIot.Config.pdb index b37254eb..32a790bb 100644 Binary files a/HighWayIot.Config/obj/Debug/HighWayIot.Config.pdb and b/HighWayIot.Config/obj/Debug/HighWayIot.Config.pdb differ diff --git a/HighWayIot.Plc/Impl/MelsecBinaryPlc.cs b/HighWayIot.Plc/Impl/MelsecBinaryPlc.cs index 88e1dc5f..db621e07 100644 --- a/HighWayIot.Plc/Impl/MelsecBinaryPlc.cs +++ b/HighWayIot.Plc/Impl/MelsecBinaryPlc.cs @@ -97,14 +97,12 @@ namespace HighWayIot.Plc.Impl else { log.PlcLog("通过地址和长度读取PLC数据失败!!!"); - this.IsConnected = false; return new byte[0]; } } catch (Exception ex) { log.Error("通过地址和长度读取PLC数据异常", ex); - this.IsConnected = false; return new byte[0]; } } @@ -128,13 +126,11 @@ namespace HighWayIot.Plc.Impl return true; } log.PlcLog(String.Format("开始通过PLC地址{0}写入int类型数据{1}失败!!!", address, value)); - this.IsConnected = false; return false; } catch (Exception ex) { log.Error("通过PLC地址写入int类型数据", ex); - this.IsConnected = false; return false; } } @@ -195,14 +191,12 @@ namespace HighWayIot.Plc.Impl else { log.PlcLog(String.Format("通过PLC地址{0}读取EA值失败!!!", address)); - this.IsConnected = false; return ""; } } catch (Exception ex) { log.Error("通过PLC地址读取EA值异常", ex); - this.IsConnected = false; return ""; } } @@ -224,13 +218,11 @@ namespace HighWayIot.Plc.Impl return read.Content; } log.PlcLog(String.Format("通过PLC地址{0}读取交互信号失败!!!", address)); - this.IsConnected = false; return 0; } catch (Exception ex) { log.Error("通过PLC地址读取交互信号异常", ex); - this.IsConnected = false; return 0; } } @@ -252,13 +244,11 @@ namespace HighWayIot.Plc.Impl return read.Content; } log.PlcLog(String.Format("通过PLC地址{0}读取int32类型数据失败!!!", address)); - this.IsConnected = false; return 0; } catch (Exception ex) { log.Error("通过PLC地址读取int32类型数据异常", ex); - this.IsConnected = false; return 0; } } @@ -339,7 +329,6 @@ namespace HighWayIot.Plc.Impl return read.Content; } log.PlcLog(String.Format("通过PLC地址{0}读取string类型数据失败!!!", address)); - this.IsConnected = false; return ""; } catch (Exception ex) @@ -367,13 +356,11 @@ namespace HighWayIot.Plc.Impl return read.Content; } log.PlcLog(String.Format("通过PLC地址{0}读取bool类型数据失败!!!", address)); - this.IsConnected = false; return false; } catch (Exception ex) { log.Error("通过PLC地址读取int32类型数据异常", ex); - this.IsConnected = false; return false; } } @@ -396,14 +383,12 @@ namespace HighWayIot.Plc.Impl return true; } log.PlcLog(String.Format("通过PLC地址{0}写入bool类型数据{1}失败!!!", address, value)); - this.IsConnected = false; return false; } catch (Exception ex) { log.Error(String.Format("通过PLC地址{0}写入bool类型数据异常", address), ex); - this.IsConnected = false; - return false; + return false; } } diff --git a/HighWayIot.Plc/PlcPool.cs b/HighWayIot.Plc/PlcPool.cs index a300f5c4..e2b3e534 100644 --- a/HighWayIot.Plc/PlcPool.cs +++ b/HighWayIot.Plc/PlcPool.cs @@ -52,6 +52,7 @@ namespace HighWayIot.Plc var connectResult = _plc.Connect(ip, port); if (connectResult) { + _plc.IsConnected = true; keyValuePairs.Add(key, _plc); } } diff --git a/HighWayIot.Plc/bin/Debug/HighWayIot.Plc.dll b/HighWayIot.Plc/bin/Debug/HighWayIot.Plc.dll index 8180362d..d7d6cd31 100644 Binary files a/HighWayIot.Plc/bin/Debug/HighWayIot.Plc.dll and b/HighWayIot.Plc/bin/Debug/HighWayIot.Plc.dll differ diff --git a/HighWayIot.Plc/bin/Debug/HighWayIot.Plc.pdb b/HighWayIot.Plc/bin/Debug/HighWayIot.Plc.pdb index b3e95b0c..a605be63 100644 Binary files a/HighWayIot.Plc/bin/Debug/HighWayIot.Plc.pdb and b/HighWayIot.Plc/bin/Debug/HighWayIot.Plc.pdb differ diff --git a/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.csproj.AssemblyReference.cache b/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.csproj.AssemblyReference.cache index b6a623b5..c34e5fb3 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.Plc/obj/Debug/HighWayIot.Plc.dll b/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.dll index 8180362d..d7d6cd31 100644 Binary files a/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.dll and b/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.dll differ diff --git a/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.pdb b/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.pdb index b3e95b0c..a605be63 100644 Binary files a/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.pdb and b/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.pdb differ diff --git a/HighWayIot.Repository/bin/Debug/HighWayIot.Config.dll b/HighWayIot.Repository/bin/Debug/HighWayIot.Config.dll index 0f43b000..eda4065c 100644 Binary files a/HighWayIot.Repository/bin/Debug/HighWayIot.Config.dll and b/HighWayIot.Repository/bin/Debug/HighWayIot.Config.dll differ diff --git a/HighWayIot.Repository/bin/Debug/HighWayIot.Config.pdb b/HighWayIot.Repository/bin/Debug/HighWayIot.Config.pdb index b37254eb..32a790bb 100644 Binary files a/HighWayIot.Repository/bin/Debug/HighWayIot.Config.pdb and b/HighWayIot.Repository/bin/Debug/HighWayIot.Config.pdb differ diff --git a/HighWayIot.Repository/bin/Debug/HighWayIot.Repository.dll b/HighWayIot.Repository/bin/Debug/HighWayIot.Repository.dll index 2a89a0db..73d0da65 100644 Binary files a/HighWayIot.Repository/bin/Debug/HighWayIot.Repository.dll and b/HighWayIot.Repository/bin/Debug/HighWayIot.Repository.dll differ diff --git a/HighWayIot.Repository/bin/Debug/HighWayIot.Repository.pdb b/HighWayIot.Repository/bin/Debug/HighWayIot.Repository.pdb index adca5614..90fa4e3b 100644 Binary files a/HighWayIot.Repository/bin/Debug/HighWayIot.Repository.pdb and b/HighWayIot.Repository/bin/Debug/HighWayIot.Repository.pdb differ diff --git a/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.csproj.AssemblyReference.cache b/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.csproj.AssemblyReference.cache index d5264b11..30d92d95 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.Repository/obj/Debug/HighWayIot.Repository.dll b/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.dll index 2a89a0db..73d0da65 100644 Binary files a/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.dll and b/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.dll differ diff --git a/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.pdb b/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.pdb index adca5614..90fa4e3b 100644 Binary files a/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.pdb and b/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.pdb differ diff --git a/HighWayIot.Repository/service/Impl/BaseSpaceInfoServiceImpl.cs b/HighWayIot.Repository/service/Impl/BaseSpaceInfoServiceImpl.cs index ee0067ff..4c0b174e 100644 --- a/HighWayIot.Repository/service/Impl/BaseSpaceInfoServiceImpl.cs +++ b/HighWayIot.Repository/service/Impl/BaseSpaceInfoServiceImpl.cs @@ -174,7 +174,28 @@ namespace HighWayIot.Repository.service.Impl List spaceInfos = null; try { - spaceInfos = _mesRepository.GetList(x => x.storeCode == storeCode).ToList(); + //spaceInfos = _mesRepository.GetList(x => x.storeCode == storeCode).ToList(); + + spaceInfos = _mesRepository.Context.Queryable() + .LeftJoin((s, b) => s.materialType == b.materialCode) + .Where((s, b) => s.storeCode == storeCode) + .Select((s, b) => new BaseSpaceInfo() + { + objId = s.objId, + spaceCode = s.spaceCode, + spaceName = s.spaceName, + spaceCapacity = s.spaceCapacity, + spaceStock = s.spaceStock, + spaceStatus = s.spaceStatus, + spaceType = s.spaceType, + isFlag = s.isFlag, + materialType = b.materialName, + onRouteAmount = s.onRouteAmount, + inStoreFlag = s.inStoreFlag, + outRouteAmount = s.outRouteAmount, + outStoreFlag = s.outStoreFlag, + unusualFlag = s.unusualFlag, + }).ToList(); } catch (Exception ex) { diff --git a/HighWayIot.Rfid/obj/Debug/HighWayIot.Rfid.csproj.AssemblyReference.cache b/HighWayIot.Rfid/obj/Debug/HighWayIot.Rfid.csproj.AssemblyReference.cache index 16a78c4b..2b5043a0 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 00fa5930..6c767ae3 100644 Binary files a/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache and b/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache differ