using Yw.Model;
namespace IStation.Model
{
///
/// 业务策略
///
public class LogicPolicy : BaseModel, ICode, IParas, IFlags, ITagName, ISorter, IUseStatus, System.ICloneable
{
///
///
///
public LogicPolicy() { }
///
///
///
public LogicPolicy(LogicPolicy rhs) : base(rhs)
{
this.Name = rhs.Name;
this.Code = rhs.Code;
this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras);
this.Flags = rhs.Flags?.ToList();
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
///
///
///
public void Reset(LogicPolicy rhs)
{
this.ID = rhs.ID;
this.Name = rhs.Name;
this.Code = rhs.Code;
this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras);
this.Flags = rhs.Flags?.ToList();
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
///
/// 名称
///
public string Name { get; set; }
///
/// 编码
///
public string Code { get; set; }
///
/// 参数字典
///
public Dictionary Paras { get; set; }
///
/// 标签
///
public List Flags { get; set; }
///
/// 标志
///
public string TagName { get; set; }
///
/// 使用状态
///
public Yw.Model.eUseStatus UseStatus { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 说明
///
public string Description { get; set; }
///
///
///
public LogicPolicy Clone()
{
return new LogicPolicy(this);
}
object ICloneable.Clone()
{
return Clone();
}
}
}