| | |
| | | using HStation.PBS; |
| | | using System.ComponentModel; |
| | | using System.ComponentModel; |
| | | using Yw.Untity; |
| | | |
| | | namespace PBS.WinFrmUI |
| | |
| | | this.UseStatus = rhs.UseStatus; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | this.Paras = rhs.Paras; |
| | | this.Flags = FlagsHelper.ToString(rhs.Flags); |
| | | this.Vmo = rhs; |
| | | } |
| | | |
| | | public void Resert(Vmo.PlaceVmo rhs) |
| | | public PlaceViewModel(Vmo.PlaceVmo rhs, Yw.Vmo.MapInfoVmo map) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.RegionID = rhs.RegionID; |
| | |
| | | this.UseStatus = rhs.UseStatus; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | this.Paras = rhs.Paras; |
| | | this.Flags = FlagsHelper.ToString(rhs.Flags); |
| | | this.Vmo = rhs; |
| | | this.MapInfo = map; |
| | | } |
| | | |
| | | public void Resert(Vmo.PlaceVmo rhs, Yw.Vmo.MapInfoVmo map) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.RegionID = rhs.RegionID; |
| | | this.Name = rhs.Name; |
| | | this.PlaceType = rhs.PlaceType; |
| | | this.PlaceInfo = rhs.PlaceInfo; |
| | | this.Address = rhs.Address; |
| | | this.Paras = rhs.Paras; |
| | | this.UseStatus = rhs.UseStatus; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | this.Flags = FlagsHelper.ToString(rhs.Flags); |
| | | this.Vmo = rhs; |
| | | this.MapInfo = map; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// 行政区域标识 |
| | | ///</summary> |
| | | [DisplayName("行政区域标识")] |
| | | [Browsable(false)] |
| | | [Browsable(true)] |
| | | public long RegionID { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | [DisplayName("说明")] |
| | | [Browsable(true)] |
| | | public string Description { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 场所信息 |
| | | /// </summary> |
| | | public Vmo.PlaceVmo Vmo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 地图信息 |
| | | /// </summary> |
| | | public Yw.Vmo.MapInfoVmo MapInfo { get; set; } |
| | | } |
| | | } |