From dfd793f14e51c48c3322f1b36f543179043bd45d Mon Sep 17 00:00:00 2001
From: jiazx0107@163.com <jiazx0107@163.com>
Date: 星期日, 22 十月 2023 18:25:27 +0800
Subject: [PATCH] 更新仓内抓拍

---
 igds-security/src/main/java/com/ld/igds/sec/view/SecSnapDepot.view.xml |  151 +++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 112 insertions(+), 39 deletions(-)

diff --git a/igds-security/src/main/java/com/ld/igds/sec/view/SecSnapDepot.view.xml b/igds-security/src/main/java/com/ld/igds/sec/view/SecSnapDepot.view.xml
index 0a73e8e..e273e91 100644
--- a/igds-security/src/main/java/com/ld/igds/sec/view/SecSnapDepot.view.xml
+++ b/igds-security/src/main/java/com/ld/igds/sec/view/SecSnapDepot.view.xml
@@ -73,55 +73,124 @@
         <Property name="label">鏇存柊鏃堕棿</Property>
       </PropertyDef>
     </DataType>
+    <DataType name="dtQuery">
+      <PropertyDef name="depotId">
+        <Property/>
+        <Property name="label">鎵�灞炰粨搴�</Property>
+      </PropertyDef>
+      <PropertyDef name="start">
+        <Property name="label">璧峰鏃ユ湡</Property>
+        <Property name="dataType">Date</Property>
+      </PropertyDef>
+      <PropertyDef name="end">
+        <Property name="label">鎴鏃ユ湡</Property>
+        <Property name="dataType">Date</Property>
+      </PropertyDef>
+    </DataType>
   </Model>
   <View layout="padding:5;regionPadding:5">
     <Property name="packages">font-awesome,css-common</Property>
     <DataSet id="dsMain">
       <Property name="loadMode">lazy</Property>
       <Property name="dataType">[dtMain]</Property>
+      <Property name="dataProvider">secSnapDepotPR#pageSnapDepot</Property>
+      <Property name="pageSize">12</Property>
     </DataSet>
     <DataSet id="dsConf">
       <Property name="dataType">[dtConf]</Property>
     </DataSet>
-    <ToolBar>
-      <ToolBarLabel>
-        <Property name="text">鑿滃崟鏍忥細</Property>
-      </ToolBarLabel>
-      <Fill/>
-      <ToolBarButton>
-        <ClientEvent name="onClick">view.get(&quot;#dialogConf&quot;).show();&#xD;
-</ClientEvent>
-        <Property name="caption">鎶撴媿閰嶇疆</Property>
-      </ToolBarButton>
-    </ToolBar>
-    <Container layout="regionPadding:10" layoutConstraint="center">
-      <Property name="exClassName">bg-color</Property>
-      <DataGrid layoutConstraint="center padding:5px">
-        <Property name="dataSet">dsMain</Property>
-        <Property name="readOnly">true</Property>
-        <RowNumColumn>
-          <Property name="width">50</Property>
-        </RowNumColumn>
-        <DataColumn name="depotId">
-          <Property name="property">depotId</Property>
-        </DataColumn>
-        <DataColumn name="updateTime">
-          <Property name="property">updateTime</Property>
-        </DataColumn>
-        <DataColumn name="zpsj">
-          <Property name="property">zpsj</Property>
-        </DataColumn>
-        <DataColumn name="txwjhzm">
-          <Property name="property">txwjhzm</Property>
-        </DataColumn>
-        <DataColumn name="wjmc">
-          <Property name="property">wjmc</Property>
-        </DataColumn>
-        <DataColumn name="yzwbh">
-          <Property name="property">yzwbh</Property>
-        </DataColumn>
-      </DataGrid>
-    </Container>
+    <DataSet id="dsQuery">
+      <ClientEvent name="onReady">self.insert({});</ClientEvent>
+      <Property name="dataType">dtQuery</Property>
+    </DataSet>
+    <Panel layout="regionPadding:10">
+      <Property name="caption">瑙嗛鍥惧儚淇℃伅绠$悊</Property>
+      <Property name="iconClass">fa fa-bars</Property>
+      <Buttons/>
+      <Children>
+        <Container>
+          <Property name="contentOverflow">hidden</Property>
+          <Property name="exClassName">bg-color</Property>
+          <AutoForm>
+            <Property name="cols">80,*,*,*,*</Property>
+            <Property name="dataSet">dsQuery</Property>
+            <Label>
+              <Property name="text">鏌ヨ鏉′欢锛�</Property>
+            </Label>
+            <AutoFormElement>
+              <Property name="name">depotId</Property>
+              <Property name="property">depotId</Property>
+              <Editor/>
+            </AutoFormElement>
+            <AutoFormElement>
+              <Property name="name">start</Property>
+              <Property name="property">start</Property>
+              <Editor/>
+            </AutoFormElement>
+            <AutoFormElement>
+              <Property name="name">end</Property>
+              <Property name="property">end</Property>
+              <Editor/>
+            </AutoFormElement>
+            <Container layout="regionPadding:10">
+              <Button layoutConstraint="left">
+                <ClientEvent name="onClick">var entity = view.get(&quot;#dsQuery.data:#&quot;);&#xD;
+view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,entity).flushAsync(function(){&#xD;
+	$notify(&quot;鏌ヨ鎴愬姛锛�&quot;);&#xD;
+});</ClientEvent>
+                <Property name="caption">鏌ヨ</Property>
+                <Property name="exClassName">btn-normal</Property>
+                <Property name="iconClass">fa fa-search</Property>
+              </Button>
+              <Button layoutConstraint="left">
+                <ClientEvent name="onClick">view.get(&quot;#dsQuery&quot;).setData({});</ClientEvent>
+                <Property name="caption">閲嶇疆</Property>
+                <Property name="exClassName">btn-warn</Property>
+                <Property name="iconClass">fa fa-refresh</Property>
+              </Button>
+              <Button layoutConstraint="left">
+                <ClientEvent name="onClick">view.get(&quot;#dialogConf&quot;).show();</ClientEvent>
+                <Property name="caption">鎶撴媿閰嶇疆</Property>
+                <Property name="exClassName">btn-default</Property>
+                <Property name="iconClass">fa fa-cogs</Property>
+              </Button>
+            </Container>
+          </AutoForm>
+        </Container>
+        <Container layoutConstraint="center">
+          <Property name="exClassName">bg-color</Property>
+          <DataBlockView>
+            <ClientEvent name="onRenderBlock">&#xD;
+var time = arg.data.get(&quot;zpsj&quot;).formatDate(&quot;Y-m-d H:i&quot;);&#xD;
+var hwdm = arg.data.getText(&quot;hwdm&quot;);&#xD;
+var cfdm = arg.data.getText(&quot;cfdm&quot;);&#xD;
+var kqdm = arg.data.getText(&quot;kqdm&quot;);&#xD;
+var imgSrc = &quot;../../grain/file/get-depot-snap?filePath=&quot;+arg.data.get(&quot;wjdz&quot;);&#xD;
+var htm = &quot;&lt;div>&lt;img src='&quot;+imgSrc+&quot;' style='height:250px; width:100%;'>&lt;div>&lt;span style='padding-left:10px;'>搴撳尯锛�&quot;+kqdm+&quot;&lt;/span>&lt;span style='float:right;padding-right:10px;'>浠撴埧锛�&quot;+cfdm+&quot;&lt;/span>&lt;/div>&lt;div>&lt;span style='padding-left:10px;'>璐т綅锛�&quot;+hwdm+&quot;&lt;/span>&lt;span style='float:right;padding-right:10px;'>鏃堕棿锛�&quot;+time+&quot;&lt;/span>&lt;/div>&lt;/div>&quot;;&#xD;
+&#xD;
+arg.dom.innerHTML = htm;&#xD;
+arg.progressDefault=false;</ClientEvent>
+            <Property name="dataSet">dsMain</Property>
+            <Property name="blockHeight">300</Property>
+            <Property name="blockWidth">390</Property>
+            <Property name="blockLayout">vertical</Property>
+            <Property name="horiPadding">15</Property>
+            <Property name="horiSpacing">15</Property>
+            <Property name="vertPadding">15</Property>
+            <Property name="vertSpacing">15</Property>
+            <Property name="lineSize">4</Property>
+          </DataBlockView>
+        </Container>
+        <ToolBar layoutConstraint="bottom">
+          <Fill/>
+          <DataPilot layoutConstraint="right">
+            <Property name="dataSet">dsMain</Property>
+            <Property name="itemCodes">pageSize,pages</Property>
+          </DataPilot>
+        </ToolBar>
+      </Children>
+      <Tools/>
+    </Panel>
     <Dialog id="dialogConf">
       <Buttons/>
       <Children>
@@ -145,5 +214,9 @@
       </Children>
       <Tools/>
     </Dialog>
+    <AjaxAction id="ajaxDel">
+      <Property name="service">videoImgPR#delData</Property>
+      <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property>
+    </AjaxAction>
   </View>
 </ViewConfig>

--
Gitblit v1.9.3