From 73f74cbf665a431b0db474be129a03c655e2338a Mon Sep 17 00:00:00 2001
From: jiazx0107@163.com <jiazx0107@163.com>
Date: 星期五, 25 八月 2023 13:30:03 +0800
Subject: [PATCH] 更新MODBUS-TCP协议,添加GasModus的配置

---
 igds-core/src/main/java/com/ld/igds/view/DepotConf.view.xml |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/igds-core/src/main/java/com/ld/igds/view/DepotConf.view.xml b/igds-core/src/main/java/com/ld/igds/view/DepotConf.view.xml
index a3b6099..4aba95d 100644
--- a/igds-core/src/main/java/com/ld/igds/view/DepotConf.view.xml
+++ b/igds-core/src/main/java/com/ld/igds/view/DepotConf.view.xml
@@ -314,6 +314,15 @@
                 <Property name="property">ph3Max</Property>
                 <Editor/>
               </AutoFormElement>
+              <Button>
+                <ClientEvent name="onClick">var depotId = view.get(&quot;#dsMain.data:#&quot;).get(&quot;depotId&quot;);&#xD;
+var path = &quot;com.ld.igds.modbus.GasModbus.d?depotId=&quot;+depotId;&#xD;
+view.get(&quot;#iframModbus&quot;).set(&quot;path&quot;,path);&#xD;
+view.get(&quot;#dialogModbus&quot;).show();</ClientEvent>
+                <Property name="caption">Modbus閰嶇疆</Property>
+                <Property name="tip">閽堝Modbus鍗忚鐨勯厤缃�</Property>
+                <Property name="iconClass">fa fa-refresh</Property>
+              </Button>
             </AutoForm>
           </Children>
         </FieldSet>
@@ -346,6 +355,15 @@
                 <Property name="property">pestMax</Property>
                 <Editor/>
               </AutoFormElement>
+              <Button>
+                <ClientEvent name="onClick">var depotId = view.get(&quot;#dsMain.data:#&quot;).get(&quot;depotId&quot;);&#xD;
+var path = &quot;com.ld.igds.modbus.PestModbus.d?depotId=&quot;+depotId;&#xD;
+view.get(&quot;#iframModbus&quot;).set(&quot;path&quot;,path);&#xD;
+view.get(&quot;#dialogModbus&quot;).show();</ClientEvent>
+                <Property name="caption">Modbus閰嶇疆</Property>
+                <Property name="tip">閽堝Modbus鍗忚鐨勯厤缃�</Property>
+                <Property name="iconClass">fa fa-refresh</Property>
+              </Button>
             </AutoForm>
           </Children>
         </FieldSet>
@@ -388,5 +406,17 @@
       <Property name="service">depotPR#ajaxGetAllCache</Property>
       <Property name="executingMessage">鍒濆鍖栨暟鎹�︹��</Property>
     </AjaxAction>
+    <Dialog id="dialogModbus">
+      <Property name="width">80%</Property>
+      <Property name="height">95%</Property>
+      <Property name="caption">Modbus-TCP閰嶇疆</Property>
+      <Buttons/>
+      <Children>
+        <IFrame id="iframModbus">
+          <Property name="path">com.ld.igds.modbus.GasModbus.d</Property>
+        </IFrame>
+      </Children>
+      <Tools/>
+    </Dialog>
   </View>
 </ViewConfig>

--
Gitblit v1.9.3