<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:String="urn:SWString">
  <xsl:param name="SystemName"/>
  <xsl:param name="SchoolName"/>
  <xsl:param name="SiteUrl"/>
  <xsl:param name="Email"/>
  <xsl:param name="Tel"/>
  <xsl:param name="Fax"/>
  <xsl:param name="Address"/>
  <xsl:param name="PostCode"/>
  <xsl:param name="CurrencySymbol"/>
  <xsl:param name="PrintTrueName"/>
  <xsl:param name="PrintUserID"/>
  <xsl:param name="PrintSchoolName"/>
  <xsl:param name="PrintSchoolID"/>
  <xsl:param name="PrintDateTime"/>
  <xsl:template match="/">
    <html>
      <head>
        <pagesetting>
          <landscape>false</landscape>
          <paperkind>Custom</paperkind>
          <paperwidth>7.6cm</paperwidth>
          <paperheight>15cm</paperheight>
          <pageleft>0mm</pageleft>
          <pageright>4mm</pageright>
          <pagetop>8mm</pagetop>
          <pagebottom>5mm</pagebottom>
          <fontname>微软雅黑</fontname>
          <fontsize>10</fontsize>
          <doctype>1</doctype>
          <resolutionkind>3</resolutionkind>
        </pagesetting>
        <style>
          .thead{
          border-top-width:0.5mm;
          border-left-width:0.5mm;
          border-bottom-width:0.5mm;
          border-right-width:0.5mm;
          text-align:center;
          font-style:bold
          }
          .bottom{
          border-left-width:0.5mm;
          border-bottom-width:0.5mm;
          border-right-width:0.5mm;
          font-style:bold
          }
          .left{
          border-left-width:0.5mm;
          font-style:bold
          }
          .right{
          border-right-width:0.5mm;
          font-style:bold
          }
          .leftright{
          border-left-width:0.5mm;
          border-right-width:0.5mm;
          font-style:bold
          }
        </style>
      </head>
      <body>

          <span x="0" y="0.2cm"  style="text-align:center;font-size:14;font-family:黑体;" width="6.3cm" height="1.3cm"><xsl:value-of select ="$SchoolName" /><xsl:value-of select="ds/Payment/PaymentTypeName" />单</span>


          <span x="0" y="1.6cm" align="left" width="6.3cm" height="2.8cm">
            姓名：<xsl:value-of select="ds/Payment/StudentName" /> <br />
            学号：<xsl:value-of select="ds/Payment/StudentID" /> <br />
            日期：<xsl:value-of select="String:FormatDate('{0:yyyy-MM-dd HH:mm:ss}',ds/Payment/DateAndTime)" /> <br />
            编号：<xsl:value-of select="ds/Payment/PaymentID" /> <br />
          </span>
          <span x="0" y="4.2cm" style="text-align:left;font-size:14" width="6.3cm" height="1.3cm">
            金额：<xsl:value-of select="String:FormatNumber('{0:c}',ds/Payment/PayMoney)" />
          </span>
          <span x="0" y="5.1cm" style="text-align:left;font-size:10" width="6.3cm" height="3cm">
            （大写）<xsl:value-of select="String:CHSMoney(ds/Payment/PayMoney)"/> <br />
            备注：<xsl:value-of select="ds/Payment/Remark" />
          </span>
        
        <span x="0cm" y="6.8cm" style="width:6.3cm;height:3cm;text-align:left">
                  录入员：<xsl:value-of select="ds/Payment/TrueName" /><br />
                  校区：<xsl:value-of select="ds/Payment/PostSchoolName" /><br />
                  地址：<xsl:value-of select ="ds/School/Address" /><br />
                  电话：<xsl:value-of select ="ds/School/Tel" /><br />
                  打印者：<xsl:value-of select="$PrintTrueName" /><br />
                  打印时间：<xsl:value-of select="$PrintDateTime" />
        </span>




        <span x="0" y="10cm" style="text-align:left;font-size:11" width="6.3cm" height="1.3cm">客户签字：</span>



<image x="2cm" y="10.8cm" width="2.8cm" height="2.8cm" twocode="true">
<xsl:value-of select="ds/Payment/PaymentID" />
</image>

        <line x="0cm" y="14cm" endx="6.3cm" endy="14cm" style="border:0.1mm; border-style:dot"></line>

      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>