高章伟
2022-03-18 4bfe21c4b5ddc089ae5a95f4b10f6cff148b690d
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<apex:page applyHtmlTag="false" Controller="TransferApplyPDFController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="调拨明细单" renderAs="pdf" ><!-- renderAs="pdf" -->
<html>
    <head>
         <style type="text/css" media="print">
            @page {
                size: A4;
                margin: 1mm 2.5mm 0mm 2.5mm;
            }
            .title th{
                box-sizing: border-box;
                text-align:left;
                font-size: 12px;
                padding: 0px;
            }
            /*td{
                height: 23px;
            }*/
        </style>
    </head>
<body style="font-family: Arial Unicode MS; page-break-inside: auto;font-size: 14px">
<apex:outputPanel id="showhidden" rendered="true">
<apex:variable value="{!1}" var="pNcnt" />
<apex:variable value="{!1}" var="pcnt" />
<apex:repeat value="{!records}" var="record">    
    <table border="0" width="100%" style="border-collapse: collapse;">
        <colgroup>
            <col width="15%" />
            <col width="65%" />
            <col width="20%" />
        </colgroup>
        <tr>
            <th colspan="3" style="box-sizing: border-box;text-align:center;font-size:24px;font-weight:900;" height="40">调拨明细单
            </th>
        </tr>
        <tr>
            <td>调拨单号:</td>
            <td style="box-sizing: border-box;text-align:left;font-size: 13px">
                <apex:outputText value="{!ApplyHeadShow.name}" />
            </td>
            <td style="box-sizing: border-box;text-align:right;font-size: 13px">
                页码:{!pNcnt}/{!pageCnt}
            </td>
        </tr>
        <tr>
            <td>调拨类型:</td>
            <td style="box-sizing: border-box;text-align:left;font-size: 13px">
                <apex:outputText value="{!ApplyHeadShow.RecordTypeName__c}" />
            </td>
            <td  rowspan="4">
                <img style="float: right; width: 55px; height: 55px;padding: 0px;margin-top: 0mm;" src="{!'/servlet/servlet.FileDownload?file=' + ApplyHeadShow.QRId__c}" />
            </td>
        </tr>
        <tr>
            <td>备品存放地:</td>
            <td style="box-sizing: border-box;text-align:left;font-size: 13px">
                <apex:outputText value="{!ApplyHeadShow.From_Location__c}" />
            </td>
        </tr>
        <tr>
            <td>调拨至地区:</td>
            <td style="box-sizing: border-box;text-align:left;font-size: 13px">
                <apex:outputText value="{!ApplyHeadShow.Destination_location__c}" />
            </td>
        </tr>
        <tr>
            <td>联络人:</td>
            <td style="box-sizing: border-box;text-align:left;font-size: 13px">
                <apex:outputText value="{!ApplyHeadShow.Contact_Person__r.Name}" />
            </td>
        </tr>
    </table>
    <table border="1" width="100%" style="border-collapse: collapse;margin-top: 5mm;">
        <colgroup>
            <col width="20%" />
            <col width="10%" />
            <col width="7%" />
            <col width="8%" />
            <col width="7%" />
            <col width="7%" />
            <col width="7%" />
            <col width="7%" />
            <col width="7%" />
            <col width="7%" />
            <col width="5%" />
            <col width="5%" />
        </colgroup>
        <tr style="background-color: #BDD7EE;" class="title">
            <th style="text-align:center;box-sizing: border-box;">调拨一览明细No.</th>
            <th style="text-align:center;box-sizing: border-box;">备品配套型号</th>
            <th style="text-align:center;box-sizing: border-box;">备品配套<br/>明细型号</th>
            <th style="text-align:center;box-sizing: border-box;">固定资产编号<br/>(key)</th>
            <th style="text-align:center;box-sizing: border-box;">机身编号</th>
            <th style="text-align:center;box-sizing: border-box;">备品管理<br/>编码</th>
            <th style="text-align:center;box-sizing: border-box;">所在地区(<br/>本部)</th>
            <th style="text-align:center;box-sizing: border-box;">所在地区<br/>(省)</th>
            <th style="text-align:center;box-sizing: border-box;">备品分类</th>
            <th style="text-align:center;box-sizing: border-box;">管理种类</th>
            <th style="text-align:center;box-sizing: border-box;">备品用途<br/>附属品</th>
            <th style="text-align:center;box-sizing: border-box;">备品状态</th>
        </tr>
        <apex:repeat value="{!record.lineList}" var="line">
            <tr>
                <td style="box-sizing: border-box;text-align:center;font-size: 10px;height:30px;padding: 0px;"><c:PDFWbr targetStr="{!line.Name}" /></td>
                <td style="box-sizing: border-box;text-align:center;font-size: 10px;height:30px;padding: 0px;"><c:PDFWbr targetStr="{!line.Fixture_Model_No_F}" /></td>
                <td style="box-sizing: border-box;text-align:center;font-size: 10px;height:30px;padding: 0px;"><c:PDFWbr targetStr="{!line.Fixture_Model_No}" /></td>
                <td style="box-sizing: border-box;text-align:center;font-size: 10px;height:30px;padding: 0px;"><c:PDFWbr targetStr="{!line.Internal_Asset_number_key}" /></td>
                <td style="box-sizing: border-box;text-align:center;font-size: 10px;height:30px;padding: 0px;"><c:PDFWbr targetStr="{!line.SerialNumber}" /></td>
                <td style="box-sizing: border-box;text-align:center;font-size: 10px;height:30px;padding: 0px;"><c:PDFWbr targetStr="{!line.EquipmentSet_Managment_Code}" /></td>
                <td style="box-sizing: border-box;text-align:center;font-size: 10px;height:30px;padding: 0px;"><c:PDFWbr targetStr="{!line.Salesdepartment}" /></td>
                <td style="box-sizing: border-box;text-align:center;font-size: 10px;height:30px;padding: 0px;"><c:PDFWbr targetStr="{!line.SalesProvince}" /></td>
                <td style="box-sizing: border-box;text-align:center;font-size: 10px;height:30px;padding: 0px;"><c:PDFWbr targetStr="{!line.Equipment_Type}" /></td>
                <td style="box-sizing: border-box;text-align:center;font-size: 10px;height:30px;padding: 0px;"><c:PDFWbr targetStr="{!line.Manage_type}" /></td>
                <td style="box-sizing: border-box;text-align:center;font-size: 10px;height:30px;padding: 0px;"><c:PDFWbr targetStr="{!line.Loaner_accsessary}" /></td>
                <td style="box-sizing: border-box;text-align:center;font-size: 10px;height:30px;padding: 0px;"><c:PDFWbr targetStr="{!line.TAESD_Status}" /></td>
            </tr>
            <apex:variable value="{!pcnt + 1}" var="pcnt" />
        </apex:repeat> 
    </table> 
     <div style="{position:absolute;width:100%;height:20px">&nbsp;</div>
      <apex:outputPanel rendered="{!pNcnt < pageCnt}" layout="none">
         <!--  <div style="{position:absolute;width:100%;height:30px">&nbsp;</div> 
           <div style="{position:absolute;width:100%;height:30px">&nbsp;</div>--> 
       <div style="page-break-after: always;"/>
     </apex:outputPanel>
    <apex:variable value="{!pNcnt+1}" var="pNcnt" />
</apex:repeat>
 
</apex:outputPanel>
</body>
</html>
</apex:page>