diff --git a/.vs/HighWayIot/FileContentIndex/1bc3f51b-5d8f-47ce-9eb3-2a3ee066c7ad.vsidx b/.vs/HighWayIot/FileContentIndex/1bc3f51b-5d8f-47ce-9eb3-2a3ee066c7ad.vsidx deleted file mode 100644 index 5bab1a9..0000000 Binary files a/.vs/HighWayIot/FileContentIndex/1bc3f51b-5d8f-47ce-9eb3-2a3ee066c7ad.vsidx and /dev/null differ diff --git a/.vs/HighWayIot/FileContentIndex/5571fdc7-4fea-453f-8e56-1c332849ffc8.vsidx b/.vs/HighWayIot/FileContentIndex/5571fdc7-4fea-453f-8e56-1c332849ffc8.vsidx new file mode 100644 index 0000000..a730bb1 Binary files /dev/null and b/.vs/HighWayIot/FileContentIndex/5571fdc7-4fea-453f-8e56-1c332849ffc8.vsidx differ diff --git a/.vs/HighWayIot/FileContentIndex/91f33df6-ff7f-4de2-a95b-748032379d21.vsidx b/.vs/HighWayIot/FileContentIndex/91f33df6-ff7f-4de2-a95b-748032379d21.vsidx new file mode 100644 index 0000000..c7c4996 Binary files /dev/null and b/.vs/HighWayIot/FileContentIndex/91f33df6-ff7f-4de2-a95b-748032379d21.vsidx differ diff --git a/.vs/HighWayIot/FileContentIndex/b7833387-b22d-49b2-a3a0-cf2d5e600da9.vsidx b/.vs/HighWayIot/FileContentIndex/b7833387-b22d-49b2-a3a0-cf2d5e600da9.vsidx new file mode 100644 index 0000000..a436e3d Binary files /dev/null and b/.vs/HighWayIot/FileContentIndex/b7833387-b22d-49b2-a3a0-cf2d5e600da9.vsidx differ diff --git a/.vs/HighWayIot/FileContentIndex/db4a6e07-faf9-4c73-8bbc-70c8f44c031c.vsidx b/.vs/HighWayIot/FileContentIndex/db4a6e07-faf9-4c73-8bbc-70c8f44c031c.vsidx deleted file mode 100644 index 0a741b5..0000000 Binary files a/.vs/HighWayIot/FileContentIndex/db4a6e07-faf9-4c73-8bbc-70c8f44c031c.vsidx and /dev/null differ diff --git a/.vs/HighWayIot/FileContentIndex/e4977901-dfe7-4723-9887-30e6bc3109f8.vsidx b/.vs/HighWayIot/FileContentIndex/e4977901-dfe7-4723-9887-30e6bc3109f8.vsidx deleted file mode 100644 index 8367e77..0000000 Binary files a/.vs/HighWayIot/FileContentIndex/e4977901-dfe7-4723-9887-30e6bc3109f8.vsidx and /dev/null differ diff --git a/.vs/HighWayIot/v17/.suo b/.vs/HighWayIot/v17/.suo index 9cf570b..baa45e2 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 3026a94..8069990 100644 --- a/Aucma.Scada.Business/InStoreBusiness.cs +++ b/Aucma.Scada.Business/InStoreBusiness.cs @@ -51,6 +51,8 @@ namespace Aucma.Scada.Business private IRealTaskInfoService _taskInfoService; private IBaseSpaceDetailService _baseSpaceDetailService; + + private IBaseBomInfoService _baseBomInfoService; #endregion #region 委托事件 @@ -85,20 +87,24 @@ namespace Aucma.Scada.Business _spaceInfoService = registerServices.GetService(); _taskInfoService = registerServices.GetService(); _baseSpaceDetailService = registerServices.GetService(); + _baseBomInfoService = registerServices.GetService(); taskHandle.InStoreFinsihEvent += TaskFeedback; grabImage.RefreshMaterialCodeStrEvent += InStore; grabImage.RefreshLogMessageEvent += PrintLogInfoMessage; StartPassDown(); - //Task.Run(() => - //{ - // Thread.Sleep(6000); - // for(int i = 2;i<10;i++) - // { - // InStore(appConfig.shellStoreCode, "B23600000781101900"+i); - // InStore(appConfig.linerStoreCode, "L23600000788101900"+i); - // } - //}); + Task.Run(() => + { + Thread.Sleep(6000); + //for (int i = 2; i < 10; i++) + //{ + // InStore(appConfig.shellStoreCode, "B23600000781101900" + i); + // InStore(appConfig.linerStoreCode, "L23600000788101900" + i); + //} + + InStore(appConfig.shellStoreCode, "B236000007811019013"); + }); + } /// @@ -116,7 +122,7 @@ namespace Aucma.Scada.Business if (spaceInfo != null) { PrintLogInfoMessage($"匹配货道:{spaceInfo.spaceName}"); - RefreshScanMateriaCodeEvent?.Invoke(materialCode, materialType, spaceInfo.spaceName, storeCode); //刷新界面扫码信息 + RefreshScanMateriaCodeEvent?.Invoke(materialCode, GetMaterialName(materialType), spaceInfo.spaceName, storeCode); //刷新界面扫码信息 var result = CreateInStoreTask(spaceInfo, materialCode); //创建入库任务 if (result) { @@ -386,6 +392,7 @@ namespace Aucma.Scada.Business BaseSpaceDetail spaceDetail = new BaseSpaceDetail(); spaceDetail.materialType = taskInfo.materialType; spaceDetail.materialCode = taskInfo.materialCode; + spaceDetail.materialName = GetMaterialName(taskInfo.materialType); spaceDetail.storeCode = spaceInfo.storeCode; spaceDetail.spaceCode = spaceInfo.spaceCode; spaceDetail.materialAmount = 1; @@ -445,5 +452,22 @@ namespace Aucma.Scada.Business { return _taskInfoService.GetTaskInfosByStoreCode(new string[] { appConfig.shellStoreCode,appConfig.linerStoreCode }, 1); } + + /// + /// 通过BOM获取物料名称 + /// + /// + /// + public string GetMaterialName(string materialType) + { + string materialName = string.Empty; + var info = _baseBomInfoService.GetBomInfoByMaterialCode(materialType); + if(info != null) + { + materialName = info.materialName; + } + + return materialName; + } } } diff --git a/Aucma.Scada.Business/bin/Debug/Aucma.Scada.Business.dll b/Aucma.Scada.Business/bin/Debug/Aucma.Scada.Business.dll index d03cdb1..2fc85e2 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 e96339a..a2f945a 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.Repository.dll b/Aucma.Scada.Business/bin/Debug/HighWayIot.Repository.dll index 6ac1ec6..ce2f82a 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 c30b6f7..8267171 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 352a6a4..978ba03 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 d03cdb1..2fc85e2 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 e96339a..a2f945a 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 6ae48cd..d56326b 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 75f86db..63ddfe6 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/bin/Debug/Aucma.Scada.Business.dll b/Aucma.Scada.UI/bin/Debug/Aucma.Scada.Business.dll index d03cdb1..2fc85e2 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 e96339a..a2f945a 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 75af218..40824b8 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 4d10adb..dc8240b 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/bin/Debug/HighWayIot.Repository.dll b/Aucma.Scada.UI/bin/Debug/HighWayIot.Repository.dll index 6ac1ec6..ce2f82a 100644 Binary files a/Aucma.Scada.UI/bin/Debug/HighWayIot.Repository.dll and b/Aucma.Scada.UI/bin/Debug/HighWayIot.Repository.dll differ diff --git a/Aucma.Scada.UI/bin/Debug/HighWayIot.Repository.pdb b/Aucma.Scada.UI/bin/Debug/HighWayIot.Repository.pdb index c30b6f7..8267171 100644 Binary files a/Aucma.Scada.UI/bin/Debug/HighWayIot.Repository.pdb and b/Aucma.Scada.UI/bin/Debug/HighWayIot.Repository.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 6a4d5f7..233b571 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 75af218..40824b8 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 4d10adb..dc8240b 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 84e1537..432d5c4 100644 --- a/Aucma.Scada.UI/viewModel/InStoreInfo/InStoreInfoViewModel.cs +++ b/Aucma.Scada.UI/viewModel/InStoreInfo/InStoreInfoViewModel.cs @@ -238,6 +238,7 @@ namespace Aucma.Scada.UI.viewModel.InStoreInfo App.Current.Dispatcher.Invoke((Action)(() => { + item.materialType = inStoreBusiness.GetMaterialName(item.materialType); taskItems.Add(item); InstoreTask = taskItems; })); diff --git a/HighWayIot.Common/obj/Debug/HighWayIot.Common.csproj.AssemblyReference.cache b/HighWayIot.Common/obj/Debug/HighWayIot.Common.csproj.AssemblyReference.cache index 60e0cfc..8cb2557 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 3d3ee81..aaa6bc7 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.Plc/obj/Debug/HighWayIot.Plc.csproj.AssemblyReference.cache b/HighWayIot.Plc/obj/Debug/HighWayIot.Plc.csproj.AssemblyReference.cache index 98cbcec..1e37db3 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/bin/Debug/HighWayIot.Repository.dll b/HighWayIot.Repository/bin/Debug/HighWayIot.Repository.dll index 6ac1ec6..ce2f82a 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 c30b6f7..8267171 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 76ee0cf..f372242 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 6ac1ec6..ce2f82a 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 c30b6f7..8267171 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/IBaseBomInfoService.cs b/HighWayIot.Repository/service/IBaseBomInfoService.cs index 71eaf86..f7662de 100644 --- a/HighWayIot.Repository/service/IBaseBomInfoService.cs +++ b/HighWayIot.Repository/service/IBaseBomInfoService.cs @@ -14,5 +14,12 @@ namespace HighWayIot.Repository.service /// /// BaseBomInfo GetChildenBomInfoByMaterialCode(string materialCode, string materialType); + + /// + /// 根据物料编号获取BOM信息 + /// + /// + /// + BaseBomInfo GetBomInfoByMaterialCode(string materialCode); } } diff --git a/HighWayIot.Repository/service/Impl/BaseBomInfoServiceImpl.cs b/HighWayIot.Repository/service/Impl/BaseBomInfoServiceImpl.cs index dc7c4b7..51f2a9c 100644 --- a/HighWayIot.Repository/service/Impl/BaseBomInfoServiceImpl.cs +++ b/HighWayIot.Repository/service/Impl/BaseBomInfoServiceImpl.cs @@ -44,6 +44,25 @@ namespace HighWayIot.Repository.service.Impl return bomInfo; } + /// + /// 根据物料编号获取BOM信息 + /// + /// + /// + public BaseBomInfo GetBomInfoByMaterialCode(string materialCode) + { + BaseBomInfo bomInfo = null; + try + { + bomInfo = _bomInfoRepository.GetFirst(x=>x.materialCode == materialCode); + } + catch (Exception ex) + { + logHelper.Error("根据物料编号获取BOM信息异常", ex); + } + return bomInfo; + } + private List GetChildenByParentId(string parentId, List result = null) { if (result == null) diff --git a/HighWayIot.Rfid/obj/Debug/HighWayIot.Rfid.csproj.AssemblyReference.cache b/HighWayIot.Rfid/obj/Debug/HighWayIot.Rfid.csproj.AssemblyReference.cache index f81d0f7..30dca5a 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/bin/Debug/HighWayIot.Repository.dll b/HighWayIot/bin/Debug/HighWayIot.Repository.dll index 6ac1ec6..ce2f82a 100644 Binary files a/HighWayIot/bin/Debug/HighWayIot.Repository.dll and b/HighWayIot/bin/Debug/HighWayIot.Repository.dll differ diff --git a/HighWayIot/bin/Debug/HighWayIot.Repository.pdb b/HighWayIot/bin/Debug/HighWayIot.Repository.pdb index c30b6f7..8267171 100644 Binary files a/HighWayIot/bin/Debug/HighWayIot.Repository.pdb and b/HighWayIot/bin/Debug/HighWayIot.Repository.pdb differ diff --git a/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache b/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache index bcfbd5c..02d116c 100644 Binary files a/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache and b/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache differ