HM-SPMS/resource/fr/model_studio/setting/tree/devInstTreeGrpAndLocation.xml
2025-03-20 17:30:43 +08:00

15 lines
1.3 KiB
XML
Raw 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="Emplacement/groupe dappareils" type="sql">
<Item text="DESCRIPTION" id="LOCATION_ID" sql="SELECT LOCATION_ID,DESCRIPTION FROM SYS_MODEL_LOCATION_INFO;" icon="device.png" clickTable="Location" vSearch="true">
<Item text="DESCRIPTION" id="TAG_NAME" sql="SELECT TAG_NAME,DESCRIPTION FROM DEV_GROUP WHERE LOCATION_ID='%2' AND SUB_SYSTEM = '%1' ORDER BY DEV_GROUP_NO;parent.id" icon="device_child.png" clickTable="DevGrp" vSearch="true"/>
</Item>
</Tree>