From 8728429603cdb25b5fc6245915dc829e78d81571 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期二, 31 十月 2023 21:33:53 +0800
Subject: [PATCH] 船运问题

---
 igds-inout/src/main/java/com/ld/igds/inout/view/InoutHand.view.xml |  830 ++++++++++++++++++++++++++++++++++-------------------------
 1 files changed, 478 insertions(+), 352 deletions(-)

diff --git a/igds-inout/src/main/java/com/ld/igds/inout/view/InoutHand.view.xml b/igds-inout/src/main/java/com/ld/igds/inout/view/InoutHand.view.xml
index 0292986..712285c 100644
--- a/igds-inout/src/main/java/com/ld/igds/inout/view/InoutHand.view.xml
+++ b/igds-inout/src/main/java/com/ld/igds/inout/view/InoutHand.view.xml
@@ -4,11 +4,7 @@
   <Context/>
   <Model>
     <DataType name="dtMain" parent="dtInoutRecord">
-      <ClientEvent name="onDataChange">if(arg.property ==&quot;depotId&quot;){&#xD;
-	autoByDepot(arg.newValue);&#xD;
-}&#xD;
-&#xD;
-if(arg.property ==&quot;foodVariety&quot;){&#xD;
+      <ClientEvent name="onDataChange">if(arg.property ==&quot;foodVariety&quot;){&#xD;
 	var entity = arg.entity;&#xD;
 	entity.reset(&quot;checkItems&quot;);&#xD;
 }</ClientEvent>
@@ -18,6 +14,7 @@
       </PropertyDef>
       <PropertyDef name="userId">
         <Property name="label">韬唤璇佸彿</Property>
+        <Property name="required">true</Property>
       </PropertyDef>
       <PropertyDef name="noticeId">
         <Property name="label">閫氱煡鍗曞彿</Property>
@@ -32,11 +29,16 @@
           <Entity>
             <Property name="checkId">$${this.checkId}</Property>
             <Property name="foodVariety">$${this.foodVariety}</Property>
-            <Property name="deptId">$${this.deptId}</Property>
+            <Property name="type">$${this.type}</Property>
           </Entity>
         </Property>
-        <Property name="dataProvider">checkStandardPR#listCheckItemsByCheckId</Property>
+        <Property name="dataProvider">checkStandardPR#listCheckItemsByParam</Property>
         <Property name="dataType">[dtCheckItems]</Property>
+      </Reference>
+      <Reference name="files">
+        <Property name="dataProvider">sys.fileManager#listFile</Property>
+        <Property name="dataType">[dtFileData]</Property>
+        <Property name="parameter">$${this.id}</Property>
       </Reference>
     </DataType>
     <DataType name="dtCheckItems">
@@ -112,23 +114,40 @@
         <Property></Property>
         <Property name="label">杩愮畻绗﹀彿</Property>
       </PropertyDef>
+      <PropertyDef name="operaSymbolValue">
+        <Property></Property>
+      </PropertyDef>
+      <PropertyDef name="addNum">
+        <Property name="dataType">Double</Property>
+        <Property name="label">澧為噸</Property>
+      </PropertyDef>
+      <PropertyDef name="deNum">
+        <Property name="dataType">Double</Property>
+        <Property name="label">鎵i噸</Property>
+      </PropertyDef>
+      <PropertyDef name="addPrice">
+        <Property name="dataType">Double</Property>
+        <Property name="label">澧炰环</Property>
+      </PropertyDef>
+      <PropertyDef name="dePrice">
+        <Property name="dataType">Double</Property>
+        <Property name="label">鎵d环</Property>
+      </PropertyDef>
+      <PropertyDef name="result">
+        <Property></Property>
+        <Property name="label">妫�楠岀粨鏋�</Property>
+        <Property name="mapping">
+          <Property name="keyProperty">code</Property>
+          <Property name="valueProperty">name</Property>
+          <Property name="mapValues">${dorado.getDataProvider(&quot;inoutDataPR#triggerResult&quot;).getResult()}</Property>
+        </Property>
+      </PropertyDef>
     </DataType>
   </Model>
   <View layout="padding:5;regionPadding:5">
     <ClientEvent name="onReady">var TYPE = &quot;${request.getParameter('type')}&quot;;&#xD;
 &#xD;
-//绫诲瀷鍒囨崲&#xD;
-if(&quot;OUT&quot; == TYPE){&#xD;
-	view.get(&quot;#columnDeSum&quot;).set(&quot;visible&quot;,false);&#xD;
-	//view.get(&quot;#label1&quot;).set(&quot;text&quot;,&quot;娉細鍑哄簱姘村垎澧為噸璁板叆缁撶畻閲嶉噺&quot;);&#xD;
-	&#xD;
-	view.get(&quot;#dataGridCheckItem&quot;).set(&quot;visible&quot;,false);&#xD;
-	&#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;
+var PROGRESS = &quot;WEIGHT_TAG&quot;;&#xD;
 &#xD;
 /**&#xD;
  * 鍒锋柊椤甸潰&#xD;
@@ -137,11 +156,8 @@
 	view.get(&quot;#btnSave&quot;).set(&quot;disabled&quot;,false);&#xD;
 	view.get(&quot;#btnPrintWeigh&quot;).set(&quot;disabled&quot;,true);&#xD;
 	view.get(&quot;#btnPrintCheck&quot;).set(&quot;disabled&quot;,true);&#xD;
-	&#xD;
 	view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,TYPE).flushAsync();&#xD;
 };&#xD;
-&#xD;
-&#xD;
 flush();&#xD;
 &#xD;
 /**&#xD;
@@ -158,7 +174,6 @@
 		$alert(&quot;鏁版嵁楠岃瘉澶辫触锛屻�愬熀纭�淇℃伅銆�-缁撶畻閲嶉噺蹇呴』澶т簬0锛�&quot;);&#xD;
 		return;&#xD;
 	}&#xD;
-	&#xD;
 	view.get(&quot;#uaSave&quot;).execute(function(result){&#xD;
 		if(result){&#xD;
 			$alert(&quot;淇濆瓨澶辫触锛�&quot;+result);&#xD;
@@ -167,193 +182,26 @@
 			view.get(&quot;#btnPrintWeigh&quot;).set(&quot;disabled&quot;,false);&#xD;
 			view.get(&quot;#btnPrintCheck&quot;).set(&quot;disabled&quot;,false);&#xD;
 			$alert(&quot;淇濆瓨鎴愬姛锛屽彲浠ヨ繘琛屾墦鍗板拰閲嶆柊鎻愭柊琛ㄥ崟锛�&quot;);&#xD;
+			flush();&#xD;
+&#xD;
 		}&#xD;
 	});&#xD;
 }&#xD;
 &#xD;
-/**&#xD;
- * 鎵撳嵃鍑哄簱杩囩鍗�&#xD;
- */&#xD;
-printBill = function(htmlStr) {&#xD;
-	var LODOP = CLODOP;&#xD;
-	LODOP.PRINT_INIT(&quot;绉伴噸鍗�&quot;);&#xD;
-	LODOP.SET_PRINT_PAGESIZE(1,2100,1400, &quot;A4&quot;);&#xD;
-	//LODOP.SET_PRINT_PAGESIZE(1, 0, '90mm', &quot;A4&quot;);&#xD;
-	LODOP.ADD_PRINT_HTM(0, 0, &quot;100%&quot;, &quot;100%&quot;, htmlStr);&#xD;
-	LODOP.PREVIEW();&#xD;
-};&#xD;
-&#xD;
-print5016Bill = function(htmlStr) {&#xD;
-	var LODOP = CLODOP;&#xD;
-	LODOP.PRINT_INIT(&quot;绉伴噸鍗�&quot;);&#xD;
-	LODOP.SET_PRINT_PAGESIZE(1, 1050, 1400, &quot;&quot;);&#xD;
-	LODOP.ADD_PRINT_HTM(0, 0, &quot;100%&quot;, &quot;100%&quot;, htmlStr);&#xD;
-	LODOP.PREVIEW();&#xD;
-};&#xD;
-&#xD;
-//鎵撳嵃鎵︽牱鍗�&#xD;
-printCheck = function(){&#xD;
-	$alert(&quot;鎵撳嵃妯$増鏈畾涔夆�︹��&quot;);&#xD;
-};&#xD;
-&#xD;
-//鎵撳嵃绉伴噸鍗�&#xD;
-printWeight = function(){&#xD;
-	var data = view.get(&quot;#dsMain.data&quot;);&#xD;
-	if(!data) return;&#xD;
-	var companyId = data.get(&quot;companyId&quot;);&#xD;
-	console.log(companyId);&#xD;
-	view.get(&quot;#ajaxPrint&quot;).set(&quot;parameter&quot;,data).execute(function(result){&#xD;
-		if(companyId &amp;&amp; companyId == &quot;5016&quot;){&#xD;
-			print5016Bill(result);&#xD;
-		}else {&#xD;
-			printBill(result);&#xD;
-		}&#xD;
-	});&#xD;
-};&#xD;
-&#xD;
-//鏍规嵁浠撳簱鑷姩鍥炲~绮鍝佺锛岀櫥璁帮紝浜у湴鏂�&#xD;
-autoByDepot = function(depotId){&#xD;
-	view.get(&quot;#ajaxGetDepot&quot;).set(&quot;parameter&quot;,depotId).execute(function(result){&#xD;
+//鍒犻櫎闄勪欢&#xD;
+delFile = function(){&#xD;
+	var entity = view.get(&quot;#dgFiles&quot;).getCurrentItem();&#xD;
+	view.get(&quot;#ajaxDelFile&quot;).set(&quot;parameter&quot;,{&#xD;
+		fileName:entity.get(&quot;fileName&quot;),&#xD;
+		createTime:entity.get(&quot;createTime&quot;)&#xD;
+	}).execute(function(result){&#xD;
 		if(result){&#xD;
-			//console.log(result);&#xD;
-			var data = view.get(&quot;#dsMain.data:#&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;
+			$alert(result);&#xD;
+		}else{&#xD;
+			entity.remove();&#xD;
+			$alert(&quot;鍒犻櫎鎴愬姛锛�&quot;);&#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;
-            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>
@@ -372,12 +220,12 @@
       <Button id="btnSave" layoutConstraint="left">
         <ClientEvent name="onClick">save();</ClientEvent>
         <Property name="caption">鏁版嵁鎻愪氦</Property>
-        <Property name="exClassName">btn-default</Property>
+        <Property name="exClassName">btn-normal</Property>
         <Property name="iconClass">fa fa-plus</Property>
       </Button>
       <Button id="btnPrintCheck" layoutConstraint="left">
         <ClientEvent name="onClick">printCheck();</ClientEvent>
-        <Property name="caption">鎵撳嵃鎶芥牱鍗�</Property>
+        <Property name="caption">鎵撳嵃璐ㄦ鍗�</Property>
         <Property name="exClassName">btn-default</Property>
         <Property name="iconClass">fa fa-print</Property>
         <Property name="tip">淇濆瓨鏁版嵁鍚庡彲鐢�</Property>
@@ -397,7 +245,7 @@
         <Property name="iconClass">fa fa-minus</Property>
       </Button>
     </Container>
-    <TabControl id="tabControlMain">
+    <TabControl id="tabControlMain" layoutConstraint="left ">
       <Property name="width">1300</Property>
       <ControlTab>
         <Property name="caption">鍩虹淇℃伅</Property>
@@ -405,7 +253,7 @@
         <Property name="width">150</Property>
         <Property name="name">tabCommon</Property>
         <Container>
-          <FieldSet layout="regionPadding:10" layoutConstraint="padding:10">
+          <FieldSet layout="regionPadding:5" layoutConstraint="padding:10">
             <Property name="caption">鍩烘湰淇℃伅</Property>
             <Buttons/>
             <Children>
@@ -434,6 +282,13 @@
                   <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>
@@ -472,12 +327,6 @@
                   <Editor/>
                 </AutoFormElement>
                 <AutoFormElement>
-                  <Property name="name">foodLocation</Property>
-                  <Property name="property">foodLocation</Property>
-                  <Property name="trigger">ddFoodOrigin</Property>
-                  <Editor/>
-                </AutoFormElement>
-                <AutoFormElement>
                   <Property name="name">foodLevel</Property>
                   <Property name="property">foodLevel</Property>
                   <Editor/>
@@ -489,28 +338,26 @@
                   <Editor/>
                 </AutoFormElement>
                 <AutoFormElement>
-                  <Property name="name">noticeName</Property>
-                  <Property name="property">noticeName</Property>
-                  <Property name="trigger">ddNotice</Property>
-                  <Property name="editable">false</Property>
-                  <Property name="label">鍏ュ簱閫氱煡鍗�</Property>
+                  <Property name="name">registerTime</Property>
+                  <Property name="property">registerTime</Property>
                   <Editor/>
                 </AutoFormElement>
                 <AutoFormElement>
-                  <Property name="name">registerTime</Property>
-                  <Property name="property">registerTime</Property>
+                  <Property name="name">foodLocation</Property>
+                  <Property name="property">foodLocation</Property>
+                  <Property name="trigger">ddDicArea</Property>
                   <Editor/>
                 </AutoFormElement>
               </AutoForm>
             </Children>
           </FieldSet>
-          <FieldSet layout="regionPadding:10" layoutConstraint="padding:10">
+          <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="cols">*,50,*,50,*,50</Property>
                 <Property name="labelAlign">right</Property>
                 <Property name="labelWidth">100</Property>
                 <Property name="labelSeparator">锛�</Property>
@@ -524,6 +371,17 @@
                   <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">fullWeightUser</Property>
+                  <Property name="property">fullWeightUser</Property>
+                  <Property name="label">绉伴噸浜�</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;
@@ -534,50 +392,14 @@
                   <Editor/>
                 </AutoFormElement>
                 <AutoFormElement layoutConstraint="colSpan:2">
-                  <Property name="name">netWeight</Property>
-                  <Property name="property">netWeight</Property>
-                  <Property name="readOnly">true</Property>
+                  <Property name="name">fullWeightTime</Property>
+                  <Property name="property">fullWeightTime</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>
+                <AutoFormElement layoutConstraint="colSpan:2">
+                  <Property name="name">completeTime</Property>
+                  <Property name="property">completeTime</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;
@@ -586,6 +408,7 @@
 deAutoByWeight(prop);</ClientEvent>
                   <Property name="name">deHandle</Property>
                   <Property name="property">deHandle</Property>
+                  <Property name="label">鐜板満鎵i噸</Property>
                   <Editor/>
                 </AutoFormElement>
                 <AutoFormElement layoutConstraint="colSpan:2">
@@ -598,8 +421,39 @@
                   <Editor/>
                 </AutoFormElement>
                 <AutoFormElement layoutConstraint="colSpan:2">
-                  <Property name="name">deSum</Property>
-                  <Property name="property">deSum</Property>
+                  <Property name="name">deOtherInfo</Property>
+                  <Property name="property">deOtherInfo</Property>
+                  <Property name="label">鍏朵粬鍘熷洜</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">deCheck</Property>
+                  <Property name="property">deCheck</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">addCheck</Property>
+                  <Property name="property">addCheck</Property>
+                  <Editor/>
+                </AutoFormElement>
+                <Label layoutConstraint="colSpan:2">
+                  <Property name="style">
+                    <Property name="color">blue</Property>
+                    <Property name="padding-left">80px</Property>
+                  </Property>
+                  <Property name="text">璇存槑锛氳川妫�澧炴墸閲嶈鏌ョ湅璐ㄦ淇℃伅鏍忎綅璇︾粏</Property>
+                </Label>
+                <AutoFormElement layoutConstraint="colSpan:2">
+                  <Property name="name">netWeight</Property>
+                  <Property name="property">netWeight</Property>
                   <Property name="readOnly">true</Property>
                   <Editor/>
                 </AutoFormElement>
@@ -610,45 +464,88 @@
                   <Editor/>
                 </AutoFormElement>
                 <AutoFormElement layoutConstraint="colSpan:2">
-                  <Property name="name">completeTime</Property>
-                  <Property name="property">completeTime</Property>
+                  <Property name="name">recordWeight</Property>
+                  <Property name="property">recordWeight</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>
-                <Label layoutConstraint="colSpan:6">
-                  <Property name="style">
-                    <Property name="color">blue</Property>
-                    <Property name="padding-left">80px</Property>
-                  </Property>
-                  <Property name="text">璇存槑锛氱粨绠楅噸閲� = 鍑�閲� - 鎵i噸 + 澧為噸锛涙墸姘存潅锛氭鏁�=鎵i噸锛岃礋鏁�=澧為噸</Property>
-                </Label>
               </AutoForm>
             </Children>
           </FieldSet>
-          <FieldSet layout="regionPadding:10" layoutConstraint="padding:10">
-            <Property name="caption">澶囨敞璇存槑</Property>
+          <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="cols">*,*,*</Property>
                 <Property name="labelAlign">right</Property>
                 <Property name="labelSeparator">锛�</Property>
                 <Property name="labelWidth">100</Property>
-                <AutoFormElement layoutConstraint="colSpan:2">
+                <AutoFormElement>
+                  <Property name="name">jjlx</Property>
+                  <Property name="property">jjlx</Property>
+                  <Editor>
+                    <RadioGroup>
+                      <RadioButton>
+                        <Property name="text">绉伴噸鍏ュ簱</Property>
+                        <Property name="value">0</Property>
+                      </RadioButton>
+                      <RadioButton>
+                        <Property name="value">1</Property>
+                        <Property name="text">鏍囧噯鍖呭叆搴�</Property>
+                      </RadioButton>
+                    </RadioGroup>
+                  </Editor>
+                </AutoFormElement>
+                <AutoFormElement>
+                  <Property name="name">bzw</Property>
+                  <Property name="property">bzw</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">鏁h</Property>
+                        <Property name="value">3</Property>
+                      </RadioButton>
+                      <RadioButton>
+                        <Property name="value">9</Property>
+                        <Property name="text">鍏朵粬</Property>
+                      </RadioButton>
+                    </RadioGroup>
+                  </Editor>
+                </AutoFormElement>
+                <AutoFormElement>
+                  <Property name="name">dbz</Property>
+                  <Property name="property">dbz</Property>
+                  <Editor/>
+                </AutoFormElement>
+                <AutoFormElement>
+                  <Property name="name">bzbjs</Property>
+                  <Property name="property">bzbjs</Property>
+                  <Editor/>
+                </AutoFormElement>
+                <AutoFormElement>
+                  <Property name="name">dePackage</Property>
+                  <Property name="property">dePackage</Property>
+                  <Editor/>
+                </AutoFormElement>
+                <AutoFormElement>
+                  <Property name="name">price</Property>
+                  <Property name="property">price</Property>
+                  <Editor/>
+                </AutoFormElement>
+                <AutoFormElement layoutConstraint="colSpan:3">
                   <Property name="name">remarks</Property>
                   <Property name="property">remarks</Property>
                   <Property name="editorType">TextArea</Property>
-                  <Property name="showLabel">false</Property>
                   <Editor/>
                 </AutoFormElement>
               </AutoForm>
@@ -657,14 +554,14 @@
         </Container>
       </ControlTab>
       <ControlTab id="tabCheck">
-        <Property name="caption">鎵︽牱鍖栭獙</Property>
+        <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="cols">*,*,*</Property>
             <Property name="labelAlign">right</Property>
             <Property name="labelWidth">100</Property>
             <Property name="labelSeparator">锛�</Property>
@@ -705,18 +602,64 @@
               <Property name="label">鍖栭獙缁撴灉</Property>
               <Editor/>
             </AutoFormElement>
+            <AutoFormElement>
+              <Property name="name">checkTime</Property>
+              <Property name="property">checkTime</Property>
+              <Property name="label">璐ㄦ鏃堕棿</Property>
+              <Editor/>
+            </AutoFormElement>
+            <AutoFormElement>
+              <Property name="name">sampleUser</Property>
+              <Property name="property">sampleUser</Property>
+              <Editor/>
+            </AutoFormElement>
+            <AutoFormElement>
+              <Property name="name">sampleTime</Property>
+              <Property name="property">sampleTime</Property>
+              <Editor/>
+            </AutoFormElement>
+            <AutoFormElement>
+              <Property name="name">sampleType</Property>
+              <Property name="property">sampleType</Property>
+              <Property name="editorType">RadioGroup</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 name="onCellValueEdit">var data = arg.entity&#xD;
+if (data) {&#xD;
+	//濉啓鐨勬暟鎹��;&#xD;
+	var newValue = data.get(&quot;value&quot;);&#xD;
+	//鏍囧噯鍊�;&#xD;
+	var limit = data.get(&quot;upperLimit&quot;);&#xD;
+	//杩愮畻绗�;&#xD;
+	var symbol = data.get(&quot;operaSymbol&quot;);&#xD;
+	if (symbol &amp;&amp; limit &amp;&amp; newValue) {&#xD;
+		if (&quot;>=&quot; == symbol) {&#xD;
+			if (newValue &lt; limit) {&#xD;
+				data.set(&quot;result&quot;, &quot;0&quot;);&#xD;
+			}&#xD;
+			else {&#xD;
+				data.set(&quot;result&quot;, &quot;1&quot;);&#xD;
+			}&#xD;
+		}&#xD;
+		if (&quot;&lt;=&quot; == symbol) {&#xD;
+			if (newValue > limit) {&#xD;
+				data.set(&quot;result&quot;, &quot;0&quot;);&#xD;
+			}&#xD;
+			else {&#xD;
+				data.set(&quot;result&quot;, &quot;1&quot;);&#xD;
+			}&#xD;
+		}&#xD;
+		if (&quot;==&quot; == symbol) {&#xD;
+			if (newValue != limit) {&#xD;
+				data.set(&quot;result&quot;, &quot;0&quot;);&#xD;
+			}&#xD;
+			else {&#xD;
+				data.set(&quot;result&quot;, &quot;1&quot;);&#xD;
+			}&#xD;
+		}&#xD;
+	}&#xD;
 }</ClientEvent>
             <Property name="dataSet">dsMain</Property>
             <Property name="dataPath">#.checkItems</Property>
@@ -739,66 +682,170 @@
               <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="operaSymbolValue">
+              <Property name="property">operaSymbolValue</Property>
+              <Property name="align">center</Property>
+              <Property name="caption">鏍囧噯鍊�</Property>
+              <Property name="readOnly">true</Property>
+            </DataColumn>
+            <DataColumn name="deNum">
+              <Property name="property">deNum</Property>
+              <Property name="align">center</Property>
+            </DataColumn>
+            <DataColumn name="addNum">
+              <Property name="property">addNum</Property>
+              <Property name="align">center</Property>
+            </DataColumn>
+            <DataColumn name="dePrice">
+              <Property name="property">dePrice</Property>
+              <Property name="align">center</Property>
+            </DataColumn>
+            <DataColumn name="addPrice">
+              <Property name="property">addPrice</Property>
+              <Property name="align">center</Property>
+            </DataColumn>
+            <DataColumn name="result">
+              <Property name="property">result</Property>
+              <Property name="align">center</Property>
+              <Property name="readOnly">true</Property>
             </DataColumn>
             <DataColumn name="remarks">
               <Property name="property">remarks</Property>
+              <Property name="align">center</Property>
             </DataColumn>
           </DataGrid>
         </Container>
       </ControlTab>
     </TabControl>
-    <CustomDropDown id="ddFoodOrigin">
+    <TabControl id="tabControlImage" layoutConstraint="left">
+      <Property name="width">370</Property>
+      <ControlTab id="tabImage">
+        <Property name="name">tabImage</Property>
+        <Property name="caption">鍑哄叆搴撹繃绋嬭褰�</Property>
+        <FieldSet layout="regionPadding:5" layoutConstraint="top padding:10">
+          <Buttons>
+            <Button layoutConstraint="left">
+              <ClientEvent name="onClick">view.PROGRESS = &quot;WEIGHT_EMPTY&quot;;&#xD;
+</ClientEvent>
+              <Property name="exClassName">btn-default</Property>
+              <Property name="iconClass">fa fa-cloud-upload</Property>
+              <Property name="action">uploadImg</Property>
+              <Property name="caption">绌鸿溅绉�</Property>
+            </Button>
+            <Button layoutConstraint="left">
+              <ClientEvent name="onClick">view.PROGRESS = &quot;WEIGHT_FULL&quot;;&#xD;
+</ClientEvent>
+              <Property name="exClassName">btn-default</Property>
+              <Property name="iconClass">fa fa-cloud-upload</Property>
+              <Property name="action">uploadImg1</Property>
+              <Property name="caption">婊¤溅绉�</Property>
+            </Button>
+            <Button layoutConstraint="left">
+              <ClientEvent name="onClick">view.PROGRESS = &quot;HANDLE&quot;;</ClientEvent>
+              <Property name="caption">鍊间粨</Property>
+              <Property name="exClassName">btn-default</Property>
+              <Property name="iconClass">fa fa-cloud-upload</Property>
+              <Property name="action">uploadImg2</Property>
+            </Button>
+          </Buttons>
+          <Children>
+            <DataGrid id="dgFiles">
+              <Property name="dataSet">dsMain</Property>
+              <Property name="readOnly">true</Property>
+              <Property name="selectionMode">singleRow</Property>
+              <Property name="dataPath">#.files</Property>
+              <RowNumColumn/>
+              <DataColumn name="bizTag">
+                <Property name="property">bizTag</Property>
+                <Property name="visible">false</Property>
+              </DataColumn>
+              <DataColumn name="fileName">
+                <Property name="property">fileName</Property>
+              </DataColumn>
+              <DataColumn>
+                <ClientEvent name="onRenderCell">arg.dom.innerHTML = &quot;&lt;a href='javascript:;' onClick='delFile()'>鍒犻櫎&lt;/a>&quot;;&#xD;
+</ClientEvent>
+                <Property name="property">fileId</Property>
+                <Property name="name">fileId</Property>
+                <Property name="align">center</Property>
+                <Property name="caption">鎿嶄綔</Property>
+                <Property name="readOnly">true</Property>
+                <Property name="width">80</Property>
+              </DataColumn>
+            </DataGrid>
+          </Children>
+        </FieldSet>
+      </ControlTab>
+    </TabControl>
+    <YearDropDown id="yearDropDown"/>
+    <UpdateAction id="uaSave">
+      <Property name="dataResolver">inoutDataPR#saveInoutData</Property>
+      <Property name="confirmMessage">纭畾瑕佹彁浜や箞锛�</Property>
+      <UpdateItem>
+        <Property name="dataSet">dsMain</Property>
+        <Property name="dataPath">[#current]</Property>
+        <Property name="validateData">false</Property>
+      </UpdateItem>
+    </UpdateAction>
+    <AjaxAction id="ajaxPrint">
+      <Property name="service">inoutDataPR#printWeightBill</Property>
+      <Property name="executingMessage">姝e湪鎵ц鎵撳嵃鈥︹��</Property>
+      <Property name="async">false</Property>
+    </AjaxAction>
+    <AjaxAction id="ajaxPrintCheckBill">
+      <Property name="async">false</Property>
+      <Property name="executingMessage">姝e湪鎵ц鎵撳嵃鈥︹��</Property>
+      <Property name="service">inoutDataPR#printShipBill</Property>
+    </AjaxAction>
+    <CustomDropDown id="ddDicArea">
       <Property name="minHeight">500</Property>
-      <Property name="assignmentMap">foodLocation=name</Property>
       <Property name="minWidth">500</Property>
+      <Property name="assignmentMap">foodLocation=name,foodLocationId=code</Property>
       <Container layout="regionPadding:5">
-        <DataSet id="dsFoodOrigin">
-          <Property name="dataProvider">dicTriggerPR#pagFoodLocationData</Property>
-          <Property name="dataType">[dtFoodOrigin]</Property>
+        <DataSet id="dsDicArea">
+          <Property name="dataProvider">dicAreaPR#pageList</Property>
           <Property name="parameter"></Property>
-          <Property name="pageSize">30</Property>
+          <Property name="dataType">[dtArea]</Property>
+          <Property name="pageSize">1000</Property>
         </DataSet>
         <Container layout="hbox regionPadding:5">
           <TextEditor id="key2">
-            <Property name="blankText"> -- 缂栫爜鎴栬�呭悕绉� --</Property>
+            <Property name="blankText"> -鍚嶇О鎴栫畝鎷硷紝鍖椾含甯�  bjs -</Property>
             <Property name="width">200</Property>
           </TextEditor>
           <Button>
             <ClientEvent name="onClick">var key = view.get(&quot;#key2.value&quot;);&#xD;
-view.get(&quot;#dsFoodOrigin&quot;).set(&quot;parameter&quot;,{key:key}).flushAsync();</ClientEvent>
+view.get(&quot;#dsDicArea&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;
+            <ClientEvent name="onClick">var data = view.get(&quot;#dsDicArea.data:#&quot;);&#xD;
 if(data){&#xD;
-	view.get(&quot;#ddFoodOrigin&quot;).close(data.toJSON());&#xD;
+	view.get(&quot;#ddDicArea&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;
+          <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsDicArea.data:#&quot;);&#xD;
 if(data){&#xD;
-	view.get(&quot;#ddFoodOrigin&quot;).close(data.toJSON());&#xD;
+	view.get(&quot;#ddDicArea&quot;).close(data.toJSON());&#xD;
 }</ClientEvent>
-          <Property name="dataSet">dsFoodOrigin</Property>
+          <Property name="dataSet">dsDicArea</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="code">
+            <Property name="property">code</Property>
             <Property name="readOnly">true</Property>
             <Property name="align">center</Property>
           </DataColumn>
@@ -809,14 +856,14 @@
           </DataColumn>
         </DataGrid>
         <DataPilot layoutConstraint="bottom">
-          <Property name="dataSet">dsFoodOrigin</Property>
+          <Property name="dataSet">dsDicArea</Property>
         </DataPilot>
       </Container>
     </CustomDropDown>
     <CustomDropDown id="ddNotice">
       <Property name="minHeight">400</Property>
-      <Property name="assignmentMap">noticeId=id,noticeName=name,customerId=customerId,customerName=customerName</Property>
-      <Property name="minWidth">500</Property>
+      <Property name="assignmentMap">noticeId=id,customerName=customerName</Property>
+      <Property name="minWidth">1000</Property>
       <Property name="autoOpen">true</Property>
       <Container layout="regionPadding:5">
         <DataSet id="dsNotice">
@@ -836,18 +883,14 @@
           <Button>
             <ClientEvent name="onClick">var key = view.get(&quot;#key3.value&quot;);&#xD;
 var type = &quot;${request.getParameter('type')}&quot;;&#xD;
-//var customerId = view.get(&quot;#dataGridMain.currentEntity&quot;).get(&quot;customerId&quot;);&#xD;
-//var depotId = view.get(&quot;#dataGridMain.currentEntity&quot;).get(&quot;depotId&quot;);&#xD;
-//var foodVariety = view.get(&quot;#dataGridMain.currentEntity&quot;).get(&quot;foodVariety&quot;);&#xD;
-//view.get(&quot;#dsNotice&quot;).set(&quot;parameter&quot;,{key:key,type:type,customerId:customerId,depotId:depotId,foodVariety:foodVariety}).flushAsync();&#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;#dsCustomer.data:#&quot;);&#xD;
+            <ClientEvent name="onClick">var data = view.get(&quot;#dsNotice.data:#&quot;);&#xD;
 if(data){&#xD;
-	view.get(&quot;#ddCustomer&quot;).close(data.toJSON());&#xD;
+	view.get(&quot;#ddNotice&quot;).close(data.toJSON());&#xD;
 }</ClientEvent>
             <Property name="iconClass">fa fa-check</Property>
             <Property name="caption">纭畾</Property>
@@ -862,37 +905,120 @@
           <Property name="readOnly">true</Property>
           <DataColumn name="name">
             <Property name="property">name</Property>
+            <Property name="align">center</Property>
+            <Property name="width">100</Property>
           </DataColumn>
           <DataColumn>
             <Property name="property">customerName</Property>
             <Property name="align">center</Property>
             <Property name="name">customerName</Property>
+            <Property name="width">240</Property>
           </DataColumn>
-          <DataColumn name="id">
-            <Property name="property">id</Property>
+          <DataColumn name="foodVariety">
+            <Property name="property">foodVariety</Property>
             <Property name="align">center</Property>
-            <Property name="visible">false</Property>
+          </DataColumn>
+          <DataColumn name="year">
+            <Property name="property">year</Property>
+            <Property name="align">center</Property>
+          </DataColumn>
+          <DataColumn name="depotId">
+            <Property name="property">depotId</Property>
+            <Property name="align">center</Property>
+            <Property name="width">180</Property>
+          </DataColumn>
+          <DataColumn name="contractName">
+            <Property name="property">contractName</Property>
+            <Property name="align">center</Property>
+            <Property name="width">300</Property>
           </DataColumn>
         </DataGrid>
       </Container>
     </CustomDropDown>
-    <YearDropDown id="yearDropDown"/>
-    <UpdateAction id="uaSave">
-      <Property name="dataResolver">inoutDataPR#saveInoutData</Property>
-      <Property name="confirmMessage">纭畾瑕佹彁浜や箞锛�</Property>
-      <UpdateItem>
-        <Property name="dataSet">dsMain</Property>
-        <Property name="dataPath">[#current]</Property>
-        <Property name="validateData">false</Property>
-      </UpdateItem>
-    </UpdateAction>
-    <AjaxAction id="ajaxGetDepot">
-      <Property name="service">depotPR#getDepot</Property>
-    </AjaxAction>
-    <AjaxAction id="ajaxPrint">
-      <Property name="service">inoutDataPR#printWeightBill</Property>
-      <Property name="executingMessage">姝e湪鎵ц鎵撳嵃鈥︹��</Property>
-      <Property name="async">false</Property>
+    <UploadAction id="uploadImg">
+      <ClientEvent name="beforeFileUploaded">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
+var plateNum = data.get(&quot;plateNum&quot;);&#xD;
+var bizTag = &quot;EMPTY&quot;;&#xD;
+self.set(&quot;parameter&quot;,{&#xD;
+	bizTag: bizTag&#xD;
+})</ClientEvent>
+      <ClientEvent name="onFileUploaded">//闄勪欢涓婁紶瀹屾垚鍚庢坊鍔犱笟鍔℃暟鎹�&#xD;
+var mainData = view.get(&quot;#dsMain.data&quot;);&#xD;
+var fileName = arg.returnValue;&#xD;
+var files = mainData.get(&quot;files&quot;);&#xD;
+files.insert({bizTag:view.PROGRESS,fileName:fileName,createTime:new Date()});</ClientEvent>
+      <ClientEvent name="beforeFileUploaded">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
+if(data){&#xD;
+	var plateNum = data.get(&quot;plateNum&quot;);&#xD;
+    var bizTag = &quot;EMPTY&quot;;&#xD;
+	self.set(&quot;parameter&quot;,{&#xD;
+        bizTag:bizTag&#xD;
+	})&#xD;
+}</ClientEvent>
+      <Property name="maxFileSize">20MB</Property>
+      <Property name="successMessage">涓婁紶鎴愬姛</Property>
+      <Property name="parameter"></Property>
+      <Property name="fileResolver">inoutDataPR#uploadImage</Property>
+      <Filters/>
+    </UploadAction>
+    <UploadAction id="uploadImg1">
+      <ClientEvent name="beforeFileUploaded">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
+&#xD;
+var plateNum = data.get(&quot;plateNum&quot;);&#xD;
+var bizTag = &quot;FULL&quot;;&#xD;
+self.set(&quot;parameter&quot;,{&#xD;
+	bizTag: bizTag&#xD;
+})</ClientEvent>
+      <ClientEvent name="onFileUploaded">//闄勪欢涓婁紶瀹屾垚鍚庢坊鍔犱笟鍔℃暟鎹�&#xD;
+var mainData = view.get(&quot;#dsMain.data&quot;);&#xD;
+var fileName = arg.returnValue;&#xD;
+var files = mainData.get(&quot;files&quot;);&#xD;
+files.insert({bizTag:view.PROGRESS,fileName:fileName});</ClientEvent>
+      <ClientEvent name="beforeFileUploaded">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
+if(data){&#xD;
+	var plateNum = data.get(&quot;plateNum&quot;);&#xD;
+    var bizTag = &quot;FULL&quot;;&#xD;
+	self.set(&quot;parameter&quot;,{&#xD;
+        bizTag:bizTag&#xD;
+	})&#xD;
+}</ClientEvent>
+      <Property name="maxFileSize">20MB</Property>
+      <Property name="successMessage">涓婁紶鎴愬姛</Property>
+      <Property name="parameter"></Property>
+      <Property name="fileResolver">inoutDataPR#uploadImage</Property>
+      <Filters/>
+    </UploadAction>
+    <UploadAction id="uploadImg2">
+      <ClientEvent name="beforeFileUploaded">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
+&#xD;
+var plateNum = data.get(&quot;plateNum&quot;);&#xD;
+var bizTag = &quot;HANDLE&quot;;&#xD;
+self.set(&quot;parameter&quot;,{&#xD;
+	bizTag: bizTag&#xD;
+})</ClientEvent>
+      <ClientEvent name="onFileUploaded">//闄勪欢涓婁紶瀹屾垚鍚庢坊鍔犱笟鍔℃暟鎹�&#xD;
+var mainData = view.get(&quot;#dsMain.data&quot;);&#xD;
+var fileName = arg.returnValue;&#xD;
+var files = mainData.get(&quot;files&quot;);&#xD;
+files.insert({bizTag:view.PROGRESS,fileName:fileName});</ClientEvent>
+      <ClientEvent name="beforeFileUploaded">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
+if(data){&#xD;
+	var plateNum = data.get(&quot;plateNum&quot;);&#xD;
+    var bizTag = &quot;HANDLE&quot;;&#xD;
+	self.set(&quot;parameter&quot;,{&#xD;
+        bizTag:bizTag&#xD;
+	})&#xD;
+}</ClientEvent>
+      <Property name="maxFileSize">20MB</Property>
+      <Property name="successMessage">涓婁紶鎴愬姛</Property>
+      <Property name="parameter"></Property>
+      <Property name="fileResolver">inoutDataPR#uploadImage</Property>
+      <Filters/>
+    </UploadAction>
+    <AjaxAction id="ajaxDelFile">
+      <Property name="service">inoutDataPR#delImage</Property>
+      <Property name="async">true</Property>
+      <Property name="confirmMessage">纭畾瑕佸垹闄や箞锛�</Property>
     </AjaxAction>
   </View>
 </ViewConfig>

--
Gitblit v1.9.3