|
|
@@ -22,7 +22,7 @@ namespace BPASmartClient.ViewModel |
|
|
|
/// </summary> |
|
|
|
public class LogViewModel :ObservableObject |
|
|
|
{ |
|
|
|
public DispatcherTimer dispatcherTimer; |
|
|
|
//public DispatcherTimer dispatcherTimer; |
|
|
|
public string ClientId= System.Configuration.ConfigurationManager.AppSettings["ClientId"].ToString(); |
|
|
|
private ObservableCollection<LogModel> _LogModels; |
|
|
|
public ObservableCollection<LogModel> LogDataGrid |
|
|
@@ -63,7 +63,7 @@ namespace BPASmartClient.ViewModel |
|
|
|
LogTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), |
|
|
|
LogType = "严重", |
|
|
|
LogMessage = s, |
|
|
|
LogVla = "错误日志", |
|
|
|
LogVla = "错误日志" |
|
|
|
}); |
|
|
|
})); |
|
|
|
}); |
|
|
@@ -71,16 +71,6 @@ namespace BPASmartClient.ViewModel |
|
|
|
{ |
|
|
|
ExcellOrder(); |
|
|
|
}); |
|
|
|
|
|
|
|
//dispatcherTimer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) };//1秒一流转 |
|
|
|
//dispatcherTimer.Tick += delegate |
|
|
|
//{ |
|
|
|
// if (TimedClear) |
|
|
|
// { |
|
|
|
|
|
|
|
// } |
|
|
|
//}; |
|
|
|
//dispatcherTimer.Start(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
@@ -129,6 +119,7 @@ namespace BPASmartClient.ViewModel |
|
|
|
System.Windows.MessageBox.Show("无数据!"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 打开指定路径下文件,比如:Word、Excel、Dll、图片等都可以(前提是你已经安装打开程序的对应软件) |
|
|
|
/// </summary> |
|
|
|