<?xml version="1.0" encoding="UTF-8"?>
|
<ViewConfig>
|
<Arguments/>
|
<Context/>
|
<Model>
|
<DataType name="dtMain">
|
<Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1108</Property>
|
<PropertyDef name="hwbh">
|
<Property></Property>
|
<Property name="label">货位编号</Property>
|
</PropertyDef>
|
<PropertyDef name="jlqybh">
|
<Property></Property>
|
<Property name="label">军粮企业编号</Property>
|
</PropertyDef>
|
<PropertyDef name="jlqymc">
|
<Property></Property>
|
<Property name="label">军粮企业名称</Property>
|
</PropertyDef>
|
<PropertyDef name="jgzdbh">
|
<Property></Property>
|
<Property name="label">军供站点编号</Property>
|
</PropertyDef>
|
<PropertyDef name="jgzdmc">
|
<Property></Property>
|
<Property name="label">军供站点名称</Property>
|
</PropertyDef>
|
<PropertyDef name="sscfbh">
|
<Property></Property>
|
<Property name="label">仓房编号</Property>
|
</PropertyDef>
|
<PropertyDef name="sscfmc">
|
<Property></Property>
|
<Property name="label">仓房名称</Property>
|
</PropertyDef>
|
<PropertyDef name="ssajbh">
|
<Property></Property>
|
<Property name="label">廒间编号</Property>
|
</PropertyDef>
|
<PropertyDef name="ajmc">
|
<Property></Property>
|
<Property name="label">廒间名称</Property>
|
</PropertyDef>
|
<PropertyDef name="hwmc">
|
<Property></Property>
|
<Property name="label">货位名称</Property>
|
</PropertyDef>
|
<PropertyDef name="hwqyrq">
|
<Property name="dataType">Date</Property>
|
<Property name="label">货位启用日期</Property>
|
</PropertyDef>
|
<PropertyDef name="hwzt">
|
<Property></Property>
|
<Property name="label">货位状态</Property>
|
<Property name="mapping">
|
<Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CFZT")}</Property>
|
<Property name="keyProperty">code</Property>
|
<Property name="valueProperty">name</Property>
|
</Property>
|
</PropertyDef>
|
<PropertyDef name="clfs">
|
<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">袋装</Property>
|
</Entity>
|
<Entity>
|
<Property name="key">2</Property>
|
<Property name="value">瓶装</Property>
|
</Entity>
|
</Collection>
|
</Property>
|
</Property>
|
</PropertyDef>
|
<PropertyDef name="hwrl">
|
<Property name="dataType">Double</Property>
|
<Property name="label">货位容量</Property>
|
<Property name="displayFormat">#0.00吨</Property>
|
</PropertyDef>
|
<PropertyDef name="sfyx">
|
<Property></Property>
|
<Property name="label">是否有效</Property>
|
</PropertyDef>
|
<PropertyDef name="bz">
|
<Property></Property>
|
<Property name="label">备注</Property>
|
</PropertyDef>
|
<PropertyDef name="bizId">
|
<Property></Property>
|
<Property name="label">业务ID</Property>
|
</PropertyDef>
|
<PropertyDef name="updateTime">
|
<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>
|
<PropertyDef name="kqdm">
|
<Property></Property>
|
<Property name="label">库区代码</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">whjlApi1108PR#listData</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("#dsMain").insert();
|
view.get("#dialogMain").show();</ClientEvent>
|
<Property name="iconClass">fa fa-plus</Property>
|
<Property name="caption">新增</Property>
|
<Property name="exClassName">btn-default</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
|
if(cur){
|
view.get("#dialogMain").show();
|
}else{
|
$alert("请勾选需要修改的数据!");
|
}</ClientEvent>
|
<Property name="caption">编辑</Property>
|
<Property name="iconClass">fa fa-pencil</Property>
|
<Property name="exClassName">btn-warm</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
|
if(cur){
|
view.get("#ajaxDel").set("parameter",cur).execute(function(result){
|
if(result){
|
$alert(result);
|
} else{
|
cur.remove();
|
}
|
});
|
}else{
|
$alert("请勾选需要删除的数据!");
|
}</ClientEvent>
|
<Property name="caption">删除</Property>
|
<Property name="iconClass">fa fa-minus</Property>
|
<Property name="exClassName">btn-warn</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">view.get("#dsMain").flushAsync();</ClientEvent>
|
<Property name="caption">刷新</Property>
|
<Property name="iconClass">fa fa-search</Property>
|
<Property name="exClassName">btn-flush</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<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">btn-default</Property>
|
</Button>
|
<Button layoutConstraint="right">
|
<ClientEvent name="onClick">//显示记录
|
view.get("#iFrame").reload();
|
view.get("#dialogLog").show();</ClientEvent>
|
<Property name="caption">上传记录</Property>
|
<Property name="iconClass">fa fa-bars</Property>
|
<Property name="exClassName">btn-flush</Property>
|
</Button>
|
</Container>
|
<Container layoutConstraint="center">
|
<Property name="exClassName">bg-color</Property>
|
<DataGrid id="dgMain">
|
<ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
|
if(data){
|
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="hwmc">
|
<Property name="property">hwmc</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="jlqymc">
|
<Property name="property">jlqymc</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="jgzdmc">
|
<Property name="property">jgzdmc</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="sscfmc">
|
<Property name="property">sscfmc</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="ajmc">
|
<Property name="property">ajmc</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="hwqyrq">
|
<Property name="property">hwqyrq</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="hwzt">
|
<Property name="property">hwzt</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="clfs">
|
<Property name="property">clfs</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="czbz">
|
<Property name="property">czbz</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="updateTime">
|
<Property name="property">updateTime</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
</DataGrid>
|
</Container>
|
<Dialog id="dialogMain">
|
<Property name="width">60%</Property>
|
<Property name="closeable">false</Property>
|
<Property name="iconClass">fa fa-sliders</Property>
|
<Property name="caption">货位信息</Property>
|
<Buttons>
|
<Button>
|
<ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
|
view.get("#updateSave").execute(function(){
|
self.get("parent").hide();
|
view.get("#dsMain").flushAsync();
|
});</ClientEvent>
|
<Property name="caption">确定</Property>
|
<Property name="iconClass">fa fa-check</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>
|
</Button>
|
</Buttons>
|
<Children>
|
<AutoForm>
|
<Property name="dataSet">dsMain</Property>
|
<Property name="cols">*,*</Property>
|
<Property name="labelPosition">left</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="labelWidth">120</Property>
|
<Property name="labelAlign">right</Property>
|
<AutoFormElement>
|
<Property name="name">hwbh</Property>
|
<Property name="property">hwbh</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">hwmc</Property>
|
<Property name="property">hwmc</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">jlqybh</Property>
|
<Property name="property">jlqybh</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">jlqymc</Property>
|
<Property name="property">jlqymc</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">jgzdbh</Property>
|
<Property name="property">jgzdbh</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">jgzdmc</Property>
|
<Property name="property">jgzdmc</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">sscfbh</Property>
|
<Property name="property">sscfbh</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">sscfmc</Property>
|
<Property name="property">sscfmc</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">ssajbh</Property>
|
<Property name="property">ssajbh</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">ajmc</Property>
|
<Property name="property">ajmc</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">hwqyrq</Property>
|
<Property name="property">hwqyrq</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">hwzt</Property>
|
<Property name="property">hwzt</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">clfs</Property>
|
<Property name="property">clfs</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">hwrl</Property>
|
<Property name="property">hwrl</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">sfyx</Property>
|
<Property name="property">sfyx</Property>
|
<Property name="trigger">listDropYN</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">bizId</Property>
|
<Property name="property">bizId</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">updateTime</Property>
|
<Property name="property">updateTime</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">czbz</Property>
|
<Property name="property">czbz</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">kqdm</Property>
|
<Property name="property">kqdm</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">bz</Property>
|
<Property name="property">bz</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
<Tools/>
|
</Dialog>
|
<UpdateAction id="updateSave">
|
<Property name="dataResolver">whjlApi1108PR#saveData</Property>
|
<UpdateItem>
|
<Property name="dataPath">[#current]</Property>
|
<Property name="dataSet">dsMain</Property>
|
</UpdateItem>
|
</UpdateAction>
|
<AjaxAction id="ajaxDel">
|
<Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
|
<Property name="service">whjlApi1108PR#delData</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxPush">
|
<Property name="service">whjlApi1108PR#pushData</Property>
|
</AjaxAction>
|
<Dialog id="dialogLog">
|
<Property name="width">90%</Property>
|
<Property name="height">90%</Property>
|
<Property name="caption">上传记录</Property>
|
<Property name="iconClass">fa fa-sliders</Property>
|
<Buttons>
|
<Button>
|
<ClientEvent name="onClick">self.get("parent").hide();</ClientEvent>
|
<Property name="caption">关闭</Property>
|
<Property name="iconClass">fa fa-times</Property>
|
</Button>
|
</Buttons>
|
<Children>
|
<Container>
|
<IFrame id="iFrame">
|
<Property name="path">com.fzzy.api.view.ApiLog.d</Property>
|
<Property name="userData">
|
<Entity>
|
<Property name="deptId">deptId</Property>
|
</Entity>
|
</Property>
|
</IFrame>
|
</Container>
|
</Children>
|
<Tools/>
|
</Dialog>
|
<ListDropDown id="listDropYN">
|
<Property name="items">是,否</Property>
|
</ListDropDown>
|
</View>
|
</ViewConfig>
|