高章伟
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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<apex:page controller="OFSRepairConsignPDFController" showHeader="false" sidebar="false" action="{!init}" applyHtmlTag="false">
<html>
    <head>
        <style>
        @page {
            size: A4 portrait;
            margin: 5mm 5mm 5mm 5mm;
            
            @bottom-center {
                content: counter(page) " / " counter(pages);
            }
        }
        
        table {border-collapse: collapse;}
        
        th {text-align: center;}
        td.middle {text-align: center;}
        td.header {text-align: center; background-color: gray;}
        td.title {text-align: center; color: white; background-color: gray;}
        </style>
    </head>
    
    <body style="font-family: Arial Unicode MS; font-size: 8pt;">
        <table border="0" style="width:100%;">
            <tr>
                <td width="40%"><font style="font-size: 15pt; font-weight: bold;">OLYMPUS</font></td>
                <td width="30%">NO_____________</td>
                <!-- TODO xu 責任者はだれ? -->
                <td >检测负责人&nbsp;&nbsp;&nbsp;&nbsp;{!userName}</td>
            </tr>
        </table>
        <table border="0" style="width:100%;">
            <tr>
                <td>
                    <table border="1" style="width:100%;">
                        <tr>
                            <td class="header">故障发生时间</td>
                        </tr>
                        <tr>
                            <td height="25px" style="vertical-align: bottom; text-align: center;"><apex:outputField value="{!rp.Failure_Occurrence_Date__c}" /></td>
                        </tr>
                    </table>
                </td>
                <td></td>
                <td>
                    <table border="1" style="width:100%;">
                        <tr>
                            <td class="header">收到联络时间</td>
                        </tr>
                        <tr>
                            <td height="25px" style="vertical-align: bottom; text-align: center;"><apex:outputField value="{!rp.Contacted_day__c}" /></td>
                        </tr>
                    </table>
                </td>
                <td></td>
                <td>
                    <table border="1" style="width:100%;">
                        <tr>
                            <td class="header">现场检测时间(起始时间~结束时间)</td>
                        </tr>
                        <tr>
                            <td height="25px" style="vertical-align: bottom; text-align: center;"></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <div style="height:10px;">&nbsp;</div>
        <table border="1" style="width:100%;">
            <tr>
                <td width="10%" class="title">用户名</td>
                <td width="40%">{!rp.HP_Name__c}</td>
                <td width="10%" class="title">型号</td>
                <td width="40%">{!rp.Delivered_Product__r.Name}</td>
            </tr>
            <tr>
                <td class="title">科室名</td>
                <td>{!rp.Department_Name__c}</td>
                <td class="title">机身号</td>
                <td>{!rp.SerialNumber__c}</td>
            </tr>
            <tr>
                <td class="title">负责人</td>
                <!-- TODO xu 責任者はだれ? -->
                <td>{!userName}</td>
                <td class="title">交货日期</td>
                <td></td>
            </tr>
            <tr>
                <td class="title">电话号码</td>
                <td>{!rp.counter_person_phone__c}</td>
                <td class="title">代理店</td>
                <td></td>
            </tr>
            <tr>
                <td class="title">传真号码</td>
                <td></td>
                <td class="title">负责人</td>
                <td></td>
            </tr>
            <tr>
                <td class="title">地址</td>
                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;省
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;市</td>
                <td class="title">电话号码</td>
                <td></td>
            </tr>
            <tr>
                <td class="title">邮政编码</td>
                <td></td>
                <td class="title">保修期间</td>
                <td>
                    <apex:outputPanel layout="none" rendered="{!rp.NewProductGuaranteeObject_PDF__c}">&#10004;</apex:outputPanel><apex:outputPanel layout="none" rendered="{!NOT(rp.NewProductGuaranteeObject_PDF__c)}">&#9633;</apex:outputPanel>新品(1年)/
                    <apex:outputPanel layout="none" rendered="{!rp.ReRepairObject__c}">&#10004;</apex:outputPanel><apex:outputPanel layout="none" rendered="{!NOT(rp.ReRepairObject__c)}">&#9633;</apex:outputPanel>维修(半年)
                    <apex:outputPanel layout="none" rendered="{!rp.Number_of_EffectiveContract__c = '有'}">&#10004;</apex:outputPanel><apex:outputPanel layout="none" rendered="{!rp.Number_of_EffectiveContract__c = '无'}">&#9633;</apex:outputPanel>维修合同
                    <apex:outputPanel layout="none" rendered="{!notGuarantee}">&#10004;</apex:outputPanel><apex:outputPanel layout="none" rendered="{!NOT(notGuarantee)}">&#9633;</apex:outputPanel>否
                </td>
            </tr>
            <tr>
                <td class="title">详细地址</td>
                <td colspan="3"></td>
            </tr>
        </table>
        <div style="height:5px;">&nbsp;</div>
        <table border="0" style="width:100%;">
            <tr>
                <td width="48%">
                    <table border="1" style="width:100%;">
                        <tr><td style="background-color: gray; color: white;">故障现象描述&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户/分公司</td></tr>
                        <tr><td height="120" style="vertical-align: top;">{!rp.Repair_Detail__c}</td></tr>
                        <tr><td style="border-top-color: white;">漏水:&nbsp;有/无&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;图像:&nbsp;OK/NG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;黑点数(&nbsp;&nbsp;个)</td></tr>
                    </table>
                </td>
                <td></td>
                <td width="48%">
                    <table border="1" style="width:100%;">
                        <tr><td style="background-color: gray; color: white;">现场处理报告&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;分公司</td></tr>
                        <tr><td>初步检查结果:</td></tr>
                        <tr><td height="25" style="border-top-color: white; vertical-align: top;">{!rp.Inspection_result__c}</td></tr>
                        <tr><td style="border-top-color: white;">初步处理决定:</td></tr>
                        <tr><td height="25" style="border-top-color: white; vertical-align: top;">&nbsp;</td></tr>
                        <tr><td style="border-top-color: white;">工作建议(致院方):</td></tr>
                        <tr><td height="15" style="border-top-color: white; vertical-align: top;">&nbsp;</td></tr>
                        <tr><td style="border-top-color: white;">漏水:&nbsp;有/无&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;图像:&nbsp;OK/NG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;消毒方法:</td></tr>
                    </table>
                </td>
            </tr>
        </table>
        <div style="height:5px;">&nbsp;</div>
        <table border="0" style="width:100%;">
            <tr><td style="background-color: gray; color: white;">携带附件</td></tr>
        </table>
        <div style="height:5px;">&nbsp;</div>
        <table border="0" style="width:100%;">
            <tr>
                <td width="30%">01.手提箱(・塑料・纸箱)&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['01.手提箱']}">&#10004;</apex:outputPanel></td>
                <td width="20%">05.送气/送水按钮&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['05.送气/送水按钮']}">&#10004;</apex:outputPanel></td>
                <td>09.电源线&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['09.电源线']}">&#10004;</apex:outputPanel></td>
                <td width="20%">13.P电线&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['13.P电线']}">&#10004;</apex:outputPanel></td>
                <td width="20%">17.ETO帽&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['17.ETO帽']}">&#10004;</apex:outputPanel></td>
            </tr>
            <tr>
                <td>02.送水瓶&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['02.送水瓶']}">&#10004;</apex:outputPanel></td>
                <td>06.吸引按钮&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['06.吸引按钮']}">&#10004;</apex:outputPanel></td>
                <td>10.键盘&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['10.键盘']}">&#10004;</apex:outputPanel></td>
                <td>14.S电线&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['14.S电线']}">&#10004;</apex:outputPanel></td>
                <td>18.撮像头适配器&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['18.撮像头适配器']}">&#10004;</apex:outputPanel></td>
            </tr>
            <tr>
                <td>03.防水帽(&nbsp;&nbsp;个)&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['03.防水帽']}">&#10004;</apex:outputPanel></td>
                <td>07.导光抽头护套&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['07.导光抽头护套']}">&#10004;</apex:outputPanel></td>
                <td>11.脚踏板&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['11.脚踏板']}">&#10004;</apex:outputPanel></td>
                <td>15.SP电线&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['15.SP电线']}">&#10004;</apex:outputPanel></td>
                <td>19.胆道镜三通&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['19.胆道镜三通']}">&#10004;</apex:outputPanel></td>
            </tr>
            <tr>
                <td>04.活检帽&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['04.活检帽']}">&#10004;</apex:outputPanel></td>
                <td>08.内镜电线&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['08.内镜电线']}">&#10004;</apex:outputPanel></td>
                <td>12.A电线&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['12.A电线']}">&#10004;</apex:outputPanel></td>
                <td>16.病人板(&nbsp;&nbsp;)&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['16.病人板']}">&#10004;</apex:outputPanel></td>
                <td>20.其他(&nbsp;&nbsp;)&nbsp;&nbsp;<apex:outputPanel layout="none" rendered="{!acceMap['20.其他']}">&#10004;</apex:outputPanel></td>
            </tr>
        </table>
        <div style="height:5px;">&nbsp;</div>
        <table border="0" style="width:100%;">
            <tr><td style="background-color: gray; color: white;">修理品的受理人签字</td></tr>
        </table>
        <div style="height:5px;">&nbsp;</div>
        <table border="0" style="width:100%;">
            <tr>
                <td width="55%">
                    <table border="0" style="width:100%;">
                        <tr><td>&#9633;1.本人携带此产品回分公司进行修理</td></tr>
                        <tr><td height="2"></td></tr>
                        <tr><td>日期:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;姓名:</td></tr>
                        <tr>
                            <td>
                                <table border="1" style="width:100%;">
                                    <tr><td height="60" style="vertical-align: top;">其他特殊信息・用户留言</td></tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="15%">
                    <table border="0" style="width:100%;">
                        <tr><td height="70" style="vertical-align: bottom; text-align: right;">用户签字</td></tr>
                        <tr><td height="30" style="vertical-align: bottom; text-align: right;">日期</td></tr>
                    </table>
                </td>
                <td>
                    <table border="0" style="width:100%;">
                        <tr><td height="70" style="vertical-align: bottom;"><apex:image value="{!rp.SignUrl__c}" width="130px" height="65px" rendered="{!NOT(ISBLANK(rp.SignUrl__c))}" /></td></tr>
                        <tr><td height="30" style="vertical-align: bottom;"><apex:outputField value="{!rp.SignDate__c}" /></td></tr>
                    </table>
                </td>
            </tr>
        </table>
        <div style="height:15px;">&nbsp;</div>
        <table border="0" style="width:100%;">
            <tr><td>SFDC修理NO:&nbsp;&nbsp;&nbsp;&nbsp;{!rp.Name}</td></tr>
            <tr><td>维修委托号码:&nbsp;&nbsp;&nbsp;&nbsp;{!rp.PaperRepairRequestNo__c}</td></tr>
        </table>
        <table border="0" style="width:100%;">
            <tr>
                <td width="30%">
                    <table border="0" style="width:100%;">
                        <tr><td width="30%">&nbsp;</td><td width="30%" style="text-align: center;">日期</td><td style="text-align: center;">负责人</td></tr>
                        <tr>
                            <td colspan="3">
                                <table border="1" style="width:100%;">
                                    <tr>
                                        <td width="30%" class="title">修理品受理</td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td width="30%" class="title">清洗消毒</td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td width="30%" class="title">受理检测</td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td width="30%" class="title">报价</td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td width="30%" class="title">用户确认</td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td width="30%" class="title">零件齐备</td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td width="30%" class="title">修理开始</td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td width="30%" class="title">维修完成</td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td width="30%" class="title">检查合格</td>
                                        <td></td>
                                        <td></td>
                                    </tr><tr>
                                        <td width="30%" class="title">送出</td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="20%"></td>
                <td>
                    <table border="0" style="width:100%;">
                        <tr><td>※维修情况</td></tr>
                        <tr><td height="20"></td></tr>
                        <tr><td>1、所有受理后的产品,都会通过正规的操作程序取得</td></tr>
                        <tr><td>认证的专业人员进行报价、修理。</td></tr>
                        <tr><td height="20"></td></tr>
                        <tr><td>2、仅此证明,本修理品已通过奥林巴斯的修理合格标</td></tr>
                        <tr><td>准检验。</td></tr>
                        <tr><td height="20"></td></tr>
                        <tr><td>3、大修理的保修期限为本单发出后6个月以内。</td></tr>
                        <tr><td height="20"></td></tr>
                    </table>
                </td>
            </tr>
        </table>
        <div style="height:15px;">&nbsp;</div>
        <table border="0" style="width:100%;">
            <tr>
                <td width="49%">
                    <table border="1" style="width:100%;">
                        <tr><td style="background-color: gray; color: white;">受理检查结果&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;维修站</td></tr>
                        <tr><td height="130"></td></tr>
                        <tr><td style="border-top-color: white;">漏水:&nbsp;有/无&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;图像:&nbsp;OK/NG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;黑点数(&nbsp;&nbsp;个)</td></tr>
                    </table>
                </td>
                <td></td>
                <td width="49%">
                    <table border="1" style="width:100%;">
                        <tr><td height="40">修理等级</td></tr>
                        <tr><td>维修费</td></tr>
                        <tr><td>1、基本等级修理用零件费</td></tr>
                        <tr><td>2、附加零件费</td></tr>
                        <tr><td>3、人工费</td></tr>
                        <tr><td>4、合计</td></tr>
                        <tr><td>日期:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;姓名/印章:</td></tr>
                        <tr><td>收件处</td></tr>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>
</apex:page>