Files
ningbo/动易的标签库/标签库/项目信息公开/资金管理信息列表_项目列表.config
T
2026-08-31 16:22:00 +08:00

139 lines
5.8 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>projectnum</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>项目编码</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:param name="projectnum" />
<xsl:output method="xml" />
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<root>
<sql>
<xsl:variable name="tableName">PE_PPI_U_BankrollManagement</xsl:variable>
<xsl:variable name="filter">
<xsl:if test="$projectnum!=''"> AND <xsl:value-of select="$tableName"/>.ProjectNum=''@projectnum''</xsl:if>
</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 INNER JOIN PE_PPI_U_Project ON <xsl:value-of select="$tableName"/>.ProjectNum=PE_PPI_U_Project.ProjectNum','PE_PPI_CommonModel.GeneralId','*',@pagesize, @startrow,'PE_PPI_CommonModel.CatalogId=<xsl:value-of select="$catalogId"/> AND PE_PPI_CommonModel.Status=1 <xsl:value-of select="$filter"/>','','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="ProjectName"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(ProjectName,$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="SourceOfFund"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(SourceOfFund,$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>