lixiaojun
2024-09-11 ec0d0b6f8e3ac7791c736ae8aad69c4a1587cad9
WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/00-core/ImportXhsProjectHelper.cs
@@ -1,4 +1,5 @@
using DevExpress.XtraEditors;
using HStation.Vmo;
using static DevExpress.XtraEditors.XtraInputBox;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.Window;
@@ -49,7 +50,7 @@
            var bllXhsProjectExtensions = new Lazy<BLL.XhsProjectExtensions>(() => new BLL.XhsProjectExtensions());
            var project = new Vmo.Xhs.XhsProjectExtensions();
            var project = new Vmo.XhsProjectExtensionsVmo();
            project.NO = vm.NO;
            project.Name = vm.Name;
            project.Address = vm.Address;
@@ -58,8 +59,8 @@
            project.TagName = vm.TagName;
            project.Description = vm.Description;
            project.SiteList = new List<Vmo.Xhs.XhsProjectSite>() {
                new Vmo.Xhs.XhsProjectSite(){
            project.SiteList = new List<XhsProjectSiteVmo>() {
                new XhsProjectSiteVmo(){
                    Name=vm.Name,
                    Description=vm.Description
                }
@@ -127,7 +128,7 @@
            }
            else
            {
                 IsContinue = false;
                IsContinue = false;
            }
            if (IsContinue)
@@ -193,8 +194,7 @@
            #region 第六步 关联水力结构模型(进度 40%)
            var bllXhsProjectSite = new BLL.XhsProjectSiteStd();
            var projectSite = await bllXhsProjectSite.GetDefaultByProjectID(projectId);
            var projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(projectId);
            if (projectSite == null)
            {
                feedBackMsg?.Invoke("项目站信息错误...", Color.Red);
@@ -262,7 +262,7 @@
            feedBackMsg?.Invoke("正在保存Bimface文件...", Color.Black);
            var bimfaceFile = new Yw.Dto.AddBimfaceFileInput();
            var bimfaceFile = new Yw.Vmo.BimfaceFileVmo();
            bimfaceFile.BimfaceId = bimfaceId.ToString();
            bimfaceFile.Name = vm.Name;
            bimfaceFile.ModelType = (int)Yw.Bimface.eModelType.File;
@@ -291,7 +291,7 @@
            feedBackMsg?.Invoke("正在关联Bimface文件...", Color.Black);
            var bimfaceRelation = new Yw.Dto.AddBimfaceFileRelationInput();
            var bimfaceRelation = new Yw.Vmo.BimfaceFileRelationVmo();
            bimfaceRelation.ObjectType = HStation.Xhs.DataType.XhsProjectSite;
            bimfaceRelation.ObjectID = projectSiteId;
            bimfaceRelation.BimfaceFileID = bimfaceFileId;