<?xml version="1.0" encoding="UTF-8"?>
|
<ViewConfig>
|
<Arguments/>
|
<Context/>
|
<Model/>
|
<View layout="padding:5;regionPadding:5">
|
<Property name="packages">font-awesome,css-common</Property>
|
<DataSet id="dataSetDic">
|
<Property name="dataProvider">dicTriggerPR#findAllParent</Property>
|
<Property name="loadMode">onCreate</Property>
|
<Property name="dataType">[dtDicTrigger]</Property>
|
</DataSet>
|
<ToolBar>
|
<ToolBarLabel>
|
<Property name="text">菜单栏:</Property>
|
</ToolBarLabel>
|
<ToolBarButton id="btnAddRoot">
|
<Property name="caption">添加根节点</Property>
|
<Property name="iconClass">fa fa-plus</Property>
|
</ToolBarButton>
|
<Separator/>
|
<ToolBarButton id="btnAdd">
|
<Property name="caption">添加子节点</Property>
|
<Property name="iconClass">fa fa-plus-circle</Property>
|
<Property name="exClassName">btn-normal</Property>
|
</ToolBarButton>
|
<Separator/>
|
<ToolBarButton id="btnModify">
|
<Property name="caption">编辑节点</Property>
|
<Property name="iconClass">fa fa-pencil</Property>
|
<Property name="exClassName">btn-warm</Property>
|
</ToolBarButton>
|
<Separator/>
|
<ToolBarButton id="btnRemove">
|
<Property name="caption">删除节点</Property>
|
<Property name="iconClass">fa fa-trash-o</Property>
|
<Property name="exClassName">btn-warn</Property>
|
</ToolBarButton>
|
<Separator/>
|
<ToolBarButton>
|
<Property name="caption">刷新缓存</Property>
|
<Property name="iconClass">fa fa-refresh</Property>
|
<Property name="action">ajaxRefreshCache</Property>
|
<Property name="exClassName">btn-flush</Property>
|
</ToolBarButton>
|
</ToolBar>
|
<DataTreeGrid id="dataTreeDic">
|
<Property name="currentNodeDataPath">CURRENT_NODE</Property>
|
<Property name="dataSet">dataSetDic</Property>
|
<Property name="treeColumn">name</Property>
|
<BindingConfigs>
|
<BindingConfig>
|
<Property name="childrenProperty">nodes</Property>
|
<Property name="labelProperty">name</Property>
|
<Property name="name">nodes</Property>
|
<Property name="iconClass">fa fa-folder-open-o</Property>
|
<BindingConfig>
|
<Property name="childrenProperty">nodes</Property>
|
<Property name="labelProperty">name</Property>
|
<Property name="name">nodes2</Property>
|
<Property name="iconClass">fa fa-folder-o</Property>
|
</BindingConfig>
|
</BindingConfig>
|
</BindingConfigs>
|
<Columns>
|
<DataColumn>
|
<Property name="name">name</Property>
|
<Property name="property">name</Property>
|
<Property name="readOnly">true</Property>
|
<Editor/>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">code</Property>
|
<Property name="name">code</Property>
|
<Property name="readOnly">true</Property>
|
<Editor/>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">parentCode</Property>
|
<Property name="name">parentCode</Property>
|
<Property name="readOnly">true</Property>
|
<Editor/>
|
</DataColumn>
|
<DataColumn>
|
<Property name="name">disabledTag</Property>
|
<Property name="property">disabledTag</Property>
|
<Property name="readOnly">true</Property>
|
<Editor/>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">remark</Property>
|
<Property name="name">remark</Property>
|
<Property name="readOnly">true</Property>
|
<Editor/>
|
</DataColumn>
|
</Columns>
|
</DataTreeGrid>
|
<Dialog id="dialogDic">
|
<Property name="width">500</Property>
|
<Property name="height">350</Property>
|
<Buttons>
|
<Button id="btnSubmit">
|
<Property name="caption">保存</Property>
|
<Property name="icon"> url(>skin>common/icons.gif) -140px -20px</Property>
|
<Property name="width">80</Property>
|
</Button>
|
<Button id="btnCancel">
|
<Property name="caption">取消</Property>
|
<Property name="icon"> url(>skin>common/icons.gif) -40px -0px</Property>
|
<Property name="width">80</Property>
|
</Button>
|
</Buttons>
|
<Children>
|
<AutoForm>
|
<Property name="cols">*</Property>
|
<Property name="dataSet">dataSetDic</Property>
|
<Property name="labelWidth">100</Property>
|
<Property name="dataPath">!CURRENT_NODE</Property>
|
<Property name="labelSeparator">:</Property>
|
<AutoFormElement id="code">
|
<Property name="label">字典编码</Property>
|
<Property name="name">code</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="property">code</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="label">字典名称</Property>
|
<Property name="name">name</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="property">name</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">disabledTag</Property>
|
<Property name="property">disabledTag</Property>
|
<Property name="editorType">RadioGroup</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement layoutConstraint="colSpan:2">
|
<Property name="name">remark</Property>
|
<Property name="property">remark</Property>
|
<Property name="editorType">TextArea</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
<Tools/>
|
</Dialog>
|
<AjaxAction id="ajaxActionDel">
|
<Property name="service">dicTriggerPR#delByCode</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxActionUpdate">
|
<Property name="service">dicTriggerPR#saveData</Property>
|
<Property name="successMessage">保存成功!</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxRefreshCache">
|
<Property name="confirmMessage">确定要刷新缓存么?</Property>
|
<Property name="service">dicTriggerPR#refreshCache</Property>
|
<Property name="successMessage">缓存刷新成功!</Property>
|
</AjaxAction>
|
</View>
|
</ViewConfig>
|