<?xml version="1.0" encoding="UTF-8"?>
|
<ViewConfig>
|
<Arguments/>
|
<Context/>
|
<Model/>
|
<View layout="padding:5;regionPadding:5">
|
<ClientEvent name="onReady">var depotList = null;
|
</ClientEvent>
|
<Property name="packages">font-awesome,css-common</Property>
|
<DataSet id="dsMain">
|
<Property name="dataProvider">depotPR#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("#dsMain").insert();
|
view.get("#depotId").set("readOnly",false);
|
view.get("#dgMain").show();</ClientEvent>
|
<Property name="caption">新增</Property>
|
<Property name="exClassName">btn-normal</Property>
|
<Property name="iconClass">fa fa-plus</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">var cur = view.get("#dsMain.data:#");
|
if(!cur) return ;
|
view.get("#depotId").set("readOnly",true);
|
view.get("#dgMain").show();</ClientEvent>
|
<Property name="caption">修改</Property>
|
<Property name="exClassName">btn-warm</Property>
|
<Property name="iconClass">fa fa-pencil</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">var entity = view.get("#dsMain.data:#");
|
if(entity){
|
view.get("#ajaxDel2").set("parameter",entity).execute(function(result){
|
if(result){
|
$alert(result);
|
}else{
|
entity.remove();
|
}
|
});
|
}</ClientEvent>
|
<Property name="caption">删除</Property>
|
<Property name="exClassName">btn-warn</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>
|
</Container>
|
<DataGrid layoutConstraint="center ">
|
<ClientEvent name="onDataRowDoubleClick">var cur = view.get("#dsMain.data:#");
|
if(!cur) return ;
|
view.get("#depotId").set("readOnly",true);
|
view.get("#dgMain").show();</ClientEvent>
|
<Property name="dataSet">dsMain</Property>
|
<Property name="readOnly">true</Property>
|
<IndicatorColumn/>
|
<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">depotPR#saveConf</Property>
|
<UpdateItem>
|
<Property name="dataSet">dsMain</Property>
|
<Property name="dataPath">[#current]</Property>
|
</UpdateItem>
|
</UpdateAction>
|
<AjaxAction id="ajaxRefreshCache">
|
<Property name="service">depotPR#flushConfCache</Property>
|
<Property name="successMessage">刷新成功!</Property>
|
<Property name="confirmMessage">确定要刷新缓存么?</Property>
|
</AjaxAction>
|
<Dialog id="dgMain">
|
<ClientEvent name="onShow">//根据仓库类型不同,显示不同的配置信息</ClientEvent>
|
<Property name="caption">检测配置参数</Property>
|
<Property name="width">900</Property>
|
<Property name="closeable">false</Property>
|
<Property name="height">600</Property>
|
<Buttons>
|
<Button>
|
<ClientEvent name="onClick">view.get("#uaMain").execute(function(){
|
view.get("#dgMain").hide();
|
});</ClientEvent>
|
<Property name="iconClass">fa fa-check</Property>
|
<Property name="caption">确认更新</Property>
|
</Button>
|
<Button>
|
<ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
|
view.get("#dgMain").hide();</ClientEvent>
|
<Property name="caption">取消更新</Property>
|
<Property name="iconClass">fa fa-share-square-o</Property>
|
</Button>
|
</Buttons>
|
<Children>
|
<FieldSet>
|
<Property name="caption">基本信息</Property>
|
<Buttons/>
|
<Children>
|
<AutoForm layoutConstraint="padding:5">
|
<Property name="dataSet">dsMain</Property>
|
<Property name="cols">*,*,*</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="labelWidth">100</Property>
|
<AutoFormElement id="depotId">
|
<Property name="name">depotId</Property>
|
<Property name="property">depotId</Property>
|
<Property name="readOnly">true</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
</FieldSet>
|
<FieldSet>
|
<Property name="caption">粮温检测配置</Property>
|
<Buttons/>
|
<Children>
|
<AutoForm layoutConstraint="padding:5">
|
<Property name="dataSet">dsMain</Property>
|
<Property name="cols">*,*,*</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="labelWidth">120</Property>
|
<AutoFormElement>
|
<Property name="name">grainSer</Property>
|
<Property name="property">grainSer</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">cableStart</Property>
|
<Property name="property">cableStart</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">cableEnd</Property>
|
<Property name="property">cableEnd</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">cableRule</Property>
|
<Property name="property">cableRule</Property>
|
<Property name="label">布线规则</Property>
|
<Editor/>
|
</AutoFormElement>
|
<Label layoutConstraint="colSpan:2">
|
<Property name="text">说明:平方仓:层-行-列,筒仓:第1圈根数-第2圈根数-第n圈根数</Property>
|
<Property name="style">
|
<Property name="color">blue</Property>
|
</Property>
|
</Label>
|
<AutoFormElement>
|
<Property name="name">cableCir</Property>
|
<Property name="property">cableCir</Property>
|
<Property name="label">层规则</Property>
|
<Editor/>
|
</AutoFormElement>
|
<Label layoutConstraint="colSpan:2">
|
<Property name="text">说明:只针对筒仓:第1圈层数-第2圈层数-第n圈层数</Property>
|
<Property name="style">
|
<Property name="color">blue</Property>
|
</Property>
|
</Label>
|
<AutoFormElement>
|
<Property name="name">tempMax</Property>
|
<Property name="property">tempMax</Property>
|
<Property name="label">粮温上限</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="property">startOrientation</Property>
|
<Property name="name">startOrientation</Property>
|
<Property name="editable">false</Property>
|
<Property name="trigger">autoMappingDropDown1</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="property">startDirection</Property>
|
<Property name="name">startDirection</Property>
|
<Property name="editable">false</Property>
|
<Property name="trigger">autoMappingDropDown1</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="property">startPoint</Property>
|
<Property name="name">startPoint</Property>
|
<Property name="editable">false</Property>
|
<Property name="trigger">autoMappingDropDown1</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="property">cableCone</Property>
|
<Property name="name">cableCone</Property>
|
<Property name="editable">false</Property>
|
<Property name="trigger">autoMappingDropDown1</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">grainFreq</Property>
|
<Property name="property">grainFreq</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">thSer</Property>
|
<Property name="property">thSer</Property>
|
<Property name="trigger">autoMappingDropDown2</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">thConf</Property>
|
<Property name="property">thConf</Property>
|
<Editor/>
|
</AutoFormElement>
|
<Button>
|
<ClientEvent name="onClick">var grainFreq = view.get("#dsMain.data:#").get("grainFreq");
|

|
if(grainFreq){
|
view.get("#ajaxUpdateFreq").set("parameter",grainFreq).execute(function(){
|
view.get("#dgMain").hide();
|
view.get("#dsMain").flushAsync();
|
});
|
}else{
|
$alert("请先配置更新频率!")
|
}</ClientEvent>
|
<Property name="caption">频率同步</Property>
|
<Property name="tip">更新所有仓库频率一致</Property>
|
<Property name="iconClass">fa fa-refresh</Property>
|
</Button>
|
</AutoForm>
|
</Children>
|
</FieldSet>
|
<FieldSet>
|
<Property name="caption">气体检测配置</Property>
|
<Buttons/>
|
<Children>
|
<AutoForm layoutConstraint="padding:5">
|
<Property name="dataSet">dsMain</Property>
|
<Property name="cols">*,*,*</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="labelWidth">120</Property>
|
<AutoFormElement>
|
<Property name="name">gasSer</Property>
|
<Property name="property">gasSer</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">gasStart</Property>
|
<Property name="property">gasStart</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">gasEnd</Property>
|
<Property name="property">gasEnd</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">n2Max</Property>
|
<Property name="property">n2Max</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">co2Max</Property>
|
<Property name="property">co2Max</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">o2Max</Property>
|
<Property name="property">o2Max</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">ph3Max</Property>
|
<Property name="property">ph3Max</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
</FieldSet>
|
<FieldSet>
|
<Property name="caption">虫害检测配置</Property>
|
<Buttons/>
|
<Children>
|
<AutoForm layoutConstraint="padding:5">
|
<Property name="dataSet">dsMain</Property>
|
<Property name="cols">*,*,*</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="labelWidth">100</Property>
|
<AutoFormElement>
|
<Property name="name">pestSer</Property>
|
<Property name="property">pestSer</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">pestStart</Property>
|
<Property name="property">pestStart</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">pestEnd</Property>
|
<Property name="property">pestEnd</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">pestMax</Property>
|
<Property name="property">pestMax</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
</FieldSet>
|
<FieldSet>
|
<Property name="caption">其他配置</Property>
|
<Buttons/>
|
<Children>
|
<AutoForm layoutConstraint="padding:5">
|
<Property name="dataSet">dsMain</Property>
|
<Property name="cols">*,*,*</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="labelWidth">100</Property>
|
<AutoFormElement>
|
<Property name="name">verbSer</Property>
|
<Property name="property">verbSer</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">esSer</Property>
|
<Property name="property">esSer</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
</FieldSet>
|
</Children>
|
<Tools/>
|
</Dialog>
|
<AjaxAction id="ajaxUpdateFreq">
|
<Property name="confirmMessage">确定要更新所有仓库?</Property>
|
<Property name="service">depotPR#updateFreq</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxDel2">
|
<Property name="successMessage">删除成功</Property>
|
<Property name="service">depotPR#delDepotConf</Property>
|
<Property name="executingMessage">正在删除</Property>
|
<Property name="confirmMessage">确定要删除么?</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxDepotList">
|
<Property name="service">depotPR#ajaxGetAllCache</Property>
|
<Property name="executingMessage">初始化数据……</Property>
|
</AjaxAction>
|
</View>
|
</ViewConfig>
|