소스 검색

update null

git-svn-id: http://10.4.3.168:50001/svn/Furnace@53 dbcde07d-dcf5-c148-8a84-ac3097b7778e
Jiangjinyuan 3 달 전
부모
커밋
f9b0f75991
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      FrameworkLocal/UIClient/CenterViews/DataLogs/ProcessHistory/ProcessHistoryTwoViewModel.cs

+ 5 - 1
FrameworkLocal/UIClient/CenterViews/DataLogs/ProcessHistory/ProcessHistoryTwoViewModel.cs

@@ -102,7 +102,11 @@ namespace MECF.Framework.UI.Client.CenterViews.DataLogs.ProcessHistory
             this.view.wfTimeTo.Content = this.SearchEndTime;
 
             QueryLots(new object());
-            ProcessHistoryLots.FirstOrDefault().IsChecked = true;
+
+            if (ProcessHistoryLots!=null&& ProcessHistoryLots.FirstOrDefault() != null)
+            {
+                ProcessHistoryLots.FirstOrDefault().IsChecked = true;
+            }
         }
 
         void InitTime()