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