<?xml version="1.0" encoding="UTF-8"?>
|
<ViewConfig>
|
<Arguments/>
|
<Context/>
|
<Model>
|
<DataType name="dtMain">
|
<Property name="creationType">com.fzzy.api.entity.Api1403</Property>
|
<PropertyDef name="lhjhdh">
|
<Property></Property>
|
<Property name="label">轮换计划单号</Property>
|
</PropertyDef>
|
<PropertyDef name="jhwh">
|
<Property></Property>
|
<Property name="label">计划文号</Property>
|
</PropertyDef>
|
<PropertyDef name="jhmc">
|
<Property></Property>
|
<Property name="label">计划名称</Property>
|
</PropertyDef>
|
<PropertyDef name="jhnd">
|
<Property name="label">计划年度</Property>
|
</PropertyDef>
|
<PropertyDef name="kszxrq">
|
<Property name="label">开始执行日期</Property>
|
<Property name="dataType">Date</Property>
|
</PropertyDef>
|
<PropertyDef name="jzzxrq">
|
<Property name="label">截止执行日期</Property>
|
<Property name="dataType">Date</Property>
|
</PropertyDef>
|
<PropertyDef name="jhxddw">
|
<Property name="label">计划下达单位</Property>
|
</PropertyDef>
|
<PropertyDef name="jhxddwmc">
|
<Property name="label">计划下达单位名称</Property>
|
</PropertyDef>
|
<PropertyDef name="jhxdsj">
|
<Property name="label">计划下达时间</Property>
|
<Property name="dataType">Date</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>
|
<PropertyDef name="zhgxsj">
|
<Property></Property>
|
<Property name="label">更新时间</Property>
|
<Property name="dataType">DateTime</Property>
|
</PropertyDef>
|
<PropertyDef name="bizId">
|
<Property></Property>
|
<Property name="label">业务id</Property>
|
</PropertyDef>
|
<PropertyDef name="kqdm">
|
<Property></Property>
|
<Property name="label">库区代码</Property>
|
</PropertyDef>
|
<PropertyDef name="syncTime">
|
<Property name="dataType">Date</Property>
|
<Property name="label">同步时间</Property>
|
</PropertyDef>
|
<PropertyDef name="manageWay">
|
<Property></Property>
|
<Property name="label">管理方式</Property>
|
<Property name="mapping">
|
<Property name="keyProperty">key</Property>
|
<Property name="valueProperty">value</Property>
|
<Property name="mapValues">
|
<Collection>
|
<Entity>
|
<Property name="key">1</Property>
|
<Property name="value">1-直储</Property>
|
</Entity>
|
<Entity>
|
<Property name="key">2</Property>
|
<Property name="value">2-代储</Property>
|
</Entity>
|
<Entity>
|
<Property name="key">3</Property>
|
<Property name="value">3-租仓</Property>
|
</Entity>
|
<Entity>
|
<Property name="key">4</Property>
|
<Property name="value">4-委托</Property>
|
</Entity>
|
</Collection>
|
</Property>
|
</Property>
|
</PropertyDef>
|
<PropertyDef name="rotationType">
|
<Property></Property>
|
<Property name="label">轮换类型</Property>
|
<Property name="mapping">
|
<Property name="keyProperty">key</Property>
|
<Property name="valueProperty">value</Property>
|
<Property name="mapValues">
|
<Collection>
|
<Entity>
|
<Property name="key">1</Property>
|
<Property name="value">1-静态轮换</Property>
|
</Entity>
|
<Entity>
|
<Property name="key">2</Property>
|
<Property name="value">2-动态轮换</Property>
|
</Entity>
|
</Collection>
|
</Property>
|
</Property>
|
</PropertyDef>
|
<PropertyDef name="fileStorageId">
|
<Property></Property>
|
<Property name="label">文件存储ID</Property>
|
</PropertyDef>
|
<PropertyDef name="wjdz">
|
<Property name="label">文件地址</Property>
|
</PropertyDef>
|
<PropertyDef name="fileName">
|
<Property></Property>
|
<Property name="label">文件名称</Property>
|
</PropertyDef>
|
<PropertyDef name="rotationInQty">
|
<Property></Property>
|
<Property name="dataType">Double</Property>
|
<Property name="label">轮入数量</Property>
|
</PropertyDef>
|
<PropertyDef name="rotationOutQty">
|
<Property></Property>
|
<Property name="dataType">Double</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">api1403PR#pageList</Property>
|
<Property name="pageSize">20</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">
|
<Property name="dataSet">dsMain</Property>
|
<Property name="selectionMode">multiRows</Property>
|
<Property name="readOnly">true</Property>
|
<RowNumColumn/>
|
<RowSelectorColumn>
|
<Property name="caption">上传</Property>
|
</RowSelectorColumn>
|
<DataColumn>
|
<Property name="property">jhmc</Property>
|
<Property name="name">jhmc</Property>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">jhwh</Property>
|
<Property name="name">jhwh</Property>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">jhnd</Property>
|
<Property name="name">jhnd</Property>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">kszxrq</Property>
|
<Property name="name">kszxrq</Property>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">jzzxrq</Property>
|
<Property name="name">jzzxrq</Property>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">jhxddw</Property>
|
<Property name="name">jhxddw</Property>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">jhxdsj</Property>
|
<Property name="name">jhxdsj</Property>
|
</DataColumn>
|
<DataColumn name="czbz">
|
<Property name="property">czbz</Property>
|
</DataColumn>
|
<DataColumn name="zhgxsj">
|
<Property name="property">zhgxsj</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">1000</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>
|
<Property name="caption">上传文件</Property>
|
<Property name="iconClass">fa fa-upload</Property>
|
<Property name="exClassName">toolbar-button-warm</Property>
|
<Property name="action">uploadAction</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>
|
<GroupBox>
|
<Property name="caption">基础信息</Property>
|
<Buttons/>
|
<Children>
|
<AutoForm>
|
<Property name="dataSet">dsMain</Property>
|
<Property name="cols">*,*,*</Property>
|
<Property name="labelWidth">100</Property>
|
<Property name="labelAlign">left</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="labelPosition">top</Property>
|
<AutoFormElement>
|
<Property name="name">lhjhdh</Property>
|
<Property name="property">lhjhdh</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">jhwh</Property>
|
<Property name="property">jhwh</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">jhmc</Property>
|
<Property name="property">jhmc</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">jhnd</Property>
|
<Property name="property">jhnd</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">kszxrq</Property>
|
<Property name="property">kszxrq</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">jzzxrq</Property>
|
<Property name="property">jzzxrq</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">jhxddw</Property>
|
<Property name="property">jhxddw</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">jhxddwmc</Property>
|
<Property name="property">jhxddwmc</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">jhxdsj</Property>
|
<Property name="property">jhxdsj</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">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">wjdz</Property>
|
<Property name="property">wjdz</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
</GroupBox>
|
<GroupBox>
|
<Property name="caption">广东省平台</Property>
|
<Buttons/>
|
<Children>
|
<AutoForm>
|
<Property name="dataSet">dsMain</Property>
|
<Property name="cols">*,*,*</Property>
|
<Property name="labelWidth">100</Property>
|
<Property name="labelAlign">left</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="labelPosition">top</Property>
|
<AutoFormElement>
|
<Property name="name">manageWay</Property>
|
<Property name="property">manageWay</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">rotationType</Property>
|
<Property name="property">rotationType</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">fileStorageId</Property>
|
<Property name="property">fileStorageId</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">fileName</Property>
|
<Property name="property">fileName</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">rotationInQty</Property>
|
<Property name="property">rotationInQty</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">rotationOutQty</Property>
|
<Property name="property">rotationOutQty</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
</GroupBox>
|
</Children>
|
<Tools/>
|
</Dialog>
|
<UpdateAction id="updateSave">
|
<Property name="dataResolver">api1403PR#updateSave</Property>
|
<UpdateItem>
|
<Property name="dataPath">[#current]</Property>
|
<Property name="dataSet">dsMain</Property>
|
</UpdateItem>
|
</UpdateAction>
|
<AjaxAction id="ajaxPush">
|
<Property name="service">api1403PR#pushData</Property>
|
<Property name="confirmMessage">确定要上报么?</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxDel">
|
<Property name="service">api1403PR#delData</Property>
|
<Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxDelUpdate">
|
<Property name="service">api1403PR#delUpdate</Property>
|
<Property name="confirmMessage">确定要将数据标记为删除么?</Property>
|
</AjaxAction>
|
<UploadAction id="uploadAction">
|
<ClientEvent name="onFileUploaded">var returnValue = arg.returnValue;//获取FileResolver方法返回的信息&#xD;
|

|
var cur = view.get("#dsMain.data:#");
|
cur.set("wjdz",returnValue);</ClientEvent>
|
<Property name="fileResolver">uploadProcessor#uploadFile</Property>
|
<Filters/>
|
</UploadAction>
|
</View>
|
</ViewConfig>
|