using HStation.Dto;
using HStation.WinFrmUI.Core;
using System.ComponentModel;
namespace HStation.WinFrmUI.Xhs.Core
{
[TypeConverter(typeof(PropertySorter))]
public class XhsProjectPropertyGridViewModel
{
public XhsProjectPropertyGridViewModel(XhsProjectDto rhs)
{
this.Address = rhs.Address;
this.Name = rhs.Name;
this.ProjectNumber = rhs.PrjNumber;
this.CreateTime = rhs.CreateTime;
this.Description = rhs.Description;
this.CreateName = rhs.CreateUserDisplayName;
}
///
/// 名称
///
[DisplayName("名称")]
[Category("基本信息")]
[PropertyOrder(11)]
[Browsable(true)]
public string Name { get; set; }
///
/// 项目编号
///
[DisplayName("项目编号")]
[Category("基本信息")]
[Browsable(true)]
[PropertyOrder(-9)]
public string ProjectNumber { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
[Category("基本信息")]
[PropertyOrder(-10)]
[Browsable(true)]
public DateTime CreateTime { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
[Category("基本信息")]
[PropertyOrder(-11)]
[Browsable(true)]
public string CreateName { get; set; }
///
/// 说明
///
[DisplayName("说明")]
[Category("基本信息")]
[PropertyOrder(-12)]
[Browsable(true)]
public string Description { get; set; }
///
/// 地址
///
[DisplayName("地址")]
[Category("基本信息")]
[PropertyOrder(-13)]
[Browsable(true)]
public string Address { get; set; }
}
}