jiazx0107@163.com
2023-11-04 43ce77a85d8297a53dc25430fff10ead57296167
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?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>