Files
2026-08-31 16:22:00 +08:00

106 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>项目信息公开</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<Version officialVersion="" modifiedVersions="4505" compatibleVersion="" />
<attributes>
<name>catelogId</name>
<datatype>sql.int</datatype>
<default>
</default>
<intro>项目模型对应表名</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @outputQty * FROM PE_PPI_CommonModel WHERE (CatalogId = @catelogId OR CatalogId IN (SELECT CatalogId FROM PE_PPI_Catalog WHERE ParentID=@catelogId)) ORDER BY GeneralID DESC</LabelSqlString>
<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>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>10</default>
<intro>输出数量</intro>
</attributes>
<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="TableName" />
<xsl:param name="titleLength" />
<xsl:param name="openType" />
<xsl:param name="outputQty" />
<xsl:output method="html" />
<xsl:template match="/">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr class="line">
<td width="54">
序号
</td>
<td width="230">
项目编码
</td>
<td width="357">
项目名称
</td>
<td width="84">
发布日期
</td>
</tr>
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<tr>
<td colspan="4">没有信息!</td>
</tr>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<tr>
<td>
<xsl:value-of select="ItemId"/>
</td>
<td>
{PE.Label id="项目编号" ItemID="<xsl:value-of select="ItemId"/>" TableName="<xsl:value-of select="TableName"/>" /}
</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">
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(Title,$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>