|
@@ -153,8 +153,8 @@ namespace PLCTool.ViewModels.BusinessManageViewModel
|
|
|
conditionDevices = (from a in allDeviceList
|
|
|
where (string.IsNullOrEmpty(DeviceName) ? true : (a.DeviceName == DeviceName))
|
|
|
&& (string.IsNullOrEmpty(DeviceNo) ? true : (a.DeviceNo == DeviceNo))
|
|
|
- && (DeviceKindName == "---") ? true : (a.DeviceKindName == DeviceKindName)
|
|
|
- && (ProjectName == "---") ? true : (a.ProjectName == ProjectName)
|
|
|
+ && ((DeviceKindName == "---") ? true : (a.DeviceKindName == DeviceKindName))
|
|
|
+ && ((ProjectName == "---") ? true : (a.ProjectName == ProjectName))
|
|
|
select a).ToList();
|
|
|
//默认显示的第一页
|
|
|
conditionDevices = conditionDevices.OrderBy(x => x.DeviceId).ToList();
|