lixiaojun
2024-12-09 725f20b576bdd40d57d9a1e806ce3f6f39181a84
WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/04-dlg/AddProjectDlg.cs
@@ -14,11 +14,11 @@
            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()
@@ -49,15 +49,15 @@
        {
            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,
@@ -65,7 +65,7 @@
            };
            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;