From 1f455e5cda9016054c531bbae6b1639fe646628f Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期四, 27 十一月 2025 19:36:37 +0800
Subject: [PATCH] 框架调整,及库区切换

---
 fzzy-igdss-view/src/main/java/com/fzzy/igds/Depot.view.xml |  488 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 488 insertions(+), 0 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/Depot.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/Depot.view.xml
new file mode 100644
index 0000000..d522c31
--- /dev/null
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/Depot.view.xml
@@ -0,0 +1,488 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ViewConfig>
+  <Arguments/>
+  <Context/>
+  <Model>
+    <DataType name="dataTypeUser">
+      <Property name="creationType">com.ruoyi.common.core.domain.entity.SysUser</Property>
+      <PropertyDef name="loginName">
+        <Property name="dataType">String</Property>
+        <Property name="label">鐢ㄦ埛鍚�</Property>
+      </PropertyDef>
+      <PropertyDef name="userName">
+        <Property name="dataType">String</Property>
+        <Property name="label">涓枃鍚�</Property>
+      </PropertyDef>
+    </DataType>
+  </Model>
+  <View layout="padding:10">
+    <ClientEvent name="onReady">&#xD;
+/**&#xD;
+ * 鏌ヨ&#xD;
+ */&#xD;
+query = function(){&#xD;
+    view.get(&quot;#dataSetdepot&quot;).flushAsync();&#xD;
+}&#xD;</ClientEvent>
+    <Property name="packages">font-awesome,css-common</Property>
+    <DataSet id="dataSetdepot">
+      <Property name="dataProvider">depotPR#getData</Property>
+      <Property name="dataType">[dtDepot]</Property>
+    </DataSet>
+    <DataSet id="dataSetUser">
+      <Property name="dataType">[dataTypeUser]</Property>
+      <Property name="dataProvider">sysUserPR#loadUser</Property>
+    </DataSet>
+    <Container>
+      <Property name="className">c-param</Property>
+      <ToolBar>
+        <ToolBarButton>
+          <ClientEvent name="onClick">view.get(&quot;#dataSetdepot&quot;).insert();&#xD;
+view.get(&quot;#depotdialog&quot;).show();&#xD;
+view.get(&quot;#oneId&quot;).set(&quot;readOnly&quot;,false);&#xD;
+view.get(&quot;#twoId&quot;).set(&quot;readOnly&quot;,false);</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">var select = view.get(&quot;#dataGridDepot&quot;).get(&quot;selection&quot;);&#xD;
+if(select){&#xD;
+    view.get(&quot;#depotdialog&quot;).show();&#xD;
+    view.get(&quot;#oneId&quot;).set(&quot;readOnly&quot;,true);&#xD;
+    view.get(&quot;#twoId&quot;).set(&quot;readOnly&quot;,true);
+}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">var select = view.get(&quot;#dataGridDepot&quot;).get(&quot;selection&quot;);&#xD;
+if(select){&#xD;
+    view.get(&quot;#deleteAjaxAction&quot;).set(&quot;parameter&quot;,select).execute();&#xD;
+    query();&#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>
+          <Property name="caption">鍒锋柊缂撳瓨</Property>
+          <Property name="exClassName">btn4</Property>
+          <Property name="iconClass">fa fa-refresh</Property>
+          <Property name="width">100</Property>
+          <Property name="action">ajaxRefreshCache</Property>
+        </ToolBarButton>
+        <ToolBarButton>
+          <ClientEvent name="onClick">var url = &quot;com.fzzy.igds.sys.DepotStore.d&quot;;&#xD;
+var panelId = window.frameElement.getAttribute('data-id');
+window.parent.$.modal.openTab(&quot;搴撳瓨绠$悊&quot;, url, false, panelId);</ClientEvent>
+          <Property name="caption">搴撳瓨绠$悊</Property>
+          <Property name="iconClass">fa fa-book</Property>
+          <Property name="exClassName">btn1</Property>
+          <Property name="width">100</Property>
+        </ToolBarButton>
+      </ToolBar>
+      <DataGrid id="dataGridDepot" layoutConstraint="padding:8">
+        <ClientEvent name="onDataRowClick">view.get(&quot;#dataGridDepot&quot;).set(&quot;selection&quot;,arg.data);</ClientEvent>
+        <Property name="dataSet">dataSetdepot</Property>
+        <Property name="selectionMode">singleRow</Property>
+        <Property name="readOnly">true</Property>
+        <RowSelectorColumn/>
+        <RowNumColumn/>
+        <DataColumn name="id">
+          <Property name="property">id</Property>
+          <Property name="align">center</Property>
+          <Property name="width">160</Property>
+        </DataColumn>
+        <DataColumn name="name">
+          <Property name="property">name</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="depotStatus">
+          <Property name="property">depotStatus</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="foodVariety">
+          <Property name="property">foodVariety</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="foodType">
+          <Property name="property">foodType</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="foodLevel">
+          <Property name="property">foodLevel</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="storageReal">
+          <Property name="property">storageReal</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="foodYear">
+          <Property name="property">foodYear</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="foodLocation">
+          <Property name="property">foodLocation</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="storeDate">
+          <Property name="property">storeDate</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="storeKeeperName">
+          <Property name="property">storeKeeperName</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="depotType">
+          <Property name="property">depotType</Property>
+          <Property name="align">center</Property>
+        </DataColumn>
+        <DataColumn name="updateBy">
+          <Property name="property">updateBy</Property>
+          <Property name="align">center</Property>
+          <Property name="width">100</Property>
+        </DataColumn>
+        <DataColumn name="updateTime">
+          <Property name="property">updateTime</Property>
+          <Property name="align">center</Property>
+          <Property name="width">160</Property>
+        </DataColumn>
+      </DataGrid>
+    </Container>
+    <Dialog id="depotdialog" layout="regionPadding:8">
+      <Property name="iconClass">fa fa-tasks</Property>
+      <Property name="caption">浠撳簱淇℃伅</Property>
+      <Property name="width">1200</Property>
+      <Property name="closeable">false</Property>
+      <Buttons>
+        <Button id="btnOK">
+          <ClientEvent name="onClick">//鍚屾椂鎻愪氦鍘嗗彶涔�&#xD;
+var data = view.get(&quot;#dataSetdepot.data:#&quot;);&#xD;
+view.get(&quot;#updateactionSave&quot;).execute(function(result){&#xD;
+	if(result){&#xD;
+		$notify(result);&#xD;
+	}else{&#xD;
+		self.get(&quot;parent&quot;).hide();&#xD;
+        query();&#xD;
+	}&#xD;
+});</ClientEvent>
+          <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">var cur = view.get(&quot;#dataSetdepot.data:#&quot;);&#xD;
+if(cur) cur.cancel();&#xD;
+self.get(&quot;parent&quot;).hide();</ClientEvent>
+          <Property name="caption">鍙栨秷</Property>
+          <Property name="exClassName">btn3</Property>
+          <Property name="iconClass">fa fa-times-circle</Property>
+          <Property name="width">120</Property>
+        </Button>
+      </Buttons>
+      <Children>
+        <FieldSet layout="padding:5">
+          <Property name="caption">鍩烘湰淇℃伅</Property>
+          <Buttons/>
+          <Children>
+            <AutoForm>
+              <Property name="dataSet">dataSetdepot</Property>
+              <Property name="readOnly">false</Property>
+              <Property name="labelSeparator"> : </Property>
+              <Property name="labelAlign">right</Property>
+              <Property name="cols">*,*,*,*,*,*</Property>
+              <Property name="labelWidth">80</Property>
+              <AutoFormElement id="oneId" layoutConstraint="colSpan:2">
+                <Property name="name">id</Property>
+                <Property name="property">id</Property>
+                <Editor>
+                  <TextEditor>
+                    <Property name="blankText">-- 绯荤粺鑷姩鐢熸垚 --</Property>
+                  </TextEditor>
+                </Editor>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">name</Property>
+                <Property name="property">name</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">deptId</Property>
+                <Property name="property">deptId</Property>
+                <Editor/>
+              </AutoFormElement>
+                <AutoFormElement layoutConstraint="colSpan:2">
+                    <Property name="name">storageMax</Property>
+                    <Property name="property">storageMax</Property>
+                    <Editor/>
+                </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">storeType</Property>
+                <Property name="property">storeType</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">createBy</Property>
+                <Property name="property">createBy</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">depotStatus</Property>
+                <Property name="property">depotStatus</Property>
+                <Property name="trigger">autoMappingDropDown2</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">depotType</Property>
+                <Property name="property">depotType</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">createTime</Property>
+                <Property name="property">createTime</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">storeKeeperName</Property>
+                <Property name="property">storeKeeperName</Property>
+                <Property name="trigger">triggerUserList</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">orderNum</Property>
+                <Property name="property">orderNum</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">updateBy</Property>
+                <Property name="property">updateBy</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:4">
+                <Property name="name">remark</Property>
+                <Property name="property">remark</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">updateTime</Property>
+                <Property name="property">updateTime</Property>
+                <Editor/>
+              </AutoFormElement>
+            </AutoForm>
+          </Children>
+        </FieldSet>
+        <FieldSet layout="padding:5">
+          <Property name="caption">鍌ㄧ伯淇℃伅</Property>
+          <Buttons/>
+          <Children>
+            <AutoForm>
+              <Property name="dataSet">dataSetdepot</Property>
+              <Property name="readOnly">false</Property>
+              <Property name="labelSeparator"> : </Property>
+              <Property name="labelAlign">right</Property>
+              <Property name="cols">*,*,*,*,*,*</Property>
+              <Property name="labelWidth">80</Property>
+              <AutoFormElement id="twoId" layoutConstraint="colSpan:2">
+                <Property name="name">storageReal</Property>
+                <Property name="property">storageReal</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">foodVariety</Property>
+                <Property name="property">foodVariety</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">foodType</Property>
+                <Property name="property">foodType</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">foodLevel</Property>
+                <Property name="property">foodLevel</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">foodYear</Property>
+                <Property name="property">foodYear</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">foodLocation</Property>
+                <Property name="property">foodLocation</Property>
+                <Property name="trigger">ddFoodOrigin</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">storeDate</Property>
+                <Property name="property">storeDate</Property>
+                <Editor/>
+              </AutoFormElement>
+              <Label>
+                <Property name="text"></Property>
+                <Property name="style">
+                  <Property name="color">blue</Property>
+                  <Property name="padding-left">50px</Property>
+                </Property>
+              </Label>
+              <Label layoutConstraint="colSpan:3">
+                <Property name="text">璇存槑锛�1銆佸疄闄呭偍閲忚皟鏁磋浣跨敤鈥滃簱瀛樼鐞嗏�濆姛鑳斤紱</Property>
+                <Property name="style">
+                  <Property name="color">blue</Property>
+                  <Property name="padding-left">50px</Property>
+                </Property>
+              </Label>
+            </AutoForm>
+          </Children>
+        </FieldSet>
+        <FieldSet layout="padding:5">
+          <Property name="caption">璐ㄦ淇℃伅</Property>
+          <Buttons/>
+          <Children>
+            <AutoForm>
+              <Property name="dataSet">dataSetdepot</Property>
+              <Property name="readOnly">false</Property>
+              <Property name="labelSeparator"> : </Property>
+              <Property name="labelAlign">right</Property>
+              <Property name="cols">*,*,*,*,*,*</Property>
+              <Property name="labelWidth">80</Property>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">perWet</Property>
+                <Property name="property">perWet</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">perImpurity</Property>
+                <Property name="property">perImpurity</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">bulkWeight</Property>
+                <Property name="property">bulkWeight</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement layoutConstraint="colSpan:2">
+                <Property name="name">checkDate</Property>
+                <Property name="property">checkDate</Property>
+                <Editor/>
+              </AutoFormElement>
+              <Label>
+                <Property name="text"></Property>
+                <Property name="style">
+                  <Property name="color">blue</Property>
+                  <Property name="padding-left">50px</Property>
+                </Property>
+              </Label>
+              <Label layoutConstraint="colSpan:3">
+                <Property name="text">璇存槑锛氬偍澶囩伯璐ㄦ淇℃伅浼氭牴鎹川閲忕鐞� 鑷姩鍚屾鏇存柊</Property>
+                <Property name="style">
+                  <Property name="color">blue</Property>
+                  <Property name="padding-left">50px</Property>
+                </Property>
+              </Label>
+            </AutoForm>
+          </Children>
+        </FieldSet>
+      </Children>
+      <Tools/>
+    </Dialog>
+    <UpdateAction id="updateactionSave">
+      <Property name="executingMessage">姝e湪鎵ц涓�..</Property>
+      <Property name="dataResolver">depotPR#saveOrUpdate</Property>
+      <UpdateItem>
+        <Property name="dataSet">dataSetdepot</Property>
+        <Property name="dataPath">[#current]</Property>
+        <Property name="alias">data</Property>
+      </UpdateItem>
+    </UpdateAction>
+    <AjaxAction id="deleteAjaxAction">
+      <Property name="successMessage">鍒犻櫎鎴愬姛</Property>
+      <Property name="service">depotPR#deletedepot</Property>
+      <Property name="executingMessage">姝e湪鍒犻櫎</Property>
+    </AjaxAction>
+    <AjaxAction id="ajaxRefreshCache">
+      <Property name="service">depotPR#flushCache</Property>
+      <Property name="successMessage">鍒锋柊鎴愬姛锛�</Property>
+      <Property name="confirmMessage">纭畾瑕佸埛鏂扮紦瀛樹箞锛�</Property>
+    </AjaxAction>
+    <YearDropDown id="yearDropDown1"/>
+    <DataSetDropDown id="triggerUserList">
+      <Property name="dataSet">dataSetUser</Property>
+      <Property name="property">userName</Property>
+      <Property name="assignmentMap">storeKeeperName=userName,storeKeeper=loginName</Property>
+    </DataSetDropDown>
+    <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">dicAreaPR#pageList</Property>
+          <Property name="parameter"></Property>
+          <Property name="pageSize">30</Property>
+          <Property name="dataType">[dtArea]</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>
+    <ListDropDown id="listOri">
+      <Property name="items">涓�,鍗�,瑗�,鍖�,涓滃寳,涓滃崡,瑗垮崡,瑗垮寳</Property>
+    </ListDropDown>
+  </View>
+</ViewConfig>

--
Gitblit v1.9.3