From 87e5654c26476fabd1156023350d7726092af8c1 Mon Sep 17 00:00:00 2001
From: jiazx0107 <jiazx0107@163.com>
Date: 星期日, 30 十一月 2025 18:28:41 +0800
Subject: [PATCH] 调整通知单

---
 fzzy-igdss-view/src/main/java/com/fzzy/igds/DicArea.view.xml |  204 +++++++++++++++-----------------------------------
 1 files changed, 62 insertions(+), 142 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/DicArea.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/DicArea.view.xml
index 44c3020..b419740 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/DicArea.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/DicArea.view.xml
@@ -2,92 +2,7 @@
 <ViewConfig>
   <Arguments/>
   <Context/>
-  <Model>
-    <DataType name="dtMain">
-      <Property name="creationType">com.fzzy.igds.domain.DicArea</Property>
-      <PropertyDef name="code">
-        <Property></Property>
-        <Property name="label">鍖哄煙缂栫爜</Property>
-        <Property name="required">true</Property>
-      </PropertyDef>
-      <PropertyDef name="name">
-        <Property></Property>
-        <Property name="label">鍚嶇О</Property>
-        <Property name="required">true</Property>
-      </PropertyDef>
-      <PropertyDef name="parentCode">
-        <Property></Property>
-        <Property name="label">鎵�灞炲尯鍩�</Property>
-        <Property name="mapping">
-          <Property name="mapValues">${dorado.getDataProvider(&quot;dicAreaPR#getDicAreaByParentCode&quot;).getResult()}</Property>
-          <Property name="keyProperty">code</Property>
-          <Property name="valueProperty">name</Property>
-        </Property>
-      </PropertyDef>
-      <PropertyDef name="parentName">
-        <Property></Property>
-        <Property name="label">涓婄骇鍖哄煙</Property>
-        <Property name="required">false</Property>
-      </PropertyDef>
-      <PropertyDef name="type">
-        <Property></Property>
-        <Property name="label">绫诲瀷</Property>
-        <Property name="required">true</Property>
-        <Property name="mapping">
-          <Property name="keyProperty">value</Property>
-          <Property name="valueProperty">name</Property>
-          <Property name="mapValues">
-            <Collection>
-              <Entity>
-                <Property name="name">鐪�</Property>
-                <Property name="value">1</Property>
-              </Entity>
-              <Entity>
-                <Property name="name">甯�</Property>
-                <Property name="value">2</Property>
-              </Entity>
-              <Entity>
-                <Property name="name">鍖哄幙</Property>
-                <Property name="value">3</Property>
-              </Entity>
-            </Collection>
-          </Property>
-        </Property>
-      </PropertyDef>
-      <PropertyDef name="simple">
-        <Property></Property>
-        <Property name="label">绠�鎷�</Property>
-        <Property name="required">false</Property>
-      </PropertyDef>
-      <PropertyDef name="disabledTag">
-        <Property></Property>
-        <Property name="label">鏄惁绂佺敤</Property>
-        <Property name="required">false</Property>
-        <Property name="mapping">
-          <Property name="mapValues">
-            <Collection>
-              <Entity>
-                <Property name="name">绂佺敤</Property>
-                <Property name="value">Y</Property>
-              </Entity>
-              <Entity>
-                <Property name="name">鍚敤</Property>
-                <Property name="value">N</Property>
-              </Entity>
-            </Collection>
-          </Property>
-          <Property name="keyProperty">value</Property>
-          <Property name="valueProperty">name</Property>
-        </Property>
-      </PropertyDef>
-      <PropertyDef name="remark">
-        <Property></Property>
-        <Property name="label">澶囨敞</Property>
-        <Property name="required">false</Property>
-      </PropertyDef>
-    </DataType>
-  </Model>
-  <View layout="padding:5;regionPadding:5">
+  <View layout="padding:10">
     <ClientEvent name="onReady">//鏌ヨ&#xD;
 query = function(){&#xD;
     view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
@@ -96,64 +11,65 @@
 query();</ClientEvent>
     <Property name="packages">font-awesome,css-common</Property>
     <DataSet id="dsMain">
-      <Property name="dataType">[dtMain]</Property>
+      <Property name="dataType">[dtArea]</Property>
       <Property name="dataProvider">dicAreaPR#pageList</Property>
       <Property name="loadMode">manual</Property>
       <Property name="pageSize">20</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 layoutConstraint="left">
-        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert();&#xD;
-          view.get(&quot;#dialogMain&quot;).show();&#xD;
-        </ClientEvent>
-        <Property name="caption">鏂板</Property>
-        <Property name="exClassName">btn1</Property>
-        <Property name="iconClass">fa fa-plus</Property>
-      </Button>
-      <Button layoutConstraint="left">
-        <ClientEvent name="onClick">&#xD;
-		  &#xD;
-var select = view.get(&quot;#dataGridMain&quot;).get(&quot;selection&quot;);&#xD;
-if(select){&#xD;
-    view.get(&quot;#dialogMain&quot;).show();;&#xD;
-}else{&#xD;
-    $notify(&quot;璇烽�夋嫨闇�瑕佷慨鏀圭殑鏁版嵁鈥︹��&quot;);&#xD;
-}	</ClientEvent>
-        <Property name="caption">缂栬緫</Property>
-        <Property name="exClassName">btn2</Property>
-        <Property name="iconClass">fa fa-pencil</Property>
-      </Button>
-      <Button layoutConstraint="left">
-        <ClientEvent name="onClick">   &#xD;
-var select = view.get(&quot;#dataGridMain&quot;).get(&quot;selection&quot;);&#xD;
-if(select){&#xD;
-    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,select).execute(function(){&#xD;
-		select.remove();&#xD;
-	});&#xD;
-}else{&#xD;
-    $notify(&quot;璇烽�夋嫨闇�瑕佸垹闄ょ殑鏁版嵁鈥︹��&quot;);&#xD;
-}</ClientEvent>
-        <Property name="caption">鍒犻櫎</Property>
-        <Property name="exClassName">btn3</Property>
-        <Property name="iconClass">fa fa-minus</Property>
-      </Button>
-    </Container>
-    <Container layoutConstraint="center">
-      <Property name="exClassName">bg-color</Property>
-      <DataGrid id="dataGridMain" layoutConstraint="center">
-        <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
-          if(data){&#xD;
-          view.get(&quot;#dialogMain&quot;).show();&#xD;
-          }</ClientEvent>
+    <Container>
+      <Property name="className">c-param</Property>
+      <ToolBar>
+        <ToolBarButton>
+          <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert();&#xD;
+            view.get(&quot;#dialogMain&quot;).show();&#xD;
+          </ClientEvent>
+          <Property name="caption">鏂板</Property>
+          <Property name="exClassName">btn1</Property>
+          <Property name="width">100</Property>
+          <Property name="iconClass">fa fa-plus</Property>
+        </ToolBarButton>
+        <ToolBarButton>
+          <ClientEvent name="onClick">&#xD;
+            &#xD;
+            var select = view.get(&quot;#dataGridMain&quot;).get(&quot;selection&quot;);&#xD;
+            if(select){&#xD;
+            view.get(&quot;#dialogMain&quot;).show();;&#xD;
+            }else{&#xD;
+            $notify(&quot;璇烽�夋嫨闇�瑕佷慨鏀圭殑鏁版嵁鈥︹��&quot;);&#xD;
+            }	</ClientEvent>
+          <Property name="caption">淇敼</Property>
+          <Property name="exClassName">btn2</Property>
+          <Property name="width">100</Property>
+          <Property name="iconClass">fa fa-pencil-square-o</Property>
+        </ToolBarButton>
+        <ToolBarButton>
+          <ClientEvent name="onClick">   &#xD;
+            var select = view.get(&quot;#dataGridMain&quot;).get(&quot;selection&quot;);&#xD;
+            if(select){&#xD;
+            view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,select).execute(function(){&#xD;
+            select.remove();&#xD;
+            });&#xD;
+            }else{&#xD;
+            $notify(&quot;璇烽�夋嫨闇�瑕佸垹闄ょ殑鏁版嵁鈥︹��&quot;);&#xD;
+            }</ClientEvent>
+          <Property name="caption">鍒犻櫎</Property>
+          <Property name="exClassName">btn3</Property>
+          <Property name="width">100</Property>
+          <Property name="iconClass">fa fa-times</Property>
+        </ToolBarButton>
+        <ToolBarButton>
+          <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
+          </ClientEvent>
+          <Property name="caption">鍒锋柊</Property>
+          <Property name="exClassName">btn-q2</Property>
+          <Property name="width">100</Property>
+          <Property name="iconClass">fa fa-refresh</Property>
+        </ToolBarButton>
+      </ToolBar>
+      <DataGrid id="dataGridMain" layoutConstraint="padding:8" selectionMode="singleRow">
+        <ClientEvent name="onDataRowClick">self.set(&quot;selection&quot;, arg.data)</ClientEvent>
         <Property name="dataSet">dsMain</Property>
         <Property name="readOnly">true</Property>
-        <Property name="selectionMode">singleRow</Property>
         <RowSelectorColumn/>
         <RowNumColumn/>
         <DataColumn>
@@ -194,7 +110,7 @@
       </DataGrid>
     </Container>
     <Container layoutConstraint="bottom">
-      <Property name="exClassName">bg-color</Property>
+      <Property name="className">c-bottom</Property>
       <DataPilot layoutConstraint="right">
         <Property name="dataSet">dsMain</Property>
         <Property name="itemCodes">pageSize,pages</Property>
@@ -219,14 +135,18 @@
             $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="caption">淇濆瓨</Property>
+          <Property name="iconClass">fa fa-check-circle</Property>
+          <Property name="exClassName">btn1</Property>
+          <Property name="width">120</Property>
         </Button>
         <Button>
           <ClientEvent name="onClick">view.get(&quot;#dsMain.data:#&quot;).cancel();&#xD;
             self.get(&quot;parent&quot;).hide();</ClientEvent>
           <Property name="caption">鍙栨秷</Property>
-          <Property name="iconClass">fa fa-times</Property>
+          <Property name="exClassName">btn3</Property>
+          <Property name="iconClass">fa fa-times-circle</Property>
+          <Property name="width">120</Property>
         </Button>
       </Buttons>
       <Children>

--
Gitblit v1.9.3