first commit
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user