namespace HStation.WinFrmUI
|
{
|
/// <summary>
|
///
|
/// </summary>
|
[TypeConverter(typeof(PropertySorter))]
|
public class HomeXhsProjectPropertyViewModel
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public HomeXhsProjectPropertyViewModel() { }
|
|
/// <summary>
|
///
|
/// </summary>
|
public HomeXhsProjectPropertyViewModel(XhsProjectStdDto rhs)
|
{
|
this.NO = rhs.NO;
|
this.Name = rhs.Name;
|
this.StartTime = rhs.StartTime?.ToStandardString();
|
this.EndTime = rhs.EndTime?.ToStandardString();
|
this.PublishStatus = rhs.PublishStatus;
|
this.Address = rhs.Address;
|
this.Customer = rhs.Customer;
|
this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
|
this.TagName = rhs.TagName;
|
this.Description = rhs.Description;
|
|
this.Project = rhs;
|
}
|
|
/// <summary>
|
/// 编号
|
/// </summary>
|
[DisplayName("项目编号")]
|
[Category("基本信息")]
|
[PropertyOrder(1)]
|
[Browsable(true)]
|
public string NO { get; set; }
|
|
/// <summary>
|
/// 名称
|
/// </summary>
|
[DisplayName("项目名称")]
|
[Category("基本信息")]
|
[PropertyOrder(2)]
|
[Browsable(true)]
|
public string Name { get; set; }
|
|
/// <summary>
|
/// 生效时间
|
/// </summary>
|
[DisplayName("生效时间")]
|
[Category("基本信息")]
|
[PropertyOrder(3)]
|
[Browsable(true)]
|
public string StartTime { get; set; }
|
|
/// <summary>
|
/// 失效时间
|
/// </summary>
|
[DisplayName("失效时间")]
|
[Category("基本信息")]
|
[PropertyOrder(4)]
|
[Browsable(true)]
|
public string EndTime { get; set; }
|
|
/// <summary>
|
/// 发布状态
|
/// </summary>
|
[DisplayName("发布状态")]
|
[Category("基本信息")]
|
[PropertyOrder(5)]
|
[Browsable(true)]
|
public ePublishStatus PublishStatus { get; set; }
|
|
/// <summary>
|
/// 详细地址
|
/// </summary>
|
[DisplayName("详细地址")]
|
[Category("基本信息")]
|
[PropertyOrder(6)]
|
[MultiText]
|
[Browsable(true)]
|
public string Address { get; set; }
|
|
/// <summary>
|
/// 客户名称
|
/// </summary>
|
[DisplayName("客户名称")]
|
[Category("基本信息")]
|
[PropertyOrder(7)]
|
[Browsable(true)]
|
public string Customer { get; set; }
|
|
/// <summary>
|
/// 标签
|
/// </summary>
|
[DisplayName("标签")]
|
[Category("基本信息")]
|
[PropertyOrder(8)]
|
[Browsable(true)]
|
public string Flags { get; set; }
|
|
/// <summary>
|
/// 标志
|
/// </summary>
|
[DisplayName("标志")]
|
[Category("基本信息")]
|
[PropertyOrder(9)]
|
[Browsable(true)]
|
public string TagName { get; set; }
|
|
/// <summary>
|
/// 说明
|
/// </summary>
|
[DisplayName("说明")]
|
[Category("基本信息")]
|
[PropertyOrder(10)]
|
[Browsable(true)]
|
[MultiText]
|
public string Description { get; set; }
|
|
/// <summary>
|
///
|
/// </summary>
|
[Browsable(false)]
|
public XhsProjectStdDto Project { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
}
|