DESKTOP-0K9VGFE\hp
2022-03-11 6d766b0c8e9b31e7e03ffd344a94c2851aa9beb9
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<apex:page controller="PrintInspectupReportPDFController" showHeader="false" sidebar="false" renderAs="PDF" action="{!init}" applyHtmlTag="false">
<html>
    <title>打印点检报告书</title>
    <apex:stylesheet value="{!URLFOR($Resource.BeforeOPDPDF)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
    <apex:includeScript value="{!URLFOR($Resource.signaturePadMinJs)}"/>
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
    <head>
        <style>
        @page {
            size: A4 landscape;
            margin: 5mm 12mm 5mm 12mm;
            
            @bottom-center {
                content: counter(page) " / " counter(pages);
            }
        }
        
        table {border-collapse: collapse;}
        
        th {text-align: center;}
        th.border-thick-title { border-width: 1pt 0pt 1pt 0pt; border-style: solid; border-color: black; text-align: center;}
        td.middle {text-align: center;}
        td.topClear {border-top-color: white;}
        </style>
        <script>
 
        </script>
    </head>
    <body style="">
        <apex:variable value="{!0}" var="cntt" />
        <apex:repeat value="{!listData}" var="onePage" id="listDataPage">
        <table border="0" style="font-family: Arial Unicode MS;width:100%;">
            <tr>
                <apex:outputText rendered="true">
                    <td colspan="3" style="text-align: center; font-size: 16pt; font-weight: bold;">合同点检报告书</td>
                </apex:outputText>
            </tr>
            <tr>
                <td colspan="3" height="20px"></td>
            </tr>
            <tr>
                <td>医院名:{!maintenanceContract.Hospital__r.Name}</td>
                <td colspan="2">合同号:{!maintenanceContract.Maintenance_Contract_No__c}</td>
            </tr>
            <tr>
                <td>科室名:{!maintenanceContract.Department__r.Name}</td>
                <td colspan="2">点检人:{!loginPersonName}</td>
            </tr>
        </table>
        <br/>
        <br/>
        <table border="1" style="font-family: Arial Unicode MS;font-size: small;width:99%;border-collapse: collapse;">
                <thead>
                    <tr class="headerRow" height="30px"  align="center">
                        <!--标题 -->
                        <td style="">No</td>
                        <td style="">产品名</td>
                        <td style="">机身号</td>
                        <apex:repeat value="{!inspectupPlanKey}" var="ipkk" id="oppTableipkk">
                            <td width="">{!ipkk}</td>
                            <apex:outputText rendered="{!resultFlag}">
                                <td width="" >结果</td>
                            </apex:outputText>
                        </apex:repeat>
                    </tr>
                </thead>
            <apex:variable value="{!0}" var="cnt" />
                <apex:repeat value="{!onePage}" var="or" id="oppTable">
                    <tr align="center">
                        <td width="">{!cnt+1}</td>
                        <td width="150px">
                            <apex:outputText escape="false" value="{!or.deviceName}"></apex:outputText>
                        </td>
                        <td width="">{!or.serialNumber}</td>
                        <apex:outputText rendered="{!or.spotCheck1 != null}">
                            <td width="">{!or.spotCheck1}</td>
                            <apex:outputText rendered="{!resultFlag}">
                                <td width="" >{!or.spocCheckResult1}</td>
                            </apex:outputText>
                        </apex:outputText>
                        <apex:outputText rendered="{!or.spotCheck2 != null}">
                            <td width="">{!or.spotCheck2}</td>
                            <apex:outputText rendered="{!resultFlag}">
                                <td width="" >{!or.spocCheckResult2}</td>
                            </apex:outputText>
                        </apex:outputText>
                        <apex:outputText rendered="{!or.spotCheck3 != null}">
                            <td width="">{!or.spotCheck3}</td>
                            <apex:outputText rendered="{!resultFlag}">
                                <td width="" >{!or.spocCheckResult3}</td>
                            </apex:outputText>
                        </apex:outputText>
                        <apex:outputText rendered="{!or.spotCheck4 != null}">
                            <td width="">{!or.spotCheck4}</td>
                            <apex:outputText rendered="{!resultFlag}">
                                <td width="" >{!or.spocCheckResult4}</td>
                            </apex:outputText>
                        </apex:outputText>
                    </tr>
                <apex:variable value="{!cnt + 1}" var="cnt" />
            </apex:repeat>
        </table>
        <apex:outputPanel rendered="{!IF(isPaging && pageCnt > 0,IF(pageCnt-1 > cntt,true,false),false)}" layout="none">
            <div style="page-break-after:always;"/>
        </apex:outputPanel>
         <apex:variable value="{!cntt + 1}" var="cntt" />
        </apex:repeat>
        <br/>
        <br/>
        <br/>
        <br/>
        <apex:outputText rendered="{!activeOn}">
            <table style="font-family: Arial Unicode MS;">
                <tr>
                    <th style="text-align: right;" >清洗液</th>
                    <th style="border:1px solid #000000; width: 15%;text-align: left;">{!InspectionReportData.CleaningFluid__c}</th>
                    <th/>
                    <th/>
                    <th/>
                    <th style="text-align: right;">方式</th>
                    <th style="border:1px solid #000000; width: 15%;text-align: left;">{!InspectionReportData.Mode__c}</th>
                    <th/>
                    <th/>
                    <th/>
                    <th style="text-align: right;">灭菌方式</th>
                    <th style="border:1px solid #000000; width: 15%;text-align: left;">{!InspectionReportData.SterilizationMethod__c}</th>
                    <th/>
                    <th/>
                    <th/>
                    <th style="text-align: right;">其他备注</th>
                    <th style="border:1px solid #000000; width: 15%;text-align: left;">{!InspectionReportData.Remarks__c}</th>
                </tr>
                <tr>
                    <th style="text-align: right;">消毒液</th>
                    <th style="border:1px solid #000000; width: 15%;text-align: left;">{!InspectionReportData.Disinfectant__c}</th>
                    <th/>
                    <th/>
                    <th/>
                    <th style="text-align: right;">使用机器</th>
                    <th style="border:1px solid #000000; width: 15%;text-align: left;">{!InspectionReportData.UsedMachine__c}</th>
                    <th/>
                    <th/>
                    <th/>
                    <th style="text-align: right;">使用ET</th>
                    <th style="border:1px solid #000000; width: 15%;text-align: left;">{!InspectionReportData.Used_ET__c}</th>
                    <th/>
                    <th/>
                    <th/>
                    <th/>
                    <th/>
                </tr>
            </table>
        </apex:outputText>
    </body>
</html>
</apex:page>