first commit
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>政务督查</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3003" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>GroupId</name>
|
||||
<datatype>sql.int</datatype>
|
||||
<default>3</default>
|
||||
<intro>所属的组</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>true</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>
|
||||
<![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">
|
||||
<!--要使用上一步定义的自定义参数,要作为XSLT参数使用,务必要在这里声明。如:<xsl:param name="myPara" />.引用该参数:$myPara -->
|
||||
<xsl:param name="GroupId" />
|
||||
<xsl:param name="GroupType" />
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/">
|
||||
<!--请按提示编辑,保持该模板结构的正确性-->
|
||||
<root>
|
||||
<sql>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$GroupType=1">
|
||||
SELECT SectorName FROM PE_Gv_Sector WHERE SectorId=@GroupId
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
SELECT DelegationName FROM PE_GV_Delegation WHERE DelegationId=@GroupId
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</sql>
|
||||
<sqlpage>
|
||||
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
|
||||
</sqlpage>
|
||||
<countsql>
|
||||
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
|
||||
</countsql>
|
||||
</root>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]>
|
||||
</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">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="GroupType" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$GroupType=1">
|
||||
<xsl:value-of select="SectorName"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="DelegationName"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]>
|
||||
</LabelTemplate>
|
||||
<attributes>
|
||||
<name>GroupType</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>0--人大 1--政协</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
Reference in New Issue
Block a user