123 lines
4.9 KiB
XML
123 lines
4.9 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="4506" compatibleVersion="" />
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>SELECT TOP @outputQty CM.*,UT.*,UP.ProjectName FROM PE_PPI_CommonModel CM,PE_PPI_U_Project UP,PE_PPI_U_ProjectApprove UT WHERE CM.catalogId IN(3,4,5,6,7,8,9,10) AND CM.ItemId=UT.ID AND CM.Status=1 AND UT.ProjectNum=UP.ProjectNum ORDER BY GeneralID DESC</LabelSqlString>
|
|
<attributes>
|
|
<name>titleLength</name>
|
|
<datatype>int</datatype>
|
|
<default>50</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" width="100%">
|
|
<tbody>
|
|
<tr class="line">
|
|
<td width="40%">
|
|
项目名称
|
|
</td>
|
|
<td width="30%">
|
|
审批类型
|
|
</td>
|
|
<td width="20%">
|
|
审批部门
|
|
</td>
|
|
<td width="10%">
|
|
发文日期
|
|
</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>
|
|
<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?ProjectNum=<xsl:value-of select="ProjectNum"/>&catalogId=<xsl:value-of select="CatalogId"/>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="title">
|
|
<xsl:value-of select="ProjectName"/>
|
|
</xsl:attribute>
|
|
<xsl:value-of select="pe:CutText(ProjectName,$titleLength,'...')"/>
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<xsl:choose>
|
|
<xsl:when test="CatalogId=3">项目建议书批复</xsl:when>
|
|
<xsl:when test="CatalogId=4">可行性研究报告批复</xsl:when>
|
|
<xsl:when test="CatalogId=5">初步设计方案批复</xsl:when>
|
|
<xsl:when test="CatalogId=6">节能评估审查批复</xsl:when>
|
|
<xsl:when test="CatalogId=7">规划选址意见</xsl:when>
|
|
<xsl:when test="CatalogId=8">用地批复</xsl:when>
|
|
<xsl:when test="CatalogId=9">环境影响评价审批</xsl:when>
|
|
<xsl:when test="CatalogId=10">施工许可审批</xsl:when>
|
|
<xsl:otherwise>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</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="ApproveOffice"/>
|
|
</xsl:attribute>
|
|
<xsl:value-of select="pe:CutText(ApproveOffice,$titleLength,'...')"/>
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="pe:FormatDate(DispatchDate,'yyyy-mm-dd')"/>
|
|
</td>
|
|
</tr>
|
|
</xsl:for-each>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</tbody>
|
|
</table>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
</root> |