From 5d543ce35a4b30bf0dd6cb54cb2abe6939a63a82 Mon Sep 17 00:00:00 2001 From: liuwf Date: Fri, 6 Sep 2024 15:44:51 +0800 Subject: [PATCH] =?UTF-8?q?change-=E8=AE=BE=E5=A4=87=E7=9B=91=E5=90=ACbug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Business/ProdCompletionBusiness.cs | 14 +- SlnMesnac.WPF/Page/DevMonitorPage.xaml | 5 +- SlnMesnac.WPF/Page/DevMonitorPage.xaml.cs | 313 +++++++++--------- SlnMesnac.WPF/Page/SystemAlarmWindow.xaml | 2 +- .../Page/Window/InputDialogWindow.xaml.cs | 5 +- 5 files changed, 178 insertions(+), 161 deletions(-) diff --git a/SlnMesnac.Business/ProdCompletionBusiness.cs b/SlnMesnac.Business/ProdCompletionBusiness.cs index 5eaace3..a357427 100644 --- a/SlnMesnac.Business/ProdCompletionBusiness.cs +++ b/SlnMesnac.Business/ProdCompletionBusiness.cs @@ -78,17 +78,18 @@ namespace SlnMesnac.Business _mesProductOrderService = serviceProvider.GetRequiredService(); _baseMaterialInfoService = serviceProvider.GetRequiredService(); Init(); - + // test(); } private void test() { // MesProductPlanDetail? mesProductPlanDetail = sqlSugarClient.AsTenant().GetConnection("mes").Queryable().First(x => x.PlanCode == "20240724144533JL001"); - // string epc = "A123456"; - //_mesProductPlanService.GetStartedProdPlan(out MesProductPlanDto productPlanDto); - // string bigCode = GenerateBigBarcode(productPlanDto, epc); - // BindingBarCode(bigCode, epc); - + sqlSugarClient.AsTenant().BeginTran(); + string epc = "A123456"; + _mesProductPlanService.GetStartedProdPlan(out MesProductPlanDto productPlanDto); + string bigCode = GenerateBigBarcode(productPlanDto, epc); + BindingBarCode(bigCode, epc, productPlanDto); + sqlSugarClient.AsTenant().BeginTran(); } @@ -287,7 +288,6 @@ namespace SlnMesnac.Business readRfidAmount++; if (readRfidAmount == 5) { - string virtualEpc = NoReadRFIDAlarm(); _logger.LogError("小包出口到位信号触发,读取RFID失败超过5次......"); if (!string.IsNullOrEmpty(virtualEpc)) diff --git a/SlnMesnac.WPF/Page/DevMonitorPage.xaml b/SlnMesnac.WPF/Page/DevMonitorPage.xaml index 050ed63..9140a2d 100644 --- a/SlnMesnac.WPF/Page/DevMonitorPage.xaml +++ b/SlnMesnac.WPF/Page/DevMonitorPage.xaml @@ -22,7 +22,6 @@