From a0f4d01559785001e7b16b21025cc6a42e65d167 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期五, 05 十二月 2025 17:36:31 +0800
Subject: [PATCH] 添加ai事件管理页面

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

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutHand.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutHand.view.xml
new file mode 100644
index 0000000..ff21b6a
--- /dev/null
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutHand.view.xml
@@ -0,0 +1,944 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ViewConfig>
+  <Arguments/>
+  <Context/>
+  <Model>
+    <DataType name="dtMain">
+      <Property name="creationType">com.fzzy.igds.data.InoutData</Property>
+      <PropertyDef name="id">
+        <Property></Property>
+        <Property name="label">鍗曟嵁鍙�</Property>
+        <Property name="readOnly">true</Property>
+      </PropertyDef>
+      <PropertyDef name="companyId">
+        <Property></Property>
+        <Property name="label">缁勭粐缂栫爜</Property>
+      </PropertyDef>
+      <PropertyDef name="progress">
+        <Property></Property>
+        <Property name="label">娴佺▼杩涘害</Property>
+        <Property name="mapping">
+          <Property name="mapValues">${dorado.getDataProvider(&quot;dicPR#sysDictData&quot;).getResult(&quot;PROCESS_STATUS_&quot;)}</Property>
+          <Property name="keyProperty">dictValue</Property>
+          <Property name="valueProperty">dictLabel</Property>
+        </Property>
+      </PropertyDef>
+      <PropertyDef name="recordStatus">
+        <Property></Property>
+        <Property name="label">鏁版嵁鐘舵��</Property>
+        <Property name="mapping">
+          <Property name="mapValues">${dorado.getDataProvider(&quot;dicPR#sysDictData&quot;).getResult(&quot;RECORD_STATUS&quot;)}</Property>
+          <Property name="keyProperty">dictValue</Property>
+          <Property name="valueProperty">dictLabel</Property>
+        </Property>
+      </PropertyDef>
+      <PropertyDef name="checkStatus">
+        <Property></Property>
+        <Property name="label">鎵︽牱缁撴灉</Property>
+        <Property name="mapping">
+          <Property name="mapValues">${dorado.getDataProvider(&quot;dicPR#sysDictData&quot;).getResult(&quot;CHECK_STATUS&quot;)}</Property>
+          <Property name="keyProperty">dictValue</Property>
+          <Property name="valueProperty">dictLabel</Property>
+        </Property>
+      </PropertyDef>
+      <PropertyDef name="registerTime">
+        <Property name="dataType">DateTime</Property>
+        <Property name="label">鐧昏鏃堕棿</Property>
+      </PropertyDef>
+      <PropertyDef name="registerUser">
+        <Property></Property>
+        <Property name="label">鐧昏浜哄憳</Property>
+      </PropertyDef>
+      <PropertyDef name="userName">
+        <Property></Property>
+        <Property name="label">鎵胯繍浜�</Property>
+      </PropertyDef>
+      <PropertyDef name="userId">
+        <Property></Property>
+        <Property name="label">韬唤璇佸彿</Property>
+      </PropertyDef>
+      <PropertyDef name="userContact">
+        <Property></Property>
+        <Property name="label">鑱旂郴鏂瑰紡</Property>
+      </PropertyDef>
+      <PropertyDef name="userAddress">
+        <Property></Property>
+        <Property name="label">鎵胯繍浜哄湴鍧�</Property>
+      </PropertyDef>
+      <PropertyDef name="plateNum">
+        <Property></Property>
+        <Property name="label">杞︾墝鍙�</Property>
+      </PropertyDef>
+      <PropertyDef name="customerName">
+        <Property></Property>
+        <Property name="label">寰�鏉ュ崟浣�</Property>
+        <Property name="required">true</Property>
+      </PropertyDef>
+      <PropertyDef name="foodLocation">
+        <Property></Property>
+        <Property name="label">绮浜у湴</Property>
+      </PropertyDef>
+      <PropertyDef name="foodYear">
+        <Property></Property>
+        <Property name="label">绮骞翠唤</Property>
+      </PropertyDef>
+      <PropertyDef name="deOther">
+        <Property name="dataType">Double</Property>
+        <Property name="label">鎵i噸</Property>
+        <Property name="displayFormat">0.0 KG</Property>
+      </PropertyDef>
+      <PropertyDef name="fullWeight">
+        <Property name="dataType">Double</Property>
+        <Property name="label">婊¤溅绉伴噸</Property>
+        <Property name="required">true</Property>
+        <Property name="displayFormat">0.0 KG</Property>
+      </PropertyDef>
+      <PropertyDef name="fullWeightTime">
+        <Property name="dataType">DateTime</Property>
+        <Property name="label">婊¤溅绉版椂闂�</Property>
+      </PropertyDef>
+      <PropertyDef name="fullWeightUser">
+        <Property></Property>
+        <Property name="label">婊¤溅绉伴噸浜�</Property>
+      </PropertyDef>
+      <PropertyDef name="emptyWeight">
+        <Property name="dataType">Double</Property>
+        <Property name="label">绌鸿溅绉伴噸</Property>
+        <Property name="required">true</Property>
+        <Property name="displayFormat">0.0 KG</Property>
+      </PropertyDef>
+      <PropertyDef name="emptyWeightTime">
+        <Property name="dataType">DateTime</Property>
+        <Property name="label">绌鸿溅绉版椂闂�</Property>
+      </PropertyDef>
+      <PropertyDef name="emptyWeightUser">
+        <Property></Property>
+        <Property name="label">绌鸿溅绉伴噸浜�</Property>
+      </PropertyDef>
+      <PropertyDef name="netWeight">
+        <Property name="dataType">Double</Property>
+        <Property name="label">鍑�閲�</Property>
+        <Property name="displayFormat">0.0 KG</Property>
+      </PropertyDef>
+      <PropertyDef name="settleWeight">
+        <Property name="dataType">Double</Property>
+        <Property name="label">缁撶畻鍑�閲�</Property>
+        <Property name="required">true</Property>
+        <Property name="displayFormat">0.0 KG</Property>
+      </PropertyDef>
+      <PropertyDef name="recordWeight">
+        <Property name="dataType">Double</Property>
+        <Property name="label">鍏ュ簱閲嶉噺</Property>
+        <Property name="displayFormat">0.0 KG</Property>
+      </PropertyDef>
+      <PropertyDef name="handleStart">
+        <Property name="dataType">Date</Property>
+        <Property name="label">鍊间粨寮�濮嬫椂闂�</Property>
+      </PropertyDef>
+      <PropertyDef name="handleEnd">
+        <Property name="dataType">Date</Property>
+        <Property name="label">鍊间粨缁撴潫鏃堕棿</Property>
+      </PropertyDef>
+      <PropertyDef name="handleUser">
+        <Property></Property>
+        <Property name="label">鍊间粨鎿嶄綔浜�</Property>
+      </PropertyDef>
+      <PropertyDef name="completeTime">
+        <Property name="dataType">DateTime</Property>
+        <Property name="label">瀹屾垚鏃堕棿</Property>
+        <Property name="required">true</Property>
+      </PropertyDef>
+      <PropertyDef name="completeUser">
+        <Property></Property>
+        <Property name="label">瀹屾垚纭浜�</Property>
+      </PropertyDef>
+      <PropertyDef name="remarks">
+        <Property></Property>
+        <Property name="label">澶囨敞淇℃伅</Property>
+      </PropertyDef>
+      <PropertyDef name="deptId">
+        <Property></Property>
+        <Property name="label">鎵�灞炲垎搴�</Property>
+        <Property name="mapping">
+          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#getAllData&quot;).getResult()}</Property>
+          <Property name="keyProperty">id</Property>
+          <Property name="valueProperty">kqmc</Property>
+        </Property>
+      </PropertyDef>
+      <PropertyDef name="foodVariety">
+        <Property></Property>
+        <Property name="label">绮鍝佺</Property>
+        <Property name="mapping">
+          <Property name="mapValues">${dorado.getDataProvider(&quot;dicPR#sysDictData&quot;).getResult(&quot;FOOD_VARIETY_&quot;)}</Property>
+          <Property name="keyProperty">dictValue</Property>
+          <Property name="valueProperty">dictLabel</Property>
+        </Property>
+        <Property name="required">true</Property>
+      </PropertyDef>
+      <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>
+        <Property name="required">true</Property>
+      </PropertyDef>
+      <PropertyDef name="type">
+        <Property name="label">鍑哄叆搴撶被鍨�</Property>
+        <Property name="mapping">
+          <Property name="mapValues">
+            <Collection>
+              <Entity>
+                <Property name="name">鍑哄簱</Property>
+                <Property name="value">OUT</Property>
+              </Entity>
+              <Entity>
+                <Property name="name">鍏ュ簱</Property>
+                <Property name="value">IN</Property>
+              </Entity>
+            </Collection>
+          </Property>
+          <Property name="keyProperty">value</Property>
+          <Property name="valueProperty">name</Property>
+        </Property>
+      </PropertyDef>
+      <PropertyDef name="foodLevel">
+        <Property></Property>
+        <Property name="label">绮绛夌骇</Property>
+        <Property name="mapping">
+          <Property name="mapValues">${dorado.getDataProvider(&quot;dicPR#triggerFoodLevel&quot;).getResult()}</Property>
+          <Property name="keyProperty">dictValue</Property>
+          <Property name="valueProperty">dictLabel</Property>
+        </Property>
+      </PropertyDef>
+      <PropertyDef name="checkUser">
+        <Property></Property>
+        <Property name="label">璐ㄦ浜�</Property>
+      </PropertyDef>
+      <PropertyDef name="price">
+        <Property name="dataType">double</Property>
+        <Property name="label">绮瀹氫环</Property>
+        <Property name="displayFormat">0.00 鍏�/鍏枻</Property>
+      </PropertyDef>
+      <PropertyDef name="noticeId">
+        <Property></Property>
+        <Property name="label">閫氱煡鍗曠紪鐮�</Property>
+        <Property name="readOnly">true</Property>
+      </PropertyDef>
+      <PropertyDef name="foodLocationId">
+        <Property></Property>
+        <Property name="label">浜у湴鍚嶇О浠g爜</Property>
+      </PropertyDef>
+      <PropertyDef name="checkTime">
+        <Property name="dataType">DateTime</Property>
+        <Property name="label">璐ㄦ鏃堕棿</Property>
+      </PropertyDef>
+      <PropertyDef name="perWet">
+        <Property name="dataType">Double</Property>
+        <Property name="label">姘村垎</Property>
+        <Property name="displayFormat">0.00 %</Property>
+      </PropertyDef>
+      <PropertyDef name="perImpurity">
+        <Property name="dataType">Double</Property>
+        <Property name="label">鏉傝川</Property>
+        <Property name="displayFormat">0.00 %</Property>
+      </PropertyDef>
+      <PropertyDef name="settleMoney">
+        <Property name="dataType">Double</Property>
+        <Property name="label">缁撶畻閲戦</Property>
+        <Property name="displayFormat">0.00 鍏�</Property>
+      </PropertyDef>
+      <PropertyDef name="settleTag">
+        <Property></Property>
+        <Property name="label">鏄惁缁撶畻</Property>
+        <Property name="mapping">
+          <Property name="mapValues">
+            <Collection>
+              <Entity>
+                <Property name="name">鏈粨绠�</Property>
+                <Property name="value">N</Property>
+              </Entity>
+              <Entity>
+                <Property name="name">宸茬粨绠�</Property>
+                <Property name="value">Y</Property>
+              </Entity>
+            </Collection>
+          </Property>
+          <Property name="keyProperty">value</Property>
+          <Property name="valueProperty">name</Property>
+        </Property>
+      </PropertyDef>
+      <PropertyDef name="settleTime">
+        <Property name="dataType">DateTime</Property>
+        <Property name="label">缁撶畻鏃堕棿</Property>
+        <Property name="readOnly">true</Property>
+      </PropertyDef>
+      <PropertyDef name="createTime">
+        <Property name="dataType">DateTime</Property>
+        <Property name="label">鍒涘缓鏃堕棿</Property>
+        <Property name="readOnly">true</Property>
+      </PropertyDef>
+      <PropertyDef name="createBy">
+        <Property></Property>
+        <Property name="label">鍒涘缓浜�</Property>
+        <Property name="readOnly">true</Property>
+      </PropertyDef>
+      <PropertyDef name="updateTime">
+        <Property name="dataType">DateTime</Property>
+        <Property name="label">鏇存柊鏃堕棿</Property>
+        <Property name="readOnly">true</Property>
+      </PropertyDef>
+      <PropertyDef name="updateBy">
+        <Property></Property>
+        <Property name="label">鏇存柊浜�</Property>
+        <Property name="readOnly">true</Property>
+      </PropertyDef>
+      <Reference name="files">
+        <Property name="dataProvider">filePR#listFile</Property>
+        <Property name="dataType">[dtFileData]</Property>
+        <Property name="parameter">$${this.id}</Property>
+      </Reference>
+    </DataType>
+  </Model>
+  <View layout="padding:10">
+    <ClientEvent name="onReady">var TYPE = &quot;${request.getParameter('type')}&quot;;&#xD;
+var PROGRESS = &quot;WEIGHT_TAG&quot;;&#xD;
+      &#xD;
+      /**&#xD;
+      * 鍒锋柊椤甸潰&#xD;
+      */&#xD;
+      flush = function(){&#xD;
+      view.get(&quot;#btnSave&quot;).set(&quot;disabled&quot;,false);&#xD;
+      view.get(&quot;#btnPrintWeigh&quot;).set(&quot;disabled&quot;,true);&#xD;
+      view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,TYPE).flushAsync();&#xD;
+      };&#xD;
+      flush();&#xD;
+      &#xD;
+      /**&#xD;
+      * 鏁版嵁淇濆瓨鎻愪氦&#xD;
+      */&#xD;
+      save = function(){&#xD;
+      var data = view.get(&quot;#dsMain.data&quot;);&#xD;
+      if(data.validate() != 'ok'){&#xD;
+      $alert(&quot;鏁版嵁楠岃瘉澶辫触锛岃鏌ョ湅銆愬熀纭�淇℃伅銆戙�愭墻鏍峰寲楠屼俊鎭�戜腑绾㈣壊鎻愰啋锛�&quot;);&#xD;
+      return;&#xD;
+      }&#xD;
+      var netWeight = data.get(&quot;netWeight&quot;);&#xD;
+      if(netWeight &lt;= 0){&#xD;
+      $alert(&quot;鏁版嵁楠岃瘉澶辫触锛屻�愬熀纭�淇℃伅銆�-缁撶畻閲嶉噺蹇呴』澶т簬0锛�&quot;);&#xD;
+      return;&#xD;
+    }&#xD;
+    view.get(&quot;#uaSave&quot;).execute(function(result){&#xD;
+      if(result){&#xD;
+      $alert(&quot;淇濆瓨澶辫触锛�&quot;+result);&#xD;
+      }else{&#xD;
+      view.get(&quot;#btnSave&quot;).set(&quot;disabled&quot;,true);&#xD;
+      view.get(&quot;#btnPrintWeigh&quot;).set(&quot;disabled&quot;,false);&#xD;
+      $alert(&quot;淇濆瓨鎴愬姛锛屽彲浠ヨ繘琛屾墦鍗板拰閲嶆柊鎻愭柊琛ㄥ崟锛�&quot;);&#xD;
+      flush();&#xD;
+      &#xD;
+      }&#xD;
+      });&#xD;
+      }&#xD;
+      &#xD;
+      /**&#xD;
+      * 鑷姩璁$畻&#xD;
+      * @param name&#xD;
+      */&#xD;
+      deAutoByWeight = function () {&#xD;
+      &#xD;
+      var curData = view.get(&quot;#dsMain.data:#&quot;);&#xD;
+      var fullWeight = curData.get(&quot;fullWeight&quot;);&#xD;
+      var emptyWeight = curData.get(&quot;emptyWeight&quot;);&#xD;
+      //鎵i噸淇℃伅&#xD;
+      var deOther = curData.get(&quot;deOther&quot;);&#xD;
+      &#xD;
+      if (fullWeight == 0 || emptyWeight == 0) {&#xD;
+      return;&#xD;
+      }&#xD;
+      // 鍑�閲�&#xD;
+      var netWeight = Number(fullWeight) - Number(emptyWeight);&#xD;
+      &#xD;
+      if (netWeight &lt;= 0) {&#xD;
+      $notify(&quot;鍑�閲嶅皬浜�0锛屽綋鍓嶇О閲嶅瓨鍦ㄩ�昏緫闂&quot;);&#xD;
+      return;&#xD;
+      }&#xD;
+      &#xD;
+      /** 鍏ュ簱閲嶉噺 = 鍑�閲� - 鎬绘墸閲�  */&#xD;
+      recordWeight = Number(netWeight) - Number(deOther);&#xD;
+      &#xD;
+      /** 缁撶畻閲嶉噺 = 鍑�閲� - 鎬绘墸閲� + 澧為噸 */&#xD;
+      settleWeight = Number(recordWeight);&#xD;
+      &#xD;
+      curData.set(&quot;netWeight&quot;, netWeight);&#xD;
+      curData.set(&quot;settleWeight&quot;, settleWeight);&#xD;
+      curData.set(&quot;recordWeight&quot;, recordWeight);&#xD;
+      };&#xD;
+      //鍒犻櫎闄勪欢&#xD;
+      delFile = function(){&#xD;
+      var entity = view.get(&quot;#dgFiles&quot;).getCurrentItem();&#xD;
+      view.get(&quot;#ajaxDelFile&quot;).set(&quot;parameter&quot;,{&#xD;
+      fileName:entity.get(&quot;fileName&quot;),&#xD;
+      createTime:entity.get(&quot;createTime&quot;)&#xD;
+      }).execute(function(result){&#xD;
+      if(result){&#xD;
+      $alert(result);&#xD;
+      }else{&#xD;
+      entity.remove();&#xD;
+      $alert(&quot;鍒犻櫎鎴愬姛锛�&quot;);&#xD;
+      }&#xD;
+      });&#xD;
+      }</ClientEvent>
+    <Property name="packages">font-awesome,css-common</Property>
+    <Property name="javaScriptFile">./static/js/plugins/lodop/LodopFuncs.js</Property>
+    <DataSet id="dsMain">
+      <Property name="dataType">dtMain</Property>
+      <Property name="dataProvider">inoutDataPR#initDataByHand</Property>
+      <Property name="loadMode">manual</Property>
+    </DataSet>
+    <Container>
+      <Property name="className">c-data</Property>
+      <ToolBar>
+        <ToolBarButton id="btnSave">
+          <ClientEvent name="onClick">save();</ClientEvent>
+          <Property name="caption">鎻愪氦淇濆瓨</Property>
+          <Property name="exClassName">btn1</Property>
+          <Property name="width">100</Property>
+          <Property name="iconClass">fa fa-plus</Property>
+        </ToolBarButton>
+        <ToolBarButton id="btnPrintWeigh">
+          <ClientEvent name="onClick">printWeight();</ClientEvent>
+          <Property name="caption">鎵撳嵃杩囩鍗�</Property>
+          <Property name="exClassName">btn4</Property>
+          <Property name="iconClass">fa fa-print</Property>
+          <Property name="disabled">true</Property>
+          <Property name="width">120</Property>
+        </ToolBarButton>
+        <ToolBarButton>
+          <ClientEvent name="onClick">flush();</ClientEvent>
+          <Property name="caption">鍒锋柊椤甸潰</Property>
+          <Property name="exClassName">btn2</Property>
+          <Property name="iconClass">fa fa-refresh</Property>
+        </ToolBarButton>
+      </ToolBar>
+    </Container>
+    <Container>
+      <Property name="className">c-data</Property>
+      <TabControl id="tabControlMain" layoutConstraint="left">
+        <Property name="width">1300</Property>
+        <ControlTab>
+          <Property name="caption">鍩虹淇℃伅</Property>
+          <Property name="iconClass">fa fa-download</Property>
+          <Property name="width">150</Property>
+          <Property name="name">tabCommon</Property>
+          <Container>
+            <FieldSet layoutConstraint="padding:2" layout="padding:5">
+              <Property name="caption">鍩烘湰淇℃伅</Property>
+              <Buttons/>
+              <Children>
+                <AutoForm>
+                  <Property name="dataSet">dsMain</Property>
+                  <Property name="cols">*,*,*</Property>
+                  <Property name="labelAlign">right</Property>
+                  <Property name="labelSeparator">锛�</Property>
+                  <Property name="labelWidth">100</Property>
+                  <AutoFormElement>
+                    <Property name="name">id</Property>
+                    <Property name="property">id</Property>
+                    <Editor>
+                      <TextEditor>
+                        <Property name="blankText">-- 绯荤粺鑷姩鐢熸垚 --</Property>
+                      </TextEditor>
+                    </Editor>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">plateNum</Property>
+                    <Property name="property">plateNum</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">depotId</Property>
+                    <Property name="property">depotId</Property>
+                    <Property name="label">瑁呭嵏浠撳簱</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">userName</Property>
+                    <Property name="property">userName</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">userId</Property>
+                    <Property name="property">userId</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">foodVariety</Property>
+                    <Property name="property">foodVariety</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">perWet</Property>
+                    <Property name="property">perWet</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">userContact</Property>
+                    <Property name="property">userContact</Property>
+                    <Property name="label">鑱旂郴鐢佃瘽</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">foodLevel</Property>
+                    <Property name="property">foodLevel</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">perImpurity</Property>
+                    <Property name="property">perImpurity</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">foodYear</Property>
+                    <Property name="property">foodYear</Property>
+                    <Property name="trigger">yearDropDown</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">foodLocation</Property>
+                    <Property name="property">foodLocation</Property>
+                    <Property name="trigger">ddDicArea</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="label">瀹㈡埛鍚嶇О</Property>
+                    <Property name="property">customerName</Property>
+                    <Property name="editable">false</Property>
+                    <Property name="trigger">ddNotice</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <Property name="name">noticeId</Property>
+                    <Property name="property">noticeId</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                </AutoForm>
+              </Children>
+            </FieldSet>
+            <FieldSet layoutConstraint="padding:2" layout="padding:5">
+              <Property name="caption">绉伴噸淇℃伅锛堝崟浣嶏細KG锛�</Property>
+              <Buttons/>
+              <Children>
+                <AutoForm>
+                  <Property name="dataSet">dsMain</Property>
+                  <Property name="cols">*,50,*,50,*,50</Property>
+                  <Property name="labelAlign">right</Property>
+                  <Property name="labelWidth">100</Property>
+                  <Property name="labelSeparator">锛�</Property>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <ClientEvent name="onBlur">deAutoByWeight();</ClientEvent>
+                    <Property name="name">fullWeight</Property>
+                    <Property name="property">fullWeight</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <Property name="name">fullWeightTime</Property>
+                    <Property name="property">fullWeightTime</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <Property name="name">fullWeightUser</Property>
+                    <Property name="property">fullWeightUser</Property>
+                    <Property name="label">婊¤溅绉伴噸浜�</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <ClientEvent name="onBlur">deAutoByWeight();</ClientEvent>
+                    <Property name="name">emptyWeight</Property>
+                    <Property name="property">emptyWeight</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <Property name="name">emptyWeightTime</Property>
+                    <Property name="property">emptyWeightTime</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <Property name="name">emptyWeightUser</Property>
+                    <Property name="property">emptyWeightUser</Property>
+                    <Property name="label">绌鸿溅绉伴噸浜�</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <Property name="name">netWeight</Property>
+                    <Property name="property">netWeight</Property>
+                    <Property name="readOnly">true</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <ClientEvent name="onBlur">deAutoByWeight();</ClientEvent>
+                    <Property name="name">deOther</Property>
+                    <Property name="property">deOther</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <Property name="name">registerTime</Property>
+                    <Property name="property">registerTime</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <Property name="name">settleWeight</Property>
+                    <Property name="property">settleWeight</Property>
+                    <Property name="readOnly">true</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <Property name="name">recordWeight</Property>
+                    <Property name="property">recordWeight</Property>
+                    <Property name="readOnly">true</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:2">
+                    <Property name="name">completeTime</Property>
+                    <Property name="property">completeTime</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                </AutoForm>
+              </Children>
+            </FieldSet>
+            <FieldSet layoutConstraint="padding:2" layout="padding:5">
+              <Property name="caption">鍏朵粬淇℃伅</Property>
+              <Buttons/>
+              <Children>
+                <AutoForm>
+                  <Property name="dataSet">dsMain</Property>
+                  <Property name="cols">*,*,*</Property>
+                  <Property name="labelAlign">right</Property>
+                  <Property name="labelSeparator">锛�</Property>
+                  <Property name="labelWidth">100</Property>
+                  <AutoFormElement>
+                    <Property name="name">price</Property>
+                    <Property name="property">price</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">settleMoney</Property>
+                    <Property name="property">settleMoney</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement>
+                    <Property name="name">settleTime</Property>
+                    <Property name="property">settleTime</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                  <AutoFormElement layoutConstraint="colSpan:3">
+                    <Property name="name">remarks</Property>
+                    <Property name="property">remarks</Property>
+                    <Editor/>
+                  </AutoFormElement>
+                </AutoForm>
+              </Children>
+            </FieldSet>
+          </Container>
+        </ControlTab>
+      </TabControl>
+      <TabControl id="tabControlImage" layoutConstraint="left">
+        <Property name="width">370</Property>
+        <ControlTab id="tabImage">
+          <Property name="name">tabImage</Property>
+          <Property name="caption">鍑哄叆搴撹繃绋嬭褰�</Property>
+          <FieldSet layoutConstraint="padding:10" layout="padding:5">
+            <Buttons>
+              <Button layoutConstraint="left">
+                <ClientEvent name="onClick">view.PROGRESS = &quot;WEIGHT_EMPTY&quot;;&#xD;
+                </ClientEvent>
+                <Property name="exClassName">btn1</Property>
+                <Property name="iconClass">fa fa-cloud-upload</Property>
+                <Property name="action">uploadImg</Property>
+                <Property name="caption">绌鸿溅绉扮収鐗�</Property>
+                <Property name="width">110</Property>
+              </Button>
+              <Button layoutConstraint="left">
+                <ClientEvent name="onClick">view.PROGRESS = &quot;WEIGHT_FULL&quot;;&#xD;
+                </ClientEvent>
+                <Property name="exClassName">btn2</Property>
+                <Property name="iconClass">fa fa-cloud-upload</Property>
+                <Property name="action">uploadImg1</Property>
+                <Property name="caption">婊¤溅绉扮収鐗�</Property>
+                <Property name="width">110</Property>
+              </Button>
+              <Button layoutConstraint="left">
+                <ClientEvent name="onClick">view.PROGRESS = &quot;HANDLE&quot;;</ClientEvent>
+                <Property name="caption">鍊间粨鐓х墖</Property>
+                <Property name="exClassName">btn4</Property>
+                <Property name="iconClass">fa fa-cloud-upload</Property>
+                <Property name="action">uploadImg2</Property>
+                <Property name="width">110</Property>
+              </Button>
+            </Buttons>
+            <Children>
+              <DataGrid id="dgFiles">
+                <Property name="dataSet">dsMain</Property>
+                <Property name="readOnly">true</Property>
+                <Property name="selectionMode">singleRow</Property>
+                <Property name="dataPath">#.files</Property>
+                <RowNumColumn/>
+                <DataColumn name="bizTag">
+                  <Property name="property">bizTag</Property>
+                  <Property name="visible">false</Property>
+                </DataColumn>
+                <DataColumn name="fileName">
+                  <Property name="property">fileName</Property>
+                </DataColumn>
+                <DataColumn>
+                  <ClientEvent name="onRenderCell">arg.dom.innerHTML = &quot;&lt;a href='javascript:;' onClick='delFile()'>鍒犻櫎&lt;/a>&quot;;&#xD;
+                  </ClientEvent>
+                  <Property name="property">fileId</Property>
+                  <Property name="name">fileId</Property>
+                  <Property name="align">center</Property>
+                  <Property name="caption">鎿嶄綔</Property>
+                  <Property name="readOnly">true</Property>
+                  <Property name="width">80</Property>
+                </DataColumn>
+              </DataGrid>
+            </Children>
+          </FieldSet>
+        </ControlTab>
+      </TabControl>
+    </Container>
+    <YearDropDown id="yearDropDown"/>
+    <UpdateAction id="uaSave">
+      <Property name="dataResolver">inoutDataPR#addData</Property>
+      <Property name="confirmMessage">纭畾瑕佹彁浜や箞锛�</Property>
+      <UpdateItem>
+        <Property name="dataSet">dsMain</Property>
+        <Property name="dataPath">[#current]</Property>
+        <Property name="validateData">false</Property>
+      </UpdateItem>
+    </UpdateAction>
+    <AjaxAction id="ajaxPrint">
+      <Property name="service">inoutDataPR#printWeightBillHand</Property>
+      <Property name="executingMessage">姝e湪鎵ц鎵撳嵃鈥︹��</Property>
+      <Property name="async">false</Property>
+    </AjaxAction>
+    <CustomDropDown id="ddNotice">
+      <Property name="minHeight">400</Property>
+      <Property name="assignmentMap">noticeId=id,customerName=customerName</Property>
+      <Property name="minWidth">1000</Property>
+      <Property name="autoOpen">true</Property>
+      <Container layout="regionPadding:5">
+        <DataSet id="dsNotice">
+          <Property name="dataProvider">inoutNoticePR#queryNoticeByKey</Property>
+          <Property name="parameter">
+            <Entity>
+              <Property name="type">${request.getParameter('type')}</Property>
+            </Entity>
+          </Property>
+          <Property name="dataType">[dtNoticeDto]</Property>
+        </DataSet>
+        <Container layout="hbox regionPadding:5">
+          <TextEditor id="key3">
+            <Property name="blankText"> -- 瀹㈡埛鍚嶇О鎴栫紪鐮� --</Property>
+            <Property name="width">200</Property>
+          </TextEditor>
+          <Button>
+            <ClientEvent name="onClick">var key = view.get(&quot;#key3.value&quot;);&#xD;
+              var type = &quot;${request.getParameter('type')}&quot;;&#xD;
+              view.get(&quot;#dsNotice&quot;).set(&quot;parameter&quot;,{key: key,type: type}).flushAsync();</ClientEvent>
+            <Property name="caption">鏌ヨ</Property>
+            <Property name="exClassName">btn1</Property>
+            <Property name="iconClass">fa fa-search</Property>
+          </Button>
+          <Button>
+            <ClientEvent name="onClick">var data = view.get(&quot;#dsNotice.data:#&quot;);&#xD;
+              if(data){&#xD;
+              view.get(&quot;#ddNotice&quot;).close(data.toJSON());&#xD;
+              }</ClientEvent>
+            <Property name="iconClass">fa fa-check</Property>
+            <Property name="exClassName">btn2</Property>
+            <Property name="caption">纭畾</Property>
+          </Button>
+        </Container>
+        <DataGrid>
+          <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsNotice.data:#&quot;);&#xD;
+            if(data){&#xD;
+            view.get(&quot;#ddNotice&quot;).close(data.toJSON());&#xD;
+            }</ClientEvent>
+          <Property name="dataSet">dsNotice</Property>
+          <Property name="readOnly">true</Property>
+          <DataColumn name="name">
+            <Property name="property">name</Property>
+            <Property name="align">center</Property>
+            <Property name="width">100</Property>
+          </DataColumn>
+          <DataColumn>
+            <Property name="property">customerName</Property>
+            <Property name="align">center</Property>
+            <Property name="name">customerName</Property>
+            <Property name="width">240</Property>
+          </DataColumn>
+          <DataColumn name="foodVariety">
+            <Property name="property">foodVariety</Property>
+            <Property name="align">center</Property>
+          </DataColumn>
+          <DataColumn name="year">
+            <Property name="property">year</Property>
+            <Property name="align">center</Property>
+          </DataColumn>
+          <DataColumn name="contract">
+            <Property name="property">contract</Property>
+            <Property name="align">center</Property>
+            <Property name="width">300</Property>
+          </DataColumn>
+        </DataGrid>
+      </Container>
+    </CustomDropDown>
+    <CustomDropDown id="ddDicArea">
+      <Property name="minHeight">500</Property>
+      <Property name="minWidth">500</Property>
+      <Property name="assignmentMap">foodLocation=name,foodLocationId=code</Property>
+      <Container layout="regionPadding:5">
+        <DataSet id="dsDicArea">
+          <Property name="dataProvider">dicAreaPR#pageList</Property>
+          <Property name="parameter"></Property>
+          <Property name="dataType">[dtArea]</Property>
+          <Property name="pageSize">1000</Property>
+        </DataSet>
+        <Container layout="hbox regionPadding:5">
+          <TextEditor id="key2">
+            <Property name="blankText"> -鍚嶇О鎴栫畝鎷硷紝鍖椾含甯�  bjs -</Property>
+            <Property name="width">200</Property>
+          </TextEditor>
+          <Button>
+            <ClientEvent name="onClick">var key = view.get(&quot;#key2.value&quot;);&#xD;
+              view.get(&quot;#dsDicArea&quot;).set(&quot;parameter&quot;,{key:key}).flushAsync();</ClientEvent>
+            <Property name="caption">鏌ヨ</Property>
+            <Property name="iconClass">fa fa-search</Property>
+            <Property name="exClassName">btn1</Property>
+          </Button>
+          <Button>
+            <ClientEvent name="onClick">var data = view.get(&quot;#dsDicArea.data:#&quot;);&#xD;
+              if(data){&#xD;
+              view.get(&quot;#ddDicArea&quot;).close(data.toJSON());&#xD;
+              }</ClientEvent>
+            <Property name="iconClass">fa fa-check</Property>
+            <Property name="exClassName">btn2</Property>
+            <Property name="caption">纭畾</Property>
+          </Button>
+        </Container>
+        <DataGrid>
+          <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsDicArea.data:#&quot;);&#xD;
+            if(data){&#xD;
+            view.get(&quot;#ddDicArea&quot;).close(data.toJSON());&#xD;
+            }</ClientEvent>
+          <Property name="dataSet">dsDicArea</Property>
+          <Property name="readOnly">true</Property>
+          <DataColumn name="name">
+            <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
+              arg.processDefault = true;</ClientEvent>
+            <Property name="property">name</Property>
+            <Property name="readOnly">true</Property>
+            <Property name="align">center</Property>
+          </DataColumn>
+          <DataColumn name="code">
+            <Property name="property">code</Property>
+            <Property name="readOnly">true</Property>
+            <Property name="align">center</Property>
+          </DataColumn>
+          <DataColumn name="simple">
+            <Property name="property">simple</Property>
+            <Property name="readOnly">true</Property>
+            <Property name="align">center</Property>
+          </DataColumn>
+        </DataGrid>
+        <DataPilot layoutConstraint="bottom">
+          <Property name="dataSet">dsDicArea</Property>
+        </DataPilot>
+      </Container>
+    </CustomDropDown>
+    <UploadAction id="uploadImg">
+      <ClientEvent name="beforeFileUploaded">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;;
+        var bizTag = &quot;EMPTY&quot;;&#xD;
+        self.set(&quot;parameter&quot;,{&#xD;
+        bizTag: bizTag&#xD;
+        })</ClientEvent>
+      <ClientEvent name="onFileUploaded">//闄勪欢涓婁紶瀹屾垚鍚庢坊鍔犱笟鍔℃暟鎹�&#xD;
+        var mainData = view.get(&quot;#dsMain.data&quot;);&#xD;
+        var fileName = arg.returnValue;&#xD;
+        var files = mainData.get(&quot;files&quot;);&#xD;
+        files.insert({bizTag:view.PROGRESS,fileName:fileName,createTime:new Date()});</ClientEvent>
+      <ClientEvent name="beforeFileUploaded">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
+        if(data){&#xD;
+        var plateNum = data.get(&quot;plateNum&quot;);&#xD;
+        var bizTag = &quot;EMPTY&quot;;&#xD;
+        self.set(&quot;parameter&quot;,{&#xD;
+        bizTag:bizTag&#xD;
+        })&#xD;
+        }</ClientEvent>
+      <Property name="maxFileSize">20MB</Property>
+      <Property name="successMessage">涓婁紶鎴愬姛</Property>
+      <Property name="parameter"></Property>
+      <Property name="fileResolver">fileUploadManage#inoutFile</Property>
+      <Filters/>
+    </UploadAction>
+    <UploadAction id="uploadImg1">
+      <ClientEvent name="beforeFileUploaded">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
+        &#xD;
+        var bizTag = &quot;FULL&quot;;&#xD;
+        self.set(&quot;parameter&quot;,{&#xD;
+        bizTag: bizTag&#xD;
+        })</ClientEvent>
+      <ClientEvent name="onFileUploaded">//闄勪欢涓婁紶瀹屾垚鍚庢坊鍔犱笟鍔℃暟鎹�&#xD;
+        var mainData = view.get(&quot;#dsMain.data&quot;);&#xD;
+        var fileName = arg.returnValue;&#xD;
+        var files = mainData.get(&quot;files&quot;);&#xD;
+        files.insert({bizTag:view.PROGRESS,fileName:fileName});</ClientEvent>
+      <ClientEvent name="beforeFileUploaded">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
+        if(data){&#xD;
+        var bizTag = &quot;FULL&quot;;&#xD;
+        self.set(&quot;parameter&quot;,{&#xD;
+        bizTag:bizTag&#xD;
+        })&#xD;
+        }</ClientEvent>
+      <Property name="maxFileSize">20MB</Property>
+      <Property name="successMessage">涓婁紶鎴愬姛</Property>
+      <Property name="parameter"></Property>
+      <Property name="fileResolver">fileUploadManage#inoutFile</Property>
+      <Filters/>
+    </UploadAction>
+    <UploadAction id="uploadImg2">
+      <ClientEvent name="beforeFileUploaded">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
+        &#xD;
+        var plateNum = data.get(&quot;plateNum&quot;);&#xD;
+        var bizTag = &quot;HANDLE&quot;;&#xD;
+        self.set(&quot;parameter&quot;,{&#xD;
+        bizTag: bizTag&#xD;
+        })</ClientEvent>
+      <ClientEvent name="onFileUploaded">//闄勪欢涓婁紶瀹屾垚鍚庢坊鍔犱笟鍔℃暟鎹�&#xD;
+        var mainData = view.get(&quot;#dsMain.data&quot;);&#xD;
+        var fileName = arg.returnValue;&#xD;
+        var files = mainData.get(&quot;files&quot;);&#xD;
+        files.insert({bizTag:view.PROGRESS,fileName:fileName});</ClientEvent>
+      <ClientEvent name="beforeFileUploaded">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
+        if(data){&#xD;
+        var plateNum = data.get(&quot;plateNum&quot;);&#xD;
+        var bizTag = &quot;HANDLE&quot;;&#xD;
+        self.set(&quot;parameter&quot;,{&#xD;
+        bizTag:bizTag&#xD;
+        })&#xD;
+        }</ClientEvent>
+      <Property name="maxFileSize">20MB</Property>
+      <Property name="successMessage">涓婁紶鎴愬姛</Property>
+      <Property name="parameter"></Property>
+      <Property name="fileResolver">fileUploadManage#inoutFile</Property>
+      <Filters/>
+    </UploadAction>
+    <AjaxAction id="ajaxDelFile">
+      <Property name="service">fileUploadManage#delInoutFile</Property>
+      <Property name="async">true</Property>
+      <Property name="confirmMessage">纭畾瑕佸垹闄や箞锛�</Property>
+    </AjaxAction>
+  </View>
+</ViewConfig>

--
Gitblit v1.9.3