| | |
| | | using DevExpress.Pdf.Native; |
| | | using HStation.Service.Xhs; |
| | | |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// |
| | | /// </summary> |
| | | public class XhsProjectMgrViewModel |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// |
| | | /// </summary> |
| | | public XhsProjectMgrViewModel() { } |
| | | public XhsProjectMgrViewModel() |
| | | { } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// |
| | | /// </summary> |
| | | public XhsProjectMgrViewModel(XhsProjectDto project) |
| | | public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project) |
| | | { |
| | | this.ID = project.ID; |
| | | this.ParentID = project.ParentID; |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// |
| | | /// </summary> |
| | | public XhsProjectMgrViewModel(XhsProjectDto project, bool hasLocation) : this(project) |
| | | 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; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | [Display(Name = "定位")] |
| | | public bool HasLocation { get; set; } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | } |