| | |
| | | await this.mapSetSimpleMarkerContainer1.InitialContainer(); |
| | | } |
| | | |
| | | public event Func<Vmo.Xhs.XhsProjectExtensions, Yw.Vmo.Map.MapInfo, Task<bool>> ReloadDataEvent; |
| | | public event Func<XhsProjectExtensionsVmo, Yw.Vmo.MapInfoVmo, Task<bool>> ReloadDataEvent; |
| | | |
| | | private Yw.Model.Map.Marker _maker = null; //地图点信息 |
| | | |
| | | private Yw.Vmo.Map.MapInfo _mapinfo = null; //地图信息 |
| | | private Yw.Vmo.MapInfoVmo _mapinfo = null; //地图信息 |
| | | |
| | | //数据验证 |
| | | private bool Valid() |
| | |
| | | { |
| | | if (!Valid()) |
| | | return; |
| | | var model = new Vmo.Xhs.XhsProjectExtensions(); |
| | | var model = new XhsProjectExtensionsVmo(); |
| | | model.Address = this.TextAddress.Text.Trim(); |
| | | model.Customer = this.TextCustomerName.Text.Trim(); |
| | | model.Description = this.TextDescription.Text.Trim(); |
| | | model.Name = this.TextProjectName.Text.Trim(); |
| | | model.TagName = this.TextTagName.Text.Trim(); |
| | | model.SiteList = new List<Vmo.Xhs.XhsProjectSite> |
| | | model.SiteList = new List<XhsProjectSiteVmo> |
| | | { |
| | | new Vmo.Xhs.XhsProjectSite |
| | | new XhsProjectSiteVmo |
| | | { |
| | | Name=this.TextProjectName.Text, |
| | | Description=this.TextDescription.Text, |
| | |
| | | }; |
| | | if (_maker != null) |
| | | { |
| | | _mapinfo = new Yw.Vmo.Map.MapInfo(); |
| | | _mapinfo = new Yw.Vmo.MapInfoVmo(); |
| | | _mapinfo.ObjectType = HStation.Xhs.DataType.XhsProject; |
| | | _mapinfo.Purpose = Yw.Map.Purpose.Location; |
| | | _mapinfo.Kind = Yw.Map.Kind.Gaodei; |