206 lines
5.0 KiB
C#
206 lines
5.0 KiB
C#
using System;
|
|
using System.Windows.Controls;
|
|
using Telerik.Windows.Controls;
|
|
|
|
namespace SWS.Model
|
|
{
|
|
public class SignalNotice: ViewModelBase
|
|
{
|
|
#region 属性
|
|
private int _ID;
|
|
/// <summary>
|
|
/// 序号
|
|
/// </summary>
|
|
public int ID
|
|
{
|
|
get { return _ID; }
|
|
set { _ID = value; }
|
|
}
|
|
|
|
private string _WireGroupNoticeID;
|
|
/// <summary>
|
|
/// 信号通知ID
|
|
/// </summary>
|
|
public string WireGroupNoticeID
|
|
{
|
|
get { return _WireGroupNoticeID; }
|
|
set { _WireGroupNoticeID = value; }
|
|
}
|
|
|
|
private string _Group_Name;
|
|
/// <summary>
|
|
/// CH.NO
|
|
/// </summary>
|
|
public string Group_Name
|
|
{
|
|
get { return _Group_Name; }
|
|
set { _Group_Name = value; }
|
|
}
|
|
private string _Group_Desc;
|
|
/// <summary>
|
|
/// z中文描述
|
|
/// </summary>
|
|
public string Group_Desc
|
|
{
|
|
get { return _Group_Desc; }
|
|
set { _Group_Desc = value; }
|
|
}
|
|
|
|
|
|
private string _Group_Desc_EN;
|
|
/// <summary>
|
|
/// 英文描述
|
|
/// </summary>
|
|
public string Group_Desc_EN
|
|
{
|
|
get { return _Group_Desc_EN; }
|
|
set { _Group_Desc_EN = value; }
|
|
}
|
|
|
|
private string _IO_Type;
|
|
/// <summary>
|
|
/// 信号类型
|
|
/// </summary>
|
|
public string IO_Type
|
|
{
|
|
get { return _IO_Type; }
|
|
set { _IO_Type = value; }
|
|
}
|
|
|
|
private Share.Action _ActionID;
|
|
/// <summary>
|
|
/// 操作ID
|
|
/// </summary>
|
|
public Share.Action ActionID
|
|
{
|
|
get { return _ActionID; }
|
|
set { _ActionID = value; }
|
|
}
|
|
|
|
private string _Action;
|
|
/// <summary>
|
|
/// 操作
|
|
/// </summary>
|
|
public string Action
|
|
{
|
|
get { return _Action; }
|
|
set { _Action = value; }
|
|
}
|
|
|
|
|
|
private string _CreateUserName;
|
|
/// <summary>
|
|
/// 发出者
|
|
/// </summary>
|
|
public string CreateUserName
|
|
{
|
|
get { return _CreateUserName; }
|
|
set { _CreateUserName = value; }
|
|
}
|
|
|
|
private DateTime? _CreateTime;
|
|
/// <summary>
|
|
/// 操作时间
|
|
/// </summary>
|
|
public DateTime? CreateTime
|
|
{
|
|
get { return _CreateTime; }
|
|
set { _CreateTime = value; }
|
|
}
|
|
|
|
private string _UpdateUserName;
|
|
/// <summary>
|
|
/// 已阅人
|
|
/// </summary>
|
|
public string UpdateUserName
|
|
{
|
|
get { return _UpdateUserName; }
|
|
set { _UpdateUserName = value; }
|
|
}
|
|
|
|
private DateTime? _UpdateTime;
|
|
/// <summary>
|
|
/// 已阅时间
|
|
/// </summary>
|
|
public DateTime? UpdateTime
|
|
{
|
|
get { return _UpdateTime; }
|
|
set { _UpdateTime = value; }
|
|
}
|
|
|
|
private string _Message;
|
|
/// <summary>
|
|
/// 操作信息
|
|
/// </summary>
|
|
public string Message
|
|
{
|
|
get { return _Message; }
|
|
set { _Message = value; }
|
|
}
|
|
|
|
private bool _CheckFLG;
|
|
/// <summary>
|
|
/// 是否已读
|
|
/// </summary>
|
|
public bool CheckFLG
|
|
{
|
|
get { return _CheckFLG; }
|
|
set { _CheckFLG = value; }
|
|
}
|
|
|
|
private bool _IsModified;
|
|
/// <summary>
|
|
/// 是否修改
|
|
/// </summary>
|
|
public bool IsModified
|
|
{
|
|
get { return _IsModified; }
|
|
set { _IsModified = value; RaisePropertyChanged(nameof(IsModified)); }
|
|
}
|
|
|
|
private bool _IsReadOnly;
|
|
/// <summary>
|
|
/// 是否可编辑
|
|
/// </summary>
|
|
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;
|
|
}
|
|
/// <summary>
|
|
/// 设置数据
|
|
/// </summary>
|
|
public void setData()
|
|
{
|
|
|
|
}
|
|
#endregion
|
|
}
|
|
}
|