using System;
using System.Windows.Controls;
using Telerik.Windows.Controls;
namespace SWS.Model
{
public class SignalNotice: ViewModelBase
{
#region 属性
private int _ID;
///
/// 序号
///
public int ID
{
get { return _ID; }
set { _ID = value; }
}
private string _WireGroupNoticeID;
///
/// 信号通知ID
///
public string WireGroupNoticeID
{
get { return _WireGroupNoticeID; }
set { _WireGroupNoticeID = value; }
}
private string _Group_Name;
///
/// CH.NO
///
public string Group_Name
{
get { return _Group_Name; }
set { _Group_Name = value; }
}
private string _Group_Desc;
///
/// z中文描述
///
public string Group_Desc
{
get { return _Group_Desc; }
set { _Group_Desc = value; }
}
private string _Group_Desc_EN;
///
/// 英文描述
///
public string Group_Desc_EN
{
get { return _Group_Desc_EN; }
set { _Group_Desc_EN = value; }
}
private string _IO_Type;
///
/// 信号类型
///
public string IO_Type
{
get { return _IO_Type; }
set { _IO_Type = value; }
}
private Model.Action _ActionID;
///
/// 操作ID
///
public Model.Action ActionID
{
get { return _ActionID; }
set { _ActionID = value; }
}
private string _Action;
///
/// 操作
///
public string Action
{
get { return _Action; }
set { _Action = value; }
}
private string _CreateUserName;
///
/// 发出者
///
public string CreateUserName
{
get { return _CreateUserName; }
set { _CreateUserName = value; }
}
private DateTime? _CreateTime;
///
/// 操作时间
///
public DateTime? CreateTime
{
get { return _CreateTime; }
set { _CreateTime = value; }
}
private string _UpdateUserName;
///
/// 已阅人
///
public string UpdateUserName
{
get { return _UpdateUserName; }
set { _UpdateUserName = value; }
}
private DateTime? _UpdateTime;
///
/// 已阅时间
///
public DateTime? UpdateTime
{
get { return _UpdateTime; }
set { _UpdateTime = value; }
}
private string _Message;
///
/// 操作信息
///
public string Message
{
get { return _Message; }
set { _Message = value; }
}
private bool _CheckFLG;
///
/// 是否已读
///
public bool CheckFLG
{
get { return _CheckFLG; }
set { _CheckFLG = value; }
}
private bool _IsModified;
///
/// 是否修改
///
public bool IsModified
{
get { return _IsModified; }
set { _IsModified = value; RaisePropertyChanged(nameof(IsModified)); }
}
private bool _IsReadOnly;
///
/// 是否可编辑
///
public bool IsReadOnly
{
get { return _IsReadOnly; }
set { _IsReadOnly = value; RaisePropertyChanged(nameof(IsReadOnly)); }
}
#endregion
#region 方法
public SignalNotice()
{
}
public SignalNotice(ec_wire_group_notice ec_Notice)
{
#region 前端表格对应列
this.Group_Name = ec_Notice.Group_Name;
this.Group_Desc = ec_Notice.Group_Desc;
this.Group_Desc_EN = ec_Notice.Group_Desc_EN;
this.IO_Type = ec_Notice.IO_Type;
this.Action = ec_Notice.Action;
this.CreateUserName = ec_Notice.CreateUserName;
this.CreateTime = ec_Notice.CreateTime;
this.UpdateUserName = ec_Notice.UpdateUserName;
this.UpdateTime = ec_Notice.UpdateTime;
this.Message = ec_Notice.Message;
#endregion
this.WireGroupNoticeID = ec_Notice.WireGroupNoticeID;
this.CheckFLG = ec_Notice.CheckFLG;
this.IsReadOnly = ec_Notice.CheckFLG;
}
///
/// 设置数据
///
public void setData()
{
}
#endregion
}
}