高章伟
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
<apex:page standardController="QuoteIrai__c" extensions="BeforeOPDPDFExtensionController" showHeader="false" sidebar="false" renderAs="pdf" action="{!startContract}">
<apex:stylesheet value="{!URLFOR($Resource.BeforeOPDPDF)}"/>
<head>
 
<style>
 
</style>
 
</head>
 
<body style="font-family: Arial Unicode MS;">
 
    <!-- ページ番号の定義 -->  
    <apex:variable var="count" value="{!0}"/>
    
    <!-- ページのリピート -->
    <apex:repeat value="{!printRecords}" var="items" id="thePage">
 
    <!-- ページキャンバス -->        
    <div class="pageCanvas">
    
        <!-- ページ番号インクリメント -->
        <apex:variable var="count" value="{!count + 1}"/>
        
        <!-- 各ページのタイトル -->
        <div class="quoteTitle">产品试用评价表</div>
        <!-- 各ページのヘッダキャンバス -->
        <div class="headerCanvas">
            <table style="height:100%;">
                <tr>
                    <td>
                        <div style="height:25px;">编码</div>
                        <div style="height:25px;">客户名称</div>
                        <div style="height:25px;">科室</div>
                    </td>
                    <td>
                        <div style="height:25px;">:&nbsp;</div>
                        <div style="height:25px;">:&nbsp;</div>
                        <div style="height:25px;">:&nbsp;</div>
                    </td>
                    <td>
                        <div style="height:25px;">&nbsp;{!params.sysNo}</div>
                        <div style="height:25px;">&nbsp;{!params.hpName}</div>
                        <div style="height:25px;">&nbsp;{!params.department}</div>
                    </td>
                </tr>
            </table>
        </div>
 
        <br/>
 
        <!-- ページ内の詳細のREPEAT -->
        <div class="detailCanvas">
            <apex:dataTable value="{!items}" var="item" id="dataTable" styleClass="detailTable" headerClass="detailTableHeader" columnClasses="detailTableCols">
                <apex:column styleClass="detailRowString">
                        <apex:facet name="header">产品型号</apex:facet>
                        <apex:outputText value="{!item.productCode}"/>
                </apex:column>
                <apex:column styleClass="detailRowString">
                        <apex:facet name="header">产品名称</apex:facet>
                        <apex:outputText value="{!item.productname}"/>
                </apex:column>
                <apex:column styleClass="detailRowNumeric" rendered="{!params.lineType = 'cs'}">
                        <apex:facet name="header">同捆数</apex:facet>
                        <apex:outputText value="{0, number, ###,###}">
                            <apex:param value="{!item.Packing_list_manual}" />
                        </apex:outputText>
                </apex:column>
                <apex:column styleClass="detailRowNumeric">
                        <apex:facet name="header">数量</apex:facet>
                        <apex:outputText value="{0, number, ###,###}">
                            <apex:param value="{!item.quantity}" />
                        </apex:outputText>
                </apex:column>
            </apex:dataTable>
        </div>
              
        <br />
        
        <!-- 各ページのフッタキャンバス -->
        <div class="footerCanvasContract">
            <div class="footerSignContract">
                签名<br />
                <br />
                年  月  日<br />
            </div>
        </div>
     
     </div>
        
        <!-- 各ページを区切る改ページ、最終ページには出さないようにしている -->
        <apex:outputpanel rendered="{!count<maxPageNumber}">
        <div style="page-break-after: always;"/>
        </apex:outputpanel>
        
    </apex:repeat>
 
</body>
 
</apex:page>