From ba9562289ab7e67c9eeca4d518ddbb3e68ed5dc2 Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期一, 28 八月 2023 18:56:32 +0800 Subject: [PATCH] 上海新增页面--检斤单,倒仓倒入 --- src/main/java/com/fzzy/otherview/sh2023/ShApi2102.view.xml | 393 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 391 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/fzzy/otherview/sh2023/ShApi2102.view.xml b/src/main/java/com/fzzy/otherview/sh2023/ShApi2102.view.xml index 360037f..2120356 100644 --- a/src/main/java/com/fzzy/otherview/sh2023/ShApi2102.view.xml +++ b/src/main/java/com/fzzy/otherview/sh2023/ShApi2102.view.xml @@ -3,9 +3,398 @@ <Arguments/> <Context/> <Model> - + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.push.sh2023.dto.SH2023Api2102</Property> + <PropertyDef name="drdh"> + <Property/> + <Property name="label">鍊掑叆鍗曞彿</Property> + </PropertyDef> + <PropertyDef name="drdw"> + <Property/> + <Property name="label">鍊掑叆鍗曚綅</Property> + </PropertyDef> + <PropertyDef name="drhwsl"> + <Property/> + <Property name="label">鍊掑叆鏁伴噺</Property> + <Property name="dataType">Double</Property> + <Property name="displayFormat">#0.000000</Property> + </PropertyDef> + <PropertyDef name="drhwdm"> + <Property/> + <Property name="label">鍊掑叆璐т綅浠g爜</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property/> + <Property name="label">鎿嶄綔鏍囧織</Property> + <Property name="mapping"> + <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> + <Property name="keyProperty">code</Property> + <Property name="valueProperty">name</Property> + </Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">Date</Property> + <Property name="label">鏈�鍚庢洿鏂版椂闂�</Property> + </PropertyDef> + <PropertyDef name="dcrq"> + <Property name="dataType">Date</Property> + <Property name="label">鍊掑叆鏃ユ湡</Property> + </PropertyDef> + <PropertyDef name="kddh"> + <Property/> + <Property name="label">搴撹皟鍗曞彿</Property> + </PropertyDef> + <PropertyDef name="bjw"> + <Property/> + <Property name="label">鏍囪浣�</Property> + </PropertyDef> + <PropertyDef name="pch"> + <Property/> + <Property name="label">鎵规鍙�</Property> + </PropertyDef> + <PropertyDef name="bizId"> + <Property/> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property/> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + </DataType> + <DataType name="dtParam"> + <Property name="creationType">com.fzzy.api.data.ApiParam</Property> + <PropertyDef name="kqdm"> + <Property></Property> + <Property name="label">鎵�灞炲簱鍖�</Property> + </PropertyDef> + <PropertyDef name="start"> + <Property name="dataType">Date</Property> + <Property name="label">寮�濮嬫椂闂�</Property> + </PropertyDef> + <PropertyDef name="end"> + <Property name="dataType">Date</Property> + <Property name="label">鎴鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property></Property> + <Property name="label">鎿嶄綔鏍囧織</Property> + <Property name="mapping"> + <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> + <Property name="keyProperty">code</Property> + <Property name="valueProperty">name</Property> + </Property> + </PropertyDef> + </DataType> </Model> <View layout="regionPadding:10"> - + <Property name="packages">font-awesome,css-common</Property> + <DataSet id="dsMain"> + <Property name="dataType">[dtMain]</Property> + <Property name="dataProvider">sHApi2102PR#listData</Property> + <Property name="pageSize">15</Property> + </DataSet> + <DataSet id="dsQuery"> + <ClientEvent name="onReady">self.insert();</ClientEvent> + <Property name="dataType">dtParam</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">var query = view.get("#dsQuery").getData();
 +view.get("#dsMain").set("parameter",query).flushAsync();</ClientEvent> + <Property name="caption">鏌ヨ</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton id="btnAdd"> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + <Property name="hideMode">display</Property> + </ToolBarButton> + <ToolBarButton id="btnUpdate"> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + <Property name="hideMode">display</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d")
 + }
 +});
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton id="btnDel"> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.remove();
 + }
 +});
 +</ClientEvent> + <Property name="caption">鐩存帴鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + <Property name="hideMode">display</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 +if(select && select.length > 0){
 + view.get("#ajaxPush").set("parameter",select).execute(function(result){
 + view.get("#dsMain").flushAsync();
 + $notify(result);
 + });
 +}else{
 + $alert("璇峰嬀閫変笂鎶ユ暟鎹紒");
 +}
 +</ClientEvent> + <Property name="caption">鎵嬪姩涓婁紶</Property> + <Property name="iconClass">fa fa-hand-o-up</Property> + <Property name="exClassName">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-bars</Property> + <Property name="exClassName">toolbar-button</Property> + <Property name="width">100</Property> + </ToolBarButton> + </ToolBar> + <AutoForm> + <Property name="dataSet">dsQuery</Property> + <Property name="cols">*,*,*,*</Property> + <Property name="labelAlign">right</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelWidth">90</Property> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">start</Property> + <Property name="property">start</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">end</Property> + <Property name="property">end</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Property name="trigger">autoMappingDropDown2</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + <DataGrid id="dgMain"> + <ClientEvent name="onDataRowDoubleClick">view.get("#dialogMain").show();</ClientEvent> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="drdh"> + <Property name="property">drdh</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="drdw"> + <Property name="property">drdw</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="drhwsl"> + <Property name="property">drhwsl</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="drhwdm"> + <Property name="property">drhwdm</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="dcrq"> + <Property name="property">dcrq</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="kddh"> + <Property name="property">kddh</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="bjw"> + <Property name="property">bjw</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="pch"> + <Property name="property">pch</Property> + <Property name="align">center</Property> + </DataColumn> + </DataGrid> + <ToolBar layoutConstraint="bottom"> + <Fill/> + <DataPilot> + <Property name="itemCodes">pageSize,pages</Property> + <Property name="dataSet">dsMain</Property> + </DataPilot> + </ToolBar> + <Dialog id="dialogMain"> + <Property name="width">80%</Property> + <Property name="caption">鍒颁粨淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 +});</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*</Property> + <Property name="labelWidth">150</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">left</Property> + <AutoFormElement> + <Property name="name">drdh</Property> + <Property name="property">drdh</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">drdw</Property> + <Property name="property">drdw</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">drhwsl</Property> + <Property name="property">drhwsl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">drhwdm</Property> + <Property name="property">drhwdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">dcrq</Property> + <Property name="property">dcrq</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kddh</Property> + <Property name="property">kddh</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bjw</Property> + <Property name="property">bjw</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">pch</Property> + <Property name="property">pch</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bizId</Property> + <Property name="property">bizId</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">syncTime</Property> + <Property name="property">syncTime</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">sHApi2102PR#saveData</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">sHApi2102PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">sHApi2102PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">sHApi2103PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> </View> </ViewConfig> -- Gitblit v1.9.3