From 2f432f52c1cfb1567dadcf6e040c5d38b0a26a79 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期五, 28 十一月 2025 17:31:49 +0800
Subject: [PATCH] 数量检测配置页面

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

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/DeviceSer.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/DeviceSer.view.xml
new file mode 100644
index 0000000..c425b0d
--- /dev/null
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/DeviceSer.view.xml
@@ -0,0 +1,427 @@
+<?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;#dsDeviceSer&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;#dsDeviceSer.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;#dsDeviceSer.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="dsDeviceSer">
+      <Property name="parameter"></Property>
+      <Property name="dataProvider">deviceSerPR#getAllSer</Property>
+      <Property name="dataType">[dtDeviceSer]</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;#dsDeviceSer&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>
+        <ToolBarButton>
+          <Property name="caption">杩滅▼鎿嶄綔</Property>
+          <Property name="exClassName">btn2</Property>
+          <Property name="iconClass">fa fa-flag-checkered</Property>
+          <Property name="width">120</Property>
+          <Property name="menu">menuPull</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">dsDeviceSer</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="protocol">
+          <Property name="property">protocol</Property>
+          <Property name="align">center</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;#dsDeviceSer.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">dsDeviceSer</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>
+                <Property name="name">type</Property>
+                <Property name="property">type</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">protocol</Property>
+                <Property name="property">protocol</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">controlModel</Property>
+                <Property name="property">controlModel</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">powerModel</Property>
+                <Property name="property">powerModel</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">networkType</Property>
+                <Property name="property">networkType</Property>
+                <Property name="label">缁堢鑱旂綉</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">status</Property>
+                <Property name="property">status</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">isMoreDepot</Property>
+                <Property name="property">isMoreDepot</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">orderNum</Property>
+                <Property name="property">orderNum</Property>
+                <Editor/>
+              </AutoFormElement>
+            </AutoForm>
+          </Children>
+        </FieldSet>
+        <FieldSet layout="padding:5">
+          <Property name="caption">閰嶇疆淇℃伅</Property>
+          <Buttons/>
+          <Children>
+            <AutoForm>
+              <Property name="dataSet">dsDeviceSer</Property>
+              <Property name="cols">*,*,*,*</Property>
+              <Property name="labelSeparator">锛�</Property>
+              <Property name="labelAlign">right</Property>
+              <Property name="labelWidth">100</Property>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">producer</Property>
+                <Property name="property">producer</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">contactPhone</Property>
+                <Property name="property">contactPhone</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">cableFormat</Property>
+                <Property name="property">cableFormat</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">cableZ</Property>
+                <Property name="property">cableZ</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">cableY</Property>
+                <Property name="property">cableY</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">cableX</Property>
+                <Property name="property">cableX</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">cableStart</Property>
+                <Property name="property">cableStart</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">remark</Property>
+                <Property name="property">remark</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">cableType</Property>
+                <Property name="property">cableType</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">orgId</Property>
+                <Property name="property">orgId</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">deviceSerPR#updateSer</Property>
+      <UpdateItem>
+        <Property name="dataSet">dsDeviceSer</Property>
+        <Property name="dataPath">[#current]</Property>
+      </UpdateItem>
+    </UpdateAction>
+    <AjaxAction id="ajaxActionDel">
+      <Property name="service">deviceSerPR#delSerById</Property>
+      <Property name="confirmMessage">纭畾瑕佸垹闄や箞锛�</Property>
+      <Property name="executingMessage">姝e湪鍒犻櫎</Property>
+      <Property name="successMessage">鍒犻櫎鎴愬姛</Property>
+    </AjaxAction>
+    <AjaxAction id="ajaxRefreshCache">
+      <Property name="service">deviceSerPR#refreshCache</Property>
+      <Property name="successMessage">鍒锋柊鎴愬姛锛�</Property>
+      <Property name="confirmMessage">纭畾瑕佸埛鏂扮紦瀛樹箞锛�</Property>
+    </AjaxAction>
+    <Menu id="menuPull">
+      <MenuItem>
+        <ClientEvent name="onClick">var cur = view.get(&quot;#dsDeviceSer.data:#&quot;);&#xD;
+view.get(&quot;#ajaxUpdateDepot&quot;).set(&quot;parameter&quot;,cur.get(&quot;id&quot;)).execute(function(result){&#xD;
+	if(result){&#xD;
+		$alert(result);&#xD;
+	}else{&#xD;
+		$alert(&quot;鍛戒护鍙戦�佹垚鍔燂紝璇风瓑寰呯粓绔繑鍥烇紒锛�&quot;);&#xD;
+	}&#xD;
+});</ClientEvent>
+        <Property name="caption">杩滅▼鍚屾浠撳簱</Property>
+        <Property name="iconClass">fa fa-thumbs-o-up</Property>
+      </MenuItem>
+      <MenuItem>
+        <ClientEvent name="onClick">var cur = view.get(&quot;#dsDeviceSer.data:#&quot;);&#xD;
+view.get(&quot;#ajaxUpdateDevice&quot;).set(&quot;parameter&quot;,cur.get(&quot;id&quot;)).execute(function(result){&#xD;
+	if(result){&#xD;
+		$alert(result);&#xD;
+	}else{&#xD;
+		$alert(&quot;鍛戒护鍙戦�佹垚鍔燂紝璇风瓑寰呯粓绔繑鍥烇紒锛�&quot;);&#xD;
+	}&#xD;
+});</ClientEvent>
+        <Property name="caption">杩滅▼鍚屾璁惧</Property>
+        <Property name="iconClass">fa fa-thumbs-o-up</Property>
+      </MenuItem>
+      <MenuItem>
+        <ClientEvent name="onClick">var cur = view.get(&quot;#dsDeviceSer.data:#&quot;);&#xD;
+dorado.MessageBox.prompt(&quot;璇疯緭鍏ユ巿鏉冪爜锛�&quot;,function(txt){&#xD;
+	view.get(&quot;#ajaxAccess&quot;).set(&quot;parameter&quot;,{serId:cur.get(&quot;id&quot;),accessCode:txt}).execute(function(result){&#xD;
+		if(result){&#xD;
+			$alert(result);&#xD;
+		}else{&#xD;
+			$alert(&quot;鍛戒护鍙戦�佹垚鍔燂紝璇风瓑寰呯粓绔繑鍥烇紒锛�&quot;);&#xD;
+		}&#xD;
+	});&#xD;
+});</ClientEvent>
+        <Property name="caption">杩滅▼鎺堟潈</Property>
+        <Property name="iconClass">fa fa-thumbs-o-up</Property>
+      </MenuItem>
+    </Menu>
+    <AjaxAction id="ajaxUpdateDevice">
+      <Property name="service">pullPR#pullDeviceBySer</Property>
+      <Property name="confirmMessage">纭畾瑕佸悓姝ヨ繙绋嬫帶鍒舵煖涓殑璁惧閰嶇疆鍒板钩鍙颁箞锛�</Property>
+      <Property name="executingMessage">鎸囦护鍙戦�佷腑鈥︹��</Property>
+    </AjaxAction>
+    <AjaxAction id="ajaxUpdateDepot">
+      <Property name="service">pullPR#pullDepotBySer</Property>
+      <Property name="confirmMessage">纭畾瑕佸悓姝ヨ繙绋嬫帶鍒舵煖涓殑浠撳簱閰嶇疆鍒板钩鍙颁箞锛�</Property>
+      <Property name="executingMessage">鎸囦护鍙戦�佷腑鈥︹��</Property>
+    </AjaxAction>
+    <AjaxAction id="ajaxAccess">
+      <Property name="service">pullPR#pullAccess</Property>
+      <Property name="executingMessage">鎸囦护鍙戦�佷腑鈥︹��</Property>
+    </AjaxAction>
+  </View>
+</ViewConfig>

--
Gitblit v1.9.3