|
@@ -215,7 +215,6 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
private void PageControl_CurrentPageChanged(int currentPage)
|
|
|
{
|
|
|
- CurrentPage = currentPage;
|
|
|
PageChanged(currentPage);
|
|
|
}
|
|
|
|
|
@@ -337,7 +336,7 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
SearchedResult = new ObservableCollection<Aitex.Core.UI.View.Common.SystemLogItem>();
|
|
|
|
|
|
- this.view.pageControl.OnApplyTemplate();
|
|
|
+ //this.view.pageControl.CurrentPage = 1;
|
|
|
|
|
|
string sqlEvent = "";
|
|
|
string sqlOperationLog = "";
|
|
@@ -492,22 +491,6 @@ namespace Venus_MainPages.ViewModels
|
|
|
if (!string.IsNullOrWhiteSpace(SearchKeyWords)) sqlEvent += string.Format(" and lower(\"description\") like '%{0}%' or lower(\"type\") like '%{1}%'", SearchKeyWords.ToLower(), SearchKeyWords.ToLower());
|
|
|
}
|
|
|
|
|
|
- if (SearchOpeLog)
|
|
|
- {
|
|
|
- //sqlOperationLog = string.Format(" SELECT \"UserName\" as \"Initiator\", 'UserOperation' as \"LogType\", \"Time\", \"ChamberId\" as \"TargetChamber\", \"Content\" as \"Description\" FROM \"OperationLog\" where \"Time\" >='{0}' and \"Time\" <='{1}' ", SearchBeginTime.ToString("yyyy/MM/dd HH:mm:ss"), SearchEndTime.ToString("yyyy/MM/dd HH:mm:ss"));
|
|
|
-
|
|
|
- //if (!SearchPMA) sqlOperationLog += string.Format(" and \"ChamberId\"<>'{0}' ", ChamberSet.ReactorA);
|
|
|
- //if (!SearchPMB) sqlOperationLog += string.Format(" and \"ChamberId\"<>'{0}' ", ChamberSet.ReactorB);
|
|
|
- //if (!SearchPMC) sqlOperationLog += string.Format(" and \"ChamberId\"<>'{0}' ", ChamberSet.ReactorC);
|
|
|
- //if (!SearchPMD) sqlOperationLog += string.Format(" and \"ChamberId\"<>'{0}' ", ChamberSet.ReactorD);
|
|
|
- //if (!SearchSystem) sqlOperationLog += string.Format(" and \"ChamberId\"<>'{0}' ", ChamberSet.System);
|
|
|
- //if (!SearchLL) sqlOperationLog += string.Format(" and \"ChamberId\"<>'{0}' ", ChamberSet.Loadlock);
|
|
|
- //if (!SearchTM) sqlOperationLog += string.Format(" and \"ChamberId\"<>'{0}' and \"ChamberId\"<>'{1}' and \"ChamberId\"<>'{2}' ",
|
|
|
- // ChamberSet.Loadlock, ChamberSet.Buffer1, ChamberSet.Cooldown);
|
|
|
- //if (!string.IsNullOrWhiteSpace(SelectedUser) && SelectedUser != "不限") sqlOperationLog += string.Format(" and lower(\"UserName\")='{0}' ", SelectedUser.ToLower());
|
|
|
-
|
|
|
- //if (!string.IsNullOrWhiteSpace(SearchKeyWords)) sqlOperationLog += string.Format(" and lower(\"Content\") like '%{0}%' ", SearchKeyWords.ToLower());
|
|
|
- }
|
|
|
|
|
|
sql = sqlEvent;
|
|
|
|
|
@@ -526,7 +509,7 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
if (!string.IsNullOrEmpty(sql) && QueryDBEventFunc != null)
|
|
|
{
|
|
|
- sql += $" order by \"occur_time\" DESC limit {m_onePageCounts} offset ({(CurrentPage-1) * m_onePageCounts});";
|
|
|
+ sql += $" order by \"occur_time\" DESC limit {m_onePageCounts} offset {(CurrentPage-1) * m_onePageCounts};";
|
|
|
|
|
|
List<EventItem> lstEvent = QueryDBEventFunc(sql);
|
|
|
|
|
@@ -562,11 +545,6 @@ namespace Venus_MainPages.ViewModels
|
|
|
}
|
|
|
RaisePropertyChanged("SearchedResult");
|
|
|
|
|
|
- //if (SearchedResult.Count >= 2000)
|
|
|
- //{
|
|
|
- // //MessageBox.Show("Only display max 2000 items,reset the query condition", "query too many result", MessageBoxButton.OK, MessageBoxImage.Warning);
|
|
|
- //}
|
|
|
-
|
|
|
}));
|
|
|
}
|
|
|
else
|
|
@@ -580,7 +558,6 @@ namespace Venus_MainPages.ViewModels
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- //LOG.Write(ex);
|
|
|
LOG.WriteExeption(ex);
|
|
|
}
|
|
|
});
|