2025-03-27 15:05:14 +08:00

582 lines
23 KiB
XML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--表头-->
<xsl:template name="ApproveTop">
<xsl:param name="TopName" />
<tr>
<td colspan="8" class="Header">
<xsl:value-of select="$TopName" />
</td>
</tr>
</xsl:template>
<!--表头内容-->
<xsl:template name="ApprovecColums">
<xsl:param name="Operation_Type" />
<xsl:param name="TopName" />
<xsl:param name="ProinstCompact" />
<xsl:choose>
<!--合同审批表头-->
<xsl:when test="$Operation_Type='310000'">
<tr style="height:0px;" class="Title" >
<td width="155px" style="height:0px;" class="Title"></td>
<td width="155px" style="height:0px;" class="Title"></td>
<td width="80px" style="height:0px;" class="Title"></td>
<td width="75px" style="height:0px;" class="Title"></td>
<td width="30px" style="height:0px;" class="Title"></td>
<td width="125px" style="height:0px;" class="Title"></td>
</tr>
<tr>
<td colspan="6" class="Header">
<xsl:value-of select="$TopName" />
</td>
</tr>
<!--<tr>
<td class="Title" colspan="6">
<div class="ReportBarCode">
<xsl:call-template name="BarCodeCreate">
<xsl:with-param name="Value">
<xsl:value-of select="'*'" />
<xsl:value-of select="$ProInst_Code" />
<xsl:value-of select="'*'" />
</xsl:with-param>
</xsl:call-template>
</div>
</td>
</tr>-->
<tr>
<td colspan="6" class="BorderLineHide TextRight">
合同报审时间:<xsl:value-of select="$ProinstCompact/CREATEDATE" />
</td>
</tr>
<tr>
<td>合同名称</td>
<td colspan="2">
<xsl:value-of select="$ProinstCompact/COMPACT_NAME" />
</td>
<td colspan="2">合同编号</td>
<td>
<xsl:value-of select="$ProinstCompact/COMPACT_CODE" />
</td>
</tr>
<tr>
<td>合同类型</td>
<td>
<xsl:value-of select="$ProinstCompact/COMPACT_TYPE" />
</td>
<td colspan="2">重要合同</td>
<td colspan="2">
<xsl:value-of select="$ProinstCompact/ISFORMAT" />
</td>
</tr>
<tr>
<td>甲方</td>
<td>
<xsl:value-of select="$ProinstCompact/FIRSTPART_NAME" />
</td>
<td colspan="2">联系人</td>
<td colspan="2">
<xsl:value-of select="$ProinstCompact/FIRSTPART_LINKMAN" />
</td>
</tr>
<tr>
<td>乙方</td>
<td>
<xsl:value-of select="$ProinstCompact/SECONDPART_NAME" />
</td>
<td colspan="2">联系人</td>
<td colspan="2">
<xsl:value-of select="$ProinstCompact/SECONDPART_LINKMAN" />
</td>
</tr>
<tr>
<td>开始时间</td>
<td>
<xsl:value-of select="$ProinstCompact/COMPACT_STARTDATE" />
</td>
<td colspan="2">结束时间</td>
<td colspan="2">
<xsl:value-of select="$ProinstCompact/COMPACT_ENDDATE" />
</td>
</tr>
<tr>
<xsl:choose>
<xsl:when test="ProInst/ProDef_Name='合同评审流程【服】' and
($ProinstCompact/COMPACT_TYPE='经营合作合同' or $ProinstCompact/COMPACT_TYPE='经营管理合同')">
<td>
<xsl:value-of select="$ProinstCompact/COMPACT_AMOUNT_NAME" />(万元)
</td>
</xsl:when>
<xsl:otherwise>
<td>合同金额(万元)</td>
</xsl:otherwise>
</xsl:choose>
<td>
<xsl:value-of select="$ProinstCompact/COMPACT_AMOUNT" />
</td>
<td colspan="2">合同签订程序</td>
<td colspan="2">
<xsl:value-of select="$ProinstCompact/SECONDPART_OBLIGOR" />
</td>
</tr>
<tr>
<td>履约保证金(万元)</td>
<td>
<xsl:value-of select="$ProinstCompact/SECURITYDEPOSIT" />
</td>
<td colspan="2"><xsl:value-of select="$ProinstCompact/SAFETYRISKMORTGAGE_NAME" /> (万元)</td>
<td colspan="2">
<xsl:value-of select="$ProinstCompact/SAFETYRISKMORTGAGE" />
</td>
</tr>
<tr>
<td>合同承办部门<br />(单位)</td>
<td>
<xsl:value-of select="$ProinstCompact/ORGANIZER" />
</td>
<td colspan="2" style="padding:8px 0px;">
合同承办人<br />(联系电话
</td>
<td colspan="2">
<xsl:value-of select="$ProinstCompact/ORGANIZER_LINKMAN" />
</td>
</tr>
<tr >
<td style="min-height:60px;">合同说明及注意事情</td>
<td colspan="5" style="min-height:60px;">
<xsl:value-of select="$ProinstCompact/COMPACT_DPDESC" />
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr style="height:0px;" class="Title" >
<td width="110px" style="height:0px;" class="Title"></td>
<td width="90px" style="height:0px;" class="Title"></td>
<td width="60px" style="height:0px;" class="Title"></td>
<td width="60px" style="height:0px;" class="Title"></td>
<td width="80px" style="height:0px;" class="Title"></td>
<td width="80px" style="height:0px;" class="Title"></td>
<td width="90px" style="height:0px;" class="Title"></td>
<td width="70px" style="height:0px;" class="Title"></td>
</tr>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!--条形码-->
<xsl:template name="BarCodeCreate">
<xsl:param name="Value" />
<xsl:if test="string-length($Value)&gt;0">
<xsl:choose>
<xsl:when test="substring($Value,1,1)='0'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_|__||_||_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='1'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||_|__|_|_||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='2'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_||__|_|_||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='3'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||_||__|_|_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='4'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_|__||_|_||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='5'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||_|__||_|_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='7'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_|__|_||_||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='6'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_||__||_|_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='8'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||_|__|_||_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='9'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_||__|_||_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='a'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||_|_|__|_||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='b'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_||_|__|_||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='c'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||_||_|__|_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='d'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_|_||__|_||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='e'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||_|_||__|_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='f'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_||_||__|_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='g'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_|_|__||_||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='h'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||_|_|__||_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='i'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_||_|__||_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='j'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_|_||__||_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='k'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||_|_|_|__||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='l'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_||_|_|__||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='m'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||_||_|_|__|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='n'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_|_||_|__||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='o'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||_|_||_|__|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='p'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_||_||_|__|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='r'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||_|_|_||__|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='q'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_|_|_||__||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='s'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_||_|_||__|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='t'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_|_||_||__|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='u'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||__|_|_|_||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='v'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|__||_|_|_||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='w'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||__||_|_|_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='x'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|__|_||_|_||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='y'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||__|_||_|_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='z'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|__||_||_|_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='-'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|__|_|_||_||</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='*'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|__|_||_||_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='/'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|__|__|_|__|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='%'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|_|__|__|__|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='+'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_|__|_|__|__|</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($Value,1,1)='.'">
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode">_||__|_|_||_|</xsl:with-param>
</xsl:call-template>
</xsl:when>
</xsl:choose>
<xsl:call-template name="BarCodeCreate">
<xsl:with-param name="Value" select="substring($Value,2,string-length($Value)-1)" />
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template name="BarCodeOutPut">
<xsl:param name="TempCode" />
<xsl:if test="string-length($TempCode)&gt;0">
<xsl:choose>
<xsl:when test="substring($TempCode,1,1)='_'">
<span style="height:40px;line-height:40px;display:inline-block;width:1px;background-color:#fff;"></span>
</xsl:when>
<xsl:when test="substring($TempCode,1,1)='|'">
<span style="height:40px;line-height:40px;display:inline-block;width:0px;border:solid 1px #000;"></span>
</xsl:when>
</xsl:choose>
<xsl:call-template name="BarCodeOutPut">
<xsl:with-param name="TempCode" select="substring($TempCode,2,string-length($TempCode)-1)" />
</xsl:call-template>
</xsl:if>
</xsl:template>
<!--审批意见-->
<xsl:template name="ApproveReview">
<xsl:param name="ReviewType" />
<xsl:param name="ApprovedInfo" />
<xsl:param name="Operation_Type" />
<xsl:choose>
<!--合同插入-->
<xsl:when test="$Operation_Type='310000'">
<xsl:for-each select="$ApprovedInfo">
<xsl:choose>
<xsl:when test="count(ActInstCollection) &gt; 0">
<tr>
<td style="height:auto;">
<xsl:value-of select="Approved_Name" />
</td>
<td colspan="5" style="text-align:left;height:auto;">
<xsl:for-each select="ActInstCollection">
<xsl:if test="ACTINST_TYPE = 4">
<p class="Write">
<xsl:value-of select="ActInst_Desc" />
</p>
</xsl:if>
<p style="padding-left:5px;" class="Write">
<xsl:value-of select="Approved_Info" />
</p>
<p style="text-align:center;">
<xsl:value-of select="ApprovedName" />
<span class="Write">
<u>
<xsl:value-of select="Approved_Staff" />
</u>
</span>
<span>  </span>
日期:
<span class="Write">
<u>
<xsl:value-of select="Approved_Date" />
</u>
</span>
</p>
</xsl:for-each>
</td>
</tr>
</xsl:when>
<xsl:when test="count(ApproveCollection) &gt; 0">
<tr>
<td style="height:auto;">
<xsl:value-of select="Approved_Name" />
</td>
<td colspan="5" style="text-align:left;height:auto;">
<xsl:for-each select="ApproveCollection">
<p style="padding-left:5px;" class="Write">
<xsl:value-of select="Approved_Info" />
</p>
<p style="text-align:center;">
<xsl:value-of select="ApprovedName" />
<span class="Write">
<u>
<xsl:value-of select="Approved_Staff" />
</u>
</span>
<span>  </span>
日期:
<span class="Write">
<u>
<xsl:value-of select="Approved_Date" />
</u>
</span>
</p>
</xsl:for-each>
</td>
</tr>
</xsl:when>
<xsl:when test="contains(ProDef_Name,'【油】')">
<tr style="height:auto;">
<td>
<xsl:value-of select="Approved_Name" />
</td>
<td colspan="5" style="text-align:left;height:auto;">
<!--已审批的样式-->
<div>
<p style="padding-left:5px;" class="Write">
<xsl:value-of select="Approved_Info" />
</p>
<p style="text-align:center;">
<xsl:value-of select="Approved_Name" />
<span class="Write">
<u>
<xsl:value-of select="Approved_Staff" />
</u>
</span>
<span>  </span>
日期:
<span class="Write">
<u>
<xsl:value-of select="Approved_Date" />
</u>
</span>
</p>
</div>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr style="height:120px;">
<td>
<xsl:value-of select="Approved_Name" />意见
</td>
<td colspan="5" style="text-align:left;">
<!--已审批的样式-->
<div style="min-height:40px;">
<p style="padding:5px;height:70%;" class="Write">
<xsl:value-of select="Approved_Info" />
</p>
<p style="text-align:center;height:5%">
<xsl:value-of select="Approved_Name" />
<span class="Write">
<u>
<xsl:value-of select="Approved_Staff" />
</u>
</span>
<span>  </span>
日期:
<span class="Write">
<u>
<xsl:value-of select="Approved_Date" />
</u>
</span>
</p>
</div>
</td>
</tr>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="$ApprovedInfo">
<tr style="height:120px;">
<td colspan="1">
<xsl:value-of select="Approved_Type" />
</td>
<td colspan="7" style="text-align:left;vertical-align:text-top;">
<!--已审批的样式-->
<div style="height:92px;">
<p style="padding:5px;height:70%;" class="Write">
<xsl:value-of select="Approved_Info" />
</p>
<p style="margin-top:5px;vertical-align:text-bottom !important;text-align:center;height:5%;">
<xsl:value-of select="Approved_Type" />人:
<span class="Write">
<u>
<xsl:value-of select="Approved_Staff" />
</u>
</span>
<span>  </span>
<xsl:value-of select="Approved_Type" />日期:
<span class="Write">
<u>
<xsl:value-of select="Approved_Date" />
</u>
</span>
</p>
</div>
</td>
</tr>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>