From 495e44f98de4517627982fdc11a96a06d4d29645 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期五, 05 一月 2024 16:51:57 +0800
Subject: [PATCH] 添加清除统计功能

---
 TEWin/Resources/SpaceStatistics/SpaceStatistics.html |   51 ++++++++++++++-------------------------------------
 1 files changed, 14 insertions(+), 37 deletions(-)

diff --git a/TEWin/Resources/SpaceStatistics/SpaceStatistics.html b/TEWin/Resources/SpaceStatistics/SpaceStatistics.html
index 4d74bb0..21edfdf 100644
--- a/TEWin/Resources/SpaceStatistics/SpaceStatistics.html
+++ b/TEWin/Resources/SpaceStatistics/SpaceStatistics.html
@@ -57,28 +57,13 @@
       return layers;
     }
 
-    function changeLayer(e) {
-      var id = $(e).val();
-      if (id) SGWorld.ProjectTree.SelectItem(id);
-    }
-
-    var buffer = 0;
-
-    function changeBuffer(e) {
-      var val = $(e).val();
-      if (val == buffer || isNaN(val)) return;
-
-      buffer = parseFloat(val);
-      SGWorld.Command.Execute(1096, buffer);
-    }
-
-    function changeSR(e) {
-      var val = parseInt($(e).val());
-      SGWorld.Command.Execute(1097, val);
-    }
-
-    function openPropTab(e) {
-      SGWorld.Command.Execute(1086, null);
+    function clear(e) {
+      $("#totalNum").html("0"); //瑕佺礌鎬讳釜鏁�
+      $("#lineLen").html("0"); // 绾垮璞¢暱搴�
+      $("#polyArea").html("0"); // 澶氳竟褰㈤潰绉�
+      $("#volume").html("0"); // 涓夌淮浣撲綋绉�
+      $("#minHeight").html("0"); //涓夌淮浣撴渶浣庨珮搴�
+      $("#maxHeight").html("0"); // 涓夌淮浣撴渶楂橀珮搴�
     }
 
     function startQuery(e) {
@@ -88,6 +73,7 @@
         return;
       }
 
+      SGWorld.Window.ShowMessageBarText("鎸� Esc 閿��鍑�");
       drawing.drawPolygon({
         style: {
           lineColor: "#ff0000",
@@ -103,9 +89,8 @@
     }
 
     function DrawPoly(geometry, type, altitudeType) {
-      //SGWorld.Window.ShowMessageBarText("鎸� Esc 閿��鍑�");
       SGWorld.ProjectTree.EnableRedraw(0);
-      alert(null==geometry);
+      //alert(null==geometry);
     }
 
     function ResetAsync(FirstTime, FromMouseInputMode) {
@@ -173,24 +158,16 @@
           </tr>
           <tr>
             <td class="s8b">
-              <label for="Mode" class="i18n">绌洪棿鍏崇郴</label>
+              <label for="Mode" class="i18n">涓夌淮浣撲綋绉�</label>
             </td>
-            <td>&nbsp;<select id="SpatialRelationship" onchange="changeSR(this);" style="width: 100pt;">
-              <option class="i18n" value="1" selected="selected">鐩镐氦</option>
-              <option class="i18n" value="2">鍖呭惈</option>
-            </select>
+            <td>&nbsp;<span id="volume">0</span> 绔嬫柟鍗冪背
             </td>
           </tr>
           <tr>
             <td class="s8b">
-              <label for="Mode" class="i18n">鏌ヨ绫诲瀷</label>
+              <label for="Mode" class="i18n">涓夌淮浣撻珮搴�</label>
             </td>
-            <td>&nbsp;<select id="SelectType" style="width: 100pt;">
-              <option value="1074">鐐规煡</option>
-              <option value="1072">绾挎煡</option>
-              <option value="1071" selected="selected">闈㈡煡</option>
-              <option value="1156">閫夋嫨瀵硅薄</option>
-            </select>
+            <td>&nbsp;鏈�浣� <span id="minHeight">0</span> 绫筹紝鏈�楂� <span id="maxHeight">0</span> 绫�
             </td>
           </tr>
         </table>
@@ -199,7 +176,7 @@
     <tr class="s8">
       <td align="center" class="ToolButtonsArea">
         <div id="SurfaceDiv">
-          <button id="clipboardButton" class="MenuButton" onclick="openPropTab(this);" style="cursor: pointer;">
+          <button id="clipboardButton" class="MenuButton" onclick="clear(this);" style="cursor: pointer;">
             <img src="img/delete.png" /><br />
             <span class="i18n">娓� 闄�</span></button>
           <button id="DrawPlaneBtn" class="MenuButton MenuButtonLast" onclick="startQuery(this);" style="cursor: pointer;">

--
Gitblit v1.9.3