管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2024-01-04 b1ba6edda5c041ded730fb43b48c144e7b159ec6
开户空间统计~
已添加3个文件
已修改2个文件
105 ■■■■ 文件已修改
TEWin/Resources/SpaceStatistics/2052/lang.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
TEWin/Resources/SpaceStatistics/SpaceStatistics.html 89 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
TEWin/Resources/SpaceStatistics/cursor_m.cur 补丁 | 查看 | 原始文档 | blame | 历史
TEWin/Resources/SpaceStatistics/lang.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
TEWin/TEWin.csproj 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
TEWin/Resources/SpaceStatistics/2052/lang.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,3 @@
SGLang.lang = $.extend(SGLang.lang, {
    //
});
TEWin/Resources/SpaceStatistics/SpaceStatistics.html
@@ -21,33 +21,33 @@
    }
  </style>
  <script>
    var gAsync = true;
    var gDebug = false;
    var groupName = "空间统计";
    function getGroupId()  {
      var gid = SGWorld.ProjectTree.FindItem(groupName);
      if (gid) return gid;
      return SGWorld.ProjectTree.CreateLockedGroup(groupName);
    }
    function delGroup() {
      try {
        var gid = SGWorld.ProjectTree.FindItem(groupName);
        if (gid) SGWorld.ProjectTree.DeleteItem(gid);
      }
      catch (e) {
        console.log(e);
      }
    }
    $(function () {
      init();
    });
    function init() {
      window.ondragstart = function () { return false; }
      refreshList();
    }
    function refreshList() {
      try {
        $("#LayerId").html("");
        var layers = [], index = 0;
        BuildObjectsList(SGWorld.ProjectTree.RootID, layers, 36);
        layers.forEach(function (val) {
          var name = SGWorld.ProjectTree.GetItemName(val);
          $("#LayerId").append("<option value=" + val + (0 == index ? " selected='selected' " : "") + ">" + name + "</option>");
          index++;
        });
        if (layers.length) SGWorld.ProjectTree.SelectItem(layers[0]);
      } catch (e) {
        console.log(e);
      }
    }
    function changeLayer(e) {
@@ -75,8 +75,49 @@
    }
    function startQuery(e) {
      var id = parseInt($("#SelectType").val());
      SGWorld.Command.Execute(id, null);
      delGroup();
      if (drawing.drawingEditMode != -1) {
        drawing.abort();
        return;
      }
      drawing.drawPolygon({
        style: {
          lineColor: "#ff0000",
          lineWidth: 3,
        },
        altitudeMethod: 2, // use 2 of "OnTerrain" and 3 for "Absolute" (above mean sea level)
        deleteWhenExit: false, //
        parentGoupID: getGroupId(),
        saveOnExit: true, // save the polyline/polygon when exiting the project. Default = false
        onFinish: DrawPoly,
        onAbort: ResetAsync
      });
    }
    function DrawPoly(geometry, type, altitudeType) {
      //SGWorld.Window.ShowMessageBarText("按 Esc é”®é€€å‡º");
      SGWorld.ProjectTree.EnableRedraw(0);
    }
    function ResetAsync(FirstTime, FromMouseInputMode) {
      if (gAsync)
        setTimeout(function () { Reset(FirstTime, FromMouseInputMode); }, 100);
      else
        Reset(FirstTime, FromMouseInputMode);
    }
    function Reset(FirstTime, FromMouseInputMode) {
      try {
        if (gPolyObj != null) SGWorld.Creator.DeleteObject(gPolyObj.ID);
      } catch (e) { }
      gPolyObj = null;
      SGWorld.ProjectTree.EnableRedraw(1);
      SGWorld.Window.HideMessageBarText();
      bInEdit = false;
      if (FirstTime != 1 && FromMouseInputMode == 0) SGWorld.Window.SetInputMode(0);
    }
  </script>
</head>
@@ -156,7 +197,7 @@
    </tr>
    <tr>
      <td>
        <object id="SGWorld" classid="CLSID:3a4f9199-65a8-11d5-85c1-0001023952c1"></object>
        <object id="SGWorld" style="display:none" classid="CLSID:3a4f9199-65a8-11d5-85c1-0001023952c1"></object>
      </td>
    </tr>
  </table>
TEWin/Resources/SpaceStatistics/cursor_m.cur
Binary files differ
TEWin/Resources/SpaceStatistics/lang.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,3 @@
SGLang.lang = $.extend(SGLang.lang, {
    //
});
TEWin/TEWin.csproj
@@ -178,10 +178,16 @@
    </COMReference>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="Resources\SpaceStatistics\img\delete.png">
    <EmbeddedResource Include="Resources\SpaceStatistics\cursor_m.cur">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </EmbeddedResource>
    <EmbeddedResource Include="Resources\SpaceStatistics\img\clean.png">
    <EmbeddedResource Include="Resources\SpaceStatistics\2052\lang.js">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </EmbeddedResource>
    <EmbeddedResource Include="Resources\SpaceStatistics\lang.js">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </EmbeddedResource>
    <EmbeddedResource Include="Resources\SpaceStatistics\img\delete.png">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </EmbeddedResource>
    <EmbeddedResource Include="Resources\SpaceStatistics\img\ToolIcon.png">