2025-03-20 17:30:43 +08:00

14 lines
1.6 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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="Groupes dappareils" type="sql">
<Item text="DESCRIPTION" id="TAG_NAME" sql="SELECT concat('STAT_INST_RET_GRP.',RET_GRP_TAG) AS TAG_NAME,concat('G ',DESCRIPTION) as DESCRIPTION,SORT FROM stat_inst_ret_grp WHERE INST_TAG = '%1' UNION SELECT concat('STAT_INST_RET_PARA.',RET_TAG),concat('A ',DESCRIPTION) as DESCRIPTION,SORT FROM stat_inst_ret_para WHERE INST_TAG = '%1' AND RANK = 1 ORDER BY SORT;" icon="" clickTable="" vSearch="true" >
<Item text="DESCRIPTION" id="TAG_NAME" sql="SELECT concat('STAT_INST_RET_PARA.',RET_TAG) AS TAG_NAME,concat('A ',DESCRIPTION) as DESCRIPTION,SORT FROM stat_inst_ret_para WHERE getBeforeFirstDot('%1') = 'STAT_INST_RET_GRP' AND PARA_GRP_TAG = getAfterFirstDot('%1') AND RANK = 2 ORDER BY SORT;parent.id" icon="" clickTable="" vSearch="true" />
</Item>
</Tree>