15 lines
1.2 KiB
XML
15 lines
1.2 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
<!--Item中text是显示的文本,sql不为空时,代表列名
|
||
|
|
id是写入IDROLE角色的数据,sql不为空时,代表列名
|
||
|
|
icon是资源文件中的图标文件名
|
||
|
|
clickTable 单击Item时应该展现的表格
|
||
|
|
vSearch:可选项,配合sql属性使用,当sql不为空时,vSearch应为true,此属性代表搜索方向,true为竖着搜索,false或者其他为横着搜索,一旦为true,本Item以及与此Item为父子关系的,都是竖着搜索,此时Item中的语句被执行,获得的结果集会生成一列,
|
||
|
|
然后执行子Item中sql,获得结果集,并插入父Item的每个结果集中,依次循环.
|
||
|
|
sql:sql语句中可以使用占位符,占位符的值可以通过parent.parent.id去引用,一个parent往上一级,两个则联机,id表示引用父Item的ID字段的值
|
||
|
|
-->
|
||
|
|
<Tree text="" type="sql">
|
||
|
|
<Item text="Group Define" id="" sql="" icon="device_child.png" clickTable="CALC_GROUP_DEF.xml" />
|
||
|
|
<Item text="Function Define" id="" sql="" icon="device_child.png" clickTable="CALC_FUNC_DEF.xml" />
|
||
|
|
<Item text="Param Define" id="" sql="" icon="device_child.png" clickTable="CALC_PARA_DEF.xml"/>
|
||
|
|
<Item text="Calculation Point" id="" sql="" icon="device_child.png" clickTable="CALC_OUT_PARA.xml" />
|
||
|
|
</Tree>
|