first commit
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
<?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>
|
||||
IF EXISTS(SELECT TOP 1
|
||||
[CategoryId]
|
||||
FROM
|
||||
[PE_GV_WorkItemCategory]
|
||||
WHERE
|
||||
[ParentId] = @CategoryId)
|
||||
BEGIN
|
||||
SELECT
|
||||
[CategoryId],
|
||||
[CategoryName],
|
||||
[Description]
|
||||
FROM
|
||||
[PE_GV_WorkItemCategory]
|
||||
WHERE
|
||||
[ParentId] = @CategoryId
|
||||
ORDER BY [OrderId]
|
||||
END
|
||||
ELSE
|
||||
BEGIN
|
||||
SELECT
|
||||
[CategoryId],
|
||||
[CategoryName],
|
||||
[Description]
|
||||
FROM
|
||||
[PE_GV_WorkItemCategory]
|
||||
WHERE
|
||||
[ParentId] =(SELECT parentId FROM [PE_GV_WorkItemCategory] WHERE [CategoryId]=@CategoryId)
|
||||
END
|
||||
</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:template match="/">
|
||||
<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:for-each>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]>
|
||||
</LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
|
||||
Reference in New Issue
Block a user