From 74cdbeae548a774ac46485a0160b9e8a693659b1 Mon Sep 17 00:00:00 2001 From: fyf Date: Sat, 14 May 2022 17:15:00 +0800 Subject: [PATCH] 34343434 --- .../Themes/GenricStyle.xaml | 9 +++--- .../LogOrAlarmViewModel.cs | 30 +++++++++++++++---- BPASmartClient/Control/LogOrAlarmView.xaml | 9 +++--- BPASmartClient/Control/LogView.xaml | 4 +-- 4 files changed, 36 insertions(+), 16 deletions(-) diff --git a/BPASmartClient.CustomResource/Themes/GenricStyle.xaml b/BPASmartClient.CustomResource/Themes/GenricStyle.xaml index 6b01fb56..8561efb6 100644 --- a/BPASmartClient.CustomResource/Themes/GenricStyle.xaml +++ b/BPASmartClient.CustomResource/Themes/GenricStyle.xaml @@ -538,6 +538,7 @@ + @@ -558,11 +559,11 @@ diff --git a/BPASmartClient.ViewModel/LogOrAlarmViewModel.cs b/BPASmartClient.ViewModel/LogOrAlarmViewModel.cs index c95602fb..bc48b94a 100644 --- a/BPASmartClient.ViewModel/LogOrAlarmViewModel.cs +++ b/BPASmartClient.ViewModel/LogOrAlarmViewModel.cs @@ -27,21 +27,40 @@ namespace BPASmartClient.ViewModel /// /// 选中变量 /// - private bool _selectCombox = true; - public bool SelectCombox + private string _SelectCombox; + public string SelectCombox { get { - return _selectCombox; + return _SelectCombox; } set { - if (_selectCombox == value) + if (_SelectCombox == value) return; - _selectCombox = value; + _SelectCombox = value; OnPropertyChanged("SelectCombox"); } } + + /// + /// 时间条件 + /// + private DateTime _DateTime; + public DateTime DateTimeStr + { + get + { + return _DateTime; + } + set + { + if (_DateTime == value) + return; + _DateTime = value; + OnPropertyChanged("DateTimeStr"); + } + } #endregion #region Command @@ -52,6 +71,7 @@ namespace BPASmartClient.ViewModel #region 函数 public void Init() { + DateTimeStr = DateTime.Now; QueryCommand = new RelayCommand(() => { diff --git a/BPASmartClient/Control/LogOrAlarmView.xaml b/BPASmartClient/Control/LogOrAlarmView.xaml index 8bfc51c0..809221bf 100644 --- a/BPASmartClient/Control/LogOrAlarmView.xaml +++ b/BPASmartClient/Control/LogOrAlarmView.xaml @@ -20,7 +20,7 @@ - + @@ -31,10 +31,9 @@ 错误日志 设备告警 - - - - + + + diff --git a/BPASmartClient/Control/LogView.xaml b/BPASmartClient/Control/LogView.xaml index 886b0319..dfa3fc63 100644 --- a/BPASmartClient/Control/LogView.xaml +++ b/BPASmartClient/Control/LogView.xaml @@ -27,8 +27,8 @@ - - + +