From 5cc86ac9bc9d24e947d28542a1023e9c063a2a12 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期四, 11 十二月 2025 16:24:26 +0800
Subject: [PATCH] 抓拍配置页面修改

---
 fzzy-igdss-view/src/main/java/com/fzzy/igds/SnapConf.view.xml |  213 ++++++++++++++--------------------------------------
 1 files changed, 59 insertions(+), 154 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/SnapConf.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/SnapConf.view.xml
index d1182db..b451345 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/SnapConf.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/SnapConf.view.xml
@@ -4,189 +4,94 @@
   <Context/>
   <Model/>
   <View layout="padding:10">
-    <ClientEvent name="onClick">&#xD;
-/**&#xD;
-* 鏌ヨ&#xD;
-*/&#xD;
-query = function(){&#xD;
-    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
-}&#xD;</ClientEvent>
     <Property name="packages">font-awesome,css-common</Property>
-    <DataSet id="dsMain">
+    <DataSet id="dsConf">
       <Property name="loadMode">lazy</Property>
       <Property name="dataType">[dtSnapConf]</Property>
-      <Property name="dataProvider">snapConfPR#listAll</Property>
+      <Property name="dataProvider">snapConfPR#selectList</Property>
     </DataSet>
     <DataSet id="dsParam">
-      <ClientEvent name="onReady">self.insert({});</ClientEvent>
-      <Property name="dataType">dtBaseParam</Property>
+      <Property name="loadMode">lazy</Property>
+      <Property name="dataType">dtSnapConf</Property>
+      <Property name="dataProvider">snapConfPR#getConfActHour</Property>
     </DataSet>
     <Container>
       <Property name="className">c-param</Property>
-      <AutoForm>
-        <Property name="cols">*,90,90,*,*</Property>
-        <Property name="dataSet">dsParam</Property>
-        <Property name="labelAlign">right</Property>
-        <Property name="labelWidth">100</Property>
-        <AutoFormElement>
-          <Property name="name">deptId</Property>
-          <Property name="property">deptId</Property>
-          <Editor/>
-        </AutoFormElement>
-        <Button>
-          <ClientEvent name="onClick">var param = view.get(&quot;#dsParam.data&quot;);&#xD;
-console.log(&quot;param&quot;,param);&#xD;
-view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,param).flushAsync();&#xD;
-</ClientEvent>
-          <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;#dsParam&quot;).set(&quot;data&quot;,{});</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>
-          <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert({});&#xD;
-view.get(&quot;#dialogMain&quot;).show();&#xD;
-</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">var data = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);
-view.get(&quot;#dialogMain&quot;).show();
-        </ClientEvent>
-          <Property name="id">btnUpdate</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>
-          <ClientEvent name="onClick">var data = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;)
-if(!data){
-	$alert(&quot;璇烽�夋嫨鏁版嵁&quot;);
-	}else{
-	view.get(&quot;#ajaxDelData&quot;).set(&quot;parameter&quot;, data).execute(function(result){
-		if(&quot;200&quot;!=result.code){
-			$alert(&quot;寮傚父淇℃伅锛�&quot;+result.message);
-		}else{
-			$notify(&quot;鎵ц鎴愬姛&quot;);
-            query();&#xD;
-		}
-	})
-}</ClientEvent>
-          <Property name="caption">鍒犻櫎</Property>
-          <Property name="exClassName">btn3</Property>
-          <Property name="width">100</Property>
-          <Property name="iconClass">fa fa-times</Property>
-        </ToolBarButton>
-      </ToolBar>
-      <DataGrid id="dgMain" layoutConstraint="padding:8" selectionMode="singleRow">
-        <ClientEvent name="onDataRowClick">self.set(&quot;selection&quot;, arg.data)</ClientEvent>
-        <Property name="dataSet">dsMain</Property>
-        <Property name="readOnly">true</Property>
-        <RowSelectorColumn/>
-        <RowNumColumn/>
-        <DataColumn name="deptId">
-          <Property name="property">deptId</Property>
-        </DataColumn>
-        <DataColumn name="cameraId">
-          <Property name="property">cameraId</Property>
-        </DataColumn>
-        <DataColumn name="actHour1">
-          <Property name="property">actHour1</Property>
-        </DataColumn>
-        <DataColumn name="actHour2">
-          <Property name="property">actHour2</Property>
-        </DataColumn>
-        <DataColumn name="actHour3">
-          <Property name="property">actHour3</Property>
-        </DataColumn>
-      </DataGrid>
-    </Container>
-    <Dialog id="dialogMain" layout="regionPadding:8">
-      <Property name="closeable">false</Property>
-      <Property name="caption">鎶撴媿閰嶇疆</Property>
-      <Property name="width">1200</Property>
-      <Property name="iconClass">fa fa-tasks</Property>
-      <Buttons>
-        <Button id="btnOk">
-          <ClientEvent name="onClick">view.get(&quot;#saveAction&quot;).execute(function(){&#xD;
-	self.get(&quot;parent&quot;).hide();&#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">view.get(&quot;#dsMain.data:#&quot;).cancel();&#xD;
-            self.get(&quot;parent&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>
-        <Container>
-          <AutoForm>
-            <Property name="dataSet">dsMain</Property>
-            <Property name="cols">*,*,*</Property>
-            <Property name="labelAlign">right</Property>
-            <Property name="labelSeparator">锛�</Property>
-            <Property name="labelWidth">120</Property>
-            <AutoFormElement>
-              <Property name="name">deptId</Property>
+      <FieldSet>
+        <Property name="caption">鎶撴媿鎽勫儚澶撮厤缃�</Property>
+        <Buttons>
+          <Button>
+            <ClientEvent name="onClick">view.get(&quot;#dsConf&quot;).insert();</ClientEvent>
+            <Property name="caption">鏂板閰嶇疆</Property>
+            <Property name="exClassName">bt1</Property>
+          </Button>
+          <Button>
+            <Property name="caption">淇濆瓨閰嶇疆</Property>
+            <Property name="action">updateConf</Property>
+            <Property name="exClassName">bt2</Property>
+          </Button>
+        </Buttons>
+        <Children>
+          <DataGrid id="dgMain">
+            <Property name="dataSet">dsConf</Property>
+            <Property name="height">400</Property>
+            <RowNumColumn/>
+            <DataColumn name="deptId">
               <Property name="property">deptId</Property>
-              <Editor/>
-            </AutoFormElement>
-            <AutoFormElement>
-              <Property name="name">cameraId</Property>
+            </DataColumn>
+            <DataColumn name="cameraId">
               <Property name="property">cameraId</Property>
-              <Editor/>
-            </AutoFormElement>
+            </DataColumn>
+          </DataGrid>
+        </Children>
+      </FieldSet>
+      <FieldSet>
+        <Property name="caption">鎶撴媿鏃堕棿閰嶇疆</Property>
+        <Buttons>
+          <Button>
+            <ClientEvent name="onClick">var data = view.get(&quot;#dsParam.data&quot;);&#xD;
+view.get(&quot;#ajaxSnapTime&quot;).set(&quot;parameter&quot;,data).execute();</ClientEvent>
+            <Property name="caption">淇濆瓨鎶撴椂闂�</Property>
+            <Property name="exClassName">bt4</Property>
+          </Button>
+        </Buttons>
+        <Children>
+          <AutoForm>
+            <Property name="dataSet">dsParam</Property>
+            <Property name="cols">*,*,*</Property>
             <AutoFormElement>
               <Property name="name">actHour1</Property>
               <Property name="property">actHour1</Property>
+              <Property name="trigger">listHour</Property>
               <Editor/>
             </AutoFormElement>
             <AutoFormElement>
               <Property name="name">actHour2</Property>
               <Property name="property">actHour2</Property>
+              <Property name="trigger">listHour</Property>
               <Editor/>
             </AutoFormElement>
             <AutoFormElement>
               <Property name="name">actHour3</Property>
               <Property name="property">actHour3</Property>
+              <Property name="trigger">listHour</Property>
               <Editor/>
             </AutoFormElement>
           </AutoForm>
-        </Container>
-      </Children>
-      <Tools/>
-    </Dialog>
-    <UpdateAction id="saveAction">
-      <Property name="dataResolver">snapConfPR#saveUpdate</Property>
+        </Children>
+      </FieldSet>
+    </Container>
+    <UpdateAction id="updateConf">
+      <Property name="dataResolver">snapConfPR#updateConf</Property>
       <UpdateItem>
-        <Property name="dataSet">dsMain</Property>
-        <Property name="dataPath">[#current]</Property>
+        <Property name="dataSet">dsConf</Property>
       </UpdateItem>
     </UpdateAction>
-    <AjaxAction id="ajaxDelData">
-      <Property name="confirmMessage">纭畾瑕佸垹闄ゆ暟鎹箞锛�</Property>
-      <Property name="service">snapConfPR#delete</Property>
+    <AjaxAction id="ajaxSnapTime">
+      <Property name="service">snapConfPR#updateActHour</Property>
     </AjaxAction>
+    <ListDropDown id="listHour">
+      <Property name="items">0,7,8,9,10,11,12,13,14,15,16,17,18</Property>
+    </ListDropDown>
   </View>
 </ViewConfig>

--
Gitblit v1.9.3