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

349 lines
14 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="SuperMapDoucuments">
<xsl:call-template name="PushModule"></xsl:call-template>
</xsl:template>
<xsl:template name="PushModule">
<html>
<head>
<xsl:element name="style">
<![CDATA[
.ReportTableCss {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
font-family: \5FAE\8F6F\96C5\9ED1,\5B8B\4F53,Arial,Helvetica,sans-serif;
}
.ReportTableCss tr {
border: 0px;
/*padding: 50px;*/
}
.ReportTableCss td {
border-collapse: collapse;
font-size: 30px;
font-weight: bold;
vertical-align: middle;
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;
}
.ReportTableCss td.Header {
font-weight: bold !important;
font-size: 10px;
padding: 0px;
border: none;
}
.AcceptHeader { border: none; padding:0px 0px 5px 0px; text-align:right; }
.AcceptBarCode{float:left;font-size:9px;}
.ReportTableCss td.tdheight {
height:10px;
}
.BorderTableCss {
border-collapse: collapse;
table-layout: fixed;
font-family: \5FAE\8F6F\96C5\9ED1,\5B8B\4F53,Arial,Helvetica,sans-serif;
background-color:initial;
}
.BorderTableCss tr {
border: 0px;
padding: 50px;
}
.BorderTableCss td {
border: 1px solid;
border-collapse: collapse;
font-size: 20px;
font-weight: bold;
vertical-align: middle;
padding: 5px;
height: 40px;
font-family: '宋体';
color: #343434;
}
]]>
</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%; padding:20;">
<table border="0" cellpadding="0" cellspacing="0" class="ReportTableCss">
<tr style="height:100px">
<td style="text-align:center;" class="AcceptHeader AcceptBarCode">
<xsl:call-template name="BarCodeCreate">
<xsl:with-param name="Value">
<xsl:value-of select="'*'" />
<xsl:value-of select="ACCEPT_CODE" />
<xsl:value-of select="'*'" />
</xsl:with-param>
</xsl:call-template>
<p style="font-size:12pt;">
<xsl:value-of select="ACCEPT_CODE" />
</p>
</td>
</tr>
</table>
</div>
</body>
</html>
</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:30px;line-height:30px;display:inline-block;width:1px;background-color:#fff;"></span>
</xsl:when>
<xsl:when test="substring($TempCode,1,1)='|'">
<span style="height:30px;line-height:30px;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:stylesheet>