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

1135 lines
60 KiB
HTML
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:variable name="varStart" select="0" />
<!-- 定义结束值 -->
<xsl:variable name="varEnd" select="6" />
<!-- 定义循环步长 -->
<xsl:variable name="varStep" select="1" />
<xsl:template match="SuperMapDoucuments">
<xsl:call-template name="DailySales"></xsl:call-template>
</xsl:template>
<xsl:template name="DailySales">
<html>
<head>
<xsl:element name="style">
<![CDATA[
.backgroundimage2000{
background-image:url('Obsolete.png');
background-position:center;
background-repeat:no-repeat;
}
.backgroundimage3000{
background-image:url('bankpayment.png');
background-position-x:right;
background-position-y:bottom;
background-repeat:no-repeat;
}
.backgroundimage4000{
background-image:url('cashpayment.png');
background-position-x:right;
background-position-y:bottom;
background-repeat:no-repeat;
}
.ReportTableStatistics {
border-collapse: collapse;
table-layout: fixed;
font-family: \5FAE\8F6F\96C5\9ED1,\5B8B\4F53,Arial,Helvetica,sans-serif;
background-color:initial;
}
.ReportTableStatistics tr {
border: 0px;
}
.ReportTableStatistics td {
border-collapse: collapse;
border: 1px black solid;
font-size: 12px;
vertical-align: middle;
text-align: center;
padding: 0px;
height: 25px;
font-family: '宋体';
color: #343434;
}
.ReportTableStatistics td.Title {
border: solid 0px black;
text-align: center;
white-space: nowrap;
vertical-align: middle;
line-height: 30px;
height: 30px;
padding: 0px;
font-weight: bold !important;
font-size: 20px;
border: solid #000 0px;
!important;
}
.ReportTableStatistics td.Header {
font-weight: bold !important;
font-size: 10px;
padding: 0px;
border: none;
}
.ReportTableStatistics td.tdheight {
height:10px;
}
.ReportTableCss {
border-collapse: collapse;
table-layout: fixed;
font-family: \5FAE\8F6F\96C5\9ED1,\5B8B\4F53,Arial,Helvetica,sans-serif;
background-color:initial;
}
.ReportTableCss tr {
border: 0px;
}
.ReportTableCss td {
border-collapse: collapse;
border: 1px black solid;
font-size: 15px;
vertical-align: middle;
text-align: center;
padding: 5px;
height: 40px;
font-family: '宋体';
color: #343434;
}
.ReportTableCss td.Title {
border: solid 0px black;
text-align: center;
white-space: nowrap;
vertical-align: middle;
line-height: 30px;
height: 30px;
padding: 0px;
font-weight: bold !important;
font-size: 20px;
border: solid #000 0px;
!important;
}
.ReportTableCss td.Header {
font-weight: bold !important;
font-size: 10px;
padding: 0px;
border: none;
}
.ReportTableCss td.tdheight {
height:10px;
}
]]>
</xsl:element>
<xsl:element name="style">
<xsl:attribute name="type">text/css</xsl:attribute>
<xsl:attribute name="media">print</xsl:attribute>
<![CDATA[
.noPrint{display:none;}
.PrintContainer{padding:0px;}
]]>
</xsl:element>
<title>财务流程表单</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body style="text-align: center">
<div style="width: 100%; margin:0 auto;">
<xsl:choose>
<xsl:when test="SuperMap/ProInst/Operation_Type_BaseValue = 400100">
<xsl:choose>
<xsl:when test="EXPENSEBILL_TYPE = 1000">
<table border="0" cellpadding="0" cellspacing="0" class="ReportTableStatistics" width="600px" align="center">
<xsl:choose>
<xsl:when test="EXPENSEBILL_STATE = 2000">
<xsl:attribute name="class">
<xsl:value-of select="'ReportTableStatistics backgroundimage2000'"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="EXPENSEBILL_STATE = 3000">
<xsl:attribute name="class">
<xsl:value-of select="'ReportTableStatistics backgroundimage3000'"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="EXPENSEBILL_STATE = 4000">
<xsl:attribute name="class">
<xsl:value-of select="'ReportTableStatistics backgroundimage4000'"/>
</xsl:attribute>
</xsl:when>
</xsl:choose>
<tr style="height:0px !important;">
<td style="border:none;width:15px;height:0px !important;"></td>
<td style="border:none;width:15px;height:0px !important;"></td>
<td style="border:none;width:20px;height:0px !important;"></td>
<td style="border:none;width:15px;height:0px !important;"></td>
<td style="border:none;width:15px;height:0px !important;"></td>
<td style="border:none;width:20px;height:0px !important;"></td>
<td style="border:none;width:20px;height:0px !important;"></td>
<td style="border:none;width:20px;height:0px !important;"></td>
<td style="border:none;width:20px;height:0px !important;"></td>
<td style="border:none;width:20px;height:0px !important;"></td>
<td style="border:none;width:20px;height:0px !important;"></td>
<td style="border:none;width:20px;height:0px !important;"></td>
<td style="border:none;width:20px;height:0px !important;"></td>
<td style="border:none;width:20px;height:0px !important;"></td>
<td style="border:none;width:20px;height:0px !important;"></td>
</tr>
<tr>
<td class="Title" colspan="15">
浙江省交通投资集团实业发展有限公司<br/>
<xsl:choose>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,4) = '培训学院'">培训学院差旅费报销单</xsl:when>
<xsl:otherwise>
<xsl:value-of select="SERVERPART_NAME"/>差旅费报销单
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<tr>
<td class="Header" style="text-align:left;" colspan="12">
 报销日期:<xsl:value-of select="EXPENSE_DATE"/>
</td>
<td class="Header" style="text-align:right;" colspan="3">
单位:元
</td>
</tr>
<tr>
<td style="font-weight: 600;">部门</td>
<td colspan="4" style="font-weight: 600;">
<xsl:value-of select="DEPARTMENT_NAME"/>
</td>
<td style="font-weight: 600;">出差人</td>
<td colspan="4" style="font-weight: 600;">
<xsl:value-of select="BUSINESS_PERSON"/>
</td>
<td style="font-weight: 600;">
出差<br/>事由
</td>
<td colspan="4" style="font-weight: 600;word-break:break-all;">
<xsl:value-of select="BUSINESS_REASON"/>
</td>
</tr>
<tr>
<td colspan="3">出发</td>
<td colspan="3">到达</td>
<td rowspan="2">
交通<br/>工具
</td>
<td rowspan="2">
单据<br/>张数
</td>
<td rowspan="2">金额</td>
<td colspan="3">途中补贴</td>
<td rowspan="2">
其他<br/>费用
</td>
<td rowspan="2">
单据<br/>张数
</td>
<td rowspan="2">金额</td>
</tr>
<tr>
<td colspan="2">时间</td>
<td>地点</td>
<td colspan="2">时间</td>
<td>地点</td>
<td>人数</td>
<td>天数</td>
<td>金额</td>
</tr>
<xsl:call-template name="dynamic_1"></xsl:call-template>
<xsl:call-template name="dynamic_3">
<xsl:with-param name="varStart" select="$varStart"></xsl:with-param>
<xsl:with-param name="varCountRecord" select="count(EXPENSEDETAILCollection)"></xsl:with-param>
</xsl:call-template>
<tr>
<td colspan="6" style="font-weight: 600;">合  计</td>
<td></td>
<td>
<xsl:value-of select="TOTALBILL_COUNT"/>
</td>
<td>
<xsl:value-of select="TOTALBILL_AMOUNT"/>
</td>
<td>
<xsl:value-of select="TOTALSUBSIDY_POPULATION"/>
</td>
<td>
<xsl:value-of select="TOTALSUBSIDY_DAY"/>
</td>
<td>
<xsl:value-of select="TOTALSUBSIDY_AMOUNT"/>
</td>
<td></td>
<td>
<xsl:value-of select="TOTALOTHERBILL_COUNT"/>
</td>
<td>
<xsl:value-of select="TOTALOTHERBILL_AMOUNT"/>
</td>
</tr>
<tr>
<td rowspan="2" style="font-weight: 600;">
报销<br/>总额
</td>
<td colspan="7" style="text-align:left;padding-left:10px;">
<xsl:value-of select="PAYMENT_CAP"/>
<!--<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'万') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring-before(PAYMENT_CAP,'万')"/>
</xsl:otherwise>
</xsl:choose> 万
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'仟') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(PAYMENT_CAP,'仟'),string-length(substring-before(PAYMENT_CAP,'仟')),1)"/>
</xsl:otherwise>
</xsl:choose> 仟
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'佰') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(PAYMENT_CAP,'佰'),string-length(substring-before(PAYMENT_CAP,'佰')),1)"/>
</xsl:otherwise>
</xsl:choose> 佰
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'万') = false">
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'拾') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(PAYMENT_CAP,'拾'),string-length(substring-before(PAYMENT_CAP,'拾')),1)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="contains(substring-after(PAYMENT_CAP,'万'),'拾') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(substring-after(PAYMENT_CAP,'万'),'拾'),string-length(substring-before(substring-after(PAYMENT_CAP,'万'),'拾')),1)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose> 拾
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'拾元') or contains(PAYMENT_CAP,'佰元') or contains(PAYMENT_CAP,'仟元') or contains(PAYMENT_CAP,'万元')">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(PAYMENT_CAP,'元'),string-length(substring-before(PAYMENT_CAP,'元')),1)"/>
</xsl:otherwise>
</xsl:choose> 元
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'角') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(PAYMENT_CAP,'角'),string-length(substring-before(PAYMENT_CAP,'角')),1)"/>
</xsl:otherwise>
</xsl:choose> 角-->
</td>
<td rowspan="2" style="font-weight: 600;">
预支<br/>旅费
</td>
<td>日期</td>
<td colspan="2" style="text-align:left;padding-left:5px;">
<xsl:value-of select="PREPAY_DATE"/>
</td>
<td>应退还</td>
<td colspan="2" style="text-align:left;padding-left:5px;">
<xsl:value-of select="PAYMENT_RETURN"/>
</td>
</tr>
<tr>
<td colspan="7" style="text-align:left;padding-left:5px;">
<xsl:value-of select="PAYMENT_LOWER"/>
</td>
<td>金额</td>
<td colspan="2" style="text-align:left;padding-left:5px;">
<xsl:value-of select="PREPAY_EXPENSE"/>
</td>
<td>应补足</td>
<td colspan="2" style="text-align:left;padding-left:5px;">
<xsl:value-of select="PAYMENT_COMPLEMENT"/>
</td>
</tr>
<tr>
<td colspan="15" style="border:none;height:15px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<xsl:choose>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,2) = '区域'">
<td class="Header" style="text-align:left;height:10px;">
公司分管领导:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
公司财务:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
区域总经理:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,4) = '贵州项目'">
<td class="Header" style="text-align:left;height:10px;">
公司分管领导:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
公司财务:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
项目经理:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,4) = '广西项目'">
<td class="Header" style="text-align:left;height:10px;">
公司领导:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
公司财务:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
市场部经理:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,4) = '培训学院'">
<td class="Header" style="text-align:left;">
公司分管领导:<xsl:value-of select="SERVERPART_MANAGER"/>
</td>
<td class="Header" style="text-align:left;">
公司人力资源部:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;">
服务区负责人:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;">
服务区会计:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:otherwise>
<td class="Header" style="text-align:left;height:10px;">
区域总经理:<xsl:value-of select="SERVERPART_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
区域财务:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
服务区经理:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
服务区财务:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:otherwise>
</xsl:choose>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="15" style="border:none;height:10px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="Header" style="text-align:left;height:10px;">
单据编号:<xsl:value-of select="EXPENSEBILL_CODE"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
制单人:<xsl:value-of select="PRINT_STAFF"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
制单次数:<xsl:value-of select="PRINT_COUNT"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
审结时间:<xsl:value-of select="SuperMap/ProInst/ProInst_FinishDate"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:when>
<xsl:when test="EXPENSEBILL_TYPE = 2000">
<table border="0" cellpadding="0" cellspacing="0" class="ReportTableCss" width="600px" align="center">
<xsl:choose>
<xsl:when test="EXPENSEBILL_STATE = 2000">
<xsl:attribute name="class">
<xsl:value-of select="'ReportTableCss backgroundimage2000'"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="EXPENSEBILL_STATE = 3000">
<xsl:attribute name="class">
<xsl:value-of select="'ReportTableCss backgroundimage3000'"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="EXPENSEBILL_STATE = 4000">
<xsl:attribute name="class">
<xsl:value-of select="'ReportTableCss backgroundimage4000'"/>
</xsl:attribute>
</xsl:when>
</xsl:choose>
<tr style="height:0px !important;">
<td style="border:none;width:30px;height:0px !important;"></td>
<td style="border:none;width:35px;height:0px !important;"></td>
<td style="border:none;width:30px;height:0px !important;"></td>
<td style="border:none;width:60px;height:0px !important;"></td>
<td style="border:none;width:50px;height:0px !important;"></td>
<td style="border:none;width:30px;height:0px !important;"></td>
<td style="border:none;width:80px;height:0px !important;"></td>
<td style="border:none;width:70px;height:0px !important;"></td>
</tr>
<tr>
<td class="Title" colspan="8">
浙江省交通投资集团实业发展有限公司<br/>
<xsl:choose>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,4) = '培训学院'">培训学院付款审批单</xsl:when>
<xsl:otherwise>
<xsl:value-of select="SERVERPART_NAME"/>付款审批单
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<tr>
<td class="Header" style="text-align:left;height:30px;" colspan="3">
 日期:<xsl:value-of select="EXPENSE_DATE"/>
</td>
<td class="Header" style="height:30px;" colspan="3">
部门:<xsl:value-of select="DEPARTMENT_NAME"/>
</td>
<td class="Header" style="text-align:left;height:30px;">
附件:<xsl:value-of select="ENCLOSURE_COUNT"/>
</td>
<td class="Header" style="text-align:right;height:30px;">
单位:元
</td>
</tr>
<tr>
<td colspan="2" style="font-weight: 600;text-align:left;">付款单位/个人</td>
<td colspan="2" style="text-align:left;word-break:break-all;">
<xsl:value-of select="PAYEE_UNIT"/>
</td>
<td rowspan="2" style="font-weight: 600;">
<br/><br/><br/>
</td>
<td colspan="3" style="text-align:left;word-break:break-all;">
大写:<xsl:value-of select="PAYMENT_CAP"/>
</td>
</tr>
<tr>
<td colspan="2" style="font-weight: 600;text-align:left;">开户银行</td>
<td colspan="2" style="text-align:left;word-break:break-all;">
<xsl:value-of select="BANK_NAME"></xsl:value-of>
</td>
<td colspan="3" style="text-align:left;">
小写:¥<xsl:value-of select="PAYMENT_LOWER"/>
</td>
</tr>
<tr>
<td colspan="2" style="font-weight: 600;text-align:left;">银行账号</td>
<td colspan="2" style="text-align:left;word-break:break-all;">
<xsl:value-of select="BANK_ACCOUNT"/>
</td>
<td style="font-weight: 600;text-align:left;border-right:0px !important;">付款方式</td>
<td colspan="3" style="text-align:left;word-break:break-all;">
<xsl:value-of select="PAY_TYPE"/>
</td>
</tr>
<tr>
<td style="font-weight: 600;height:100px;">
<br/><br/><br/>
</td>
<td colspan="7" style="text-align:left;height:100px;text-indent:2em;vertical-align:top;">
<xsl:value-of disable-output-escaping="yes" select="PAYMENT_DETAIL"/>
</td>
</tr>
<tr>
<td colspan="8" style="border:none;height:15px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<xsl:choose>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,2) = '区域'">
<td class="Header tdheight" style="text-align:left;">
公司分管领导:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header tdheight" style="text-align:left;">
公司财务:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header tdheight" style="text-align:left;">
区域总经理:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header tdheight" style="text-align:left;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,4) = '贵州项目'">
<td class="Header tdheight" style="text-align:left;">
公司分管领导:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header tdheight" style="text-align:left;">
公司财务:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header tdheight" style="text-align:left;">
项目经理:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header tdheight" style="text-align:left;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,4) = '广西项目'">
<td class="Header" style="text-align:left;height:10px;">
公司领导:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
公司财务:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
市场部经理:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,4) = '培训学院'">
<td class="Header tdheight" style="text-align:left;">
公司分管领导:<xsl:value-of select="SERVERPART_MANAGER"/>
</td>
<td class="Header tdheight" style="text-align:left;">
公司人力资源部:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header tdheight" style="text-align:left;">
服务区负责人:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header tdheight" style="text-align:left;">
服务区会计:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header tdheight" style="text-align:left;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:when test="SuperMap/ProInst/ProDef_Name = '资金承付审核流程(小于3万)'">
<td class="Header" style="text-align:left;">
总经理:<xsl:value-of select="SERVERPART_MANAGER"/>
</td>
<td class="Header" style="text-align:left;">
市场部:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;">
财务部:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;">
服务区:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:when test="SuperMap/ProInst/ProDef_Name = '资金承付审核流程(大于等于3万)'">
<td class="Header" style="text-align:left;">
董事长:<xsl:value-of select="MASTER"/>
</td>
<td class="Header" style="text-align:left;">
总经理:<xsl:value-of select="SERVERPART_MANAGER"/>
</td>
<td class="Header" style="text-align:left;">
市场部:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;">
财务部:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;">
服务区:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:otherwise>
<td class="Header tdheight" style="text-align:left;">
区域总经理:<xsl:value-of select="SERVERPART_MANAGER"/>
</td>
<td class="Header tdheight" style="text-align:left;">
区域财务:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header tdheight" style="text-align:left;">
服务区经理:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header tdheight" style="text-align:left;">
服务区财务:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header tdheight" style="text-align:left;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:otherwise>
</xsl:choose>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="8" style="border:none;" class="tdheight">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="Header tdheight" style="text-align:left;">
单据编号:<xsl:value-of select="EXPENSEBILL_CODE"/>
</td>
<td class="Header tdheight" style="text-align:left;">
制单人:<xsl:value-of select="PRINT_STAFF"/>
</td>
<td class="Header tdheight" style="text-align:left;">
制单次数:<xsl:value-of select="PRINT_COUNT"/>
</td>
<td class="Header tdheight" style="text-align:left;">
审结时间:<xsl:value-of select="SuperMap/ProInst/ProInst_FinishDate"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:when>
<xsl:when test="EXPENSEBILL_TYPE = 3000">
<table border="0" cellpadding="0" cellspacing="0" class="ReportTableStatistics" width="600px" align="center">
<xsl:choose>
<xsl:when test="EXPENSEBILL_STATE = 2000">
<xsl:attribute name="class">
<xsl:value-of select="'ReportTableStatistics backgroundimage2000'"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="EXPENSEBILL_STATE = 3000">
<xsl:attribute name="class">
<xsl:value-of select="'ReportTableStatistics backgroundimage3000'"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="EXPENSEBILL_STATE = 4000">
<xsl:attribute name="class">
<xsl:value-of select="'ReportTableStatistics backgroundimage4000'"/>
</xsl:attribute>
</xsl:when>
</xsl:choose>
<tr style="height:0px !important;">
<td style="border:none;width:25px;height:0px !important;"></td>
<td style="border:none;width:60px;height:0px !important;"></td>
<td style="border:none;width:50px;height:0px !important;"></td>
<td style="border:none;width:70px;height:0px !important;"></td>
<td style="border:none;width:45px;height:0px !important;"></td>
<td style="border:none;width:50px;height:0px !important;"></td>
<td style="border:none;width:90px;height:0px !important;"></td>
</tr>
<tr>
<td class="Title" colspan="7">
浙江省交通投资集团实业发展有限公司<br/>
<xsl:choose>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,4) = '培训学院'">培训学院费用报销单</xsl:when>
<xsl:otherwise>
<xsl:value-of select="SERVERPART_NAME"/>费用报销单
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<tr>
<td class="Header" style="text-align:left;" colspan="3">
 报销日期:<xsl:value-of select="EXPENSE_DATE"/>
</td>
<td class="Header" style="text-align:left;" colspan="2">
部门:<xsl:value-of select="DEPARTMENT_NAME"/>
</td>
<td class="Header">
附件:<xsl:value-of select="ENCLOSURE_COUNT"/>
</td>
<td class="Header" style="text-align:right;">
单位:元
</td>
</tr>
<tr>
<td>序号</td>
<td>日期</td>
<td colspan="2">报销内容</td>
<td>单据张数</td>
<td>金额</td>
<td>备注</td>
</tr>
<xsl:call-template name="dynamic_2"></xsl:call-template>
<tr>
<td colspan="7" style="text-align:left;padding-left:5px;">
合计人民币(大写) <xsl:value-of select="PAYMENT_CAP"/> 
<!--<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'万') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring-before(PAYMENT_CAP,'万')"/>
</xsl:otherwise>
</xsl:choose> 万
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'仟') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(PAYMENT_CAP,'仟'),string-length(substring-before(PAYMENT_CAP,'仟')),1)"/>
</xsl:otherwise>
</xsl:choose> 仟
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'佰') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(PAYMENT_CAP,'佰'),string-length(substring-before(PAYMENT_CAP,'佰')),1)"/>
</xsl:otherwise>
</xsl:choose> 佰
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'万') = false">
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'拾') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(PAYMENT_CAP,'拾'),string-length(substring-before(PAYMENT_CAP,'拾')),1)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="contains(substring-after(PAYMENT_CAP,'万'),'拾') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(substring-after(PAYMENT_CAP,'万'),'拾'),string-length(substring-before(substring-after(PAYMENT_CAP,'万'),'拾')),1)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose> 拾
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'拾元') or contains(PAYMENT_CAP,'佰元') or contains(PAYMENT_CAP,'仟元') or contains(PAYMENT_CAP,'万元')">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(PAYMENT_CAP,'元'),string-length(substring-before(PAYMENT_CAP,'元')),1)"/>
</xsl:otherwise>
</xsl:choose> 元
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'角') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(PAYMENT_CAP,'角'),string-length(substring-before(PAYMENT_CAP,'角')),1)"/>
</xsl:otherwise>
</xsl:choose> 角
<xsl:choose>
<xsl:when test="contains(PAYMENT_CAP,'分') = false">零</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring(substring-before(PAYMENT_CAP,'分'),string-length(substring-before(PAYMENT_CAP,'分')),1)"/>
</xsl:otherwise>
</xsl:choose> 分-->
<xsl:value-of select="PAYMENT_LOWER"/>
</td>
</tr>
<tr>
<td colspan="3" style="text-align:left;padding-left:5px;">
偿还预支借款:¥<xsl:value-of select="PREPAY_EXPENSE"/>
</td>
<td colspan="2" style="text-align:left;padding-left:5px;">
补领不足:¥<xsl:value-of select="PAYMENT_COMPLEMENT"/>
</td>
<td colspan="2" style="text-align:left;padding-left:5px;">
归还多余:¥<xsl:value-of select="PAYMENT_RETURN"/>
</td>
</tr>
<tr>
<td colspan="7" style="border:none;height:15px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<xsl:choose>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,2) = '区域'">
<td class="Header" style="text-align:left;height:10px;">
公司分管领导:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
公司财务:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
区域总经理:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,4) = '贵州项目'">
<td class="Header" style="text-align:left;height:10px;">
公司分管领导:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
公司财务:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
项目经理:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,4) = '广西项目'">
<td class="Header" style="text-align:left;height:10px;">
公司领导:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
公司财务:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
市场部经理:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:when test="substring(SuperMap/ProInst/ProDef_Name,1,4) = '培训学院'">
<td class="Header" style="text-align:left;">
公司分管领导:<xsl:value-of select="SERVERPART_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
公司人力资源部:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
服务区负责人:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
服务区会计:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:when>
<xsl:otherwise>
<td class="Header" style="text-align:left;height:10px;">
区域总经理:<xsl:value-of select="SERVERPART_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
区域财务:<xsl:value-of select="STAGNATE_MANAGER"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
服务区经理:<xsl:value-of select="FINANCE_STAFF"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
服务区财务:<xsl:value-of select="DEPARTMENT_HEAD"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
经办人:<xsl:value-of select="APPLY_STAFF"/>
</td>
</xsl:otherwise>
</xsl:choose>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="7" style="border:none;height:10px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="Header" style="text-align:left;height:10px;">
单据编号:<xsl:value-of select="EXPENSEBILL_CODE"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
制单人:<xsl:value-of select="PRINT_STAFF"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
制单次数:<xsl:value-of select="PRINT_COUNT"/>
</td>
<td class="Header" style="text-align:left;height:10px;">
审结时间:<xsl:value-of select="SuperMap/ProInst/ProInst_FinishDate"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:when>
</xsl:choose>
</xsl:when>
<xsl:when test="SuperMap/ProInst/Operation_Type_BaseValue = 400110">
<table border="0" cellpadding="0" cellspacing="0" class="ReportTableStatistics" width="600px" align="center">
<tr style="height:0px !important;">
<td style="border:none;width:120px;height:0px !important;"></td>
<td style="border:none;width:60px;height:0px !important;"></td>
<td style="border:none;width:120px;height:0px !important;"></td>
<td style="border:none;width:120px;height:0px !important;"></td>
<td style="border:none;width:180px;height:0px !important;"></td>
</tr>
<tr>
<td class="Title"></td>
<td class="Title"></td>
<td class="Title" colspan="2" style="height:70px;background-image:url('logo.png');
background-repeat: no-repeat;background-position-y: center;font-family: '黑体';">
借 款 单
</td>
<td class="Title"></td>
</tr>
<tr>
<td class="Header" style="text-align:left;padding-left:10px;" colspan="3">
单 位 <xsl:value-of select="COMPANY_NANE"/>
</td>
<td class="Header" style="text-align:right;padding-right:10px;" colspan="2">
 借款日期 <xsl:value-of select="BORROWING_DATE"/>
</td>
</tr>
<tr>
<td style="font-weight: 600;text-align:center;height:40px;">部门名称</td>
<td colspan="2">
<xsl:value-of select="DEPARTMENT_NAME"/>
</td>
<td style="font-weight: 600;text-align:center;">借款人签字</td>
<td>
<xsl:value-of select="BORROWER_NAME"/>
</td>
</tr>
<tr>
<td style="font-weight: 600;text-align:center;height:40px;">借款事由</td>
<td colspan="4" style="text-align:left;padding-left:10px;">
<xsl:value-of select="BORROW_REASON"/>
</td>
</tr>
<tr>
<td style="font-weight: 600;text-align:center;height:40px;">借款金额</td>
<td colspan="4" style="text-align:left;padding-left:10px;">
人民币  <xsl:value-of select="BORROW_CAPAMOUNT"/>(¥<u><xsl:value-of select="BORROW_TOTALAMOUNT"/></u>)
</td>
</tr>
<tr>
<td style="font-weight: 600;text-align:center;height:40px;">单位领导</td>
<td colspan="4">
<xsl:value-of select="LEADER"/>
</td>
</tr>
<tr>
<td style="font-weight: 600;text-align:center;height:40px;">财务部门领导</td>
<td style="font-weight: 600;" colspan="2">
<xsl:value-of select="FIN_DEPARTMENT_LEADER"/>
</td>
<td style="font-weight: 600;text-align:center;">借款人部门领导</td>
<td style="font-weight: 600;">
<xsl:value-of select="LOAN_DEPARTMENT_LEADER"/>
</td>
</tr>
<tr>
<td style="font-weight: 600;text-align:center;height:40px;">会计</td>
<td style="font-weight: 600;" colspan="2">
<xsl:value-of select="ACCOUNTING"/>
</td>
<td style="font-weight: 600;text-align:center;">出纳</td>
<td style="font-weight: 600;">
<xsl:value-of select="CASHIER"/>
</td>
</tr>
</table>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</div>
</body>
</html>
</xsl:template>
<xsl:template name="dynamic_1">
<xsl:for-each select="EXPENSEDETAILCollection">
<tr>
<td style="font-size:10px;text-align: center;" colspan="2">
<xsl:value-of select="START_DATE" />
</td>
<td style="font-size:10px;text-align: center;">
<xsl:value-of select="START_PLACE" />
</td>
<td style="font-size:10px;text-align: center;" colspan="2">
<xsl:value-of select="ARRIVE_DATE" />
</td>
<td style="font-size:10px;text-align: center;">
<xsl:value-of select="ARRIVE_PLACE" />
</td>
<td style="font-size:10px;text-align: center;">
<xsl:value-of select="VEHICLE_TYPE" />
</td>
<td style="font-size:10px;text-align: center;">
<xsl:value-of select="BILL_COUNT" />
</td>
<td style="font-size:10px;text-align: center;">
<xsl:value-of select="BILL_AMOUNT" />
</td>
<td style="font-size:10px;text-align: center;">
<xsl:value-of select="SUBSIDY_POPULATION" />
</td>
<td style="font-size:10px;text-align: center;">
<xsl:value-of select="SUBSIDY_DAY" />
</td>
<td style="font-size:10px;text-align: center;">
<xsl:value-of select="SUBSIDY_AMOUNT" />
</td>
<td style="font-size:10px;text-align: center;">
<xsl:value-of select="OTHER_COST" />
</td>
<td style="font-size:10px;text-align: center;">
<xsl:value-of select="OTHERBILL_COUNT" />
</td>
<td style="font-size:10px;text-align: center;">
<xsl:value-of select="OTHERBILL_AMOUNT" />
</td>
</tr>
<!--变量自增-->
<!--记录循环次数-->
</xsl:for-each>
</xsl:template>
<xsl:template name="dynamic_2">
<xsl:for-each select="EXPENSEDETAILCollection">
<tr>
<td style="text-align:center;">
<xsl:value-of select="Current_Num" />
</td>
<td style="text-align:center;">
<xsl:value-of select="EXPENSEDETAIL_DATE" />
</td>
<td colspan="2">
<xsl:value-of select="EXPENSE_DETAIL" />
</td>
<td style="text-align:center;">
<xsl:value-of select="EXPENSEDETAIL_COUNT" />
</td>
<td style="text-align:center;">
<xsl:value-of select="EXPENSEDETAIL_AMOUNT" />
</td>
<td style="text-align:center;">
<xsl:value-of select="EXPENSEDETAIL_DESC" />
</td>
</tr>
</xsl:for-each>
</xsl:template>
<xsl:template name="dynamic_3">
<xsl:param name="varStart" />
<xsl:param name="varCountRecord" />
<!--内容部分-->
<xsl:if test="$varStart &lt; ($varEnd - $varCountRecord)">
<!-- 输出格式定义 -->
<tr>
<td colspan="2"></td>
<td></td>
<td colspan="2"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<xsl:call-template name="dynamic_3">
<xsl:with-param name="varStart">
<xsl:value-of select="$varStart + $varStep" />
</xsl:with-param>
<xsl:with-param name="varCountRecord">
<xsl:value-of select="$varCountRecord" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<!--内容部分结束-->
</xsl:template>
</xsl:stylesheet>