Files
ningbo/动易的标签库/标签库/政务公开/公开信息查询列表.config
T
2026-08-31 16:22:00 +08:00

194 lines
5.9 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>政务公开</LabelType>
<LabelIntro>公开信息查询列表</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>IndexNumber</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>索引号</intro>
</attributes>
<attributes>
<name>Title</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>名称</intro>
</attributes>
<attributes>
<name>Content</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>正文</intro>
</attributes>
<attributes>
<name>StartDate</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>起始日期</intro>
</attributes>
<attributes>
<name>EndDate</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>结束日期</intro>
</attributes>
<attributes>
<name>Keyword</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>关键词</intro>
</attributes>
<UsePage>True</UsePage>
<IsXsltSql>true</IsXsltSql>
<IsXsltCountSql>true</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="IndexNumber"/>
<xsl:param name="Title"/>
<xsl:param name="Content"/>
<xsl:param name="StartDate"/>
<xsl:param name="EndDate"/>
<xsl:param name="Keyword"/>
<xsl:output method="xml" />
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<root>
<sql>
<!--请在这里编写你的SQL语句-->
SELECT Top @pagesize * FROM PE_GV_PublicInformation WHERE Status = 2 AND IsExpired = 0
<xsl:if test="$IndexNumber != ''">
AND IndexNumber = '@IndexNumber'
</xsl:if>
<xsl:if test="$Title != ''">
AND Title Like '%@Title%'
</xsl:if>
<xsl:if test="$Content != ''">
AND Content Like '%@Content%'
</xsl:if>
<xsl:if test="$StartDate != ''">
AND PublicTime &gt;= '@StartDate'
</xsl:if>
<xsl:if test="$EndDate != ''">
AND PublicTime &lt;= '@EndDate'
</xsl:if>
<xsl:if test="$Keyword != ''">
AND Keyword Like '%@Keyword%'
</xsl:if>
AND ID not in
(SELECT Top @startrow ID FROM PE_GV_PublicInformation WHERE Status = 2 AND IsExpired = 0
<xsl:if test="$IndexNumber != ''">
AND IndexNumber = '@IndexNumber'
</xsl:if>
<xsl:if test="$Title != ''">
AND Title Like '%@Title%'
</xsl:if>
<xsl:if test="$Content != ''">
AND Content Like '%@Content%'
</xsl:if>
<xsl:if test="$StartDate != ''">
AND PublicTime &gt;= '@StartDate'
</xsl:if>
<xsl:if test="$EndDate != ''">
AND PublicTime &lt;= '@EndDate'
</xsl:if>
<xsl:if test="$Keyword != ''">
AND Keyword Like '%@Keyword%'
</xsl:if>
ORDER BY PublicTime DESC
) ORDER BY PublicTime DESC
</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
SELECT Count(ID) FROM PE_GV_PublicInformation WHERE Status = 2 AND IsExpired = 0
<xsl:if test="$IndexNumber != ''">
AND IndexNumber = '@IndexNumber'
</xsl:if>
<xsl:if test="$Title != ''">
AND Title Like '%@Title%'
</xsl:if>
<xsl:if test="$Content != ''">
AND Content Like '%@Content%'
</xsl:if>
<xsl:if test="$StartDate != ''">
AND PublicTime &gt;= '@StartDate'
</xsl:if>
<xsl:if test="$EndDate != ''">
AND PublicTime &lt;= '@EndDate'
</xsl:if>
<xsl:if test="$Keyword != ''">
AND Keyword Like '%@Keyword%'
</xsl:if>
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<LabelSqlCount><![CDATA[请在上面的<countsql></countsql>标记之间写分页SQL查询语句
select count(id) from PE_GV_PublicInformation ]]></LabelSqlCount>
<LabelSqlPage>请先建立SQL分页语句</LabelSqlPage>
<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">
<!--params-->
<xsl:output method="html" />
<xsl:template match="/">
<div class="GovDir">
<table width="100%" cellspacing="0" cellpadding="0" class="wjb">
<tbody>
<tr>
<td width="160" class="headsqh">索引号</td>
<td class="headtitle">信息名称</td>
<td width="130" class="headwh">文号</td>
<td width="100" class="headwjtime">产生日期</td>
<td width="100" class="headgklx">公开类型</td>
</tr>
<xsl:for-each select="/NewDataSet/Table">
<tr>
<td class="sqh">
<xsl:value-of select="IndexNumber"/>
</td>
<td class="title">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Government/PublicInfoShow.aspx?ID=<xsl:value-of select="ID"/>
</xsl:attribute>
<xsl:value-of select="Title"/>
</a>
</td>
<td class="wh">
<xsl:value-of select="DocumentNumber"/>
</td>
<td class="wjtime">
<xsl:value-of select="pe:FormatDate(PublicTime,'yyyy-mm-dd')"/>
</td>
<td class="gklx">
<xsl:choose>
<xsl:when test="PublicType = 1">
主动公开
</xsl:when>
<xsl:otherwise>
申请公开
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>