first commit
This commit is contained in:
@@ -0,0 +1,229 @@
|
||||
<?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="3106" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>projectnum</name>
|
||||
<datatype>sql.string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>项目编号</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>projectname</name>
|
||||
<datatype>sql.string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>项目名称</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>year</name>
|
||||
<datatype>sql.string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>年 度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>projecttype</name>
|
||||
<datatype>sql.string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>项目分类</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>competentdepartment</name>
|
||||
<datatype>sql.string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>主管部门</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>approvedepartment</name>
|
||||
<datatype>sql.string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>审批部门</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>constructionunit</name>
|
||||
<datatype>sql.string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>建设单位</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>projectorgnum</name>
|
||||
<datatype>sql.string</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="projectnum" />
|
||||
<xsl:param name="projectname"/>
|
||||
<xsl:param name="year"/>
|
||||
<xsl:param name="projecttype"/>
|
||||
<xsl:param name="competentdepartment" />
|
||||
<xsl:param name="approvedepartment"/>
|
||||
<xsl:param name="constructionunit"/>
|
||||
<xsl:param name="projectorgnum"/>
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/">
|
||||
<!--请按提示编辑,保持该模板结构的正确性-->
|
||||
<root>
|
||||
<sql>
|
||||
<xsl:variable name="filter">
|
||||
<xsl:if test="$projectnum != ''">
|
||||
AND PE_PPI_U_Project.ProjectNum LIKE ''%<xsl:value-of select="$projectnum"/>%''
|
||||
</xsl:if>
|
||||
<xsl:if test="$projectname != ''">
|
||||
AND PE_PPI_U_Project.ProjectName LIKE ''%<xsl:value-of select="$projectname"/>%''
|
||||
</xsl:if>
|
||||
<xsl:if test="$year != ''">
|
||||
AND PE_PPI_U_Project.ProjectYear LIKE ''%<xsl:value-of select="$year"/>%''
|
||||
</xsl:if>
|
||||
<xsl:if test="$projecttype != ''">
|
||||
AND PE_PPI_U_Project.ProjectType LIKE ''%<xsl:value-of select="$projecttype"/>%''
|
||||
</xsl:if>
|
||||
<xsl:if test="$competentdepartment != ''">
|
||||
AND PE_PPI_U_Project.CompetentDepartment LIKE ''%<xsl:value-of select="$competentdepartment"/>%''
|
||||
</xsl:if>
|
||||
<xsl:if test="$approvedepartment != ''">
|
||||
AND PE_PPI_U_Project.ApproveDepartment LIKE ''%<xsl:value-of select="$approvedepartment"/>%''
|
||||
</xsl:if>
|
||||
<xsl:if test="$constructionunit != ''">
|
||||
AND PE_PPI_U_Project.ConstructionUnit LIKE ''%<xsl:value-of select="$constructionunit"/>%''
|
||||
</xsl:if>
|
||||
<xsl:if test="$projectorgnum != ''">
|
||||
AND PE_PPI_U_Project.ProjectOrgNum LIKE ''%<xsl:value-of select="$projectorgnum"/>%''
|
||||
</xsl:if>
|
||||
</xsl:variable>
|
||||
EXEC [dbo].[PR_Common_PagingLarge] 'PE_PPI_CommonModel INNER JOIN PE_PPI_U_Project ON PE_PPI_CommonModel.ItemID=PE_PPI_U_Project.ID','PE_PPI_CommonModel.GeneralId','*',@pagesize, @startrow,'PE_PPI_CommonModel.TableName=''PE_PPI_U_Project'' <xsl:value-of select="$filter"/> AND PE_PPI_CommonModel.Status=1','','PE_PPI_CommonModel.GeneralId DESC'
|
||||
</sql>
|
||||
<sqlpage>
|
||||
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
|
||||
</sqlpage>
|
||||
<countsql>
|
||||
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
|
||||
<xsl:variable name="filter">
|
||||
<xsl:if test="$projectnum != ''">
|
||||
AND PE_PPI_U_Project.ProjectNum LIKE '%<xsl:value-of select="$projectnum"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$projectname != ''">
|
||||
AND PE_PPI_U_Project.ProjectName LIKE '%<xsl:value-of select="$projectname"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$year != ''">
|
||||
AND PE_PPI_U_Project.ProjectYear LIKE '%<xsl:value-of select="$year"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$projecttype != ''">
|
||||
AND PE_PPI_U_Project.ProjectType LIKE '%<xsl:value-of select="$projecttype"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$competentdepartment != ''">
|
||||
AND PE_PPI_U_Project.CompetentDepartment LIKE '%<xsl:value-of select="$competentdepartment"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$approvedepartment != ''">
|
||||
AND PE_PPI_U_Project.ApproveDepartment LIKE '%<xsl:value-of select="$approvedepartment"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$constructionunit != ''">
|
||||
AND PE_PPI_U_Project.ConstructionUnit LIKE '%<xsl:value-of select="$constructionunit"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$projectorgnum != ''">
|
||||
AND PE_PPI_U_Project.ProjectOrgNum LIKE '%<xsl:value-of select="$projectorgnum"/>%'
|
||||
</xsl:if>
|
||||
</xsl:variable>
|
||||
SELECT COUNT(*) FROM PE_PPI_U_Project INNER JOIN PE_PPI_CommonModel ON PE_PPI_CommonModel.ItemID=PE_PPI_U_Project.ID AND PE_PPI_CommonModel.TableName='PE_PPI_U_Project' WHERE 1=1 <xsl:value-of select="$filter"/> AND PE_PPI_CommonModel.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="projectnum" />
|
||||
<xsl:param name="projectname"/>
|
||||
<xsl:param name="year"/>
|
||||
<xsl:param name="projecttype"/>
|
||||
<xsl:param name="competentdepartment" />
|
||||
<xsl:param name="approvedepartment" />
|
||||
<xsl:param name="constructionunit"/>
|
||||
<xsl:param name="projectorgnum"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="openType" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<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?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>
|
||||
<xsl:value-of select="ProjectNum"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="pe:FormatDate(CreateTime,'yyyy-mm-dd')"/>
|
||||
</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">ProjectPrint.aspx?generalId=<xsl:value-of select="GeneralId"/>
|
||||
</xsl:attribute>
|
||||
打印
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user