| | |
| | | /// </summary> |
| | | public XhsProjectMgrViewModel() { } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public XhsProjectMgrViewModel(XhsProjectDto project) |
| | | { |
| | | this.ID = project.ID; |
| | | this.ParentID = project.ParentID; |
| | | this.NO = project.NO; |
| | | this.Name = project.Name; |
| | | this.StartTime = project.StartTime?.ToStandardString(); |
| | | this.EndTime = project?.EndTime?.ToStandardString(); |
| | | this.PublishStatus = project.PublishStatus.GetDisplayText(); |
| | | 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; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public XhsProjectMgrViewModel(XhsProjectDto project, bool hasLocation) : this(project) |
| | | { |
| | | this.HasLocation = hasLocation; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | [Display(Name = "说明")] |
| | | public string Description { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 定位 |
| | | /// </summary> |
| | | [Display(Name = "定位")] |
| | | public bool HasLocation { get; set; } |
| | | |
| | | |
| | | |
| | | |