From 8405d6a397240df0a09a658988b2df45163d9b1c Mon Sep 17 00:00:00 2001 From: liuwf Date: Fri, 8 Nov 2024 17:27:21 +0800 Subject: [PATCH] change --- SlnMesnac.Business/ProdCompletionBusiness.cs | 12 +++----- .../service/Impl/WmsOutStockServiceImpl.cs | 2 +- SlnMesnac.WPF/Page/BaseConfigInfoPage.xaml | 6 ++-- SlnMesnac.WPF/Page/BaseConfigInfoPage.xaml.cs | 21 +++++++++----- SlnMesnac.WPF/Page/DevMonitorPage.xaml.cs | 28 ++++++++++--------- SlnMesnac.WPF/Page/ManualDeliveryWindow.xaml | 3 +- .../Page/ManualDeliveryWindow.xaml.cs | 8 ++++++ 7 files changed, 47 insertions(+), 33 deletions(-) diff --git a/SlnMesnac.Business/ProdCompletionBusiness.cs b/SlnMesnac.Business/ProdCompletionBusiness.cs index 0b3743c..11c0d8b 100644 --- a/SlnMesnac.Business/ProdCompletionBusiness.cs +++ b/SlnMesnac.Business/ProdCompletionBusiness.cs @@ -285,15 +285,11 @@ namespace SlnMesnac.Business Thread.Sleep(3000); continue; } - // plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "JYHB01010125", 12); - - if (!plc.readBoolByAddress(GetPlcAddressByConfigKey("2楼小包出口到位信号"))) { - // _logger.LogInformation("等待小包出口信号触发......"); - // 清空RFID + plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "", 12); Thread.Sleep(5000); continue; @@ -357,7 +353,7 @@ namespace SlnMesnac.Business continue; } - RefreshMessage($"2F小包出口读取到RFID条码{epcStr},开始绑定流程:"); + RefreshMessage($"2F小包出口读取到RFID条码{epcStr},开始入库:"); _mesProductPlanService.GetStartedProdPlan(out MesProductPlanDto productPlanDto); if (productPlanDto == null) @@ -382,8 +378,8 @@ namespace SlnMesnac.Business UpdatePlanInfoAndOrder(productPlanDto); - // 删除正在使用的数据库托盘号 - List realPalletList = _realPalletTaskService.Query(x => x.PalletCode == epcStr); + // 删除所有数据库托盘号 + List realPalletList = _realPalletTaskService.Query(); if (realPalletList != null && realPalletList.Count > 0) { sqlSugarClient.AsTenant().GetConnection("mes").Deleteable(realPalletList).ExecuteCommand(); diff --git a/SlnMesnac.Repository/service/Impl/WmsOutStockServiceImpl.cs b/SlnMesnac.Repository/service/Impl/WmsOutStockServiceImpl.cs index 612d502..17e86d4 100644 --- a/SlnMesnac.Repository/service/Impl/WmsOutStockServiceImpl.cs +++ b/SlnMesnac.Repository/service/Impl/WmsOutStockServiceImpl.cs @@ -48,7 +48,7 @@ namespace SlnMesnac.Repository.service.Impl { try { - return base._rep.GetFirst(x => x.planCode == planCode); + return base._rep.GetFirst(x => x.planCode == planCode && x.executeStatus!="2"); } catch (Exception ex) { diff --git a/SlnMesnac.WPF/Page/BaseConfigInfoPage.xaml b/SlnMesnac.WPF/Page/BaseConfigInfoPage.xaml index 8290138..3b7787e 100644 --- a/SlnMesnac.WPF/Page/BaseConfigInfoPage.xaml +++ b/SlnMesnac.WPF/Page/BaseConfigInfoPage.xaml @@ -20,7 +20,7 @@