You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Aucma.Scada/Aucma.Scada.UI/viewModel/RecordViewModel.cs

71 lines
1.6 KiB
C#

using Aucma.Scada.Model.domain;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using HighWayIot.Log4net;
using System;
using System.Collections.ObjectModel;
namespace Aucma.Scada.UI.viewModel
{
public class RecordViewModel : ViewModelBase
{
private LogHelper logHelper = LogHelper.Instance;
public RecordViewModel()
{
QueryCommand = new RelayCommand(Query);
ResetCommand = new RelayCommand(Reset);
}
#region 参数定义
private String search = String.Empty;
public String Search
{
get { return search; }
set { search = value; RaisePropertyChanged(); }
}
private ObservableCollection<SysUserInfo> gridModelList;
//前端使用的属性
public ObservableCollection<SysUserInfo> GridModelList
{
get { return gridModelList; }
set { gridModelList = value; RaisePropertyChanged(); }
}
#endregion
#region 事件定义
/// <summary>
/// 查询事件
/// </summary>
public RelayCommand QueryCommand { get; set; }
/// <summary>
/// 重置
/// </summary>
public RelayCommand ResetCommand { get; set; }
#endregion
/// <summary>
/// 查询
/// </summary>
public void Query()
{
}
/// <summary>
/// 重置
/// </summary>
public void Reset()
{
Search = String.Empty;
this.Query();
}
}
}