64 lines
2.0 KiB
XML
64 lines
2.0 KiB
XML
<?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="3602" compatibleVersion="" />
|
|
<attributes>
|
|
<name>CategoryId</name>
|
|
<datatype>supersql</datatype>
|
|
<default>1</default>
|
|
<intro>办事分类ID</intro>
|
|
</attributes>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>
|
|
SELECT TOP @Count [ItemId],[WorkName],[CategoryId] FROM [PE_GV_WorkItem] WHERE [CategoryId] in
|
|
(SELECT [CategoryId] FROM PE_GV_WorkItemCategory WHERE [ParentId]=@CategoryId)</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:param name="CategoryId" />
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/">
|
|
|
|
<xsl:choose>
|
|
<xsl:when test="count(NewDataSet/Table) > 0">
|
|
<xsl:for-each select="/NewDataSet/Table">
|
|
<li>
|
|
<a>
|
|
<xsl:variable name="WorkName" select="WorkName"/>
|
|
<xsl:attribute name="title">
|
|
<xsl:value-of select="WorkName"/>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="href">
|
|
{PE.SiteConfig.ApplicationPath/}Government/Approval/WorkItem.aspx?itemId=<xsl:value-of select="ItemId"/>&categoryId=<xsl:value-of select="CategoryId"/>&type=rule
|
|
</xsl:attribute>
|
|
<xsl:choose>
|
|
<xsl:when test="string-length($WorkName) > 30">
|
|
<xsl:value-of select= "substring(WorkName,1,30) "/>...
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="WorkName"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</a>
|
|
</li>
|
|
</xsl:for-each>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<center><b>暂没有数据</b></center>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
<attributes>
|
|
<name>Count</name>
|
|
<datatype>supersql</datatype>
|
|
<default>15</default>
|
|
<intro>输出数据条数</intro>
|
|
</attributes>
|
|
</root> |