管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2024-01-15 64743ba9326cadb6478348fde4c6716de4f793b9
TEWin/FrmWin.cs
@@ -55,7 +55,9 @@
                mainUrl = Application.StartupPath;
                bool isTest = "1" == ConfigurationManager.AppSettings["isTest"];
                this.fly = isTest ? ConfigurationManager.AppSettings["testFly"] : Path.Combine(Application.StartupPath, "Resources\\sample.fly");
                //this.fly = isTest ? ConfigurationManager.AppSettings["testFly"] : Path.Combine(Application.StartupPath, "Resources\\sample.fly");
                this.fly = ConfigurationManager.AppSettings["fly"] ?? ConfigurationManager.AppSettings["testFly"];
                if (!this.fly.Contains(":\\")) this.fly = Path.Combine(Application.StartupPath, this.fly);
                if (!File.Exists(this.fly))
                {
                    LogOut.Error("Fly文件不存在:" + this.fly);
@@ -145,7 +147,7 @@
                    break;
                case 0xc7: // 模型数据(*.obj)
                    SG.Command.Execute(1012, 13); break;
                case 0xc8: // 基础编辑(选择对象,开启编辑)
                case 0xc8: // 编辑数据(选择对象,开启编辑)
                    SG.Command.Execute(1021, null); break;
                case 0xc9: // 点量算(坐标+高程)
                    SG.Command.Execute(1023, null); break;
@@ -232,7 +234,7 @@
        {
            Process p = new Process();
            p.StartInfo.FileName = path;
            p.StartInfo.Arguments = args;
            if (!string.IsNullOrEmpty(args)) p.StartInfo.Arguments = args;
            p.StartInfo.CreateNoWindow = noWindow;
            p.StartInfo.UseShellExecute = false;
            p.Start();
@@ -471,7 +473,7 @@
        private void SpaceStatistics()
        {
            //
            this.ShowHtml("空间统计", mainUrl + @"\Resources\SpaceStatistics\SpaceStatistics.html", 20, 20, 420, 285);
        }
        private void SpatialAnalysis()
@@ -481,7 +483,8 @@
        private void InvokeOsgbLab()
        {
            //
            ExecCmd(new List<string> { "taskkill /f /t /im OSGBLab.exe" });
            RunExe(ConfigurationManager.AppSettings["osgblabPath"], null, false);
        }
        #endregion
    }