buli
2023-07-14 e6068da47c1bef5517c9e5fdc8c726766867ad4e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<apex:page controller="MaintenanceCommissionPDFController" showHeader="false" sidebar="false" renderAs="pdf" action="{!init}" applyHtmlTag="false">
    <html>
    <head>
        <style>
            @page {
                size: A4 landscape;
                margin: 5mm 12mm 5mm 12mm;
                /* 显示页码 */
                /* @bottom-center {
                    content: counter(page) " / " counter(pages);
                } */
            }
            
            table {border-collapse: collapse;} 
            td.title {text-align: center; font-weight: bold; background-color: #BDBDBD; height: 30px; font-size: 12pt;}
            td.middle {text-align: center; font-size:120%;}
            td.label {padding-left: 10px; height: 30px; font-weight: bold; font-size:120%;}
        </style>
    </head>
    <body style="font-family: Arial Unicode MS;">
        <apex:repeat value="{!repList}" var="rep" id="repList">
        <table width="100%" border="0">
            <tr>
                <td style="text-align: center;"><span style="font-size: 20pt;">标签打印单</span></td>
            </tr>
        </table>
        <table width="100%" border="1" cellspacing="2" style="font-size: 8pt; margin-top: 2px;">
            <tr>
                <td>
                    <table width="100%" border="1" cellspacing="0">
                       
                        <tr>
                            <td width="20%" class="label">SAP号</td>
                            <td width="30%" class="middle"><c:PDFWbr targetStr="{!rep.SAP_Service_Repair_No__c}"/></td>
                        </tr>
                        <tr>
                            <td width="20%" class="label">医院名称</td>
                            <td width="30%" class="middle"><c:PDFWbr targetStr="{!rep.HP_Name__c}"/></td>
                        </tr>
                        <tr>
                            <td width="20%" class="label">设备型号</td>
                            <td width="30%" class="middle"><c:PDFWbr targetStr="{!rep.Delivered_Product__r.Name}"/></td>
                            
                        </tr>
                        <tr>
                            <td width="20%" class="label">机身号码</td>
                            <td width="30%" class="middle"><c:PDFWbr targetStr="{!rep.SerialNumber__c}"/></td>
                        </tr>
                        <tr>
                           <td width="20%" class="label">故障</td>
                            <td width="30%" class="middle"><c:PDFWbr targetStr="{!rep.Failure_Source__c}"/></td>
                        </tr> 
                    </table>
                    
                </td>
            </tr>
        </table>
        <!-- 在元素后插入分页符 -->
        <div style="page-break-after: auto;"></div>
        </apex:repeat>
    </body>
</html>
</apex:page>