using DevExpress.Pdf.Native; using HStation.Service.Xhs; namespace HStation.WinFrmUI { /// /// /// public class XhsProjectMgrViewModel { /// /// /// public XhsProjectMgrViewModel() { } /// /// /// public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project) { this.ID = project.ID; this.ParentID = project.ParentID; this.NO = project.NO; this.Name = project.Name; this.Address = project.Address; this.Customer = project.Customer; this.Flags = Yw.Untity.FlagsHelper.ToString(project.Flags); this.TagName = project.TagName; this.SortCode = project.SortCode; this.Description = project.Description; } /// /// /// public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project, bool hasLocation) : this(project) { this.HasLocation = hasLocation; } public void Reset(Vmo.Xhs.XhsProjectExtensions project) { this.ID = project.ID; this.ParentID = project.ParentID; this.NO = project.NO; this.Name = project.Name; this.Address = project.Address; this.Customer = project.Customer; this.Flags = Yw.Untity.FlagsHelper.ToString(project.Flags); this.TagName = project.TagName; this.SortCode = project.SortCode; this.Description = project.Description; } /// /// ID /// [Display(Name = "ID")] public long ID { get; set; } /// /// 父级ID /// [Display(Name = "ID")] public long ParentID { get; set; } /// /// 编号 /// [Display(Name = "项目编号")] public string NO { get; set; } /// /// 名称 /// [Display(Name = "项目名称")] public string Name { get; set; } /// /// 生效时间 /// [Display(Name = "生效时间")] public string StartTime { get; set; } /// /// 失效时间 /// [Display(Name = "失效时间")] public string EndTime { get; set; } /// /// 发布状态 /// [Display(Name = "发布状态")] public string PublishStatus { get; set; } /// /// 详细地址 /// [Display(Name = "详细地址")] public string Address { get; set; } /// /// 客户 /// [Display(Name = "客户名称")] public string Customer { get; set; } /// /// 模型状态 /// [Display(Name = "模型状态")] public int ModelState { get; set; } /// /// 标签 /// [Display(Name = "标签")] public string Flags { get; set; } /// /// 标志 /// [Display(Name = "标志")] public string TagName { get; set; } /// /// 排序码 /// [Display(Name = "排序码")] public int SortCode { get; set; } /// /// 说明 /// [Display(Name = "说明")] public string Description { get; set; } /// /// 定位 /// [Display(Name = "定位")] public bool HasLocation { get; set; } } }