Files
ningbo/动易的标签库/标签库/专题类/取得专题类别配置信息.config
T
2026-08-31 16:22:00 +08:00

60 lines
1.8 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>专题类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>specialCategoryID</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>专题类别ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<LabelSqlString>SELECT
SC.SpecialCategoryID,
SC.SpecialCategoryName,
SC.Description,
SC.OpenType
FROM
PE_SpecialCategory SC
WHERE
SC.SpecialCategoryID = @specialCategoryID</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="DisplayType" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="$DisplayType = 1">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetSpecialCategoryPath(SpecialCategoryID)"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of disable-output-escaping="yes" select="Description"/>
</xsl:attribute>
<xsl:value-of select="SpecialCategoryName"/>
</a>
</xsl:when>
<xsl:when test="$DisplayType = 2">
<xsl:value-of select="OpenType"/>
</xsl:when>
<xsl:when test="$DisplayType = 3">
<xsl:value-of disable-output-escaping="yes" select="Description"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<attributes>
<name>DisplayType</name>
<datatype>int</datatype>
<default>1</default>
<intro>输出类型{类别名称:1,打开方式:2,类别说明3}</intro>
</attributes>
</root>