using Yw.Dto;
|
|
namespace HStation.WinFrmUI.Basic
|
{
|
public class SysTypeTreeListViewModel
|
{
|
public SysTypeTreeListViewModel(SysTypeLogicalTreeDto rhs)
|
{
|
var Module = rhs.LogicalModel as SysModuleStdDto;
|
this.ID = Module.ID;
|
this.Name = Module.Name;
|
this.SortCode = Module.SortCode;
|
this.Description = Module.Description;
|
}
|
|
public SysTypeTreeListViewModel(LogicalTreeExDto rhs)
|
{
|
var systype = rhs.LogicalModel as SysTypeStdDto;
|
this.ParentID = systype.ModuleID;
|
this.ID = systype.ID;
|
this.Name = systype.Name;
|
this.SortCode = systype.SortCode;
|
this.Description = systype.Description;
|
}
|
|
public void Reset(SysTypeLogicalTreeDto rhs)
|
{
|
}
|
|
/// <summary>
|
/// ID
|
/// </summary>
|
public long ID { get; set; }
|
|
/// <summary>
|
/// 父级ID
|
/// </summary>
|
public long ParentID { get; set; }
|
|
/// <summary>
|
/// 名称
|
/// </summary>
|
public string Name { get; set; }
|
|
/// <summary>
|
/// 排序码
|
/// </summary>
|
public int SortCode { get; set; }
|
|
/// <summary>
|
/// 说明
|
/// </summary>
|
public string Description { get; set; }
|
}
|
}
|