128 lines
5.2 KiB
XML
128 lines
5.2 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="3105" compatibleVersion="" />
|
|
<attributes>
|
|
<name>catalogId</name>
|
|
<datatype>sql.int</datatype>
|
|
<default>0</default>
|
|
<intro>目录ID</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>titleLength</name>
|
|
<datatype>int</datatype>
|
|
<default>30</default>
|
|
<intro>标题显示长度</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>openType</name>
|
|
<datatype>int</datatype>
|
|
<default>0</default>
|
|
<intro>打开方式{新窗口:1,原窗口:0}</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" xmlns:pe.industry="IndustryExtension" exclude-result-prefixes="pe pe.industry">
|
|
<!--要使用上一步定义的自定义参数,要作为XSLT参数使用,务必要在这里声明。如:<xsl:param name="myPara" />.引用该参数:$myPara -->
|
|
<xsl:param name="catalogId" />
|
|
<xsl:output method="xml" />
|
|
<xsl:template match="/">
|
|
<!--请按提示编辑,保持该模板结构的正确性-->
|
|
<root>
|
|
<sql>
|
|
<xsl:variable name="tableName">PE_PPI_U_BuildLand</xsl:variable>
|
|
EXEC [dbo].[PR_Common_PagingLarge] 'PE_PPI_CommonModel INNER JOIN <xsl:value-of select="$tableName"/> ON PE_PPI_CommonModel.ItemID = <xsl:value-of select="$tableName"/>.ID','PE_PPI_CommonModel.GeneralId','*',@pagesize, @startrow,'PE_PPI_CommonModel.CatalogId=<xsl:value-of select="$catalogId"/> AND PE_PPI_CommonModel.Status=1','','PE_PPI_CommonModel.GeneralId DESC'
|
|
</sql>
|
|
<sqlpage>
|
|
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
|
|
</sqlpage>
|
|
<countsql>
|
|
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
|
|
SELECT COUNT(GeneralId) FROM PE_PPI_CommonModel WHERE CatalogId=@catalogId AND Status=1
|
|
</countsql>
|
|
</root>
|
|
</xsl:template>
|
|
</xsl:transform>]]>
|
|
</LabelSqlString>
|
|
<LabelSqlCount><![CDATA[请在上面的<countsql></countsql>标记之间写分页SQL查询语句]]></LabelSqlCount>
|
|
<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="catalogId" />
|
|
<xsl:param name="titleLength" />
|
|
<xsl:param name="openType" />
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/">
|
|
<table width="100%">
|
|
<tbody>
|
|
<tr class="line">
|
|
<td width="10%">序号</td>
|
|
<td width="40%">申请单位</td>
|
|
<td width="30%">用地位置</td>
|
|
<td width="20%">发布日期</td>
|
|
</tr>
|
|
<xsl:choose>
|
|
<xsl:when test="count(/NewDataSet/Table) = 0">
|
|
<tr>
|
|
<td colspan="5">没有信息!</td>
|
|
</tr>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:for-each select="/NewDataSet/Table">
|
|
<tr>
|
|
<td>
|
|
<xsl:value-of select="ItemId"/>
|
|
</td>
|
|
<td>
|
|
<a>
|
|
<xsl:attribute name="target">
|
|
<xsl:choose>
|
|
<xsl:when test="$openType = 1">_blank</xsl:when>
|
|
<xsl:when test="$openType = 0">_self</xsl:when>
|
|
<xsl:otherwise>_self</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="href">PublicInfoShow.aspx?generalId=<xsl:value-of select="GeneralId"/></xsl:attribute>
|
|
<xsl:attribute name="title">
|
|
<xsl:value-of select="ApplicantEntity"/>
|
|
</xsl:attribute>
|
|
<xsl:value-of select="pe:CutText(ApplicantEntity,$titleLength,'...')"/>
|
|
</a>
|
|
</td>
|
|
<td class="txt">
|
|
<a>
|
|
<xsl:attribute name="target">
|
|
<xsl:choose>
|
|
<xsl:when test="$openType = 1">_blank</xsl:when>
|
|
<xsl:when test="$openType = 0">_self</xsl:when>
|
|
<xsl:otherwise>_self</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="href">PublicInfoShow.aspx?generalId=<xsl:value-of select="GeneralId"/></xsl:attribute>
|
|
<xsl:attribute name="title">
|
|
<xsl:value-of select="Location"/>
|
|
</xsl:attribute>
|
|
<xsl:value-of select="pe:CutText(Location,$titleLength,'...')"/>
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="pe:FormatDate(CreateTime,'yyyy-mm-dd')"/>
|
|
</td>
|
|
</tr>
|
|
</xsl:for-each>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</tbody>
|
|
</table>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]>
|
|
</LabelTemplate>
|
|
</root> |