From 4079c27bf99ea3b6aa68d8175093f48f3aaff9cf Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 11 一月 2024 15:49:03 +0800 Subject: [PATCH] 1 --- TEWin/FrmWin.cs | 2 +- TEWin/TEWin.csproj | 6 ------ TEWin/app.config | 2 +- TEWin/Resources/SpaceStatistics/SpaceStatistics.html | 44 +++++++++++++++++++++++++++++--------------- TEWin/Resources/sample.fly | 0 5 files changed, 31 insertions(+), 23 deletions(-) diff --git a/TEWin/FrmWin.cs b/TEWin/FrmWin.cs index cb677a9..c38a802 100644 --- a/TEWin/FrmWin.cs +++ b/TEWin/FrmWin.cs @@ -473,7 +473,7 @@ private void SpaceStatistics() { - // + this.ShowHtml("绌洪棿缁熻", mainUrl + @"\Resources\SpaceStatistics\SpaceStatistics.html", 20, 20, 420, 260); } private void SpatialAnalysis() diff --git a/TEWin/Resources/SpaceStatistics/SpaceStatistics.html b/TEWin/Resources/SpaceStatistics/SpaceStatistics.html index 21edfdf..6529d9c 100644 --- a/TEWin/Resources/SpaceStatistics/SpaceStatistics.html +++ b/TEWin/Resources/SpaceStatistics/SpaceStatistics.html @@ -25,6 +25,30 @@ var gDebug = false; var groupName = "绌洪棿缁熻"; + var rs = { + count: 0, // 瑕佺礌鎬讳釜鏁� + + lineLen: 0, // 绾垮璞¢暱搴� + + polyArea: 0, // 澶氳竟褰㈤潰绉� + + volume: 0, // 涓夌淮浣撲綋绉� + + reset: function () { + this.count = 0; + this.lineLen = 0; + this.polyArea = 0; + this.valueOf = 0; + }, + + setVal: function () { + $("#totalNum").html(this.count.toString()); + $("#lineLen").html(this.lineLen.toString()); + $("#polyArea").html(this.polyArea.toString()); + $("#volume").html(this.volume.toString()); + } + }; + $(function () { init(); }); @@ -58,12 +82,9 @@ } function clear(e) { - $("#totalNum").html("0"); //瑕佺礌鎬讳釜鏁� - $("#lineLen").html("0"); // 绾垮璞¢暱搴� - $("#polyArea").html("0"); // 澶氳竟褰㈤潰绉� - $("#volume").html("0"); // 涓夌淮浣撲綋绉� - $("#minHeight").html("0"); //涓夌淮浣撴渶浣庨珮搴� - $("#maxHeight").html("0"); // 涓夌淮浣撴渶楂橀珮搴� + rs.reset(); + rs.setVal(); + delGroup(); } function startQuery(e) { @@ -153,21 +174,14 @@ <td class="s8b"> <label for="Mode" class="i18n">澶氳竟褰㈤潰绉�</label> </td> - <td> <span id="polyArea">0</span> 骞虫柟鍗冪背 + <td> <span id="polyArea">0</span> 骞虫柟绫� </td> </tr> <tr> <td class="s8b"> <label for="Mode" class="i18n">涓夌淮浣撲綋绉�</label> </td> - <td> <span id="volume">0</span> 绔嬫柟鍗冪背 - </td> - </tr> - <tr> - <td class="s8b"> - <label for="Mode" class="i18n">涓夌淮浣撻珮搴�</label> - </td> - <td> 鏈�浣� <span id="minHeight">0</span> 绫筹紝鏈�楂� <span id="maxHeight">0</span> 绫� + <td> <span id="volume">0</span> 绔嬫柟绫� </td> </tr> </table> diff --git a/TEWin/Resources/sample.fly b/TEWin/Resources/sample.fly index e4807a5..c19b3b2 100644 --- a/TEWin/Resources/sample.fly +++ b/TEWin/Resources/sample.fly Binary files differ diff --git a/TEWin/TEWin.csproj b/TEWin/TEWin.csproj index 67322bb..f4e1367 100644 --- a/TEWin/TEWin.csproj +++ b/TEWin/TEWin.csproj @@ -166,12 +166,6 @@ <EmbeddedResource Include="Resources\data\JMD_1002.shx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </EmbeddedResource> - <EmbeddedResource Include="Resources\data\sample.fly"> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </EmbeddedResource> - <EmbeddedResource Include="Resources\data\sample.mpt"> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </EmbeddedResource> <EmbeddedResource Include="Resources\data\T0024_鍩庡競涓诲共閬揰绾�1.dbf"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </EmbeddedResource> diff --git a/TEWin/app.config b/TEWin/app.config index b47d96e..bc1d6c8 100644 --- a/TEWin/app.config +++ b/TEWin/app.config @@ -2,7 +2,7 @@ <configuration> <appSettings> <add key="isTest" value="1"/> - <add key="fly" value="Resources\data\sample.fly"/> + <add key="fly" value="Resources\sample.fly"/> <add key="testFly" value="E:\data\opting\2022.fly"/> <!--<add key="tePath" value="C:\Program Files\Skyline\TerraExplorer Pro"/>--> <add key="tePath" value="C:\Program Files\SmartEarth\TerraExplorer Pro"/> -- Gitblit v1.9.3