From 3764cb5bde8f62118af335f40e46cd4b61a47e24 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期四, 13 七月 2023 14:54:12 +0800
Subject: [PATCH] 检测值比较

---
 igds-inout/src/main/java/com/ld/igds/inout/view/InoutHand.view.xml |  116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 112 insertions(+), 4 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 3f25fb1..58d4cfb 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
@@ -108,6 +108,34 @@
         <Property></Property>
         <Property name="label">杩愮畻绗﹀彿</Property>
       </PropertyDef>
+      <PropertyDef name="operaSymbolValue">
+        <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 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">
@@ -556,8 +584,59 @@
               <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">var data = arg.entity._data;&#xD;
+//鏍规嵁濉啓鍖栭獙鏁版嵁,缁欏嚭鎻愰啋鏄惁鍚堟牸&#xD;
+if(data){&#xD;
+	console.log(data,&quot;inoutHand&quot;);&#xD;
+    //濉啓鐨勬暟鎹��&#xD;
+    var newValue = data.value;&#xD;
+    //鏍囧噯鍊�&#xD;
+    var limit = data.upperLimit;&#xD;
+    //杩愮畻绗�&#xD;
+    var symbol = data.operaSymbol;&#xD;
+    if (symbol &amp;&amp; limit) {&#xD;
+        if (&quot;>=&quot; == symbol) {&#xD;
+            if (newValue &lt; limit) {&#xD;
+                data.result = &quot;0&quot;;&#xD;
+            } else {&#xD;
+                data.result = &quot;1&quot;;&#xD;
+            }&#xD;
+        }&#xD;
+        if (&quot;&lt;=&quot; == symbol) {&#xD;
+            if (newValue > limit) {&#xD;
+                data.result = &quot;0&quot;;&#xD;
+            } else {&#xD;
+                data.result = &quot;1&quot;;&#xD;
+            }&#xD;
+        }&#xD;
+        if (&quot;==&quot; == symbol) {&#xD;
+            if (newValue != limit) {&#xD;
+                data.result = &quot;0&quot;;&#xD;
+            } else {&#xD;
+                data.result = &quot;1&quot;;&#xD;
+            }&#xD;
+        }&#xD;
+    }&#xD;
+	console.log(data.result,&quot;result&quot;)&#xD;
+}</ClientEvent>
             <Property name="dataSet">dsMain</Property>
             <Property name="dataPath">#.checkItems</Property>
             <Property name="highlightCurrentRow">false</Property>
@@ -579,14 +658,38 @@
               <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>
@@ -607,6 +710,11 @@
       <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="minWidth">500</Property>

--
Gitblit v1.9.3