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) {