From 0f2fc0872069f0a5099cc535e6ff885b13937153 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期三, 10 十二月 2025 18:12:04 +0800
Subject: [PATCH] 网关配置页面

---
 fzzy-igdss-view/src/main/java/com/fzzy/igds/GatewaySer.view.xml |  283 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 283 insertions(+), 0 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/GatewaySer.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/GatewaySer.view.xml
new file mode 100644
index 0000000..524a9ee
--- /dev/null
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/GatewaySer.view.xml
@@ -0,0 +1,283 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ViewConfig>
+  <Arguments/>
+  <Context/>
+  <Model/>
+  <View layout="padding:10">
+    <ClientEvent name="onReady">&#xD;
+addData = function(){&#xD;
+	view.get(&quot;#dsGatewaySer&quot;).insert();&#xD;
+	view.get(&quot;#dialog1&quot;).set(&quot;caption&quot;,&quot;缃戝叧淇℃伅&quot;);&#xD;
+&#xD;
+	view.get(&quot;#dialog1&quot;).show();&#xD;
+};&#xD;
+&#xD;
+delData = function(){&#xD;
+	var cur = view.get(&quot;#dsGatewaySer.data:#&quot;);&#xD;
+	if(!cur) return;&#xD;
+	cur.setState(dorado.Entity.STATE_DELETED);&#xD;
+	$confirm(&quot;纭畾瑕佸垹闄よ鏁版嵁涔堬紵&quot;,function(){&#xD;
+		view.get(&quot;#uaSave&quot;).execute(function(){&#xD;
+			cur.remove();&#xD;
+		});&#xD;
+	});&#xD;
+};&#xD;
+&#xD;
+btnCancel = function(){&#xD;
+	view.get(&quot;#dialog1&quot;).hide();&#xD;
+};&#xD;
+&#xD;
+onDialogHide = function(){&#xD;
+	var cur = view.get(&quot;#dsGatewaySer.data:#&quot;);&#xD;
+	cur.cancel();&#xD;
+};</ClientEvent>
+    <Property name="packages">font-awesome,css-common</Property>
+    <Property name="cache">
+      <Property name="mode">clientSide</Property>
+    </Property>
+    <DataSet id="dsGatewaySer">
+      <Property name="parameter"></Property>
+      <Property name="dataProvider">gatewaySerPR#getAllSer</Property>
+      <Property name="dataType">[dtGatewaySer]</Property>
+    </DataSet>
+    <Container>
+      <Property name="className">c-param</Property>
+      <ToolBar>
+        <ToolBarButton>
+          <ClientEvent name="onClick">addData();</ClientEvent>
+            <Property name="caption">鏂板</Property>
+            <Property name="exClassName">btn1</Property>
+            <Property name="width">100</Property>
+            <Property name="iconClass">fa fa-plus</Property>
+        </ToolBarButton>
+        <ToolBarButton>
+          <ClientEvent name="onClick">&#xD;
+var select = view.get(&quot;#dataGridMain&quot;).get(&quot;selection&quot;);&#xD;
+if(select){&#xD;
+    view.get(&quot;#dialog1&quot;).show();&#xD;
+}else{&#xD;
+    $notify(&quot;璇烽�夋嫨闇�瑕佷慨鏀圭殑鏁版嵁鈥︹��&quot;);&#xD;
+}</ClientEvent>
+          <Property name="caption">淇敼</Property>
+          <Property name="exClassName">btn2</Property>
+          <Property name="width">100</Property>
+          <Property name="iconClass">fa fa-pencil-square-o</Property>
+        </ToolBarButton>
+        <ToolBarButton>
+          <ClientEvent name="onClick">
+var select = view.get(&quot;#dataGridMain&quot;).get(&quot;selection&quot;);&#xD;
+if(select){&#xD;
+    view.get(&quot;#ajaxActionDel&quot;).set(&quot;parameter&quot;,{&#xD;id: select.get(&quot;id&quot;)&#xD;
+        }).execute(function(){&#xD;
+        select.remove();&#xD;
+    });&#xD;
+}else{&#xD;
+    $notify(&quot;璇烽�夋嫨闇�瑕佸垹闄ょ殑鏁版嵁鈥︹��&quot;);&#xD;
+}&#xD;</ClientEvent>
+          <Property name="caption">鍒犻櫎</Property>
+          <Property name="exClassName">btn3</Property>
+          <Property name="width">100</Property>
+          <Property name="iconClass">fa fa-times</Property>
+          <Property name="action">ajaxActionDel</Property>
+        </ToolBarButton>
+        <ToolBarButton>
+          <ClientEvent name="onClick">view.get(&quot;#dsGatewaySer&quot;).flushAsync();&#xD;
+          </ClientEvent>
+          <Property name="caption">鍒锋柊鏁版嵁</Property>
+          <Property name="exClassName">btn2</Property>
+          <Property name="iconClass">fa fa-refresh</Property>
+        </ToolBarButton>
+        <ToolBarButton>
+          <Property name="caption">鍒锋柊缂撳瓨</Property>
+          <Property name="exClassName">btn4</Property>
+          <Property name="iconClass">fa fa-refresh</Property>
+          <Property name="width">100</Property>
+          <Property name="action">ajaxRefreshCache</Property>
+        </ToolBarButton>
+      </ToolBar>
+      <DataGrid id="dataGridMain" layoutConstraint="padding:8">
+        <ClientEvent name="onDataRowClick">view.get(&quot;#dataGridMain&quot;).set(&quot;selection&quot;,arg.data);</ClientEvent>
+        <Property name="dataSet">dsGatewaySer</Property>
+        <Property name="readOnly">true</Property>
+        <Property name="selectionMode">singleRow</Property>
+        <RowSelectorColumn/>
+        <RowNumColumn/>
+        <DataColumn name="id">
+          <Property name="property">id</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="name">
+          <Property name="property">name</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="deptId">
+          <Property name="property">deptId</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="ip">
+          <Property name="property">ip</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="port">
+          <Property name="property">port</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="status">
+          <ClientEvent name="onRenderCell">arg.dom.style.background = arg.data.get(&quot;status&quot;)== 'Y' ?&quot;&quot;:&quot;#FF5722&quot;;&#xD;
+arg.processDefault = true;</ClientEvent>
+          <Property name="property">status</Property>
+          <Property name="align">center</Property>
+          <Property name="width">120</Property>
+        </DataColumn>
+        <DataColumn name="updateBy">
+          <Property name="property">updateBy</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="updateTime">
+          <Property name="property">updateTime</Property>
+          <Property name="align">center</Property>
+          <Property name="width">180</Property>
+        </DataColumn>
+      </DataGrid>
+    </Container>
+    <Dialog id="dialog1" layout="regionPadding:8">
+      <ClientEvent name="onHide">onDialogHide();</ClientEvent>
+      <Property name="iconClass">fa fa-tasks</Property>
+      <Property name="width">1200</Property>
+      <Property name="caption">缃戝叧淇℃伅</Property>
+      <Property name="closeable">false</Property>
+      <Buttons>
+        <Button>
+          <ClientEvent name="onClick">var cur = view.get(&quot;#dsGatewaySer.data:#&quot;);&#xD;
+if(cur.validate() == 'ok'){&#xD;
+	view.get(&quot;#updateAction&quot;).execute(function(){&#xD;
+		view.get(&quot;#dialog1&quot;).close();&#xD;
+	});&#xD;
+}else{&#xD;
+	$alert(&quot;鏁版嵁鏍¢獙澶辫触锛�&quot;);&#xD;
+}</ClientEvent>
+          <Property name="caption">淇濆瓨</Property>
+          <Property name="iconClass">fa fa-check-circle</Property>
+          <Property name="exClassName">btn1</Property>
+          <Property name="width">120</Property>
+        </Button>
+        <Button>
+          <ClientEvent name="onClick">btnCancel();</ClientEvent>
+          <Property name="caption">鍙栨秷</Property>
+          <Property name="exClassName">btn3</Property>
+          <Property name="iconClass">fa fa-times-circle</Property>
+          <Property name="width">120</Property>
+        </Button>
+      </Buttons>
+      <Children>
+        <FieldSet layout="padding:5">
+          <Property name="caption">鍩烘湰淇℃伅</Property>
+          <Buttons/>
+          <Children>
+            <AutoForm>
+              <Property name="dataSet">dsGatewaySer</Property>
+              <Property name="cols">*,*,*</Property>
+              <Property name="labelSeparator">锛�</Property>
+              <Property name="labelAlign">right</Property>
+              <Property name="labelWidth">100</Property>
+              <AutoFormElement>
+                <Property name="name">id</Property>
+                <Property name="property">id</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">name</Property>
+                <Property name="property">name</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">deptId</Property>
+                <Property name="property">deptId</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">sn</Property>
+                <Property name="property">sn</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">ip</Property>
+                <Property name="property">ip</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">port</Property>
+                <Property name="property">port</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">snapUrl</Property>
+                <Property name="property">snapUrl</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">status</Property>
+                <Property name="property">status</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">ptzUrl</Property>
+                <Property name="property">ptzUrl</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">orderNum</Property>
+                <Property name="property">orderNum</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">remark</Property>
+                <Property name="property">remark</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">createBy</Property>
+                <Property name="property">createBy</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">createTime</Property>
+                <Property name="property">createTime</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">updateBy</Property>
+                <Property name="property">updateBy</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">updateTime</Property>
+                <Property name="property">updateTime</Property>
+                <Editor/>
+              </AutoFormElement>
+            </AutoForm>
+          </Children>
+        </FieldSet>
+      </Children>
+      <Tools/>
+    </Dialog>
+    <UpdateAction id="updateAction">
+      <Property name="dataResolver">gatewaySerPR#updateSer</Property>
+      <UpdateItem>
+        <Property name="dataSet">dsGatewaySer</Property>
+        <Property name="dataPath">[#current]</Property>
+      </UpdateItem>
+    </UpdateAction>
+    <AjaxAction id="ajaxActionDel">
+      <Property name="service">gatewaySerPR#delSerById</Property>
+      <Property name="confirmMessage">纭畾瑕佸垹闄や箞锛�</Property>
+      <Property name="executingMessage">姝e湪鍒犻櫎</Property>
+      <Property name="successMessage">鍒犻櫎鎴愬姛</Property>
+    </AjaxAction>
+    <AjaxAction id="ajaxRefreshCache">
+      <Property name="service">gatewaySerPR#refreshCache</Property>
+      <Property name="successMessage">鍒锋柊鎴愬姛锛�</Property>
+      <Property name="confirmMessage">纭畾瑕佸埛鏂扮紦瀛樹箞锛�</Property>
+    </AjaxAction>
+  </View>
+</ViewConfig>

--
Gitblit v1.9.3