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;
|
}
|
|
/// <summary>
|
/// 名称
|
/// </summary>
|
[DisplayName("名称")]
|
[Category("基本信息")]
|
[PropertyOrder(11)]
|
[Browsable(true)]
|
public string Name { get; set; }
|
|
/// <summary>
|
/// 项目编号
|
/// </summary>
|
[DisplayName("项目编号")]
|
[Category("基本信息")]
|
[Browsable(true)]
|
[PropertyOrder(-9)]
|
public string ProjectNumber { get; set; }
|
|
/// <summary>
|
/// 创建时间
|
/// </summary>
|
[DisplayName("创建时间")]
|
[Category("基本信息")]
|
[PropertyOrder(-10)]
|
[Browsable(true)]
|
public DateTime CreateTime { get; set; }
|
|
/// <summary>
|
/// 创建人
|
/// </summary>
|
[DisplayName("创建人")]
|
[Category("基本信息")]
|
[PropertyOrder(-11)]
|
[Browsable(true)]
|
public string CreateName { get; set; }
|
|
/// <summary>
|
/// 说明
|
/// </summary>
|
[DisplayName("说明")]
|
[Category("基本信息")]
|
[PropertyOrder(-12)]
|
[Browsable(true)]
|
public string Description { get; set; }
|
|
/// <summary>
|
/// 地址
|
/// </summary>
|
[DisplayName("地址")]
|
[Category("基本信息")]
|
[PropertyOrder(-13)]
|
[Browsable(true)]
|
public string Address { get; set; }
|
}
|
}
|