From 3cf05e4d2553c31ffc879cb6a65abd97ad24daf6 Mon Sep 17 00:00:00 2001 From: liuwf Date: Thu, 7 Dec 2023 13:50:48 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=E8=B0=83=E6=95=B4=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Aucma.Scada.Business/AssemblyPlanBusiness.cs | 2 +- .../AssemblyPlan/AssemblyPlanControl.xaml | 22 +++++++++---------- Aucma.Scada.UI/bin/Debug/config/App.Ini | 6 ++--- .../AssemblyPlan/AssemblyPlanViewModel.cs | 10 +++++++++ 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/Aucma.Scada.Business/AssemblyPlanBusiness.cs b/Aucma.Scada.Business/AssemblyPlanBusiness.cs index 80010973..b0bd1678 100644 --- a/Aucma.Scada.Business/AssemblyPlanBusiness.cs +++ b/Aucma.Scada.Business/AssemblyPlanBusiness.cs @@ -155,7 +155,7 @@ namespace Aucma.Scada.Business List spaceDetails = _spaceDetailService.GetSpaceDetailsByMaterialType(storeCode, materialType); - if (spaceDetails.Count > transmitAmount) + if (spaceDetails.Count >= transmitAmount) { result = true; } diff --git a/Aucma.Scada.UI/Page/AssemblyPlan/AssemblyPlanControl.xaml b/Aucma.Scada.UI/Page/AssemblyPlan/AssemblyPlanControl.xaml index 732c676a..7b6b5a59 100644 --- a/Aucma.Scada.UI/Page/AssemblyPlan/AssemblyPlanControl.xaml +++ b/Aucma.Scada.UI/Page/AssemblyPlan/AssemblyPlanControl.xaml @@ -286,24 +286,22 @@ - + ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True" + Foreground="White" > - - - + + - + - - - + + diff --git a/Aucma.Scada.UI/bin/Debug/config/App.Ini b/Aucma.Scada.UI/bin/Debug/config/App.Ini index 20b732f0..ae151a4f 100644 --- a/Aucma.Scada.UI/bin/Debug/config/App.Ini +++ b/Aucma.Scada.UI/bin/Debug/config/App.Ini @@ -4,7 +4,7 @@ mesConnStr=Data Source=175.27.215.92/helowin;User ID=aucma_mes;Password=aucma scadaConnStr=Data Source=175.27.215.92/helowin;User ID=aucma_scada;Password=aucma #λ -stationCode=ZZ-01 +stationCode=1002 #λ stationName=ڵװ @@ -14,9 +14,9 @@ shellStoreCode=XKJCK-001 linerStoreCode=NDJCK-001 #ͱ -shellMaterialType =3 +shellMaterialType =400 #ڵͱ -linerMaterialType=4 +linerMaterialType=500 #ͱ instoreTaskType=1 diff --git a/Aucma.Scada.UI/viewModel/AssemblyPlan/AssemblyPlanViewModel.cs b/Aucma.Scada.UI/viewModel/AssemblyPlan/AssemblyPlanViewModel.cs index 97bf8904..345e4091 100644 --- a/Aucma.Scada.UI/viewModel/AssemblyPlan/AssemblyPlanViewModel.cs +++ b/Aucma.Scada.UI/viewModel/AssemblyPlan/AssemblyPlanViewModel.cs @@ -48,6 +48,15 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan #region 参数定义 /// + /// 序号 + /// + private int no; + public int NO + { + get { return no; } + set { no = value; RaisePropertyChanged(nameof(NO)); } + } + /// /// 工位名称 /// private string stationName = string.Empty; @@ -294,6 +303,7 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan public void RefreshDataGrid(List executePlanInfos) { + int count = 0; PlanInfoDataGrid = new ObservableCollection(); if (executePlanInfos != null) {