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/DeviceIot.view.xml |  324 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 324 insertions(+), 0 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/DeviceIot.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/DeviceIot.view.xml
new file mode 100644
index 0000000..6f53ec5
--- /dev/null
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/DeviceIot.view.xml
@@ -0,0 +1,324 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ViewConfig>
+  <Arguments/>
+  <Context/>
+  <Model>
+    <DataType name="dataTypeC">
+      <PropertyDef name="depotId">
+        <Property></Property>
+        <Property name="label">鎵�灞炰粨搴�</Property>
+        <Property name="mapping">
+          <Property name="mapValues">${dorado.getDataProvider(&quot;depotPR#getAllCache&quot;).getResult()}</Property>
+          <Property name="keyProperty">id</Property>
+          <Property name="valueProperty">name</Property>
+        </Property>
+      </PropertyDef>
+      <PropertyDef name="type">
+        <Property></Property>
+        <Property name="label">璁惧绫诲瀷</Property>
+        <Property name="mapping">
+          <Property name="mapValues">${dorado.getDataProvider(&quot;dicPR#sysDictData&quot;).getResult(&quot;DEVICE_IOT_TYPE&quot;)}</Property>
+          <Property name="keyProperty">dictValue</Property>
+          <Property name="valueProperty">dictLabel</Property>
+        </Property>
+      </PropertyDef>
+      <PropertyDef name="serId">
+        <Property></Property>
+        <Property name="label">鎵�灞炲垎鏈�</Property>
+        <Property name="mapping">
+          <Property name="mapValues">${dorado.getDataProvider(&quot;deviceSerPR#getAllSerCache&quot;).getResult()}</Property>
+          <Property name="keyProperty">id</Property>
+          <Property name="valueProperty">name</Property>
+        </Property>
+      </PropertyDef>
+    </DataType>
+  </Model>
+  <View layout="padding:10">
+    <ClientEvent name="onReady">view.get(&quot;#dataSetC&quot;).insert();</ClientEvent>
+    <Property name="packages">font-awesome,css-common</Property>
+    <DataSet id="dsDeviceIot">
+      <Property name="dataProvider">deviceIotPR#loadDeviceIotPage</Property>
+      <Property name="pageSize">20</Property>
+      <Property name="loadMode">lazy</Property>
+      <Property name="dataType">[dtDeviceIot]</Property>
+    </DataSet>
+    <DataSet id="dataSetC">
+      <Property name="dataType">dataTypeC</Property>
+    </DataSet>
+    <Container>
+      <Property name="className">c-param</Property>
+      <AutoForm>
+        <Property name="cols">*,*,*,90,90,*</Property>
+        <Property name="labelWidth">100</Property>
+        <Property name="labelAlign">right</Property>
+        <Property name="dataSet">dataSetC</Property>
+        <AutoFormElement>
+          <Property name="name">depotId</Property>
+          <Property name="property">depotId</Property>
+          <Property name="trigger">autoOpenMappingDropDown2</Property>
+          <Editor/>
+        </AutoFormElement>
+        <AutoFormElement>
+          <Property name="name">serId</Property>
+          <Property name="property">serId</Property>
+          <Property name="trigger">autoOpenMappingDropDown2</Property>
+          <Editor/>
+        </AutoFormElement>
+        <AutoFormElement>
+          <Property name="name">type</Property>
+          <Property name="property">type</Property>
+          <Property name="trigger">autoOpenMappingDropDown2</Property>
+          <Editor/>
+        </AutoFormElement>
+        <Button>
+          <Property name="action">actionDeviceIotQuery</Property>
+          <Property name="caption">鎼滅储</Property>
+          <Property name="iconClass">fa fa-search</Property>
+          <Property name="exClassName">btn-q1</Property>
+        </Button>
+        <Button>
+          <ClientEvent name="onClick">view.get(&quot;#dataSetC&quot;).setData({});</ClientEvent>
+          <Property name="caption">閲嶇疆</Property>
+          <Property name="exClassName">btn-q2</Property>
+          <Property name="iconClass">fa fa-refresh</Property>
+        </Button>
+      </AutoForm>
+    </Container>
+    <Container>
+      <Property name="className">c-data</Property>
+      <ToolBar>
+        <ToolBarButton>
+          <Property name="caption">鏂板</Property>
+          <Property name="exClassName">btn1</Property>
+          <Property name="width">100</Property>
+          <Property name="iconClass">fa fa-plus</Property>
+          <Property name="action">actionDeviceIotAdd</Property>
+        </ToolBarButton>
+        <ToolBarButton>
+          <Property name="action">actionDeviceIotUpdate</Property>
+          <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>
+          <Property name="action">actionDeviceIotDelete</Property>
+          <Property name="caption">鍒犻櫎</Property>
+          <Property name="exClassName">btn3</Property>
+          <Property name="width">100</Property>
+          <Property name="iconClass">fa fa-times</Property>
+        </ToolBarButton>
+        <ToolBarButton>
+          <Property name="caption">鍒锋柊缂撳瓨</Property>
+          <Property name="action">ajaxRefreshCache</Property>
+          <Property name="exClassName">btn4</Property>
+          <Property name="iconClass">fa fa-refresh</Property>
+          <Property name="width">100</Property>
+        </ToolBarButton>
+      </ToolBar>
+      <DataGrid id="gridDeviceIot" layoutConstraint="padding:8">
+        <ClientEvent name="onDataRowClick">view.get(&quot;#gridDeviceIot&quot;).set(&quot;selection&quot;,arg.data);</ClientEvent>
+        <Property name="dataSet">dsDeviceIot</Property>
+        <Property name="readOnly">true</Property>
+        <Property name="selectionMode">singleRow</Property>
+        <RowSelectorColumn/>
+        <RowNumColumn/>
+        <DataColumn name="depotId">
+          <Property name="property">depotId</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="name">
+          <Property name="property">name</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="serId">
+          <Property name="property">serId</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="passCode">
+          <Property name="property">passCode</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="type">
+          <Property name="property">type</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="remark">
+          <Property name="property">remark</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="updateBy">
+          <Property name="property">updateBy</Property>
+          <Property name="align">center</Property>
+          <Property name="width">120</Property>
+        </DataColumn>
+        <DataColumn name="updateTime">
+          <Property name="property">updateTime</Property>
+          <Property name="align">center</Property>
+          <Property name="width">160</Property>
+        </DataColumn>
+      </DataGrid>
+    </Container>
+    <Container layoutConstraint="bottom">
+      <Property name="className">c-bottom</Property>
+      <DataPilot layoutConstraint="right">
+        <Property name="dataSet">dsDeviceIot</Property>
+        <Property name="itemCodes">pageSize,pages</Property>
+      </DataPilot>
+    </Container>
+    <Dialog id="dialogDeviceIot" layout="regionPadding:8">
+      <ClientEvent name="onHide">view.id(&quot;dsDeviceIot&quot;).getData().cancel();</ClientEvent>
+      <Property name="iconClass">fa fa-tasks</Property>
+      <Property name="caption">璁惧淇℃伅</Property>
+      <Property name="width">800</Property>
+      <Buttons>
+        <Button>
+          <Property name="action">actionDeviceIotSave</Property>
+          <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">view.get(&quot;#dialogDeviceIot&quot;).hide();</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>
+        <AutoForm>
+          <Property name="dataSet">dsDeviceIot</Property>
+          <Property name="cols">*,*</Property>
+          <Property name="labelWidth">100</Property>
+          <AutoFormElement>
+            <Property name="name">depotId</Property>
+            <Property name="property">depotId</Property>
+            <Editor/>
+          </AutoFormElement>
+          <AutoFormElement>
+            <Property name="name">name</Property>
+            <Property name="property">name</Property>
+            <Editor/>
+          </AutoFormElement>
+          <AutoFormElement>
+            <Property name="name">passCode</Property>
+            <Property name="property">passCode</Property>
+            <Editor/>
+          </AutoFormElement>
+          <AutoFormElement>
+            <Property name="name">serId</Property>
+            <Property name="property">serId</Property>
+            <Editor/>
+          </AutoFormElement>
+          <AutoFormElement>
+            <Property name="name">type</Property>
+            <Property name="property">type</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>
+      <Tools/>
+    </Dialog>
+    <Action id="actionDeviceIotQuery">
+      <ClientEvent name="onExecute">var entity = view.get(&quot;#dataSetC.data&quot;);&#xD;
+view.get(&quot;#dsDeviceIot&quot;).set(&quot;parameter&quot;,entity).flushAsync();</ClientEvent>
+      <ClientEvent name="onFailure">dorado.MessageBox.alert(arg.error,{&#xD;
+    title: '绯荤粺鎻愮ず淇℃伅'&#xD;
+});&#xD;
+arg.processDefault = false;</ClientEvent>
+      <Property name="hotkey">alt+q</Property>
+    </Action>
+    <Action id="actionDeviceIotAdd">
+      <ClientEvent name="onExecute">var dialog=view.get(&quot;#dialogDeviceIot&quot;);&#xD;
+var visible=dialog.get(&quot;actualVisible&quot;);&#xD;
+if(!visible){&#xD;
+	view.get(&quot;#dsDeviceIot&quot;).insert();&#xD;
+	dialog.set(&quot;caption&quot;,&quot;鏂板璁惧&quot;);&#xD;
+	dialog.show();&#xD;
+}</ClientEvent>
+    </Action>
+    <Action id="actionDeviceIotUpdate">
+      <ClientEvent name="onExecute">var entity = view.id(&quot;dsDeviceIot&quot;).getData(&quot;#&quot;);&#xD;
+var dialog=view.get(&quot;#dialogDeviceIot&quot;);&#xD;
+var visible = dialog.get(&quot;actualVisible&quot;);&#xD;
+var select = view.get(&quot;#gridDeviceIot&quot;).get(&quot;selection&quot;);&#xD;
+if(!visible){&#xD;
+	dialog.set(&quot;caption&quot;,&quot;淇敼璁惧&quot;);&#xD;
+	if(select){&#xD;
+		dialog.show();&#xD;
+	}else{&#xD;
+		dorado.MessageBox.alert(&quot;璇烽�夋嫨闇�瑕佷慨鏀圭殑鏁版嵁鈥︹��&quot;);&#xD;
+	}&#xD;
+}&#xD;
+view.get(&quot;^isKey&quot;).each(function(item){&#xD;
+	item.set(&quot;readOnly&quot;,true);&#xD;
+});</ClientEvent>
+    </Action>
+    <Action id="actionDeviceIotDelete">
+      <ClientEvent name="onExecute">var dialog=view.get(&quot;#dialogDeviceIot&quot;);&#xD;
+var visible = dialog.get(&quot;actualVisible&quot;);&#xD;
+var dsDeviceIot=view.get(&quot;#dsDeviceIot&quot;);&#xD;
+var actionDeviceIotSave=view.get(&quot;#actionDeviceIotSave&quot;);&#xD;
+var select = view.get(&quot;#gridDeviceIot&quot;).get(&quot;selection&quot;);&#xD;
+if(!visible){&#xD;
+	if(!select){&#xD;
+		dorado.MessageBox.alert(&quot;璇峰厛閫夋嫨瑕佹搷浣滅殑鏁版嵁锛�&quot;);&#xD;
+		return;&#xD;
+	}else{&#xD;
+		dorado.MessageBox.confirm(&quot;纭畾瑕佸垹闄よ繖鏉¤褰曞悧锛�&quot;,{&#xD;
+	    detailCallback: function(button,text){&#xD;
+			if(&quot;yes&quot;==button){&#xD;
+				select.remove();&#xD;
+				actionDeviceIotSave.execute();&#xD;
+			}&#xD;
+	    }});&#xD;
+	}&#xD;
+}</ClientEvent>
+    </Action>
+    <UpdateAction id="actionDeviceIotSave">
+      <ClientEvent name="onFailure">if(arg.error){&#xD;
+	dorado.MessageBox.alert(arg.error,{&#xD;
+	    title: '绯荤粺鎻愮ず淇℃伅'&#xD;
+	});&#xD;
+	arg.processDefault = false;&#xD;
+}</ClientEvent>
+      <ClientEvent name="onSuccess">view.get(&quot;#dialogDeviceIot&quot;).close();</ClientEvent>
+      <Property name="dataResolver">deviceIotPR#saveAll</Property>
+      <UpdateItem>
+        <Property name="dataSet">dsDeviceIot</Property>
+      </UpdateItem>
+    </UpdateAction>
+    <AjaxAction id="ajaxRefreshCache">
+      <Property name="service">deviceIotPR#refreshCache</Property>
+      <Property name="successMessage">鍒锋柊鎴愬姛锛�</Property>
+      <Property name="confirmMessage">纭畾瑕佸埛鏂扮紦瀛樹箞锛�</Property>
+    </AjaxAction>
+  </View>
+</ViewConfig>

--
Gitblit v1.9.3