Files
2026-08-31 16:22:00 +08:00

66 lines
1.9 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>办事类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>CategoryId</name>
<default>0</default>
<intro>当前分类Id</intro>
</attributes>
<LabelSqlString>
SELECT
[CategoryId],
[CategoryName],
[Description]
FROM
[PE_GV_WorkItemCategory]
WHERE
[ParentId] = @CategoryId
ORDER BY [OrderId]
</LabelSqlString>
<LabelTemplate>
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
<xsl:output method="html" />
<xsl:param name="CategoryId" />
<xsl:param name="CategoryName" />
<xsl:param name="Description" />
<xsl:param name="IsChildNodes" />
<xsl:template match="/">
<xsl:if test="count(NewDataSet/Table) > 0">
<xsl:for-each select="/NewDataSet/Table">
<li>
<a>
<xsl:attribute name="href">
{PE.SiteConfig.ApplicationPath/}Government/Approval/WorkItemList.aspx?categoryId=<xsl:value-of select="CategoryId"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Description"/>
</xsl:attribute>
<xsl:value-of select="CategoryName"/>
</a>
</li>
<xsl:if test="$IsChildNodes='true'">
{PE.Label id="显示子办事分类" categoryId='<xsl:value-of select="CategoryId"/>'/}
</xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<Version officialVersion="" modifiedVersions="3603" compatibleVersion="" />
<attributes>
<name>IsChildNodes</name>
<datatype>supersql</datatype>
<default>true</default>
<intro>是否输出子节点 true:是 false:否</intro>
</attributes>
</root>