From e7cfae909181ab9e7ffacd0370b0ad9d4ad50123 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期五, 30 六月 2023 20:15:09 +0800
Subject: [PATCH] 质检管理

---
 igds-inout/src/main/java/com/ld/igds/inout/view/InoutList202306.view.xml | 3002 +++++++++++++++++++++++++++++-----------------------------
 1 files changed, 1,519 insertions(+), 1,483 deletions(-)

diff --git a/igds-inout/src/main/java/com/ld/igds/inout/view/InoutList202306.view.xml b/igds-inout/src/main/java/com/ld/igds/inout/view/InoutList202306.view.xml
index 9f75b8f..f301284 100644
--- a/igds-inout/src/main/java/com/ld/igds/inout/view/InoutList202306.view.xml
+++ b/igds-inout/src/main/java/com/ld/igds/inout/view/InoutList202306.view.xml
@@ -1,1504 +1,1540 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ViewConfig>
-  <Arguments/>
-  <Context/>
-  <Model>
-    <DataType name="dtMain" parent="dtInoutRecord">
-      <ClientEvent name="onDataChange">if(arg.property ==&quot;depotId&quot;){&#xD;
-	autoByDepot(arg.newValue);&#xD;
-}&#xD;
-if(arg.property ==&quot;foodVariety&quot;){&#xD;
-    checkByFood(arg.newValue);&#xD;
-}</ClientEvent>
-      <PropertyDef name="price">
-        <Property name="dataType">Double</Property>
-        <Property name="label">绮瀹氫环</Property>
-        <Property name="required">false</Property>
-      </PropertyDef>
-      <Reference name="checkItems">
-        <Property name="parameter">
-          <Entity>
-            <Property name="checkId">$${this.checkId}</Property>
-            <Property name="foodVariety">$${this.foodVariety}</Property>
-            <Property name="deptId">$${this.deptId}</Property>
-          </Entity>
-        </Property>
-        <Property name="dataProvider">checkStandardPR#listCheckItemsByCheckId</Property>
-        <Property name="dataType">[dtCheckItems]</Property>
-      </Reference>
-    </DataType>
-    <DataType name="dtQuery">
-      <Property name="creationType">com.ld.igds.inout.dto.InoutParam</Property>
-      <PropertyDef name="type">
-        <Property name="label">鍑哄叆搴撶被鍨�</Property>
-      </PropertyDef>
-      <PropertyDef name="deptId">
-        <Property></Property>
-        <Property name="label">鎵�灞炲垎搴�</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>
-      </PropertyDef>
-      <PropertyDef name="plateNum">
-        <Property name="label">杞﹁埞鍙�</Property>
-      </PropertyDef>
-      <PropertyDef name="foodVariety">
-        <Property></Property>
-        <Property name="label">绮鍝佺</Property>
-        <Property name="mapping">
-          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;FOOD_VARIETY_&quot;)}</Property>
-          <Property name="keyProperty">code</Property>
-          <Property name="valueProperty">name</Property>
-        </Property>
-      </PropertyDef>
-      <PropertyDef name="progress">
-        <Property></Property>
-        <Property name="label">娴佺▼杩涘害</Property>
-        <Property name="mapping">
-          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;PROCESS_STATUS_&quot;)}</Property>
-          <Property name="keyProperty">code</Property>
-          <Property name="valueProperty">name</Property>
-        </Property>
-      </PropertyDef>
-      <PropertyDef name="recordStatus">
-        <Property></Property>
-        <Property name="label">鏁版嵁鐘舵��</Property>
-        <Property name="mapping">
-          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;RECORD_STATUS&quot;)}</Property>
-          <Property name="keyProperty">code</Property>
-          <Property name="valueProperty">name</Property>
-        </Property>
-      </PropertyDef>
-      <PropertyDef name="checkStatus">
-        <Property></Property>
-        <Property name="label">鏄惁鍚堟牸</Property>
-        <Property name="mapping">
-          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;CHECK_STATUS&quot;)}</Property>
-          <Property name="keyProperty">code</Property>
-          <Property name="valueProperty">name</Property>
-        </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>
-      <PropertyDef name="userId">
-        <Property name="label">韬唤璇�</Property>
-      </PropertyDef>
-      <PropertyDef name="orderTag">
-        <Property name="defaultValue">DESC</Property>
-        <Property name="label">鎺掑簭瑙勫垯</Property>
-        <Property name="mapping">
-          <Property name="mapValues">
-            <Collection>
-              <Entity>
-                <Property name="code">DESC</Property>
-                <Property name="name">鏃堕棿闄嶅簭</Property>
-              </Entity>
-              <Entity>
-                <Property name="code">ASC</Property>
-                <Property name="name">鏃堕棿鍗囧簭</Property>
-              </Entity>
-            </Collection>
-          </Property>
-          <Property name="keyProperty">code</Property>
-          <Property name="valueProperty">name</Property>
-        </Property>
-      </PropertyDef>
-    </DataType>
-    <DataType name="dtCheckItems">
-      <Property name="creationType">com.ld.igds.check.dto.CheckItemData</Property>
-      <PropertyDef name="updateTime">
-        <Property name="dataType">Date</Property>
-      </PropertyDef>
-      <PropertyDef name="checkId">
-        <Property></Property>
-        <Property name="label">妫�娴嬬紪鐮�</Property>
-      </PropertyDef>
-      <PropertyDef name="companyId">
-        <Property></Property>
-        <Property name="label">缁勭粐缂栫爜</Property>
-      </PropertyDef>
-      <PropertyDef name="standardId">
-        <Property></Property>
-        <Property name="label">妫�娴嬮」缂栫爜</Property>
-      </PropertyDef>
-      <PropertyDef name="standardName">
-        <Property></Property>
-        <Property name="label">鍖栭獙椤�</Property>
-      </PropertyDef>
-      <PropertyDef name="unit">
-        <Property></Property>
-        <Property name="label">鍗曚綅</Property>
-      </PropertyDef>
-      <PropertyDef name="upperLimit">
-        <Property name="dataType">Double</Property>
-        <Property name="label">鏍囧噯涓婇檺</Property>
-      </PropertyDef>
-      <PropertyDef name="standardValue">
-        <Property></Property>
-        <Property name="label">鍚堟牸璇存槑</Property>
-      </PropertyDef>
-      <PropertyDef name="value">
-        <Property></Property>
-        <Property name="label">妫�娴嬪��</Property>
-      </PropertyDef>
-      <PropertyDef name="remarks">
-        <Property></Property>
-        <Property name="label">鍖栭獙缁撴灉</Property>
-      </PropertyDef>
-      <PropertyDef name="ruleNum">
-        <Property name="dataType">Double</Property>
-        <Property name="label">鎵i噸绯绘暟</Property>
-      </PropertyDef>
-      <PropertyDef name="ruleAdd">
-        <Property name="dataType">Double</Property>
-        <Property name="label">澧為噸%</Property>
-      </PropertyDef>
-      <PropertyDef name="ruleAddEnd">
-        <Property name="dataType">Double</Property>
-        <Property name="label">澧為噸涓婇檺%</Property>
-      </PropertyDef>
-      <PropertyDef name="ruleReduce">
-        <Property name="dataType">Double</Property>
-        <Property name="label">鎵i噸鍊�%</Property>
-      </PropertyDef>
-      <PropertyDef name="standardPrice">
-        <Property name="dataType">Double</Property>
-        <Property name="label">鏍囧噯鍗曚环锛堝厓/鏂わ級</Property>
-      </PropertyDef>
-      <PropertyDef name="rulePrice">
-        <Property name="dataType">Double</Property>
-        <Property name="label">鎵h垂绯绘暟</Property>
-      </PropertyDef>
-      <PropertyDef name="ruleReducePrice">
-        <Property name="dataType">Double</Property>
-        <Property name="label">鎵h垂</Property>
-      </PropertyDef>
-      <PropertyDef name="operaSymbol">
-        <Property></Property>
-        <Property name="label">杩愮畻绗﹀彿</Property>
-      </PropertyDef>
-    </DataType>
-  </Model>
-  <View layout="padding:5;regionPadding:5">
-    <ClientEvent name="onReady">var TYPE = &quot;${request.getParameter('type')}&quot;;&#xD;
-var EDIT = &quot;${request.getParameter('edit')}&quot;;&#xD;
-&#xD;
-var deptId = window.parent.DEPT_ID;//鐖堕〉闈腑鐨勫垎搴撶紪鐮�&#xD;
-&#xD;
-//濡傛灉edit鏈夊�艰〃绀洪殣钘廇DD鍜岀紪杈戞寜閽�&#xD;
-if(EDIT){&#xD;
-	view.get(&quot;#btnEdit&quot;).set(&quot;visible&quot;,false);&#xD;
-	view.get(&quot;#btnDel&quot;).set(&quot;visible&quot;,false);&#xD;
-	view.get(&quot;#btn2End&quot;).set(&quot;visible&quot;,false);&#xD;
-}&#xD;
-&#xD;
-//绫诲瀷鍒囨崲&#xD;
-if(&quot;OUT&quot; == TYPE){&#xD;
-	view.get(&quot;#dataGridCheckItem&quot;).set(&quot;visible&quot;,false);&#xD;
-	view.get(&quot;#deWet&quot;).set(&quot;label&quot;,&quot;姘村垎澧為噸&quot;);&#xD;
-}else{&#xD;
-	view.get(&quot;#deWet&quot;).set(&quot;label&quot;,&quot;姘村垎鎵i噸&quot;);&#xD;
-	view.get(&quot;#dataGridCheckItem&quot;).set(&quot;visible&quot;,true);&#xD;
-}&#xD;
-&#xD;
-//榛樿鏌ヨ鏌ヨ鎻愭潯浠�&#xD;
-view.get(&quot;#dsQuery&quot;).insert({&#xD;
-	type:TYPE,&#xD;
-	deptId:deptId&#xD;
-});&#xD;
-&#xD;
-//鏌ヨ&#xD;
-query = function(){&#xD;
-	var data = view.get(&quot;#dsQuery.data&quot;);&#xD;
-	view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,data).flushAsync();&#xD;
-};&#xD;
-query();&#xD;
-&#xD;
-&#xD;
-//缂栬緫锛屽彧鏈夋祦绋嬬粨鏉熺殑鎵嶅彲浠ヤ慨鏀�&#xD;
-edit = function(){&#xD;
-	var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-	if(!data) return;&#xD;
-	&#xD;
-	if (&quot;RECORD&quot; == data.get(&quot;progress&quot;)) {&#xD;
-		view.get(&quot;#btnOK&quot;).set(&quot;visible&quot;,true);&#xD;
-	}else{&#xD;
-		view.get(&quot;#btnOK&quot;).set(&quot;visible&quot;,false);&#xD;
-	}&#xD;
-	view.get(&quot;#dialogMain&quot;).show();&#xD;
-};&#xD;
-&#xD;
-//涓讳俊鎭獥鍙e叧闂�&#xD;
-cancelMain = function(){&#xD;
-	view.get(&quot;#dsMain.data:#&quot;).cancel();&#xD;
-	view.get(&quot;#btnComplete&quot;).set(&quot;visible&quot;,false);&#xD;
-	view.get(&quot;#btnOK&quot;).set(&quot;visible&quot;,true);&#xD;
-	view.get(&quot;#dialogMain&quot;).hide();&#xD;
-};&#xD;
-&#xD;
-//寮傚父鎿嶄綔&#xD;
-showAbnormal = function(){&#xD;
-	var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-	if(!data) return;&#xD;
-	view.get(&quot;#dialogAbnormal&quot;).show();&#xD;
-	view.get(&quot;#textAbnormal&quot;).set(&quot;value&quot;,null);&#xD;
-};&#xD;
-&#xD;
-//鍒犻櫎&#xD;
-del = function(){&#xD;
-	var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-	if(!data) return;&#xD;
-	&#xD;
-	var textDel = view.get(&quot;#textAbnormal.text&quot;);&#xD;
-	if(!textDel){&#xD;
-		$notify(&quot;璇峰~鍐欏紓甯稿垹闄ゅ師鍥狅紒&quot;);&#xD;
-		return;&#xD;
-	}&#xD;
-	data.set(&quot;remarks&quot;,textDel);&#xD;
-	view.get(&quot;#ajaxDel&quot;).execute(function(result){&#xD;
-		if(result){&#xD;
-			$alert(result);&#xD;
-			return;&#xD;
-		}else{&#xD;
-			data.remove();&#xD;
-			view.get(&quot;#dialogAbnormal&quot;).close();&#xD;
-		}&#xD;
-	});&#xD;
-};&#xD;
-&#xD;
-//杩借釜&#xD;
-showImg = function(){&#xD;
-    var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-    if (!data) return;&#xD;
-    var user = encodeURIComponent(data.get(&quot;userName&quot;));&#xD;
-    var plateNum = encodeURIComponent(data.get(&quot;plateNum&quot;));&#xD;
-	&#xD;
-    view.get(&quot;#iFrameImg&quot;).set(&quot;path&quot;, &quot;./basic/inout/inout-img?id=&quot; + data.get(&quot;id&quot;)+&quot;&amp;plateNum=&quot;+plateNum+&quot;&amp;user=&quot;+user);&#xD;
-    view.get(&quot;#dialogImg&quot;).show();&#xD;
-};&#xD;
-&#xD;
-todoError = function(){&#xD;
-	var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-	if(!data) return;&#xD;
-	&#xD;
-	var textError = view.get(&quot;#textAbnormal.text&quot;);&#xD;
-	if(!textError){&#xD;
-		$alert(&quot;璇疯鏄庡紓甯哥粓姝㈠師鍥狅紒锛�&quot;);&#xD;
-		return;&#xD;
-	}&#xD;
-	data.set(&quot;remarks&quot;,textError);&#xD;
-	view.get(&quot;#ajaxError&quot;).execute(function(result){&#xD;
-		if(result){&#xD;
-			$alert(result);&#xD;
-			return;&#xD;
-		}else{&#xD;
-			view.get(&quot;#dialogAbnormal&quot;).close();&#xD;
-			query();&#xD;
-			$alert(&quot;鎵ц鎴愬姛锛岃嚜鍔ㄥ埛鏂版暟鎹紒&quot;);&#xD;
-		}&#xD;
-	});&#xD;
-};&#xD;
-&#xD;
-//娴佺▼瀹屾垚-寮�濮�&#xD;
-completeStart = function(){&#xD;
-	var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-	if(!data) return;&#xD;
-	&#xD;
-	if( data.validate() != 'ok'){&#xD;
-		$notify(&quot;璇峰~鍐欏畬鏁翠俊鎭紒锛�&quot;);&#xD;
-	}&#xD;
-	&#xD;
-	view.get(&quot;#btnComplete&quot;).set(&quot;visible&quot;,true);&#xD;
-	view.get(&quot;#btnOK&quot;).set(&quot;visible&quot;,false);&#xD;
-	view.get(&quot;#dialogMain&quot;).show();&#xD;
-};&#xD;
-//娴佺▼瀹屾垚-鎵ц&#xD;
-completeExe = function(){&#xD;
-	var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-	if(!data) return;&#xD;
-	&#xD;
-	if (data.validate() != 'ok') {&#xD;
-		$notify(&quot;璇峰~鍐欏畬鏁翠俊鎭紒锛�&quot;);&#xD;
-		return;&#xD;
-	}&#xD;
-	&#xD;
-	view.get(&quot;#ajaxComplete&quot;).set(&quot;parameter&quot;,data).execute(function(result){&#xD;
-		if(result){&#xD;
-			$alert(result);&#xD;
-			return;&#xD;
-		}else{&#xD;
-			$alert(&quot;鎵ц鎴愬姛锛岃嚜鍔ㄥ埛鏂版暟鎹紒&quot;);&#xD;
-			view.get(&quot;#btnComplete&quot;).set(&quot;visible&quot;,false);&#xD;
-			view.get(&quot;#dialogMain&quot;).hide();&#xD;
-		}&#xD;
-	});&#xD;
-};&#xD;
-&#xD;
-//鏍规嵁浠撳簱鑷姩鍥炲~绮鍝佺锛岀櫥璁帮紝浜у湴鏂�&#xD;
-autoByDepot = function(depotId){&#xD;
-	view.get(&quot;#ajaxGetDepot&quot;).set(&quot;parameter&quot;,depotId).execute(function(result){&#xD;
-		if(result){&#xD;
-			var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-			data.set(&quot;foodLocation&quot;,result.foodLocation);&#xD;
-			data.set(&quot;foodLevel&quot;,result.foodLevel);&#xD;
-			data.set(&quot;foodVariety&quot;,result.foodVariety);&#xD;
-			data.set(&quot;foodYear&quot;,result.foodYear);&#xD;
-		}&#xD;
-	});&#xD;
-};&#xD;
-&#xD;
-//鏍规嵁绮鍝佺鏌ヨ鍖栭獙椤瑰苟鍥炴樉&#xD;
-checkByFood = function(foodVariety){&#xD;
-    if(TYPE == &quot;IN&quot;){&#xD;
-    	view.get(&quot;#ajaxGetCheck&quot;).set(&quot;parameter&quot;,{foodVariety:foodVariety,deptId:deptId}).execute(function(result){&#xD;
+    <Arguments/>
+    <Context/>
+    <Model>
+        <DataType name="dtMain" parent="dtInoutRecord">
+            <ClientEvent name="onDataChange">if(arg.property ==&quot;depotId&quot;){&#xD;
+                autoByDepot(arg.newValue);&#xD;
+                }&#xD;
+                if(arg.property ==&quot;foodVariety&quot;){&#xD;
+                checkByFood(arg.newValue);&#xD;
+                }
+            </ClientEvent>
+            <PropertyDef name="price">
+                <Property name="dataType">Double</Property>
+                <Property name="label">绮瀹氫环</Property>
+                <Property name="required">false</Property>
+            </PropertyDef>
+            <Reference name="checkItems">
+                <Property name="parameter">
+                    <Entity>
+                        <Property name="checkId">$${this.checkId}</Property>
+                        <Property name="foodVariety">$${this.foodVariety}</Property>
+                        <Property name="deptId">$${this.deptId}</Property>
+                    </Entity>
+                </Property>
+                <Property name="dataProvider">checkStandardPR#listCheckItemsByParam</Property>
+                <Property name="dataType">[dtCheckItems]</Property>
+            </Reference>
+        </DataType>
+        <DataType name="dtQuery">
+            <Property name="creationType">com.ld.igds.inout.dto.InoutParam</Property>
+            <PropertyDef name="type">
+                <Property name="label">鍑哄叆搴撶被鍨�</Property>
+            </PropertyDef>
+            <PropertyDef name="deptId">
+                <Property></Property>
+                <Property name="label">鎵�灞炲垎搴�</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>
+            </PropertyDef>
+            <PropertyDef name="plateNum">
+                <Property name="label">杞﹁埞鍙�</Property>
+            </PropertyDef>
+            <PropertyDef name="foodVariety">
+                <Property></Property>
+                <Property name="label">绮鍝佺</Property>
+                <Property name="mapping">
+                    <Property name="mapValues">
+                        ${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;FOOD_VARIETY_&quot;)}
+                    </Property>
+                    <Property name="keyProperty">code</Property>
+                    <Property name="valueProperty">name</Property>
+                </Property>
+            </PropertyDef>
+            <PropertyDef name="progress">
+                <Property></Property>
+                <Property name="label">娴佺▼杩涘害</Property>
+                <Property name="mapping">
+                    <Property name="mapValues">
+                        ${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;PROCESS_STATUS_&quot;)}
+                    </Property>
+                    <Property name="keyProperty">code</Property>
+                    <Property name="valueProperty">name</Property>
+                </Property>
+            </PropertyDef>
+            <PropertyDef name="recordStatus">
+                <Property></Property>
+                <Property name="label">鏁版嵁鐘舵��</Property>
+                <Property name="mapping">
+                    <Property name="mapValues">
+                        ${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;RECORD_STATUS&quot;)}
+                    </Property>
+                    <Property name="keyProperty">code</Property>
+                    <Property name="valueProperty">name</Property>
+                </Property>
+            </PropertyDef>
+            <PropertyDef name="checkStatus">
+                <Property></Property>
+                <Property name="label">鏄惁鍚堟牸</Property>
+                <Property name="mapping">
+                    <Property name="mapValues">
+                        ${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;CHECK_STATUS&quot;)}
+                    </Property>
+                    <Property name="keyProperty">code</Property>
+                    <Property name="valueProperty">name</Property>
+                </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>
+            <PropertyDef name="userId">
+                <Property name="label">韬唤璇�</Property>
+            </PropertyDef>
+            <PropertyDef name="orderTag">
+                <Property name="defaultValue">DESC</Property>
+                <Property name="label">鎺掑簭瑙勫垯</Property>
+                <Property name="mapping">
+                    <Property name="mapValues">
+                        <Collection>
+                            <Entity>
+                                <Property name="code">DESC</Property>
+                                <Property name="name">鏃堕棿闄嶅簭</Property>
+                            </Entity>
+                            <Entity>
+                                <Property name="code">ASC</Property>
+                                <Property name="name">鏃堕棿鍗囧簭</Property>
+                            </Entity>
+                        </Collection>
+                    </Property>
+                    <Property name="keyProperty">code</Property>
+                    <Property name="valueProperty">name</Property>
+                </Property>
+            </PropertyDef>
+        </DataType>
+        <DataType name="dtCheckItems">
+            <Property name="creationType">com.ld.igds.check.dto.CheckItemData</Property>
+            <PropertyDef name="updateTime">
+                <Property name="dataType">Date</Property>
+            </PropertyDef>
+            <PropertyDef name="checkId">
+                <Property></Property>
+                <Property name="label">妫�娴嬬紪鐮�</Property>
+            </PropertyDef>
+            <PropertyDef name="companyId">
+                <Property></Property>
+                <Property name="label">缁勭粐缂栫爜</Property>
+            </PropertyDef>
+            <PropertyDef name="standardId">
+                <Property></Property>
+                <Property name="label">妫�娴嬮」缂栫爜</Property>
+            </PropertyDef>
+            <PropertyDef name="standardName">
+                <Property></Property>
+                <Property name="label">鍖栭獙椤�</Property>
+            </PropertyDef>
+            <PropertyDef name="unit">
+                <Property></Property>
+                <Property name="label">鍗曚綅</Property>
+            </PropertyDef>
+            <PropertyDef name="upperLimit">
+                <Property name="dataType">Double</Property>
+                <Property name="label">鏍囧噯涓婇檺</Property>
+            </PropertyDef>
+            <PropertyDef name="standardValue">
+                <Property></Property>
+                <Property name="label">鍚堟牸璇存槑</Property>
+            </PropertyDef>
+            <PropertyDef name="value">
+                <Property></Property>
+                <Property name="label">妫�娴嬪��</Property>
+            </PropertyDef>
+            <PropertyDef name="remarks">
+                <Property></Property>
+                <Property name="label">鍖栭獙缁撴灉</Property>
+            </PropertyDef>
+            <PropertyDef name="ruleNum">
+                <Property name="dataType">Double</Property>
+                <Property name="label">鎵i噸绯绘暟</Property>
+            </PropertyDef>
+            <PropertyDef name="ruleAdd">
+                <Property name="dataType">Double</Property>
+                <Property name="label">澧為噸%</Property>
+            </PropertyDef>
+            <PropertyDef name="ruleAddEnd">
+                <Property name="dataType">Double</Property>
+                <Property name="label">澧為噸涓婇檺%</Property>
+            </PropertyDef>
+            <PropertyDef name="ruleReduce">
+                <Property name="dataType">Double</Property>
+                <Property name="label">鎵i噸鍊�%</Property>
+            </PropertyDef>
+            <PropertyDef name="standardPrice">
+                <Property name="dataType">Double</Property>
+                <Property name="label">鏍囧噯鍗曚环锛堝厓/鏂わ級</Property>
+            </PropertyDef>
+            <PropertyDef name="rulePrice">
+                <Property name="dataType">Double</Property>
+                <Property name="label">鎵h垂绯绘暟</Property>
+            </PropertyDef>
+            <PropertyDef name="ruleReducePrice">
+                <Property name="dataType">Double</Property>
+                <Property name="label">鎵h垂</Property>
+            </PropertyDef>
+            <PropertyDef name="operaSymbol">
+                <Property></Property>
+                <Property name="label">杩愮畻绗﹀彿</Property>
+            </PropertyDef>
+        </DataType>
+    </Model>
+    <View layout="padding:5;regionPadding:5">
+        <ClientEvent name="onReady">var TYPE = &quot;${request.getParameter('type')}&quot;;&#xD;
+            var EDIT = &quot;${request.getParameter('edit')}&quot;;&#xD;
+            &#xD;
+            var deptId = window.parent.DEPT_ID;//鐖堕〉闈腑鐨勫垎搴撶紪鐮�&#xD;
+            &#xD;
+            //濡傛灉edit鏈夊�艰〃绀洪殣钘廇DD鍜岀紪杈戞寜閽�&#xD;
+            if(EDIT){&#xD;
+            view.get(&quot;#btnEdit&quot;).set(&quot;visible&quot;,false);&#xD;
+            view.get(&quot;#btnDel&quot;).set(&quot;visible&quot;,false);&#xD;
+            view.get(&quot;#btn2End&quot;).set(&quot;visible&quot;,false);&#xD;
+            }&#xD;
+            &#xD;
+            //绫诲瀷鍒囨崲&#xD;
+            if(&quot;OUT&quot; == TYPE){&#xD;
+            view.get(&quot;#dataGridCheckItem&quot;).set(&quot;visible&quot;,false);&#xD;
+            view.get(&quot;#deWet&quot;).set(&quot;label&quot;,&quot;姘村垎澧為噸&quot;);&#xD;
+            }else{&#xD;
+            view.get(&quot;#deWet&quot;).set(&quot;label&quot;,&quot;姘村垎鎵i噸&quot;);&#xD;
+            view.get(&quot;#dataGridCheckItem&quot;).set(&quot;visible&quot;,true);&#xD;
+            }&#xD;
+            &#xD;
+            //榛樿鏌ヨ鏌ヨ鎻愭潯浠�&#xD;
+            view.get(&quot;#dsQuery&quot;).insert({&#xD;
+            type:TYPE,&#xD;
+            deptId:deptId&#xD;
+            });&#xD;
+            &#xD;
+            //鏌ヨ&#xD;
+            query = function(){&#xD;
+            var data = view.get(&quot;#dsQuery.data&quot;);&#xD;
+            view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,data).flushAsync();&#xD;
+            };&#xD;
+            query();&#xD;
+            &#xD;
+            &#xD;
+            //缂栬緫锛屽彧鏈夋祦绋嬬粨鏉熺殑鎵嶅彲浠ヤ慨鏀�&#xD;
+            edit = function(){&#xD;
+            var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
+            if(!data) return;&#xD;
+            &#xD;
+            if (&quot;RECORD&quot; == data.get(&quot;progress&quot;)) {&#xD;
+            view.get(&quot;#btnOK&quot;).set(&quot;visible&quot;,true);&#xD;
+            }else{&#xD;
+            view.get(&quot;#btnOK&quot;).set(&quot;visible&quot;,false);&#xD;
+            }&#xD;
+            view.get(&quot;#dialogMain&quot;).show();&#xD;
+            };&#xD;
+            &#xD;
+            //涓讳俊鎭獥鍙e叧闂�&#xD;
+            cancelMain = function(){&#xD;
+            view.get(&quot;#dsMain.data:#&quot;).cancel();&#xD;
+            view.get(&quot;#btnComplete&quot;).set(&quot;visible&quot;,false);&#xD;
+            view.get(&quot;#btnOK&quot;).set(&quot;visible&quot;,true);&#xD;
+            view.get(&quot;#dialogMain&quot;).hide();&#xD;
+            };&#xD;
+            &#xD;
+            //寮傚父鎿嶄綔&#xD;
+            showAbnormal = function(){&#xD;
+            var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
+            if(!data) return;&#xD;
+            view.get(&quot;#dialogAbnormal&quot;).show();&#xD;
+            view.get(&quot;#textAbnormal&quot;).set(&quot;value&quot;,null);&#xD;
+            };&#xD;
+            &#xD;
+            //鍒犻櫎&#xD;
+            del = function(){&#xD;
+            var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
+            if(!data) return;&#xD;
+            &#xD;
+            var textDel = view.get(&quot;#textAbnormal.text&quot;);&#xD;
+            if(!textDel){&#xD;
+            $notify(&quot;璇峰~鍐欏紓甯稿垹闄ゅ師鍥狅紒&quot;);&#xD;
+            return;&#xD;
+            }&#xD;
+            data.set(&quot;remarks&quot;,textDel);&#xD;
+            view.get(&quot;#ajaxDel&quot;).execute(function(result){&#xD;
+            if(result){&#xD;
+            $alert(result);&#xD;
+            return;&#xD;
+            }else{&#xD;
+            data.remove();&#xD;
+            view.get(&quot;#dialogAbnormal&quot;).close();&#xD;
+            }&#xD;
+            });&#xD;
+            };&#xD;
+            &#xD;
+            //杩借釜&#xD;
+            showImg = function(){&#xD;
+            var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
+            if (!data) return;&#xD;
+            var user = encodeURIComponent(data.get(&quot;userName&quot;));&#xD;
+            var plateNum = encodeURIComponent(data.get(&quot;plateNum&quot;));&#xD;
+            &#xD;
+            view.get(&quot;#iFrameImg&quot;).set(&quot;path&quot;, &quot;./basic/inout/inout-img?id=&quot; + data.get(&quot;id&quot;)+&quot;&amp;plateNum=&quot;+plateNum+&quot;&amp;user=&quot;+user);&#xD;
+            view.get(&quot;#dialogImg&quot;).show();&#xD;
+            };&#xD;
+            &#xD;
+            todoError = function(){&#xD;
+            var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
+            if(!data) return;&#xD;
+            &#xD;
+            var textError = view.get(&quot;#textAbnormal.text&quot;);&#xD;
+            if(!textError){&#xD;
+            $alert(&quot;璇疯鏄庡紓甯哥粓姝㈠師鍥狅紒锛�&quot;);&#xD;
+            return;&#xD;
+            }&#xD;
+            data.set(&quot;remarks&quot;,textError);&#xD;
+            view.get(&quot;#ajaxError&quot;).execute(function(result){&#xD;
+            if(result){&#xD;
+            $alert(result);&#xD;
+            return;&#xD;
+            }else{&#xD;
+            view.get(&quot;#dialogAbnormal&quot;).close();&#xD;
+            query();&#xD;
+            $alert(&quot;鎵ц鎴愬姛锛岃嚜鍔ㄥ埛鏂版暟鎹紒&quot;);&#xD;
+            }&#xD;
+            });&#xD;
+            };&#xD;
+            &#xD;
+            //娴佺▼瀹屾垚-寮�濮�&#xD;
+            completeStart = function(){&#xD;
+            var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
+            if(!data) return;&#xD;
+            &#xD;
+            if( data.validate() != 'ok'){&#xD;
+            $notify(&quot;璇峰~鍐欏畬鏁翠俊鎭紒锛�&quot;);&#xD;
+            }&#xD;
+            &#xD;
+            view.get(&quot;#btnComplete&quot;).set(&quot;visible&quot;,true);&#xD;
+            view.get(&quot;#btnOK&quot;).set(&quot;visible&quot;,false);&#xD;
+            view.get(&quot;#dialogMain&quot;).show();&#xD;
+            };&#xD;
+            //娴佺▼瀹屾垚-鎵ц&#xD;
+            completeExe = function(){&#xD;
+            var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
+            if(!data) return;&#xD;
+            &#xD;
+            if (data.validate() != 'ok') {&#xD;
+            $notify(&quot;璇峰~鍐欏畬鏁翠俊鎭紒锛�&quot;);&#xD;
+            return;&#xD;
+            }&#xD;
+            &#xD;
+            view.get(&quot;#ajaxComplete&quot;).set(&quot;parameter&quot;,data).execute(function(result){&#xD;
+            if(result){&#xD;
+            $alert(result);&#xD;
+            return;&#xD;
+            }else{&#xD;
+            $alert(&quot;鎵ц鎴愬姛锛岃嚜鍔ㄥ埛鏂版暟鎹紒&quot;);&#xD;
+            view.get(&quot;#btnComplete&quot;).set(&quot;visible&quot;,false);&#xD;
+            view.get(&quot;#dialogMain&quot;).hide();&#xD;
+            }&#xD;
+            });&#xD;
+            };&#xD;
+            &#xD;
+            //鏍规嵁浠撳簱鑷姩鍥炲~绮鍝佺锛岀櫥璁帮紝浜у湴鏂�&#xD;
+            autoByDepot = function(depotId){&#xD;
+            view.get(&quot;#ajaxGetDepot&quot;).set(&quot;parameter&quot;,depotId).execute(function(result){&#xD;
+            if(result){&#xD;
+            var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
+            data.set(&quot;foodLocation&quot;,result.foodLocation);&#xD;
+            data.set(&quot;foodLevel&quot;,result.foodLevel);&#xD;
+            data.set(&quot;foodVariety&quot;,result.foodVariety);&#xD;
+            data.set(&quot;foodYear&quot;,result.foodYear);&#xD;
+            }&#xD;
+            });&#xD;
+            };&#xD;
+            &#xD;
+            //鏍规嵁绮鍝佺鏌ヨ鍖栭獙椤瑰苟鍥炴樉&#xD;
+            checkByFood = function(foodVariety){&#xD;
+            if(TYPE == &quot;IN&quot;){&#xD;
+            view.get(&quot;#ajaxGetCheck&quot;).set(&quot;parameter&quot;,{foodVariety:foodVariety,deptId:deptId}).execute(function(result){&#xD;
             if(result){&#xD;
             var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
             data.set(&quot;checkItems&quot;,result);&#xD;
-        	}&#xD;
-        });&#xD;
-    }&#xD;
-};&#xD;
-</ClientEvent>
-    <ClientEvent name="onCreate">&#xD;
-/**&#xD;
- * 鑷姩璁$畻锛屽綋鍓嶉〉闈笉鑷姩鍏宠仈鎵︽牱璁板綍锛屽叏閮ㄧ敱鎵嬪姩涓哄噯&#xD;
- * &#xD;
- * 1.鍑�閲� = 姣涢噸 - 鐨噸&#xD;
- * 2.鎬绘墸閲� = 鐜板満鎵i噸 + 鍏朵粬鎵i噸 + 鎵f按鏉傝川&#xD;
- * 3.缁撶畻閲嶉噺 = 鍑�閲� - 鎬绘墸閲� 锛堝惈姘存潅澧為噸锛�&#xD;
- * 4.鍑�/鍏ュ簱閲嶉噺 = 鍑�閲� - 鎬绘墸閲� 锛堜笉鍚按鏉傚閲嶏級&#xD;
- * &#xD;
- * 5.鍏ュ簱鏃讹細鎵f按鏉� 姝f暟 = 鎵i噸锛岃礋鏁� = 澧為噸&#xD;
- * 6.鍑哄簱鏃讹細姘村垎澧為噸锛屾鏁�=澧為噸锛岃礋鏁�=鎵i噸&#xD;
- */&#xD;
-deAutoByWeight = function(name){&#xD;
-	&#xD;
-	if(null == name) name = &quot;1&quot;;&#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;
-	&#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;
-    var deSum = 0, addSum = 0, settleWeight = 0, recordWeight = 0;&#xD;
-    //鎵f按鏉�&#xD;
-    var deWet = curData.get(&quot;deWet&quot;), deImpurity = curData.get(&quot;deImpurity&quot;);&#xD;
-	&#xD;
-	var impurity = curData.get(&quot;impurity&quot;), wet = curData.get(&quot;wet&quot;);&#xD;
-	&#xD;
-	&#xD;
-	 var deBase = 0, multiple = 0;&#xD;
-	 var checkItems = curData.get(&quot;checkItems&quot;);&#xD;
-    //姘村垎鏉傝川锛屾洿鏀规瘮渚嬪苟涓旀按鍒嗘墸閲嶈繕娌¤绠楁儏鍐典笅&#xD;
-    if (&quot;wet&quot; == name) {&#xD;
-        var checkItem = this.getCheckItem(checkItems,&quot;C01&quot;, &quot;C020101&quot;);&#xD;
-        if (checkItem) {&#xD;
+            }&#xD;
+            });&#xD;
+            }&#xD;
+            };&#xD;
+        </ClientEvent>
+        <ClientEvent name="onCreate">&#xD;
+            /**&#xD;
+            * 鑷姩璁$畻锛屽綋鍓嶉〉闈笉鑷姩鍏宠仈鎵︽牱璁板綍锛屽叏閮ㄧ敱鎵嬪姩涓哄噯&#xD;
+            * &#xD;
+            * 1.鍑�閲� = 姣涢噸 - 鐨噸&#xD;
+            * 2.鎬绘墸閲� = 鐜板満鎵i噸 + 鍏朵粬鎵i噸 + 鎵f按鏉傝川&#xD;
+            * 3.缁撶畻閲嶉噺 = 鍑�閲� - 鎬绘墸閲� 锛堝惈姘存潅澧為噸锛�&#xD;
+            * 4.鍑�/鍏ュ簱閲嶉噺 = 鍑�閲� - 鎬绘墸閲� 锛堜笉鍚按鏉傚閲嶏級&#xD;
+            * &#xD;
+            * 5.鍏ュ簱鏃讹細鎵f按鏉� 姝f暟 = 鎵i噸锛岃礋鏁� = 澧為噸&#xD;
+            * 6.鍑哄簱鏃讹細姘村垎澧為噸锛屾鏁�=澧為噸锛岃礋鏁�=鎵i噸&#xD;
+            */&#xD;
+            deAutoByWeight = function(name){&#xD;
+            &#xD;
+            if(null == name) name = &quot;1&quot;;&#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;
+            &#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;
+            var deSum = 0, addSum = 0, settleWeight = 0, recordWeight = 0;&#xD;
+            //鎵f按鏉�&#xD;
+            var deWet = curData.get(&quot;deWet&quot;), deImpurity = curData.get(&quot;deImpurity&quot;);&#xD;
+            &#xD;
+            var impurity = curData.get(&quot;impurity&quot;), wet = curData.get(&quot;wet&quot;);&#xD;
+            &#xD;
+            &#xD;
+            var deBase = 0, multiple = 0;&#xD;
+            var checkItems = curData.get(&quot;checkItems&quot;);&#xD;
+            //姘村垎鏉傝川锛屾洿鏀规瘮渚嬪苟涓旀按鍒嗘墸閲嶈繕娌¤绠楁儏鍐典笅&#xD;
+            if (&quot;wet&quot; == name) {&#xD;
+            var checkItem = this.getCheckItem(checkItems,&quot;C01&quot;, &quot;C020101&quot;);&#xD;
+            if (checkItem) {&#xD;
             deBase = Number(wet) - Number(checkItem.get(&quot;upperLimit&quot;));&#xD;
             if (deBase == 0) return;&#xD;
             multiple = parseInt(deBase / checkItem.get(&quot;ruleNum&quot;));//鍊嶆暟&#xD;
             deWet = (netWeight * multiple * checkItem.get(&quot;ruleReduce&quot;) / 100.00).toFixed(0);&#xD;
-        }&#xD;
-    }&#xD;
-	&#xD;
-    //鏉傝川&#xD;
-    if (&quot;impurity&quot; == name) {&#xD;
-        checkItem = this.getCheckItem(recordData.checkItems, &quot;C02&quot;,&quot;C01010301&quot;);&#xD;
-        if (checkItem) {&#xD;
+            }&#xD;
+            }&#xD;
+            &#xD;
+            //鏉傝川&#xD;
+            if (&quot;impurity&quot; == name) {&#xD;
+            checkItem = this.getCheckItem(recordData.checkItems, &quot;C02&quot;,&quot;C01010301&quot;);&#xD;
+            if (checkItem) {&#xD;
             deBase = Number(impurity) - Number(checkItem.get(&quot;upperLimit&quot;));&#xD;
             if (deBase == 0) return;&#xD;
             multiple = parseInt(deBase / checkItem.get(&quot;ruleNum&quot;));&#xD;
             deImpurity = (netWeight * multiple * checkItem.get(&quot;ruleReduce&quot;) / 100.00).toFixed(0);&#xD;
-        }&#xD;
-    }&#xD;
-&#xD;
-    /** 鎬绘墸閲嶏紝涓嶅惈澧為噸*/&#xD;
-    deSum = Number(curData.get(&quot;deOther&quot;)) + Number(curData.get(&quot;deHandle&quot;));&#xD;
-	&#xD;
-	//鍑哄簱&#xD;
-	if (&quot;OUT&quot; == curData.get(&quot;type&quot;)) {&#xD;
-		if (Number(deWet) > 0) {//澧為噸&#xD;
-        	addSum = addSum + Number(deWet);&#xD;
-    	} else {&#xD;
-        	deSum = deSum + Number(deWet);&#xD;
-    	}&#xD;
-&#xD;
-    	if (Number(deImpurity) > 0) {//鎵i噸&#xD;
-        	deSum = deSum + Number(deImpurity);&#xD;
-   	 	} else {&#xD;
-        	addSum = addSum + Number(deImpurity);&#xD;
-    	}&#xD;
-	}else{&#xD;
-		if (Number(deWet) > 0) {//鎵i噸&#xD;
-        	deSum = deSum + Number(deWet);&#xD;
-    	} else {&#xD;
-        	addSum = addSum + Number(deWet);&#xD;
-    	}&#xD;
-    	if (Number(deImpurity) > 0) {//鎵i噸&#xD;
-       	 deSum = deSum + Number(deImpurity);&#xD;
-    	} else {&#xD;
-        	addSum = addSum + Number(deImpurity);&#xD;
-    	}&#xD;
-	}&#xD;
-	&#xD;
-    deSum = deSum.toFixed(0);&#xD;
-    /** 澧為噸杞鏁帮紝渚夸簬璁$畻  */&#xD;
-    addSum = Math.abs(addSum).toFixed(0);&#xD;
-	&#xD;
-    /** 鍏ュ簱閲嶉噺 = 鍑�閲� - 鎬绘墸閲�  */&#xD;
-    recordWeight = Number(netWeight) - Number(deSum);&#xD;
-	&#xD;
-    /** 缁撶畻閲嶉噺 = 鍑�閲� - 鎬绘墸閲� + 澧為噸 */&#xD;
-    settleWeight = Number(netWeight) - Number(deSum) + Number(addSum);&#xD;
-	&#xD;
-	curData.set(&quot;impurity&quot;,impurity);&#xD;
-	curData.set(&quot;wet&quot;,wet);&#xD;
-	curData.set(&quot;deImpurity&quot;,deImpurity);&#xD;
-	curData.set(&quot;deWet&quot;,deWet);&#xD;
-	curData.set(&quot;deSum&quot;,deSum);&#xD;
-	curData.set(&quot;netWeight&quot;,netWeight);&#xD;
-	curData.set(&quot;settleWeight&quot;,settleWeight);&#xD;
-	curData.set(&quot;recordWeight&quot;,recordWeight);&#xD;
-};&#xD;
-&#xD;
-&#xD;
-/**&#xD;
- * 鏍规嵁鍖栭獙椤瑰拰浼犻�掕繃鏉ョ殑鍙傛暟鑾峰彇褰撳墠鍙傛暟鐨勯厤缃俊鎭�&#xD;
- * @param checkItems&#xD;
- * @param code1 绯荤粺鍙傛暟ID&#xD;
- * @param code2 鍥芥爣鍙傛暟ID&#xD;
- * @returns {undefined}&#xD;
- */&#xD;
-function getCheckItem(checkItems, code1, code2) {&#xD;
-    if (!checkItems) return null;&#xD;
-    $.each(checkItems, function (index, checkItem) {&#xD;
-        if (checkItem.get(&quot;standardId&quot;) == code1 || checkItem.get(&quot;standardId&quot;) == code2) {&#xD;
-            if (checkItem.get(&quot;ruleNum&quot;) &amp;&amp; checkItem.get(&quot;upperLimit&quot;) > 0.0) {&#xD;
-                return checkItem;&#xD;
             }&#xD;
-        }&#xD;
-    });&#xD;
-    return null;&#xD;
-}</ClientEvent>
-    <Property name="packages">font-awesome,css-common</Property>
-    <Property name="javaScriptFile">./static/plugins/lodop/LodopFuncs.js</Property>
-    <DataSet id="dsMain">
-      <Property name="dataType">[dtMain]</Property>
-      <Property name="pageSize">20</Property>
-      <Property name="dataProvider">inoutDataPR#pageInoutData</Property>
-      <Property name="loadMode">manual</Property>
-    </DataSet>
-    <DataSet id="dsQuery">
-      <Property name="dataType">dtQuery</Property>
-    </DataSet>
-    <Container layout="regionPadding:10" layoutConstraint="top">
-      <Property name="exClassName">bg-color</Property>
-      <Property name="contentOverflow">hidden</Property>
-      <Property name="height">55</Property>
-      <Label layoutConstraint="left">
-        <Property name="text">鑿滃崟鏍忥細</Property>
-      </Label>
-      <Button id="btnEdit" layoutConstraint="left">
-        <ClientEvent name="onClick">edit();</ClientEvent>
-        <Property name="caption">缂栬緫</Property>
-        <Property name="exClassName">btn-warm</Property>
-        <Property name="iconClass">fa fa-pencil</Property>
-        <Property name="hideMode">display</Property>
-      </Button>
-      <Button id="btnDel" layoutConstraint="left">
-        <ClientEvent name="onClick">showAbnormal();</ClientEvent>
-        <Property name="caption">寮傚父鎿嶄綔</Property>
-        <Property name="exClassName">btn-warn</Property>
-        <Property name="iconClass">fa fa-minus</Property>
-        <Property name="hideMode">display</Property>
-      </Button>
-      <Button layoutConstraint="left">
-        <ClientEvent name="onClick">showImg();</ClientEvent>
-        <Property name="caption">杩囩▼杩借釜</Property>
-        <Property name="exClassName">btn-normal</Property>
-        <Property name="iconClass">fa fa-picture-o</Property>
-      </Button>
-      <Button id="btn2End" layoutConstraint="left">
-        <ClientEvent name="onClick">completeStart();</ClientEvent>
-        <Property name="caption">蹇�熺粨鏉�</Property>
-        <Property name="exClassName">btn-default</Property>
-        <Property name="iconClass">fa fa-gavel</Property>
-        <Property name="hideMode">display</Property>
-      </Button>
-      <Button layoutConstraint="left">
-        <Property name="caption">鍗曟嵁鎵撳嵃</Property>
-        <Property name="exClassName">btn-warm</Property>
-        <Property name="iconClass">fa fa-print</Property>
-        <Property name="menu">menuEdit</Property>
-      </Button>
-      <Button layoutConstraint="left">
-        <Property name="caption">瀵煎嚭EXCEL</Property>
-        <Property name="exClassName">btn-normal</Property>
-        <Property name="iconClass">fa fa-file-excel-o</Property>
-        <Property name="action">exportExcel</Property>
-      </Button>
-    </Container>
-    <AutoForm layoutConstraint="top">
-      <Property name="cols">*,*,*,*</Property>
-      <Property name="dataSet">dsQuery</Property>
-      <Property name="exClassName">bg-color</Property>
-      <Property name="labelAlign">right</Property>
-      <AutoFormElement>
-        <Property name="name">start</Property>
-        <Property name="property">start</Property>
-        <Property name="trigger">defaultDateDropDown</Property>
-        <Editor/>
-      </AutoFormElement>
-      <AutoFormElement>
-        <Property name="name">end</Property>
-        <Property name="property">end</Property>
-        <Property name="trigger">defaultDateDropDown</Property>
-        <Editor/>
-      </AutoFormElement>
-      <AutoFormElement>
-        <Property name="name">plateNum</Property>
-        <Property name="property">plateNum</Property>
-        <Editor>
-          <TextEditor>
-            <Property name="blankText">-- 鏀寔妯$硦 --</Property>
-          </TextEditor>
-        </Editor>
-      </AutoFormElement>
-      <AutoFormElement>
-        <Property name="name">userId</Property>
-        <Property name="property">userId</Property>
-        <Editor>
-          <TextEditor>
-            <Property name="blankText">-- 鏀寔妯$硦 --</Property>
-          </TextEditor>
-        </Editor>
-      </AutoFormElement>
-      <AutoFormElement>
-        <Property name="name">depotId</Property>
-        <Property name="property">depotId</Property>
-        <Property name="trigger">autoMappingDropDown2</Property>
-        <Editor/>
-      </AutoFormElement>
-      <AutoFormElement>
-        <Property name="name">foodVariety</Property>
-        <Property name="property">foodVariety</Property>
-        <Property name="trigger">autoOpenMappingDropDown2</Property>
-        <Editor/>
-      </AutoFormElement>
-      <AutoFormElement>
-        <Property name="name">orderTag</Property>
-        <Property name="property">orderTag</Property>
-        <Property name="trigger">autoMappingDropDown1</Property>
-        <Editor/>
-      </AutoFormElement>
-      <Container layout="hbox regionPadding:15">
-        <Button>
-          <ClientEvent name="onClick">query();&#xD;
-</ClientEvent>
-          <Property name="caption">鏌ヨ</Property>
-          <Property name="exClassName">btn-normal</Property>
-          <Property name="iconClass">fa fa-search</Property>
-        </Button>
-        <Button>
-          <ClientEvent name="onClick">var type =&quot;${request.getParameter('type')}&quot;;&#xD;
-var deptId = window.parent.DEPT_ID;//鐖堕〉闈腑鐨勫垎搴撶紪鐮�&#xD;
-view.get(&quot;#dsQuery&quot;).setData({type:type,deptId:deptId});</ClientEvent>
-          <Property name="exClassName">btn-warn</Property>
-          <Property name="iconClass">fa fa-refresh</Property>
-          <Property name="caption">閲嶇疆</Property>
-        </Button>
-      </Container>
-    </AutoForm>
-    <Container layoutConstraint="center">
-      <Property name="exClassName">bg-color</Property>
-      <DataGrid id="dataGridMain" layoutConstraint="center">
-        <ClientEvent name="onDataRowDoubleClick">edit();</ClientEvent>
-        <ClientEvent name="onDataRowClick">//瀹炵幇鐐瑰嚮鍗抽�変腑&#xD;
-//self.set(&quot;selection&quot;,arg.data);
+            }&#xD;
+            &#xD;
+            /** 鎬绘墸閲嶏紝涓嶅惈澧為噸*/&#xD;
+            deSum = Number(curData.get(&quot;deOther&quot;)) + Number(curData.get(&quot;deHandle&quot;));&#xD;
+            &#xD;
+            //鍑哄簱&#xD;
+            if (&quot;OUT&quot; == curData.get(&quot;type&quot;)) {&#xD;
+            if (Number(deWet) > 0) {//澧為噸&#xD;
+            addSum = addSum + Number(deWet);&#xD;
+            } else {&#xD;
+            deSum = deSum + Number(deWet);&#xD;
+            }&#xD;
+            &#xD;
+            if (Number(deImpurity) > 0) {//鎵i噸&#xD;
+            deSum = deSum + Number(deImpurity);&#xD;
+            } else {&#xD;
+            addSum = addSum + Number(deImpurity);&#xD;
+            }&#xD;
+            }else{&#xD;
+            if (Number(deWet) > 0) {//鎵i噸&#xD;
+            deSum = deSum + Number(deWet);&#xD;
+            } else {&#xD;
+            addSum = addSum + Number(deWet);&#xD;
+            }&#xD;
+            if (Number(deImpurity) > 0) {//鎵i噸&#xD;
+            deSum = deSum + Number(deImpurity);&#xD;
+            } else {&#xD;
+            addSum = addSum + Number(deImpurity);&#xD;
+            }&#xD;
+            }&#xD;
+            &#xD;
+            deSum = deSum.toFixed(0);&#xD;
+            /** 澧為噸杞鏁帮紝渚夸簬璁$畻 */&#xD;
+            addSum = Math.abs(addSum).toFixed(0);&#xD;
+            &#xD;
+            /** 鍏ュ簱閲嶉噺 = 鍑�閲� - 鎬绘墸閲� */&#xD;
+            recordWeight = Number(netWeight) - Number(deSum);&#xD;
+            &#xD;
+            /** 缁撶畻閲嶉噺 = 鍑�閲� - 鎬绘墸閲� + 澧為噸 */&#xD;
+            settleWeight = Number(netWeight) - Number(deSum) + Number(addSum);&#xD;
+            &#xD;
+            curData.set(&quot;impurity&quot;,impurity);&#xD;
+            curData.set(&quot;wet&quot;,wet);&#xD;
+            curData.set(&quot;deImpurity&quot;,deImpurity);&#xD;
+            curData.set(&quot;deWet&quot;,deWet);&#xD;
+            curData.set(&quot;deSum&quot;,deSum);&#xD;
+            curData.set(&quot;netWeight&quot;,netWeight);&#xD;
+            curData.set(&quot;settleWeight&quot;,settleWeight);&#xD;
+            curData.set(&quot;recordWeight&quot;,recordWeight);&#xD;
+            };&#xD;
+            &#xD;
+            &#xD;
+            /**&#xD;
+            * 鏍规嵁鍖栭獙椤瑰拰浼犻�掕繃鏉ョ殑鍙傛暟鑾峰彇褰撳墠鍙傛暟鐨勯厤缃俊鎭�&#xD;
+            * @param checkItems&#xD;
+            * @param code1 绯荤粺鍙傛暟ID&#xD;
+            * @param code2 鍥芥爣鍙傛暟ID&#xD;
+            * @returns {undefined}&#xD;
+            */&#xD;
+            function getCheckItem(checkItems, code1, code2) {&#xD;
+            if (!checkItems) return null;&#xD;
+            $.each(checkItems, function (index, checkItem) {&#xD;
+            if (checkItem.get(&quot;standardId&quot;) == code1 || checkItem.get(&quot;standardId&quot;) == code2) {&#xD;
+            if (checkItem.get(&quot;ruleNum&quot;) &amp;&amp; checkItem.get(&quot;upperLimit&quot;) > 0.0) {&#xD;
+            return checkItem;&#xD;
+            }&#xD;
+            }&#xD;
+            });&#xD;
+            return null;&#xD;
+            }
         </ClientEvent>
-        <Property name="dataSet">dsMain</Property>
-        <Property name="readOnly">true</Property>
-        <Property name="dynaRowHeight">false</Property>
-        <Property name="selectionMode">multiRows</Property>
-        <RowSelectorColumn/>
-        <DataColumn name="id">
-          <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
-arg.dom.style.color = &quot;#f67d06&quot;;&#xD;
-arg.processDefault = true;</ClientEvent>
-          <Property name="property">id</Property>
-          <Property name="align">center</Property>
-          <Property name="width">150</Property>
-        </DataColumn>
-        <DataColumn name="plateNum">
-          <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
-arg.processDefault = true;</ClientEvent>
-          <Property name="property">plateNum</Property>
-          <Property name="align">center</Property>
-          <Property name="width">150</Property>
-        </DataColumn>
-        <DataColumn>
-          <Property name="property">userName</Property>
-          <Property name="align">center</Property>
-          <Property name="width">120</Property>
-          <Property name="name">userName</Property>
-        </DataColumn>
-        <DataColumn>
-          <Property name="property">customerName</Property>
-          <Property name="width">250</Property>
-          <Property name="name">customerName</Property>
-          <Property name="align">center</Property>
-          <Property name="caption">瀹㈡埛鍚嶇О</Property>
-        </DataColumn>
-        <DataColumn name="foodVariety">
-          <Property name="property">foodVariety</Property>
-          <Property name="align">center</Property>
-          <Property name="width">120</Property>
-        </DataColumn>
-        <DataColumn name="depotId">
-          <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
-arg.processDefault = true;</ClientEvent>
-          <Property name="property">depotId</Property>
-          <Property name="align">center</Property>
-          <Property name="width">120</Property>
-        </DataColumn>
-        <DataColumn name="fullWeight">
-          <Property name="property">fullWeight</Property>
-          <Property name="caption">姣涢噸</Property>
-          <Property name="align">center</Property>
-          <Property name="width">100</Property>
-        </DataColumn>
-        <DataColumn name="emptyWeight">
-          <Property name="property">emptyWeight</Property>
-          <Property name="caption">鐨噸</Property>
-          <Property name="align">center</Property>
-          <Property name="width">100</Property>
-        </DataColumn>
-        <DataColumn name="netWeight">
-          <Property name="property">netWeight</Property>
-          <Property name="align">center</Property>
-          <Property name="caption">鍑�閲�</Property>
-          <Property name="width">100</Property>
-        </DataColumn>
-        <DataColumn id="columnDeSum">
-          <Property name="property">deSum</Property>
-          <Property name="width">100</Property>
-          <Property name="caption">鎬绘墸閲�</Property>
-          <Property name="align">center</Property>
-          <Property name="name">deSum</Property>
-        </DataColumn>
-        <DataColumn name="settleWeight">
-          <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
-arg.processDefault = true;</ClientEvent>
-          <Property name="property">settleWeight</Property>
-          <Property name="align">center</Property>
-          <Property name="width">100</Property>
-        </DataColumn>
-        <DataColumn>
-          <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
-arg.processDefault = true;</ClientEvent>
-          <Property name="property">recordWeight</Property>
-          <Property name="align">center</Property>
-          <Property name="width">100</Property>
-          <Property name="visible">true</Property>
-          <Property name="name">recordWeight</Property>
-        </DataColumn>
-        <DataColumn name="progress">
-          <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
-arg.processDefault = true;</ClientEvent>
-          <Property name="property">progress</Property>
-          <Property name="align">center</Property>
-          <Property name="width">100</Property>
-        </DataColumn>
-        <DataColumn name="recordStatus">
-          <Property name="property">recordStatus</Property>
-          <Property name="align">center</Property>
-          <Property name="width">100</Property>
-          <Property name="visible">false</Property>
-        </DataColumn>
-        <DataColumn name="completeTime">
-          <Property name="property">completeTime</Property>
-          <Property name="align">center</Property>
-          <Property name="width">150</Property>
-        </DataColumn>
-      </DataGrid>
-    </Container>
-    <Container layoutConstraint="bottom">
-      <Property name="exClassName">bg-color</Property>
-      <DataPilot layoutConstraint="right">
-        <Property name="itemCodes">pageSize,pages</Property>
-        <Property name="dataSet">dsMain</Property>
-      </DataPilot>
-    </Container>
-    <Dialog id="dialogMain">
-      <Property name="closeable">false</Property>
-      <Property name="caption">琛ㄥ崟淇℃伅</Property>
-      <Property name="width">1200</Property>
-      <Property name="iconClass">fa fa-tasks</Property>
-      <Property name="showCaptionBar">false</Property>
-      <Buttons>
-        <Button id="btnOK">
-          <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
-if(data.validate() != 'ok'){&#xD;
-	$notify(&quot;鏁版嵁鏍¢獙澶辫触锛侊紒&quot;);&#xD;
-	return;&#xD;
-}&#xD;
-view.get(&quot;#uaSave&quot;).execute(function(result){&#xD;
-	if(result){&#xD;
-		$alert(result);&#xD;
-		return;&#xD;
-	}&#xD;
-	$notify(&quot;鏁版嵁鎵ц瀹屾垚锛侊紒&quot;);&#xD;
-	self.get(&quot;parent&quot;).hide();&#xD;
-});</ClientEvent>
-          <Property name="caption">纭畾淇濆瓨</Property>
-          <Property name="iconClass">fa fa-check</Property>
-          <Property name="exClassName">btn-normal</Property>
-        </Button>
-        <Button id="btnComplete" layoutConstraint="left">
-          <ClientEvent name="onClick">completeExe();</ClientEvent>
-          <Property name="caption">缁撴潫娴佺▼</Property>
-          <Property name="exClassName">btn-default</Property>
-          <Property name="iconClass">fa fa-gavel</Property>
-          <Property name="hideMode">display</Property>
-          <Property name="visible">false</Property>
-        </Button>
-        <Button id="btnAddCheck">
-          <ClientEvent name="onClick">var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-var list = data.get(&quot;checkItems&quot;);&#xD;
-&#xD;
-list.insert({});&#xD;
-console.log(list);&#xD;
-</ClientEvent>
-          <Property name="caption">鏂板鍖栭獙椤�</Property>
-          <Property name="iconClass">fa fa-plus</Property>
-          <Property name="hideMode">display</Property>
-          <Property name="visible">true</Property>
-        </Button>
-        <Button>
-          <ClientEvent name="onClick">cancelMain();</ClientEvent>
-          <Property name="caption">鍙栨秷鎿嶄綔</Property>
-          <Property name="iconClass">fa fa-times</Property>
-        </Button>
-      </Buttons>
-      <Children>
-        <TabControl>
-          <ClientEvent name="onTabChange">if(arg.newTab.get(&quot;name&quot;) == &quot;tabCheck&quot;){&#xD;
-	view.get(&quot;#btnAddCheck&quot;).set(&quot;visible&quot;,true);&#xD;
-}else{&#xD;
-	view.get(&quot;#btnAddCheck&quot;).set(&quot;visible&quot;,false);&#xD;
-}</ClientEvent>
-          <ControlTab>
-            <Property name="caption">鍩虹淇℃伅</Property>
-            <Property name="iconClass">fa fa-download</Property>
-            <Property name="width">150</Property>
-            <Property name="name">tabCommon</Property>
-            <Container>
-              <FieldSet layout="regionPadding:5" layoutConstraint="padding:10">
-                <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">plateNum</Property>
-                      <Property name="property">plateNum</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">userContact</Property>
-                      <Property name="property">userContact</Property>
-                      <Property name="label">鑱旂郴鐢佃瘽</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>
-                      <Property name="name">transType</Property>
-                      <Property name="property">transType</Property>
-                      <Editor>
-                        <RadioGroup>
-                          <RadioButton>
-                            <Property name="text">姹借溅</Property>
-                            <Property name="value">1</Property>
-                          </RadioButton>
-                          <RadioButton>
-                            <Property name="text">鐏溅</Property>
-                            <Property name="value">2</Property>
-                          </RadioButton>
-                          <RadioButton>
-                            <Property name="text">杞埞</Property>
-                            <Property name="value">3</Property>
-                          </RadioButton>
-                          <RadioButton>
-                            <Property name="text">鍏朵粬</Property>
-                            <Property name="value">4</Property>
-                          </RadioButton>
-                        </RadioGroup>
-                      </Editor>
-                    </AutoFormElement>
-                    <AutoFormElement>
-                      <Property name="name">depotId</Property>
-                      <Property name="property">depotId</Property>
-                      <Property name="label">瑁呭嵏浠撳簱</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                    <AutoFormElement>
-                      <Property name="name">foodVariety</Property>
-                      <Property name="property">foodVariety</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                    <AutoFormElement>
-                      <Property name="name">specType</Property>
-                      <Property name="property">specType</Property>
-                      <Editor>
-                        <RadioGroup>
-                          <RadioButton>
-                            <Property name="text">鏁g伯</Property>
-                            <Property name="value">鏁g伯</Property>
-                          </RadioButton>
-                            <RadioButton>
-                                <Property name="text">25kg</Property>
-                                <Property name="value">25kg</Property>
-                            </RadioButton>
-                          <RadioButton>
-                            <Property name="text">50kg</Property>
-                            <Property name="value">50kg</Property>
-                          </RadioButton>
-                        </RadioGroup>
-                      </Editor>
-                    </AutoFormElement>
-                    <AutoFormElement>
-                      <Property name="name">foodLevel</Property>
-                      <Property name="property">foodLevel</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">registerTime</Property>
-                      <Property name="property">registerTime</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                    <AutoFormElement>
-                      <Property name="name">foodLocation</Property>
-                      <Property name="property">foodLocation</Property>
-                      <Property name="trigger">ddFoodOrigin</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                  </AutoForm>
-                </Children>
-              </FieldSet>
-              <FieldSet layout="regionPadding:5" layoutConstraint="padding:10">
-                <Property name="caption">绉伴噸淇℃伅锛堝崟浣嶏細KG锛�</Property>
-                <Buttons/>
-                <Children>
-                  <AutoForm>
-                    <Property name="dataSet">dsMain</Property>
-                    <Property name="cols">*,*,*,*,*,*</Property>
-                    <Property name="labelAlign">right</Property>
-                    <Property name="labelWidth">100</Property>
-                    <Property name="labelSeparator">锛�</Property>
-                    <AutoFormElement layoutConstraint="colSpan:2">
-                      <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
-var id = self.getDom().id;&#xD;
-var prop = id.substring(2,id.length);&#xD;
-deAutoByWeight(prop);</ClientEvent>
-                      <Property name="name">emptyWeight</Property>
-                      <Property name="property">emptyWeight</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                    <AutoFormElement layoutConstraint="colSpan:2">
-                      <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
-var id = self.getDom().id;&#xD;
-var prop = id.substring(2,id.length);&#xD;
-deAutoByWeight(prop);&#xD;
-                                            </ClientEvent>
-                      <Property name="name">fullWeight</Property>
-                      <Property name="property">fullWeight</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>
-                      <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
-var id = self.getDom().id;&#xD;
-var prop = id.substring(2,id.length);&#xD;
-deAutoByWeight(prop);</ClientEvent>
-                      <Property name="name">deImpurity</Property>
-                      <Property name="property">deImpurity</Property>
-                      <Property name="showHint">false</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                    <AutoFormElement>
-                      <Property name="name">impurity</Property>
-                      <Property name="property">impurity</Property>
-                      <Property name="showLabel">false</Property>
-                      <Editor>
-                        <TextEditor>
-                          <Property name="blankText"> -- % --</Property>
-                        </TextEditor>
-                      </Editor>
-                    </AutoFormElement>
-                    <AutoFormElement id="deWet">
-                      <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
-var id = self.getDom().id;&#xD;
-var prop = id.substring(2,id.length);&#xD;
-deAutoByWeight(prop);</ClientEvent>
-                      <Property name="name">deWet</Property>
-                      <Property name="property">deWet</Property>
-                      <Property name="showHint">false</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                    <AutoFormElement>
-                      <Property name="name">wet</Property>
-                      <Property name="property">wet</Property>
-                      <Property name="showLabel">false</Property>
-                      <Editor>
-                        <TextEditor>
-                          <Property name="blankText"> -- % --</Property>
-                        </TextEditor>
-                      </Editor>
-                    </AutoFormElement>
-                    <AutoFormElement layoutConstraint="colSpan:2">
-                      <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
-var id = self.getDom().id;&#xD;
-var prop = id.substring(2,id.length);&#xD;
-deAutoByWeight(prop);</ClientEvent>
-                      <Property name="name">deHandle</Property>
-                      <Property name="property">deHandle</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                    <AutoFormElement layoutConstraint="colSpan:2">
-                      <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
-var id = self.getDom().id;&#xD;
-var prop = id.substring(2,id.length);&#xD;
-deAutoByWeight(prop);</ClientEvent>
-                      <Property name="name">deOther</Property>
-                      <Property name="property">deOther</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                    <AutoFormElement layoutConstraint="colSpan:2">
-                      <Property name="name">deSum</Property>
-                      <Property name="property">deSum</Property>
-                      <Property name="readOnly">true</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">fullWeightTime</Property>
-                      <Property name="property">fullWeightTime</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">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>
-                    <Label layoutConstraint="colSpan:4">
-                      <Property name="style">
-                        <Property name="color">blue</Property>
-                        <Property name="padding-left">80px</Property>
-                      </Property>
-                      <Property name="text">璇存槑锛氱粨绠楅噸閲�=鍑�閲�-鎵i噸+澧為噸锛涘叆搴撻噸閲�=鍑�閲�-鎵i噸锛涙墸姘存潅锛氭鏁�=鎵i噸锛岃礋鏁�=澧為噸</Property>
-                    </Label>
-                  </AutoForm>
-                </Children>
-              </FieldSet>
-              <FieldSet layout="regionPadding:5" layoutConstraint="padding:10">
-                <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 layoutConstraint="colSpan:2">
-                      <Property name="name">remarks</Property>
-                      <Property name="property">remarks</Property>
-                      <Property name="editorType">TextArea</Property>
-                      <Property name="showLabel">false</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                  </AutoForm>
-                </Children>
-              </FieldSet>
-            </Container>
-          </ControlTab>
-          <ControlTab id="tabCheck">
-            <Property name="caption">鎵︽牱鍖栭獙</Property>
-            <Property name="iconClass">fa fa-gavel</Property>
-            <Property name="width">150</Property>
-            <Property name="name">tabCheck</Property>
-            <Container layout="padding:10">
-              <AutoForm>
-                <Property name="dataSet">dsMain</Property>
-                <Property name="cols">*,*,*,*</Property>
-                <Property name="labelAlign">right</Property>
-                <Property name="labelWidth">100</Property>
-                <Property name="labelSeparator">锛�</Property>
-                <AutoFormElement>
-                  <Property name="name">depotId</Property>
-                  <Property name="property">depotId</Property>
-                  <Editor/>
-                </AutoFormElement>
-                <AutoFormElement>
-                  <Property name="name">foodVariety</Property>
-                  <Property name="property">foodVariety</Property>
-                  <Editor/>
-                </AutoFormElement>
-                <AutoFormElement>
-                  <Property name="name">foodLevel</Property>
-                  <Property name="property">foodLevel</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">checkUser</Property>
-                  <Property name="property">checkUser</Property>
-                  <Editor/>
-                </AutoFormElement>
-                <AutoFormElement>
-                  <Property name="name">price</Property>
-                  <Property name="property">price</Property>
-                  <Editor/>
-                </AutoFormElement>
-                <AutoFormElement>
-                  <Property name="name">checkStatus</Property>
-                  <Property name="property">checkStatus</Property>
-                  <Property name="label">鍖栭獙缁撴灉</Property>
-                  <Editor/>
-                </AutoFormElement>
-              </AutoForm>
-              <DataGrid id="dataGridCheckItem" layoutConstraint="padding:10">
-                <ClientEvent name="onCellValueEdit">//瀹炵幇鍖栭獙椤圭洰璋冩暣锛屾洿鏂颁富琛ㄤ腑鍊�&#xD;
-var entity = arg.entity;&#xD;
-var inoutData = view.get(&quot;#dsMain.data:#&quot;);&#xD;
-&#xD;
-if(entity.get(&quot;standardId&quot;) ==&quot;C01&quot;){//姘村垎&#xD;
-	inoutData.set(&quot;wet&quot;,entity.get(&quot;value&quot;));&#xD;
-}&#xD;
-&#xD;
-if(entity.get(&quot;standardId&quot;) ==&quot;C02&quot;){//闆滃織&#xD;
-	inoutData.set(&quot;impurity&quot;,entity.get(&quot;value&quot;));&#xD;
-}</ClientEvent>
-                <Property name="dataSet">dsMain</Property>
-                <Property name="dataPath">#.checkItems</Property>
-                <Property name="highlightCurrentRow">false</Property>
-                <Property name="visible">true</Property>
+        <Property name="packages">font-awesome,css-common</Property>
+        <Property name="javaScriptFile">./static/plugins/lodop/LodopFuncs.js</Property>
+        <DataSet id="dsMain">
+            <Property name="dataType">[dtMain]</Property>
+            <Property name="pageSize">20</Property>
+            <Property name="dataProvider">inoutDataPR#pageInoutData</Property>
+            <Property name="loadMode">manual</Property>
+        </DataSet>
+        <DataSet id="dsQuery">
+            <Property name="dataType">dtQuery</Property>
+        </DataSet>
+        <Container layout="regionPadding:10" layoutConstraint="top">
+            <Property name="exClassName">bg-color</Property>
+            <Property name="contentOverflow">hidden</Property>
+            <Property name="height">55</Property>
+            <Label layoutConstraint="left">
+                <Property name="text">鑿滃崟鏍忥細</Property>
+            </Label>
+            <Button id="btnEdit" layoutConstraint="left">
+                <ClientEvent name="onClick">edit();</ClientEvent>
+                <Property name="caption">缂栬緫</Property>
+                <Property name="exClassName">btn-warm</Property>
+                <Property name="iconClass">fa fa-pencil</Property>
                 <Property name="hideMode">display</Property>
-                <RowNumColumn/>
-                <DataColumn name="standardName">
-                  <Property name="property">standardName</Property>
-                  <Property name="align">center</Property>
-                  <Property name="readOnly">true</Property>
-                </DataColumn>
-                <DataColumn name="value">
-                  <Property name="property">value</Property>
-                  <Property name="align">center</Property>
-                  <Property name="caption">妫�娴嬪�硷紙鍙紪杈戯級</Property>
-                  <Editor/>
-                </DataColumn>
-                <DataColumn name="unit">
-                  <Property name="property">unit</Property>
-                  <Property name="width">80</Property>
-                  <Property name="readOnly">true</Property>
-                </DataColumn>
-                <DataColumn name="standardValue">
-                  <Property name="property">standardValue</Property>
-                  <Property name="readOnly">true</Property>
-                  <Property name="align">center</Property>
-                </DataColumn>
-                <DataColumn name="remarks">
-                  <Property name="property">remarks</Property>
-                </DataColumn>
-              </DataGrid>
+            </Button>
+            <Button id="btnDel" layoutConstraint="left">
+                <ClientEvent name="onClick">showAbnormal();</ClientEvent>
+                <Property name="caption">寮傚父鎿嶄綔</Property>
+                <Property name="exClassName">btn-warn</Property>
+                <Property name="iconClass">fa fa-minus</Property>
+                <Property name="hideMode">display</Property>
+            </Button>
+            <Button layoutConstraint="left">
+                <ClientEvent name="onClick">showImg();</ClientEvent>
+                <Property name="caption">杩囩▼杩借釜</Property>
+                <Property name="exClassName">btn-normal</Property>
+                <Property name="iconClass">fa fa-picture-o</Property>
+            </Button>
+            <Button id="btn2End" layoutConstraint="left">
+                <ClientEvent name="onClick">completeStart();</ClientEvent>
+                <Property name="caption">蹇�熺粨鏉�</Property>
+                <Property name="exClassName">btn-default</Property>
+                <Property name="iconClass">fa fa-gavel</Property>
+                <Property name="hideMode">display</Property>
+            </Button>
+            <Button layoutConstraint="left">
+                <Property name="caption">鍗曟嵁鎵撳嵃</Property>
+                <Property name="exClassName">btn-warm</Property>
+                <Property name="iconClass">fa fa-print</Property>
+                <Property name="menu">menuEdit</Property>
+            </Button>
+            <Button layoutConstraint="left">
+                <Property name="caption">瀵煎嚭EXCEL</Property>
+                <Property name="exClassName">btn-normal</Property>
+                <Property name="iconClass">fa fa-file-excel-o</Property>
+                <Property name="action">exportExcel</Property>
+            </Button>
+        </Container>
+        <AutoForm layoutConstraint="top">
+            <Property name="cols">*,*,*,*</Property>
+            <Property name="dataSet">dsQuery</Property>
+            <Property name="exClassName">bg-color</Property>
+            <Property name="labelAlign">right</Property>
+            <AutoFormElement>
+                <Property name="name">start</Property>
+                <Property name="property">start</Property>
+                <Property name="trigger">defaultDateDropDown</Property>
+                <Editor/>
+            </AutoFormElement>
+            <AutoFormElement>
+                <Property name="name">end</Property>
+                <Property name="property">end</Property>
+                <Property name="trigger">defaultDateDropDown</Property>
+                <Editor/>
+            </AutoFormElement>
+            <AutoFormElement>
+                <Property name="name">plateNum</Property>
+                <Property name="property">plateNum</Property>
+                <Editor>
+                    <TextEditor>
+                        <Property name="blankText">-- 鏀寔妯$硦 --</Property>
+                    </TextEditor>
+                </Editor>
+            </AutoFormElement>
+            <AutoFormElement>
+                <Property name="name">userId</Property>
+                <Property name="property">userId</Property>
+                <Editor>
+                    <TextEditor>
+                        <Property name="blankText">-- 鏀寔妯$硦 --</Property>
+                    </TextEditor>
+                </Editor>
+            </AutoFormElement>
+            <AutoFormElement>
+                <Property name="name">depotId</Property>
+                <Property name="property">depotId</Property>
+                <Property name="trigger">autoMappingDropDown2</Property>
+                <Editor/>
+            </AutoFormElement>
+            <AutoFormElement>
+                <Property name="name">foodVariety</Property>
+                <Property name="property">foodVariety</Property>
+                <Property name="trigger">autoOpenMappingDropDown2</Property>
+                <Editor/>
+            </AutoFormElement>
+            <AutoFormElement>
+                <Property name="name">orderTag</Property>
+                <Property name="property">orderTag</Property>
+                <Property name="trigger">autoMappingDropDown1</Property>
+                <Editor/>
+            </AutoFormElement>
+            <Container layout="hbox regionPadding:15">
+                <Button>
+                    <ClientEvent name="onClick">query();&#xD;
+                    </ClientEvent>
+                    <Property name="caption">鏌ヨ</Property>
+                    <Property name="exClassName">btn-normal</Property>
+                    <Property name="iconClass">fa fa-search</Property>
+                </Button>
+                <Button>
+                    <ClientEvent name="onClick">var type =&quot;${request.getParameter('type')}&quot;;&#xD;
+                        var deptId = window.parent.DEPT_ID;//鐖堕〉闈腑鐨勫垎搴撶紪鐮�&#xD;
+                        view.get(&quot;#dsQuery&quot;).setData({type:type,deptId:deptId});
+                    </ClientEvent>
+                    <Property name="exClassName">btn-warn</Property>
+                    <Property name="iconClass">fa fa-refresh</Property>
+                    <Property name="caption">閲嶇疆</Property>
+                </Button>
             </Container>
-          </ControlTab>
-        </TabControl>
-      </Children>
-      <Tools/>
-    </Dialog>
-    <Dialog id="dialogImg">
-      <Property name="width">1000</Property>
-      <Property name="height">95%</Property>
-      <Property name="iconClass">fa fa-tasks</Property>
-      <Property name="caption">娴佺▼杩芥函灞曠ず</Property>
-      <Buttons/>
-      <Children>
-        <IFrame id="iFrameImg">
-          <Property name="width">100%</Property>
-        </IFrame>
-      </Children>
-      <Tools/>
-    </Dialog>
-    <Dialog id="dialogAbnormal" layout="regionPadding:5">
-      <Property name="width">450</Property>
-      <Property name="iconClass">fa fa-tasks</Property>
-      <Property name="caption">寮傚父鎿嶄綔鍘熷洜</Property>
-      <Property name="closeable">false</Property>
-      <Buttons>
-        <Button>
-          <ClientEvent name="onClick">del();</ClientEvent>
-          <Property name="caption">纭畾鍒犻櫎</Property>
-          <Property name="iconClass">fa fa-check</Property>
-          <Property name="exClassName">btn-warn</Property>
-        </Button>
-        <Button>
-          <ClientEvent name="onClick">todoError();</ClientEvent>
-          <Property name="caption">寮傚父缁堟</Property>
-          <Property name="iconClass">fa fa-check</Property>
-          <Property name="exClassName">btn-warn</Property>
-          <Property name="hideMode">visibility</Property>
-        </Button>
-        <Button>
-          <ClientEvent name="onClick">self.get(&quot;parent&quot;).close();</ClientEvent>
-          <Property name="caption">鍙栨秷鎿嶄綔</Property>
-          <Property name="iconClass">fa fa-times</Property>
-        </Button>
-      </Buttons>
-      <Children>
-        <TextArea id="textAbnormal">
-          <Property name="height">165</Property>
-        </TextArea>
-        <AutoForm>
-          <Property name="cols">*</Property>
-          <Label layoutConstraint="colSpan:1">
-            <Property name="style">
-              <Property name="color">blue</Property>
-            </Property>
-            <Property name="text">寮傚父缁堟锛氫笟鍔℃暟鎹祦绋嬬粨鏉燂紝閲嶉噺淇℃伅涓嶈繘琛岀粺璁¤绠椼��</Property>
-          </Label>
-          <Label layoutConstraint="colSpan:1">
-            <Property name="style">
-              <Property name="color">blue</Property>
-            </Property>
-            <Property name="text">鍒犻櫎鎿嶄綔锛氫笟鍔℃暟鎹鍒犻櫎涓斾笉缁熻锛屽彧淇濈暀鏃ュ織璁板綍銆�</Property>
-          </Label>
         </AutoForm>
-      </Children>
-      <Tools/>
-    </Dialog>
-    <UpdateAction id="uaSave">
-      <Property name="dataResolver">inoutDataPR#saveInoutData</Property>
-      <UpdateItem>
-        <Property name="dataSet">dsMain</Property>
-        <Property name="dataPath">[#current]</Property>
-        <Property name="validateData">false</Property>
-      </UpdateItem>
-    </UpdateAction>
-    <UpdateAction id="ajaxDel">
-      <Property name="dataResolver">inoutDataPR#delInoutData</Property>
-      <Property name="confirmMessage">纭畾瑕佹墽琛屽垹闄や箞锛�</Property>
-      <UpdateItem>
-        <Property name="dataSet">dsMain</Property>
-        <Property name="dataPath">[#current]</Property>
-        <Property name="validateData">false</Property>
-      </UpdateItem>
-    </UpdateAction>
-    <UpdateAction id="ajaxError">
-      <Property name="dataResolver">inoutDataPR#errorInoutData</Property>
-      <UpdateItem>
-        <Property name="dataSet">dsMain</Property>
-        <Property name="dataPath">[#current]</Property>
-        <Property name="validateData">false</Property>
-      </UpdateItem>
-    </UpdateAction>
-    <UpdateAction id="ajaxComplete">
-      <Property name="dataResolver">inoutDataPR#completeInoutData</Property>
-      <Property name="confirmMessage">纭畾瑕佺粨鏉熸祦绋嬩箞锛�</Property>
-      <UpdateItem>
-        <Property name="dataSet">dsMain</Property>
-        <Property name="dataPath">[#current]</Property>
-      </UpdateItem>
-    </UpdateAction>
-    <AjaxAction id="ajaxPrint">
-      <Property name="service">inoutDataPR#printWeightBill</Property>
-      <Property name="executingMessage">姝e湪鎵ц鎵撳嵃鈥︹��</Property>
-      <Property name="async">false</Property>
-    </AjaxAction>
-    <AjaxAction id="ajaxShipPrint">
-      <Property name="service">inoutDataPR#printShipBill</Property>
-      <Property name="executingMessage">姝e湪鎵ц鎵撳嵃鈥︹��</Property>
-      <Property name="async">false</Property>
-    </AjaxAction>
-    <AjaxAction id="ajaxPrintCheck">
-      <Property name="service">inoutDataPR#printCheckBill</Property>
-      <Property name="executingMessage">姝e湪鎵ц鎵撳嵃鈥︹��</Property>
-      <Property name="async">false</Property>
-    </AjaxAction>
-    <AjaxAction id="ajaxInitAdd">
-      <Property name="service">inoutDataPR#initAddData</Property>
-    </AjaxAction>
-    <AjaxAction id="ajaxGetDepot">
-      <Property name="service">depotPR#getDepot</Property>
-    </AjaxAction>
-    <AjaxAction id="ajaxGetCheck">
-      <Property name="service">checkStandardPR#listCheckItemsByFoodVariety</Property>
-    </AjaxAction>
-    <Export2ReportAction id="exportExcel">
-      <Property name="extension">xls</Property>
-      <Property name="template">dataGridMain</Property>
-      <Property name="maxSize">3000</Property>
-      <Property name="fileName">鍗曟嵁鍒楄〃</Property>
-      <Property name="showTitle">true</Property>
-      <Property name="titleName">鍗曟嵁鍒楄〃</Property>
-      <Property name="dataScope">currentPage</Property>
-    </Export2ReportAction>
-    <CustomDropDown id="ddFoodOrigin">
-      <Property name="minHeight">500</Property>
-      <Property name="assignmentMap">foodLocation=name</Property>
-      <Property name="minWidth">500</Property>
-      <Container layout="regionPadding:5">
-        <DataSet id="dsFoodOrigin">
-          <Property name="dataProvider"></Property>
-          <Property name="dataType">[dtFoodOrigin]</Property>
-          <Property name="parameter"></Property>
-          <Property name="pageSize">30</Property>
-        </DataSet>
-        <Container layout="hbox regionPadding:5">
-          <TextEditor id="key2">
-            <Property name="blankText"> -- 缂栫爜鎴栬�呭悕绉� --</Property>
-            <Property name="width">200</Property>
-          </TextEditor>
-          <Button>
-            <ClientEvent name="onClick">var key = view.get(&quot;#key2.value&quot;);&#xD;
-view.get(&quot;#dsFoodOrigin&quot;).set(&quot;parameter&quot;,{key:key}).flushAsync();</ClientEvent>
-            <Property name="caption">鏌ヨ</Property>
-            <Property name="iconClass">fa fa-search</Property>
-          </Button>
-          <Button>
-            <ClientEvent name="onClick">var data = view.get(&quot;#dsFoodOrigin.data:#&quot;);&#xD;
-if(data){&#xD;
-	view.get(&quot;#ddFoodOrigin&quot;).close(data.toJSON());&#xD;
-}</ClientEvent>
-            <Property name="iconClass">fa fa-check</Property>
-            <Property name="caption">纭畾</Property>
-          </Button>
+        <Container layoutConstraint="center">
+            <Property name="exClassName">bg-color</Property>
+            <DataGrid id="dataGridMain" layoutConstraint="center">
+                <ClientEvent name="onDataRowDoubleClick">edit();</ClientEvent>
+                <ClientEvent name="onDataRowClick">//瀹炵幇鐐瑰嚮鍗抽�変腑&#xD;
+                    //self.set(&quot;selection&quot;,arg.data);
+                </ClientEvent>
+                <Property name="dataSet">dsMain</Property>
+                <Property name="readOnly">true</Property>
+                <Property name="dynaRowHeight">false</Property>
+                <Property name="selectionMode">multiRows</Property>
+                <RowSelectorColumn/>
+                <DataColumn name="id">
+                    <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
+                        arg.dom.style.color = &quot;#f67d06&quot;;&#xD;
+                        arg.processDefault = true;
+                    </ClientEvent>
+                    <Property name="property">id</Property>
+                    <Property name="align">center</Property>
+                    <Property name="width">150</Property>
+                </DataColumn>
+                <DataColumn name="plateNum">
+                    <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
+                        arg.processDefault = true;
+                    </ClientEvent>
+                    <Property name="property">plateNum</Property>
+                    <Property name="align">center</Property>
+                    <Property name="width">150</Property>
+                </DataColumn>
+                <DataColumn>
+                    <Property name="property">userName</Property>
+                    <Property name="align">center</Property>
+                    <Property name="width">120</Property>
+                    <Property name="name">userName</Property>
+                </DataColumn>
+                <DataColumn>
+                    <Property name="property">customerName</Property>
+                    <Property name="width">250</Property>
+                    <Property name="name">customerName</Property>
+                    <Property name="align">center</Property>
+                    <Property name="caption">瀹㈡埛鍚嶇О</Property>
+                </DataColumn>
+                <DataColumn name="foodVariety">
+                    <Property name="property">foodVariety</Property>
+                    <Property name="align">center</Property>
+                    <Property name="width">120</Property>
+                </DataColumn>
+                <DataColumn name="depotId">
+                    <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
+                        arg.processDefault = true;
+                    </ClientEvent>
+                    <Property name="property">depotId</Property>
+                    <Property name="align">center</Property>
+                    <Property name="width">120</Property>
+                </DataColumn>
+                <DataColumn name="fullWeight">
+                    <Property name="property">fullWeight</Property>
+                    <Property name="caption">姣涢噸</Property>
+                    <Property name="align">center</Property>
+                    <Property name="width">100</Property>
+                </DataColumn>
+                <DataColumn name="emptyWeight">
+                    <Property name="property">emptyWeight</Property>
+                    <Property name="caption">鐨噸</Property>
+                    <Property name="align">center</Property>
+                    <Property name="width">100</Property>
+                </DataColumn>
+                <DataColumn name="netWeight">
+                    <Property name="property">netWeight</Property>
+                    <Property name="align">center</Property>
+                    <Property name="caption">鍑�閲�</Property>
+                    <Property name="width">100</Property>
+                </DataColumn>
+                <DataColumn id="columnDeSum">
+                    <Property name="property">deSum</Property>
+                    <Property name="width">100</Property>
+                    <Property name="caption">鎬绘墸閲�</Property>
+                    <Property name="align">center</Property>
+                    <Property name="name">deSum</Property>
+                </DataColumn>
+                <DataColumn name="settleWeight">
+                    <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
+                        arg.processDefault = true;
+                    </ClientEvent>
+                    <Property name="property">settleWeight</Property>
+                    <Property name="align">center</Property>
+                    <Property name="width">100</Property>
+                </DataColumn>
+                <DataColumn>
+                    <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
+                        arg.processDefault = true;
+                    </ClientEvent>
+                    <Property name="property">recordWeight</Property>
+                    <Property name="align">center</Property>
+                    <Property name="width">100</Property>
+                    <Property name="visible">true</Property>
+                    <Property name="name">recordWeight</Property>
+                </DataColumn>
+                <DataColumn name="progress">
+                    <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
+                        arg.processDefault = true;
+                    </ClientEvent>
+                    <Property name="property">progress</Property>
+                    <Property name="align">center</Property>
+                    <Property name="width">100</Property>
+                </DataColumn>
+                <DataColumn name="recordStatus">
+                    <Property name="property">recordStatus</Property>
+                    <Property name="align">center</Property>
+                    <Property name="width">100</Property>
+                    <Property name="visible">false</Property>
+                </DataColumn>
+                <DataColumn name="completeTime">
+                    <Property name="property">completeTime</Property>
+                    <Property name="align">center</Property>
+                    <Property name="width">150</Property>
+                </DataColumn>
+            </DataGrid>
         </Container>
-        <DataGrid>
-          <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsFoodOrigin.data:#&quot;);&#xD;
-if(data){&#xD;
-	view.get(&quot;#ddFoodOrigin&quot;).close(data.toJSON());&#xD;
-}</ClientEvent>
-          <Property name="dataSet">dsFoodOrigin</Property>
-          <Property name="readOnly">true</Property>
-          <DataColumn name="code">
-            <Property name="property">code</Property>
-            <Property name="readOnly">true</Property>
-            <Property name="align">center</Property>
-          </DataColumn>
-          <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="simple">
-            <Property name="property">simple</Property>
-            <Property name="readOnly">true</Property>
-            <Property name="align">center</Property>
-          </DataColumn>
-        </DataGrid>
-        <DataPilot layoutConstraint="bottom">
-          <Property name="dataSet">dsFoodOrigin</Property>
-        </DataPilot>
-      </Container>
-    </CustomDropDown>
-    <CustomDropDown id="ddNotice">
-      <Property name="minHeight">400</Property>
-      <Property name="assignmentMap">noticeId=id,customerId=customerId,customerName=customerName</Property>
-      <Property name="minWidth">500</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="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="caption">纭畾</Property>
-          </Button>
+        <Container layoutConstraint="bottom">
+            <Property name="exClassName">bg-color</Property>
+            <DataPilot layoutConstraint="right">
+                <Property name="itemCodes">pageSize,pages</Property>
+                <Property name="dataSet">dsMain</Property>
+            </DataPilot>
         </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>
-            <Property name="property">customerName</Property>
-            <Property name="align">center</Property>
-            <Property name="name">customerName</Property>
-          </DataColumn>
-          <DataColumn name="name">
-            <Property name="property">name</Property>
-          </DataColumn>
-        </DataGrid>
-      </Container>
-    </CustomDropDown>
-    <YearDropDown id="yearDropDown"/>
-    <Dialog id="dialogSelfPrint">
-      <Property name="height">300</Property>
-      <Property name="width">600</Property>
-      <Property name="caption">鑷畾涔夋墦鍗�</Property>
-      <Buttons>
-        <Button>
-          <ClientEvent name="onClick">var html = view.get(&quot;#textAreaPrint.text&quot;);&#xD;
-&#xD;
-self.get(&quot;parent&quot;).hide();&#xD;
-printBill(html);</ClientEvent>
-          <Property name="caption">纭畾</Property>
-        </Button>
-        <Button>
-          <ClientEvent name="onClick">self.get(&quot;parent&quot;).hide();&#xD;
-</ClientEvent>
-          <Property name="caption">鍙栨秷</Property>
-        </Button>
-      </Buttons>
-      <Children>
-        <TextArea id="textAreaPrint"/>
-      </Children>
-      <Tools/>
-    </Dialog>
-    <Menu id="menuEdit">
-      <MenuItem>
-        <ClientEvent name="onClick">var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-if (!data) {&#xD;
-	$alert(&quot;璇峰厛閫夋嫨鏁版嵁锛�&quot;);&#xD;
-	return;&#xD;
-}&#xD;
-&#xD;
-var transType = data.get(&quot;transType&quot;);&#xD;
-if(transType == &quot;3&quot;){&#xD;
-	printShipWeight();&#xD;
-}else{&#xD;
-	printWeight();&#xD;
-}</ClientEvent>
-        <Property name="caption">鎵撳嵃杩囩鍗�</Property>
-        <Property name="iconClass">fa fa-print</Property>
-      </MenuItem>
-      <MenuItem>
-        <ClientEvent name="onClick">printCheck();</ClientEvent>
-        <Property name="caption">鎵撳嵃妫�楠屽崟</Property>
-        <Property name="iconClass">fa fa-print</Property>
-      </MenuItem>
-      <MenuItem>
-        <ClientEvent name="onClick">printPay();</ClientEvent>
-        <Property name="caption">鎵撳嵃缁撶畻鍗�</Property>
-        <Property name="iconClass">fa fa-print</Property>
-        <Property name="disabled">true</Property>
-      </MenuItem>
-      <Separator/>
-      <MenuItem>
-        <ClientEvent name="onClick">printBatchWeight();</ClientEvent>
-        <Property name="caption">鎵归噺杩囩鍗�</Property>
-        <Property name="iconClass">fa fa-print</Property>
-      </MenuItem>
-      <MenuItem>
-        <ClientEvent name="onClick">printBatchCheck();</ClientEvent>
-        <Property name="caption">鎵归噺鍖栭獙鍗�</Property>
-        <Property name="iconClass">fa fa-print</Property>
-      </MenuItem>
-      <MenuItem>
-        <ClientEvent name="onClick">view.get(&quot;#dialogSelfPrint&quot;).show();</ClientEvent>
-        <Property name="caption">鑷畾涔夋墦鍗�</Property>
-        <Property name="iconClass">fa fa-print</Property>
-      </MenuItem>
-    </Menu>
-  </View>
+        <Dialog id="dialogMain">
+            <Property name="closeable">false</Property>
+            <Property name="caption">琛ㄥ崟淇℃伅</Property>
+            <Property name="width">1200</Property>
+            <Property name="iconClass">fa fa-tasks</Property>
+            <Property name="showCaptionBar">false</Property>
+            <Buttons>
+                <Button id="btnOK">
+                    <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
+                        if(data.validate() != 'ok'){&#xD;
+                        $notify(&quot;鏁版嵁鏍¢獙澶辫触锛侊紒&quot;);&#xD;
+                        return;&#xD;
+                        }&#xD;
+                        view.get(&quot;#uaSave&quot;).execute(function(result){&#xD;
+                        if(result){&#xD;
+                        $alert(result);&#xD;
+                        return;&#xD;
+                        }&#xD;
+                        $notify(&quot;鏁版嵁鎵ц瀹屾垚锛侊紒&quot;);&#xD;
+                        self.get(&quot;parent&quot;).hide();&#xD;
+                        });
+                    </ClientEvent>
+                    <Property name="caption">纭畾淇濆瓨</Property>
+                    <Property name="iconClass">fa fa-check</Property>
+                    <Property name="exClassName">btn-normal</Property>
+                </Button>
+                <Button id="btnComplete" layoutConstraint="left">
+                    <ClientEvent name="onClick">completeExe();</ClientEvent>
+                    <Property name="caption">缁撴潫娴佺▼</Property>
+                    <Property name="exClassName">btn-default</Property>
+                    <Property name="iconClass">fa fa-gavel</Property>
+                    <Property name="hideMode">display</Property>
+                    <Property name="visible">false</Property>
+                </Button>
+                <Button id="btnAddCheck">
+                    <ClientEvent name="onClick">var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
+                        var list = data.get(&quot;checkItems&quot;);&#xD;
+                        &#xD;
+                        list.insert({});&#xD;
+                        console.log(list);&#xD;
+                    </ClientEvent>
+                    <Property name="caption">鏂板鍖栭獙椤�</Property>
+                    <Property name="iconClass">fa fa-plus</Property>
+                    <Property name="hideMode">display</Property>
+                    <Property name="visible">true</Property>
+                </Button>
+                <Button>
+                    <ClientEvent name="onClick">cancelMain();</ClientEvent>
+                    <Property name="caption">鍙栨秷鎿嶄綔</Property>
+                    <Property name="iconClass">fa fa-times</Property>
+                </Button>
+            </Buttons>
+            <Children>
+                <TabControl>
+                    <ClientEvent name="onTabChange">if(arg.newTab.get(&quot;name&quot;) == &quot;tabCheck&quot;){&#xD;
+                        view.get(&quot;#btnAddCheck&quot;).set(&quot;visible&quot;,true);&#xD;
+                        }else{&#xD;
+                        view.get(&quot;#btnAddCheck&quot;).set(&quot;visible&quot;,false);&#xD;
+                        }
+                    </ClientEvent>
+                    <ControlTab>
+                        <Property name="caption">鍩虹淇℃伅</Property>
+                        <Property name="iconClass">fa fa-download</Property>
+                        <Property name="width">150</Property>
+                        <Property name="name">tabCommon</Property>
+                        <Container>
+                            <FieldSet layout="regionPadding:5" layoutConstraint="padding:10">
+                                <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">plateNum</Property>
+                                            <Property name="property">plateNum</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">userContact</Property>
+                                            <Property name="property">userContact</Property>
+                                            <Property name="label">鑱旂郴鐢佃瘽</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>
+                                            <Property name="name">transType</Property>
+                                            <Property name="property">transType</Property>
+                                            <Editor>
+                                                <RadioGroup>
+                                                    <RadioButton>
+                                                        <Property name="text">姹借溅</Property>
+                                                        <Property name="value">1</Property>
+                                                    </RadioButton>
+                                                    <RadioButton>
+                                                        <Property name="text">鐏溅</Property>
+                                                        <Property name="value">2</Property>
+                                                    </RadioButton>
+                                                    <RadioButton>
+                                                        <Property name="text">杞埞</Property>
+                                                        <Property name="value">3</Property>
+                                                    </RadioButton>
+                                                    <RadioButton>
+                                                        <Property name="text">鍏朵粬</Property>
+                                                        <Property name="value">4</Property>
+                                                    </RadioButton>
+                                                </RadioGroup>
+                                            </Editor>
+                                        </AutoFormElement>
+                                        <AutoFormElement>
+                                            <Property name="name">depotId</Property>
+                                            <Property name="property">depotId</Property>
+                                            <Property name="label">瑁呭嵏浠撳簱</Property>
+                                            <Editor/>
+                                        </AutoFormElement>
+                                        <AutoFormElement>
+                                            <Property name="name">foodVariety</Property>
+                                            <Property name="property">foodVariety</Property>
+                                            <Editor/>
+                                        </AutoFormElement>
+                                        <AutoFormElement>
+                                            <Property name="name">specType</Property>
+                                            <Property name="property">specType</Property>
+                                            <Editor>
+                                                <RadioGroup>
+                                                    <RadioButton>
+                                                        <Property name="text">鏁g伯</Property>
+                                                        <Property name="value">鏁g伯</Property>
+                                                    </RadioButton>
+                                                    <RadioButton>
+                                                        <Property name="text">25kg</Property>
+                                                        <Property name="value">25kg</Property>
+                                                    </RadioButton>
+                                                    <RadioButton>
+                                                        <Property name="text">50kg</Property>
+                                                        <Property name="value">50kg</Property>
+                                                    </RadioButton>
+                                                </RadioGroup>
+                                            </Editor>
+                                        </AutoFormElement>
+                                        <AutoFormElement>
+                                            <Property name="name">foodLevel</Property>
+                                            <Property name="property">foodLevel</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">registerTime</Property>
+                                            <Property name="property">registerTime</Property>
+                                            <Editor/>
+                                        </AutoFormElement>
+                                        <AutoFormElement>
+                                            <Property name="name">foodLocation</Property>
+                                            <Property name="property">foodLocation</Property>
+                                            <Property name="trigger">ddFoodOrigin</Property>
+                                            <Editor/>
+                                        </AutoFormElement>
+                                    </AutoForm>
+                                </Children>
+                            </FieldSet>
+                            <FieldSet layout="regionPadding:5" layoutConstraint="padding:10">
+                                <Property name="caption">绉伴噸淇℃伅锛堝崟浣嶏細KG锛�</Property>
+                                <Buttons/>
+                                <Children>
+                                    <AutoForm>
+                                        <Property name="dataSet">dsMain</Property>
+                                        <Property name="cols">*,*,*,*,*,*</Property>
+                                        <Property name="labelAlign">right</Property>
+                                        <Property name="labelWidth">100</Property>
+                                        <Property name="labelSeparator">锛�</Property>
+                                        <AutoFormElement layoutConstraint="colSpan:2">
+                                            <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
+                                                var id = self.getDom().id;&#xD;
+                                                var prop = id.substring(2,id.length);&#xD;
+                                                deAutoByWeight(prop);
+                                            </ClientEvent>
+                                            <Property name="name">emptyWeight</Property>
+                                            <Property name="property">emptyWeight</Property>
+                                            <Editor/>
+                                        </AutoFormElement>
+                                        <AutoFormElement layoutConstraint="colSpan:2">
+                                            <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
+                                                var id = self.getDom().id;&#xD;
+                                                var prop = id.substring(2,id.length);&#xD;
+                                                deAutoByWeight(prop);&#xD;
+                                            </ClientEvent>
+                                            <Property name="name">fullWeight</Property>
+                                            <Property name="property">fullWeight</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>
+                                            <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
+                                                var id = self.getDom().id;&#xD;
+                                                var prop = id.substring(2,id.length);&#xD;
+                                                deAutoByWeight(prop);
+                                            </ClientEvent>
+                                            <Property name="name">deImpurity</Property>
+                                            <Property name="property">deImpurity</Property>
+                                            <Property name="showHint">false</Property>
+                                            <Editor/>
+                                        </AutoFormElement>
+                                        <AutoFormElement>
+                                            <Property name="name">impurity</Property>
+                                            <Property name="property">impurity</Property>
+                                            <Property name="showLabel">false</Property>
+                                            <Editor>
+                                                <TextEditor>
+                                                    <Property name="blankText">-- % --</Property>
+                                                </TextEditor>
+                                            </Editor>
+                                        </AutoFormElement>
+                                        <AutoFormElement id="deWet">
+                                            <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
+                                                var id = self.getDom().id;&#xD;
+                                                var prop = id.substring(2,id.length);&#xD;
+                                                deAutoByWeight(prop);
+                                            </ClientEvent>
+                                            <Property name="name">deWet</Property>
+                                            <Property name="property">deWet</Property>
+                                            <Property name="showHint">false</Property>
+                                            <Editor/>
+                                        </AutoFormElement>
+                                        <AutoFormElement>
+                                            <Property name="name">wet</Property>
+                                            <Property name="property">wet</Property>
+                                            <Property name="showLabel">false</Property>
+                                            <Editor>
+                                                <TextEditor>
+                                                    <Property name="blankText">-- % --</Property>
+                                                </TextEditor>
+                                            </Editor>
+                                        </AutoFormElement>
+                                        <AutoFormElement layoutConstraint="colSpan:2">
+                                            <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
+                                                var id = self.getDom().id;&#xD;
+                                                var prop = id.substring(2,id.length);&#xD;
+                                                deAutoByWeight(prop);
+                                            </ClientEvent>
+                                            <Property name="name">deHandle</Property>
+                                            <Property name="property">deHandle</Property>
+                                            <Editor/>
+                                        </AutoFormElement>
+                                        <AutoFormElement layoutConstraint="colSpan:2">
+                                            <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
+                                                var id = self.getDom().id;&#xD;
+                                                var prop = id.substring(2,id.length);&#xD;
+                                                deAutoByWeight(prop);
+                                            </ClientEvent>
+                                            <Property name="name">deOther</Property>
+                                            <Property name="property">deOther</Property>
+                                            <Editor/>
+                                        </AutoFormElement>
+                                        <AutoFormElement layoutConstraint="colSpan:2">
+                                            <Property name="name">deSum</Property>
+                                            <Property name="property">deSum</Property>
+                                            <Property name="readOnly">true</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">fullWeightTime</Property>
+                                            <Property name="property">fullWeightTime</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">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>
+                                        <Label layoutConstraint="colSpan:4">
+                                            <Property name="style">
+                                                <Property name="color">blue</Property>
+                                                <Property name="padding-left">80px</Property>
+                                            </Property>
+                                            <Property name="text">璇存槑锛氱粨绠楅噸閲�=鍑�閲�-鎵i噸+澧為噸锛涘叆搴撻噸閲�=鍑�閲�-鎵i噸锛涙墸姘存潅锛氭鏁�=鎵i噸锛岃礋鏁�=澧為噸</Property>
+                                        </Label>
+                                    </AutoForm>
+                                </Children>
+                            </FieldSet>
+                            <FieldSet layout="regionPadding:5" layoutConstraint="padding:10">
+                                <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 layoutConstraint="colSpan:2">
+                                            <Property name="name">remarks</Property>
+                                            <Property name="property">remarks</Property>
+                                            <Property name="editorType">TextArea</Property>
+                                            <Property name="showLabel">false</Property>
+                                            <Editor/>
+                                        </AutoFormElement>
+                                    </AutoForm>
+                                </Children>
+                            </FieldSet>
+                        </Container>
+                    </ControlTab>
+                    <ControlTab id="tabCheck">
+                        <Property name="caption">鎵︽牱鍖栭獙</Property>
+                        <Property name="iconClass">fa fa-gavel</Property>
+                        <Property name="width">150</Property>
+                        <Property name="name">tabCheck</Property>
+                        <Container layout="padding:10">
+                            <AutoForm>
+                                <Property name="dataSet">dsMain</Property>
+                                <Property name="cols">*,*,*,*</Property>
+                                <Property name="labelAlign">right</Property>
+                                <Property name="labelWidth">100</Property>
+                                <Property name="labelSeparator">锛�</Property>
+                                <AutoFormElement>
+                                    <Property name="name">depotId</Property>
+                                    <Property name="property">depotId</Property>
+                                    <Editor/>
+                                </AutoFormElement>
+                                <AutoFormElement>
+                                    <Property name="name">foodVariety</Property>
+                                    <Property name="property">foodVariety</Property>
+                                    <Editor/>
+                                </AutoFormElement>
+                                <AutoFormElement>
+                                    <Property name="name">foodLevel</Property>
+                                    <Property name="property">foodLevel</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">checkUser</Property>
+                                    <Property name="property">checkUser</Property>
+                                    <Editor/>
+                                </AutoFormElement>
+                                <AutoFormElement>
+                                    <Property name="name">price</Property>
+                                    <Property name="property">price</Property>
+                                    <Editor/>
+                                </AutoFormElement>
+                                <AutoFormElement>
+                                    <Property name="name">checkStatus</Property>
+                                    <Property name="property">checkStatus</Property>
+                                    <Property name="label">鍖栭獙缁撴灉</Property>
+                                    <Editor/>
+                                </AutoFormElement>
+                            </AutoForm>
+                            <DataGrid id="dataGridCheckItem" layoutConstraint="padding:10">
+                                <ClientEvent name="onCellValueEdit">//瀹炵幇鍖栭獙椤圭洰璋冩暣锛屾洿鏂颁富琛ㄤ腑鍊�&#xD;
+                                    var entity = arg.entity;&#xD;
+                                    var inoutData = view.get(&quot;#dsMain.data:#&quot;);&#xD;
+                                    &#xD;
+                                    if(entity.get(&quot;standardId&quot;) ==&quot;C01&quot;){//姘村垎&#xD;
+                                    inoutData.set(&quot;wet&quot;,entity.get(&quot;value&quot;));&#xD;
+                                    }&#xD;
+                                    &#xD;
+                                    if(entity.get(&quot;standardId&quot;) ==&quot;C02&quot;){//闆滃織&#xD;
+                                    inoutData.set(&quot;impurity&quot;,entity.get(&quot;value&quot;));&#xD;
+                                    }
+                                </ClientEvent>
+                                <Property name="dataSet">dsMain</Property>
+                                <Property name="dataPath">#.checkItems</Property>
+                                <Property name="highlightCurrentRow">false</Property>
+                                <Property name="visible">true</Property>
+                                <Property name="hideMode">display</Property>
+                                <RowNumColumn/>
+                                <DataColumn name="standardName">
+                                    <Property name="property">standardName</Property>
+                                    <Property name="align">center</Property>
+                                    <Property name="readOnly">true</Property>
+                                </DataColumn>
+                                <DataColumn name="value">
+                                    <Property name="property">value</Property>
+                                    <Property name="align">center</Property>
+                                    <Property name="caption">妫�娴嬪�硷紙鍙紪杈戯級</Property>
+                                    <Editor/>
+                                </DataColumn>
+                                <DataColumn name="unit">
+                                    <Property name="property">unit</Property>
+                                    <Property name="width">80</Property>
+                                    <Property name="readOnly">true</Property>
+                                </DataColumn>
+                                <DataColumn name="standardValue">
+                                    <Property name="property">standardValue</Property>
+                                    <Property name="readOnly">true</Property>
+                                    <Property name="align">center</Property>
+                                </DataColumn>
+                                <DataColumn name="remarks">
+                                    <Property name="property">remarks</Property>
+                                </DataColumn>
+                            </DataGrid>
+                        </Container>
+                    </ControlTab>
+                </TabControl>
+            </Children>
+            <Tools/>
+        </Dialog>
+        <Dialog id="dialogImg">
+            <Property name="width">1000</Property>
+            <Property name="height">95%</Property>
+            <Property name="iconClass">fa fa-tasks</Property>
+            <Property name="caption">娴佺▼杩芥函灞曠ず</Property>
+            <Buttons/>
+            <Children>
+                <IFrame id="iFrameImg">
+                    <Property name="width">100%</Property>
+                </IFrame>
+            </Children>
+            <Tools/>
+        </Dialog>
+        <Dialog id="dialogAbnormal" layout="regionPadding:5">
+            <Property name="width">450</Property>
+            <Property name="iconClass">fa fa-tasks</Property>
+            <Property name="caption">寮傚父鎿嶄綔鍘熷洜</Property>
+            <Property name="closeable">false</Property>
+            <Buttons>
+                <Button>
+                    <ClientEvent name="onClick">del();</ClientEvent>
+                    <Property name="caption">纭畾鍒犻櫎</Property>
+                    <Property name="iconClass">fa fa-check</Property>
+                    <Property name="exClassName">btn-warn</Property>
+                </Button>
+                <Button>
+                    <ClientEvent name="onClick">todoError();</ClientEvent>
+                    <Property name="caption">寮傚父缁堟</Property>
+                    <Property name="iconClass">fa fa-check</Property>
+                    <Property name="exClassName">btn-warn</Property>
+                    <Property name="hideMode">visibility</Property>
+                </Button>
+                <Button>
+                    <ClientEvent name="onClick">self.get(&quot;parent&quot;).close();</ClientEvent>
+                    <Property name="caption">鍙栨秷鎿嶄綔</Property>
+                    <Property name="iconClass">fa fa-times</Property>
+                </Button>
+            </Buttons>
+            <Children>
+                <TextArea id="textAbnormal">
+                    <Property name="height">165</Property>
+                </TextArea>
+                <AutoForm>
+                    <Property name="cols">*</Property>
+                    <Label layoutConstraint="colSpan:1">
+                        <Property name="style">
+                            <Property name="color">blue</Property>
+                        </Property>
+                        <Property name="text">寮傚父缁堟锛氫笟鍔℃暟鎹祦绋嬬粨鏉燂紝閲嶉噺淇℃伅涓嶈繘琛岀粺璁¤绠椼��</Property>
+                    </Label>
+                    <Label layoutConstraint="colSpan:1">
+                        <Property name="style">
+                            <Property name="color">blue</Property>
+                        </Property>
+                        <Property name="text">鍒犻櫎鎿嶄綔锛氫笟鍔℃暟鎹鍒犻櫎涓斾笉缁熻锛屽彧淇濈暀鏃ュ織璁板綍銆�</Property>
+                    </Label>
+                </AutoForm>
+            </Children>
+            <Tools/>
+        </Dialog>
+        <UpdateAction id="uaSave">
+            <Property name="dataResolver">inoutDataPR#saveInoutData</Property>
+            <UpdateItem>
+                <Property name="dataSet">dsMain</Property>
+                <Property name="dataPath">[#current]</Property>
+                <Property name="validateData">false</Property>
+            </UpdateItem>
+        </UpdateAction>
+        <UpdateAction id="ajaxDel">
+            <Property name="dataResolver">inoutDataPR#delInoutData</Property>
+            <Property name="confirmMessage">纭畾瑕佹墽琛屽垹闄や箞锛�</Property>
+            <UpdateItem>
+                <Property name="dataSet">dsMain</Property>
+                <Property name="dataPath">[#current]</Property>
+                <Property name="validateData">false</Property>
+            </UpdateItem>
+        </UpdateAction>
+        <UpdateAction id="ajaxError">
+            <Property name="dataResolver">inoutDataPR#errorInoutData</Property>
+            <UpdateItem>
+                <Property name="dataSet">dsMain</Property>
+                <Property name="dataPath">[#current]</Property>
+                <Property name="validateData">false</Property>
+            </UpdateItem>
+        </UpdateAction>
+        <UpdateAction id="ajaxComplete">
+            <Property name="dataResolver">inoutDataPR#completeInoutData</Property>
+            <Property name="confirmMessage">纭畾瑕佺粨鏉熸祦绋嬩箞锛�</Property>
+            <UpdateItem>
+                <Property name="dataSet">dsMain</Property>
+                <Property name="dataPath">[#current]</Property>
+            </UpdateItem>
+        </UpdateAction>
+        <AjaxAction id="ajaxPrint">
+            <Property name="service">inoutDataPR#printWeightBill</Property>
+            <Property name="executingMessage">姝e湪鎵ц鎵撳嵃鈥︹��</Property>
+            <Property name="async">false</Property>
+        </AjaxAction>
+        <AjaxAction id="ajaxShipPrint">
+            <Property name="service">inoutDataPR#printShipBill</Property>
+            <Property name="executingMessage">姝e湪鎵ц鎵撳嵃鈥︹��</Property>
+            <Property name="async">false</Property>
+        </AjaxAction>
+        <AjaxAction id="ajaxPrintCheck">
+            <Property name="service">inoutDataPR#printCheckBill</Property>
+            <Property name="executingMessage">姝e湪鎵ц鎵撳嵃鈥︹��</Property>
+            <Property name="async">false</Property>
+        </AjaxAction>
+        <AjaxAction id="ajaxInitAdd">
+            <Property name="service">inoutDataPR#initAddData</Property>
+        </AjaxAction>
+        <AjaxAction id="ajaxGetDepot">
+            <Property name="service">depotPR#getDepot</Property>
+        </AjaxAction>
+        <AjaxAction id="ajaxGetCheck">
+            <Property name="service">checkStandardPR#listCheckItemsByFoodVariety</Property>
+        </AjaxAction>
+        <Export2ReportAction id="exportExcel">
+            <Property name="extension">xls</Property>
+            <Property name="template">dataGridMain</Property>
+            <Property name="maxSize">3000</Property>
+            <Property name="fileName">鍗曟嵁鍒楄〃</Property>
+            <Property name="showTitle">true</Property>
+            <Property name="titleName">鍗曟嵁鍒楄〃</Property>
+            <Property name="dataScope">currentPage</Property>
+        </Export2ReportAction>
+        <CustomDropDown id="ddFoodOrigin">
+            <Property name="minHeight">500</Property>
+            <Property name="assignmentMap">foodLocation=name</Property>
+            <Property name="minWidth">500</Property>
+            <Container layout="regionPadding:5">
+                <DataSet id="dsFoodOrigin">
+                    <Property name="dataProvider"></Property>
+                    <Property name="dataType">[dtFoodOrigin]</Property>
+                    <Property name="parameter"></Property>
+                    <Property name="pageSize">30</Property>
+                </DataSet>
+                <Container layout="hbox regionPadding:5">
+                    <TextEditor id="key2">
+                        <Property name="blankText">-- 缂栫爜鎴栬�呭悕绉� --</Property>
+                        <Property name="width">200</Property>
+                    </TextEditor>
+                    <Button>
+                        <ClientEvent name="onClick">var key = view.get(&quot;#key2.value&quot;);&#xD;
+                            view.get(&quot;#dsFoodOrigin&quot;).set(&quot;parameter&quot;,{key:key}).flushAsync();
+                        </ClientEvent>
+                        <Property name="caption">鏌ヨ</Property>
+                        <Property name="iconClass">fa fa-search</Property>
+                    </Button>
+                    <Button>
+                        <ClientEvent name="onClick">var data = view.get(&quot;#dsFoodOrigin.data:#&quot;);&#xD;
+                            if(data){&#xD;
+                            view.get(&quot;#ddFoodOrigin&quot;).close(data.toJSON());&#xD;
+                            }
+                        </ClientEvent>
+                        <Property name="iconClass">fa fa-check</Property>
+                        <Property name="caption">纭畾</Property>
+                    </Button>
+                </Container>
+                <DataGrid>
+                    <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsFoodOrigin.data:#&quot;);&#xD;
+                        if(data){&#xD;
+                        view.get(&quot;#ddFoodOrigin&quot;).close(data.toJSON());&#xD;
+                        }
+                    </ClientEvent>
+                    <Property name="dataSet">dsFoodOrigin</Property>
+                    <Property name="readOnly">true</Property>
+                    <DataColumn name="code">
+                        <Property name="property">code</Property>
+                        <Property name="readOnly">true</Property>
+                        <Property name="align">center</Property>
+                    </DataColumn>
+                    <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="simple">
+                        <Property name="property">simple</Property>
+                        <Property name="readOnly">true</Property>
+                        <Property name="align">center</Property>
+                    </DataColumn>
+                </DataGrid>
+                <DataPilot layoutConstraint="bottom">
+                    <Property name="dataSet">dsFoodOrigin</Property>
+                </DataPilot>
+            </Container>
+        </CustomDropDown>
+        <CustomDropDown id="ddNotice">
+            <Property name="minHeight">400</Property>
+            <Property name="assignmentMap">noticeId=id,customerId=customerId,customerName=customerName</Property>
+            <Property name="minWidth">500</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="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="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>
+                        <Property name="property">customerName</Property>
+                        <Property name="align">center</Property>
+                        <Property name="name">customerName</Property>
+                    </DataColumn>
+                    <DataColumn name="name">
+                        <Property name="property">name</Property>
+                    </DataColumn>
+                </DataGrid>
+            </Container>
+        </CustomDropDown>
+        <YearDropDown id="yearDropDown"/>
+        <Dialog id="dialogSelfPrint">
+            <Property name="height">300</Property>
+            <Property name="width">600</Property>
+            <Property name="caption">鑷畾涔夋墦鍗�</Property>
+            <Buttons>
+                <Button>
+                    <ClientEvent name="onClick">var html = view.get(&quot;#textAreaPrint.text&quot;);&#xD;
+                        &#xD;
+                        self.get(&quot;parent&quot;).hide();&#xD;
+                        printBill(html);
+                    </ClientEvent>
+                    <Property name="caption">纭畾</Property>
+                </Button>
+                <Button>
+                    <ClientEvent name="onClick">self.get(&quot;parent&quot;).hide();&#xD;
+                    </ClientEvent>
+                    <Property name="caption">鍙栨秷</Property>
+                </Button>
+            </Buttons>
+            <Children>
+                <TextArea id="textAreaPrint"/>
+            </Children>
+            <Tools/>
+        </Dialog>
+        <Menu id="menuEdit">
+            <MenuItem>
+                <ClientEvent name="onClick">var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
+                    if (!data) {&#xD;
+                    $alert(&quot;璇峰厛閫夋嫨鏁版嵁锛�&quot;);&#xD;
+                    return;&#xD;
+                    }&#xD;
+                    &#xD;
+                    var transType = data.get(&quot;transType&quot;);&#xD;
+                    if(transType == &quot;3&quot;){&#xD;
+                    printShipWeight();&#xD;
+                    }else{&#xD;
+                    printWeight();&#xD;
+                    }
+                </ClientEvent>
+                <Property name="caption">鎵撳嵃杩囩鍗�</Property>
+                <Property name="iconClass">fa fa-print</Property>
+            </MenuItem>
+            <MenuItem>
+                <ClientEvent name="onClick">printCheck();</ClientEvent>
+                <Property name="caption">鎵撳嵃妫�楠屽崟</Property>
+                <Property name="iconClass">fa fa-print</Property>
+            </MenuItem>
+            <MenuItem>
+                <ClientEvent name="onClick">printPay();</ClientEvent>
+                <Property name="caption">鎵撳嵃缁撶畻鍗�</Property>
+                <Property name="iconClass">fa fa-print</Property>
+                <Property name="disabled">true</Property>
+            </MenuItem>
+            <Separator/>
+            <MenuItem>
+                <ClientEvent name="onClick">printBatchWeight();</ClientEvent>
+                <Property name="caption">鎵归噺杩囩鍗�</Property>
+                <Property name="iconClass">fa fa-print</Property>
+            </MenuItem>
+            <MenuItem>
+                <ClientEvent name="onClick">printBatchCheck();</ClientEvent>
+                <Property name="caption">鎵归噺鍖栭獙鍗�</Property>
+                <Property name="iconClass">fa fa-print</Property>
+            </MenuItem>
+            <MenuItem>
+                <ClientEvent name="onClick">view.get(&quot;#dialogSelfPrint&quot;).show();</ClientEvent>
+                <Property name="caption">鑷畾涔夋墦鍗�</Property>
+                <Property name="iconClass">fa fa-print</Property>
+            </MenuItem>
+        </Menu>
+    </View>
 </ViewConfig>

--
Gitblit v1.9.3