Files
ningbo/动易的标签库/标签库/政务公开/GOV_得到公开目录导航.config
2026-08-31 16:22:00 +08:00

46 lines
1.7 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>政务公开</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>publicCatalogId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>公开目录ID</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT * FROM PE_GV_PublicCatalog WHERE PublicCatalogId = @publicCatalogId</LabelSqlString>
<LabelTemplate>
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
<!--params-->
<xsl:output method="html" />
<xsl:param name="depth"/>
<xsl:template match="/NewDataSet/Table">
<xsl:if test="ParentId = PublicCatalogId">
{PE.Label id="GOV_当前部门位置导航" departmentId="<xsl:value-of select="DepartmentId"/>" depth="<xsl:value-of select="$depth + 1"/>" /}
</xsl:if>
<xsl:if test="ParentId != PublicCatalogId">
{PE.Label id="GOV_得到公开目录导航" publicCatalogId="<xsl:value-of select="ParentId"/>" depth="<xsl:value-of select="$depth + 1"/>" /}
</xsl:if>
<a> <xsl:attribute name="href">{PE.SiteConfig.ApplicationPath/}Government/PublicInfoList.aspx?PublicCatalogId=<xsl:value-of select="PublicCatalogId"/></xsl:attribute><xsl:value-of select="PublicCatalogName"/></a>
<xsl:if test="$depth != 0">
<xsl:text disable-output-escaping="yes">&amp;nbsp;&gt;&gt;</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<attributes>
<name>depth</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>目录深度</intro>
</attributes>
</root>