From 688fd8243286b342bfdeb3ee0b4ee45be4c005cc Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期三, 04 六月 2025 11:38:08 +0800
Subject: [PATCH] 增加货位卡设备配置

---
 igds-dzhwk-view/src/main/java/com/fzzy/igds/sys/DepotConf.view.xml |  168 +++++++++++++++++++++++++++----------------------------
 1 files changed, 83 insertions(+), 85 deletions(-)

diff --git a/igds-dzhwk-view/src/main/java/com/fzzy/igds/sys/DepotConf.view.xml b/igds-dzhwk-view/src/main/java/com/fzzy/igds/sys/DepotConf.view.xml
index 0b63371..7bfe099 100644
--- a/igds-dzhwk-view/src/main/java/com/fzzy/igds/sys/DepotConf.view.xml
+++ b/igds-dzhwk-view/src/main/java/com/fzzy/igds/sys/DepotConf.view.xml
@@ -3,7 +3,7 @@
   <Arguments/>
   <Context/>
   <Model/>
-  <View layout="padding:5;regionPadding:5">
+  <View>
     <ClientEvent name="onReady">var depotList = null;&#xD;
 </ClientEvent>
     <Property name="packages">font-awesome,css-common</Property>
@@ -11,106 +11,104 @@
       <Property name="dataProvider">depotConfPR#getConfList</Property>
       <Property name="dataType">[dtDepotConf]</Property>
     </DataSet>
-    <Container layout="regionPadding:10" layoutConstraint="top">
-      <Property name="exClassName">bg-color</Property>
-      <Property name="height">55</Property>
-      <Property name="contentOverflow">hidden</Property>
-      <Label layoutConstraint="left">
-        <Property name="text">鑿滃崟鏍忥細</Property>
-      </Label>
-      <Button layoutConstraint="left">
-        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert();&#xD;
+    <Container>
+      <Property name="exClassName">c-data</Property>
+      <ToolBar>
+        <ToolBarLabel>
+          <Property name="text">鑿滃崟鏍忥細</Property>
+          <Property name="exClassName">menu-bar-caption</Property>
+        </ToolBarLabel>
+        <ToolBarButton layoutConstraint="left">
+          <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert();&#xD;
 view.get(&quot;#depotId&quot;).set(&quot;readOnly&quot;,false);&#xD;
 view.get(&quot;#dgMain&quot;).show();</ClientEvent>
-        <Property name="caption">鏂板</Property>
-        <Property name="exClassName">btn1</Property>
-        <Property name="iconClass">fa fa-plus</Property>
-      </Button>
-      <Button layoutConstraint="left">
-        <ClientEvent name="onClick">var select = view.get(&quot;#dataGridMain&quot;).get(&quot;selection&quot;);&#xD;
+          <Property name="caption">鏂板</Property>
+          <Property name="exClassName">btn1</Property>
+          <Property name="iconClass">fa fa-plus</Property>
+        </ToolBarButton>
+        <ToolBarButton layoutConstraint="left">
+          <ClientEvent name="onClick">var select = view.get(&quot;#dataGridMain&quot;).get(&quot;selection&quot;);&#xD;
 if(select){&#xD;
     view.get(&quot;#dgMain&quot;).show();&#xD;
     view.get(&quot;#depotId&quot;).set(&quot;readOnly&quot;,true);&#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;
+          <Property name="caption">淇敼</Property>
+          <Property name="exClassName">btn2</Property>
+          <Property name="iconClass">fa fa-pencil</Property>
+        </ToolBarButton>
+        <ToolBarButton 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;#ajaxDel2&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
-		if(result){&#xD;
-			$alert(result);&#xD;
-		}else{&#xD;
-			entity.remove();&#xD;
-		}&#xD;
-	});&#xD;
+        if(result){&#xD;
+            $alert(result);&#xD;
+        }else{&#xD;
+            entity.remove();&#xD;
+        }&#xD;
+    });&#xD;
 }else{&#xD;
     $notify(&quot;璇烽�夋嫨闇�瑕佸垹闄ょ殑鏁版嵁鈥︹��&quot;);&#xD;
 }</ClientEvent>
-        <Property name="caption">鍒犻櫎</Property>
-        <Property name="exClassName">btn3</Property>
-        <Property name="iconClass">fa fa-trash-o</Property>
-      </Button>
-      <Button layoutConstraint="left">
-        <Property name="caption">鍒锋柊缂撳瓨</Property>
-        <Property name="exClassName">btn-flush</Property>
-        <Property name="iconClass">fa fa-refresh</Property>
-        <Property name="action">ajaxRefreshCache</Property>
-      </Button>
+          <Property name="caption">鍒犻櫎</Property>
+          <Property name="exClassName">btn3</Property>
+          <Property name="iconClass">fa fa-trash-o</Property>
+        </ToolBarButton>
+        <ToolBarButton layoutConstraint="left">
+          <Property name="caption">鍒锋柊缂撳瓨</Property>
+          <Property name="exClassName">btn-flush</Property>
+          <Property name="iconClass">fa fa-refresh</Property>
+          <Property name="action">ajaxRefreshCache</Property>
+        </ToolBarButton>
+      </ToolBar>
+      <DataGrid id="dataGridMain" layoutConstraint="padding:15px 0px 0px 0px">
+        <ClientEvent name="onDataRowClick">view.get(&quot;#dataGridMain&quot;).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 name="depotId">
+          <Property name="property">depotId</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="grainSer">
+          <Property name="property">grainSer</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn>
+          <Property name="property">cableRule</Property>
+          <Property name="align">center</Property>
+          <Property name="name">cableRule</Property>
+        </DataColumn>
+        <DataColumn name="cableCir">
+          <Property name="property">cableCir</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="tempMax">
+          <Property name="property">tempMax</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="grainFreq">
+          <Property name="property">grainFreq</Property>
+        </DataColumn>
+        <DataColumn name="n2Max">
+          <Property name="property">n2Max</Property>
+        </DataColumn>
+        <DataColumn name="co2Max">
+          <Property name="property">co2Max</Property>
+        </DataColumn>
+        <DataColumn name="o2Max">
+          <Property name="property">o2Max</Property>
+        </DataColumn>
+        <DataColumn name="ph3Max">
+          <Property name="property">ph3Max</Property>
+        </DataColumn>
+      </DataGrid>
     </Container>
-    <DataGrid id="dataGridMain" layoutConstraint="center ">
-      <ClientEvent name="onDataRowDoubleClick">var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
-if(!cur) return ;&#xD;
-view.get(&quot;#depotId&quot;).set(&quot;readOnly&quot;,true);&#xD;
-view.get(&quot;#dgMain&quot;).show();</ClientEvent>
-      <Property name="dataSet">dsMain</Property>
-      <Property name="readOnly">true</Property>
-      <Property name="selectionMode">singleRow</Property>
-      <RowSelectorColumn/>
-      <RowNumColumn/>
-      <DataColumn name="depotId">
-        <Property name="property">depotId</Property>
-        <Property name="align">center</Property>
-      </DataColumn>
-      <DataColumn name="grainSer">
-        <Property name="property">grainSer</Property>
-        <Property name="align">center</Property>
-      </DataColumn>
-      <DataColumn>
-        <Property name="property">cableRule</Property>
-        <Property name="align">center</Property>
-        <Property name="name">cableRule</Property>
-      </DataColumn>
-      <DataColumn name="cableCir">
-        <Property name="property">cableCir</Property>
-        <Property name="align">center</Property>
-      </DataColumn>
-      <DataColumn name="tempMax">
-        <Property name="property">tempMax</Property>
-        <Property name="align">center</Property>
-      </DataColumn>
-      <DataColumn name="grainFreq">
-        <Property name="property">grainFreq</Property>
-      </DataColumn>
-      <DataColumn name="n2Max">
-        <Property name="property">n2Max</Property>
-      </DataColumn>
-      <DataColumn name="co2Max">
-        <Property name="property">co2Max</Property>
-      </DataColumn>
-      <DataColumn name="o2Max">
-        <Property name="property">o2Max</Property>
-      </DataColumn>
-      <DataColumn name="ph3Max">
-        <Property name="property">ph3Max</Property>
-      </DataColumn>
-    </DataGrid>
     <UpdateAction id="uaMain">
       <Property name="dataResolver">depotConfPR#saveConf</Property>
       <UpdateItem>

--
Gitblit v1.9.3