diff --git a/SlnMesnac.Business/base/BaseBusiness.cs b/SlnMesnac.Business/base/BaseBusiness.cs index 4d8fe61..5b1c2a6 100644 --- a/SlnMesnac.Business/base/BaseBusiness.cs +++ b/SlnMesnac.Business/base/BaseBusiness.cs @@ -95,13 +95,13 @@ namespace SlnMesnac.Business.@base { cabinetInfos = _ibase_Cabinet_InfoServices.Query(x=>x.isChecked == 1 && x.isFlag == 1).ToList(); - if (equipAddr == 1) //左侧原点,正序巡检 + if (equipAddr > 20) //20 号柜子之后倒叙巡检 { - cabinetInfos.OrderBy(x => x.cabinetCode); + cabinetInfos.OrderByDescending(x => x.cabinetCode); } else //右侧原点,倒序巡检 { - cabinetInfos.OrderByDescending(x => x.cabinetCode); + cabinetInfos.OrderBy(x => x.cabinetCode); } } diff --git a/SlnMesnac.WPF/MainWindow.xaml b/SlnMesnac.WPF/MainWindow.xaml index 09a4ca1..89ebda8 100644 --- a/SlnMesnac.WPF/MainWindow.xaml +++ b/SlnMesnac.WPF/MainWindow.xaml @@ -35,7 +35,7 @@