| | |
| | | namespace HStation.WinFrmUI |
| | | using HStation.Vmo; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// |
| | | /// </summary> |
| | | [TypeConverter(typeof(PropertySorter))] |
| | | public class HomeXhsProjectPropertyViewModel |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// |
| | | /// </summary> |
| | | public HomeXhsProjectPropertyViewModel() { } |
| | | public HomeXhsProjectPropertyViewModel() |
| | | { } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// |
| | | /// </summary> |
| | | public HomeXhsProjectPropertyViewModel(XhsProjectStdDto rhs) |
| | | public HomeXhsProjectPropertyViewModel(XhsProjectVmo 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> |
| | |
| | | [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> |
| | | /// 详细地址 |
| | |
| | | [MultiText] |
| | | public string Description { get; set; } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | [Browsable(false)] |
| | | public XhsProjectVmo Project { get; set; } |
| | | } |
| | | } |
| | | } |