liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
<apex:page controller="NewDBMCAgentNLPPDFController" showHeader="false" sidebar="false" action="{!init}" renderAs="pdf" applyHtmlTag="false">
<html>
    <head style="font-family: SimSun Arial Unicode MS;">
        <style>
            @page {
                size: A4 portrait;
                margin: 20mm 20mm 10mm 20mm;
                position: relative;
                    background-image:url('{!URLFOR($Resource.Olumpus_WaterMark  )}');
                    background-repeat:no-repeat;
                    background-position:center;
                    opacity: 0.2;
                /* @Top-right { 
                    content:  "{!'合同管理编码:' + targetMC.MCD.Management_Code__c}";
                    font-size: 9pt;
                    font-family: Arial Unicode MS;
    
                } */
                 @bottom-center {
                    content: counter(page)" / " counter(pages);
                }
                
            }
            body > .top-right {
                position: absolute;
                top: 10px;
                right: 10px;
                font-size: 12px;
              
            }
            .no-bullet-list {
                list-style-type: none;
                padding: 0;
                margin: 0;
            }
            .no-wrap {
                white-space: nowrap;
            }
            td.detail { text-align: center; font-size: 8pt} 
            /* td.detail { text-align: center; } */
            .single { width:33px; }
            .double { width:66px; }
            .singleline { height:15px;}
            .doubleline { height:30px;}
            .table-cell {
                    line-height: 1; /* 调整行高 */
                }
            </style>
    </head>
    <apex:include pageName="NewDBMCAgentPDF2"> </apex:include>
    <body style="font-family: Arial Unicode MS;">
 
         <!-- 甲方乙方2 -->
         <table width="100%" cellspacing="0" cellpadding="0" style="font-size:13pt;">
            <tr><td style="text-align: center;font-size: 18pt">维修业务委托协议</td></tr>
        </table>
         <table width="100%" cellspacing="0" cellpadding="0" style="font-size:13pt;">
            <tr><td height="40px"></td></tr>
            <tr>
                <td width="20px" style="font-size: 16pt;vertical-align: text-top;">委托人:&nbsp;
                </td>
                <td style="font-size: 16pt">
                    <u>&nbsp;<c:PDFWbr targetStr="{!IF(targetMC.MC.Dealer__r.Name == null,targetMC.MC.Hospital__r.Name,targetMC.MC.Dealer__r.Name)}" />&nbsp;</u>(以下简称“甲方”)
                </td>
            </tr>
            <tr><td height="20px"></td></tr>
            <tr>
                <td width="20px" style="font-size: 16pt;vertical-align: text-top;">
                    受托人:&nbsp;
                </td>
                <td style="font-size: 16pt"> <c:PDFWbr targetStr="{!targetMC.BCompany}"/><c:PDFWbr targetStr="(以下简称“乙方”)"/></td></tr>
    
                <tr><td height="25px"></td></tr>
        </table>
 
        <table width="100%" cellspacing="0" cellpadding="0" style="font-size:13pt;">
            <tr><td> 
            </td></tr>
            <tr>
                <!-- <td class ='single'>&nbsp;</td> -->
                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <c:PDFWbr targetStr="{!targetMC.TermZero_One}"/>
                     <!-- 处理遍历数据 start -->
                     <apex:variable var="sum" value="{!0}" />
                     <apex:repeat value="{!targetMC.MCL}" var="MC">
                       <apex:variable var="sum" value="{!sum + MC.Estimate_Asset_Cnt__c}" />
                       <!-- 如果是最后一次单独处理 -->
                         <apex:outputPanel rendered="{!MC == targetMC.MCL[targetMC.MCL.size-1]}">
                         <u>&nbsp;<c:PDFWbr targetStr="{!MC.Hospital__r.Name}" />&nbsp;</u>
                        </apex:outputPanel>
                        <!-- 不是最后一次放行 -->
                         <apex:outputPanel rendered="{!MC != targetMC.MCL[targetMC.MCL.size-1]}"> 
                            <u>&nbsp;<c:PDFWbr targetStr="{!MC.Hospital__r.Name}" />&nbsp;</u>
                         </apex:outputPanel> 
                    </apex:repeat>
                    <c:PDFWbr targetStr="{!targetMC.TermZero_Two}" />
                    <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.AssetCount}" />&nbsp;</u>
                    <c:PDFWbr targetStr="{!targetMC.TermZero_Three}" />
                </td></tr>
            <tr><td height="15px"></td></tr>
        </table>
        <table width="100%" cellspacing="0" cellpadding="0" style="font-size:13pt;">
            <tr>
                <!-- <td class ='single' style="vertical-align: text-top;">一、</td> -->
                <td>
                    <c:PDFWbr targetStr="{!targetMC.TermOne_One}"/>
                </td>
            </tr>   
             <tr>
                <!-- <td></td> -->
                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <c:PDFWbr targetStr="{!targetMC.TermOne_Two}"/>
                </td>
                
                <!-- <td>件。附件是本合同有效组成部分,与本合同具有同等法律效力。</td> -->
            </tr>
        </table>
 
        <table width="100%" cellspacing="0" cellpadding="0" style="font-size:13pt;">
            <apex:outputPanel rendered="{!Not(targetMC.MC.Is_New_Contract__c)}">
                <tr><td height="15px"></td></tr>
                <tr>
                    <td><c:PDFWbr targetStr="{!targetMC.TermTwo_One}"/>
                    </td>
                </tr>
                <!-- 追加5条 -->
                <!-- 第一条   -->
              <!-- <tr>  
                <td>
                    <c:PDFWbr targetStr="{!targetMC.TermTwo_One_one}"/>
                    <u><c:PDFWbr targetStr="{!targetMC.MC.Management_Code__c}"/></u>
                    中的<u><c:PDFWbr targetStr="{!targetMC.MC.Estimate_Asset_Cnt__c}"/></u><c:PDFWbr targetStr="件设备,服务委托期限为"/>
                    <u>{!targetMC.StartYear}</u>年<u>{!targetMC.StartMonth}</u>月<u>{!targetMC.StartDay}</u>日至<u>{!targetMC.EndYear}</u>年<u>{!targetMC.EndMonth}</u>月<u>{!targetMC.EndDay}</u>日。
                </td>
              </tr> -->
              <apex:variable var="count" value="{!0}" />
              <apex:dataList styleClass="no-bullet-list" value="{!targetMC.MCL}" var="MC">
                <apex:variable var="count" value="{!count + 1}" />
                <tr>  
                    <td class="table-cell">
                        {!count}<c:PDFWbr targetStr="{!targetMC.TermTwo_One_one}"/>
                        <u><c:PDFWbr targetStr="{!MC.Management_Code__c}"/></u>中的
                        <u><c:PDFWbr targetStr="{!MC.Estimate_Asset_Cnt__c}"/></u>
                        <c:PDFWbr targetStr="件设备,服务委托期限为"/>
                        <apex:variable var="Contract_Start" value="{!MC.Contract_Start_Date__c}" />
                        <apex:outputText value="{0, date, yyyy'年'MM'月'dd'日'}" styleClass="no-wrap">
                            <apex:param value="{!Contract_Start}"></apex:param>  
                        </apex:outputText>
                        至 
                        <br/>
                        <apex:variable var="Contract_End" value="{!MC.Contract_End_Date__c}" />
                        <apex:outputText value="{0, date, yyyy'年'MM'月'dd'日'}" styleClass="no-wrap">
                          <apex:param value="{!Contract_End}"></apex:param>
                        </apex:outputText>。
                    </td>
                  </tr>
              </apex:dataList>
            </apex:outputPanel>
            <!-- 第三 -->
            <apex:outputPanel rendered="{!Not(targetMC.MC.Is_New_Contract__c)}">
                <tr><td height="15px"></td></tr>
                <tr>
                    <td>
                        <c:PDFWbr targetStr="{!targetMC.TermThree_One}"/>
                        &nbsp;¥<c:PDFWbr targetStr="{!targetMC.FieldRequest}"/>&nbsp;
                        <c:PDFWbr targetStr="{!targetMC.TermThree_Two}"/><u>
                        &nbsp;<c:PDFWbr targetStr="{!targetMC.MCD.Total_FieldRequest_quotation_In_Words__c}"/>&nbsp;</u>
                        <c:PDFWbr targetStr="{!targetMC.TermThree_Three}" />
                    </td>
                </tr>   
                  <!-- 追加5条 -->
                <!-- 第一条 -->
              <!-- <tr>
                <td>
                    <c:PDFWbr targetStr="{!targetMC.TermTwo_One_one}"/>
                    <u><c:PDFWbr targetStr="{!targetMC.MC.Management_Code__c}"/></u>
                    <c:PDFWbr targetStr="{!targetMC.TermThree_Four}"/>
                    <u><c:PDFWbr targetStr="{!targetMC.Contract_Amount}" /></u>
                    <c:PDFWbr targetStr="{!targetMC.TermThree_Two}"/>
                    <u><c:PDFWbr targetStr="{!targetMC.Total_Contract_Amount_In_Words}"/></u>
                    <c:PDFWbr targetStr="{!targetMC.TermThree_Three}" />
                </td>
              </tr> -->
              <!-- 循环打印 -->
              <apex:variable var="count2" value="{!0}" />
              <apex:dataList styleClass="no-bullet-list" value="{!targetMC.MCL}" var="mc">
                <tr>
                    <td>
                        <apex:variable var="count2" value="{!count2 + 1}" />
                        {!count2}
                        <c:PDFWbr targetStr="{!targetMC.TermTwo_One_one}"/>
                        <u><c:PDFWbr targetStr="{!MC.Management_Code__c}"/></u>
                        <c:PDFWbr targetStr="{!targetMC.TermThree_Four}"/>
                        <u><c:PDFWbr targetStr="{!MC.Contract_Amount_Text__c}" /></u>
                        <c:PDFWbr targetStr="{!targetMC.TermThree_Two}"/>
                        <u><c:PDFWbr targetStr="{!MC.Total_Contract_Amount_In_Words__c}"/></u>
                        <c:PDFWbr targetStr="{!targetMC.TermThree_Three}" />
                    </td>
                  </tr>
              </apex:dataList>
 
            </apex:outputPanel>
            <!--  -->
            <tr><td height="15px"></td></tr>
            <tr><td><c:PDFWbr targetStr="{!targetMC.TermFour_One}"/></td></tr>
            <apex:outputPanel rendered="{!IF(targetMC.MCD.Term_Of_Payment__c == '一次性付款', 'true', 'false')}">
                <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <c:PDFWbr targetStr="{!targetMC.TermFour_Once_One}" />
                    <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.MCD.one_off_payment_agreed_period__c}" />&nbsp;</u>
                    <c:PDFWbr targetStr="{!targetMC.TermFour_Once_Two}" />
                </td></tr>
                <tr><td>
                    <u>&nbsp;¥<c:PDFWbr targetStr="{!targetMC.FieldRequest}" />&nbsp;</u>
                    <c:PDFWbr targetStr="{!targetMC.TermFour_Once_Three}" />
                    <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Total_FieldRequest_quotation_In_Words}" />&nbsp;</u>
                    <c:PDFWbr targetStr="{!targetMC.TermFour_Once_Four}" />
                    <apex:outputPanel rendered="{!IF(targetMC.MCD.old_Is_RecognitionModel__c,'','none')}">
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Once_Five}" />
                    </apex:outputPanel>
                </td></tr>
            </apex:outputPanel>
            <apex:outputPanel rendered="{!IF(targetMC.MCD.Term_Of_Payment__c == '多次付款', 'true', 'false')}">
                <tr>
                    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>本合同款项分<u><c:PDFWbr targetStr="{!targetMC.MCD.Total_Payment_Time__c}" /></u>期付出,详细如下:</span></td>
                </tr>
                <apex:outputPanel rendered="{!targetMC.Total_Payment_Time != null && targetMC.Total_Payment_Time >= 1}">
                    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much1}" />
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.First_Payment_Year}" />&nbsp;</u>年
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.First_Payment_Month}" />&nbsp;</u>月
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.First_Payment_Day}" />&nbsp;</u>日
                        
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same1}" />
                        ¥<u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Payment_Plan_Sum_First}" />&nbsp;</u>
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same2}" />
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Payment_Plan_Sum_First_in_Word}" />&nbsp;</u>
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same3}" />
                    </td></tr>
                </apex:outputPanel>
                <apex:outputPanel rendered="{!targetMC.Total_Payment_Time != null && targetMC.Total_Payment_Time >= 2}">
                        <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <c:PDFWbr targetStr="{!targetMC.TermFour_Much2}" />
                            <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Second_Payment_Year}" />&nbsp;</u>年
                            <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Second_Payment_Month}" />&nbsp;</u>月
                            <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Second_Payment_Day}" />&nbsp;</u>日
                            
                            <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same1}" />
                            ¥<u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Payment_Plan_Sum_Second}" />&nbsp;</u>
                            <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same2}" />
                            <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Payment_Plan_Sum_Second_in_Word}" />&nbsp;</u>
                            <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same3}" />
                        </td></tr>
                </apex:outputPanel>
                <apex:outputPanel rendered="{!targetMC.Total_Payment_Time != null && targetMC.Total_Payment_Time >= 3}">
                    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much3}" />
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Third_Payment_Year}" />&nbsp;</u>年
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Third_Payment_Month}" />&nbsp;</u>月
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Third_Payment_Day}" />&nbsp;</u>日
                        
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same1}" />
                        ¥<u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Payment_Plan_Sum_Third}" />&nbsp;</u>
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same2}" />
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Payment_Plan_Sum_Third_in_Word}" />&nbsp;</u>
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same3}" />
                    </td></tr>
                </apex:outputPanel>
                <apex:outputPanel rendered="{!targetMC.Total_Payment_Time != null &&targetMC.Total_Payment_Time >= 4}">
                    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much4}" />
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Forth_Payment_Year}" />&nbsp;</u>年
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Forth_Payment_Month}" />&nbsp;</u>月
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Forth_Payment_Day}" />&nbsp;</u>日
                        
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same1}" />
                        ¥<u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Payment_Plan_Sum_Forth}" />&nbsp;</u>
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same2}" />
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Payment_Plan_Sum_Forth_in_Word}" />&nbsp;</u>
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same3}" />
                    </td></tr>
                </apex:outputPanel>
                <apex:outputPanel rendered="{!targetMC.Total_Payment_Time != null && targetMC.Total_Payment_Time >= 5}">
                    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much5}" />
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Fifth_Payment_Year}" />&nbsp;</u>年
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Fifth_Payment_Month}" />&nbsp;</u>月
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Fifth_Payment_Day}" />&nbsp;</u>日
                        
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same1}" />
                        ¥<u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Payment_Plan_Sum_Fifth}" />&nbsp;</u>
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same2}" />
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Payment_Plan_Sum_Fifth_in_Word}" />&nbsp;</u>
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same3}" />
                    </td></tr>
                </apex:outputPanel>
                <apex:outputPanel rendered="{!targetMC.Total_Payment_Time != null && targetMC.Total_Payment_Time >= 6}">
                    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much6}" />
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Sixth_Payment_Year}" />&nbsp;</u>年
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Sixth_Payment_Month}" />&nbsp;</u>月
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Sixth_Payment_Day}" />&nbsp;</u>日
                        
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same1}" />
                        ¥<u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Payment_Plan_Sum_Sixth}" />&nbsp;</u>
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same2}" />
                        <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Payment_Plan_Sum_Sixth_in_Word}" />&nbsp;</u>
                        <c:PDFWbr targetStr="{!targetMC.TermFour_Much_Same3}" />
                    </td></tr>
                </apex:outputPanel>
                <apex:outputPanel rendered="{!IF(targetMC.MCD.old_Is_RecognitionModel__c,'','none')}">
                    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        乙方收到甲方每期款项并完成认款后的7个工作日内向甲方提供对应金额的正规发票。
                    </td></tr>
                </apex:outputPanel>
            </apex:outputPanel>
        <tr><td height="15px"></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_Title}" /></td></tr>
        <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <apex:outputPanel rendered="{!IF(targetMC.MCD.old_Is_RecognitionModel__c&& targetMC.MCD.Term_Of_Payment__c == '一次性付款','','none')}">
                <c:PDFWbr targetStr="{!targetMC.TermFive_Head2}" />
            </apex:outputPanel>
            <apex:outputPanel rendered="{!IF(targetMC.MCD.old_Is_RecognitionModel__c && targetMC.MCD.Term_Of_Payment__c == '多次付款','','none')}">
                <c:PDFWbr targetStr="{!targetMC.TermFive_Head3}" />
            </apex:outputPanel>
            <apex:outputPanel rendered="{!IF(NOT(targetMC.MCD.old_Is_RecognitionModel__c),'','none')}">
                <c:PDFWbr targetStr="{!targetMC.TermFive_Head}" />
            </apex:outputPanel>
        </td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_One}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_One2}" /></td></tr>
        <tr><td>
            <c:PDFWbr targetStr="{!targetMC.TermFive_Two}" />
            <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Mc.Small_Repair_Time__c}" />&nbsp;</u>
            <c:PDFWbr targetStr="{!targetMC.TermFive_Two2}" />
        </td></tr>
        <tr><td>
            <c:PDFWbr targetStr="{!targetMC.TermFive_Three}" />
            <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Mc.Big_Repair_Time__c}" />&nbsp;</u>
            <c:PDFWbr targetStr="{!targetMC.TermFive_Three1}" />
        </td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_Four}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_Five}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_Five2}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_Six}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_Seven}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_Eight}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_Nine}" /></td></tr>
        <tr><td>
            <c:PDFWbr targetStr="{!targetMC.TermFive_Ten}" />
            <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Mc.Inspection_Time__c}" />&nbsp;</u>
            <c:PDFWbr targetStr="{!targetMC.TermFive_Ten2}" />
        </td></tr>
        <!-- XLIU-CEP8WW 【委托】合同文本更新/新增 XXF 20221031 start-->
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_Eleven1}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_Eleven2}" /></td></tr>
        <!-- XLIU-CEP8WW 【委托】合同文本更新/新增 XXF 20221031 end-->
        <!-- XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 start-->
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermFive_Eleven}" /></td></tr>
        <table border="2px" style="border-style: solid; border-bottom-style: none;" cellspacing="0" cellpadding="0">
                <tr>
                    <td>{!targetMC.TermFive_Table11}</td><td>{!targetMC.TermFive_Table12}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermFive_Table21}</td><td>{!targetMC.TermFive_Table22}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermFive_Table31}</td><td>{!targetMC.TermFive_Table32}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermFive_Table41}</td><td>{!targetMC.TermFive_Table42}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermFive_Table51}</td><td>{!targetMC.TermFive_Table52}</td>
                </tr>
        </table>
        <!-- XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 end-->
         <!-- 六、    甲方责任范围  -->
        <tr><td height="15px"></td></tr>
           <!-- 服务合同文本更新 20230717 start -->
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_Title}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_One}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_Two}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_Three}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_Four}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_Five}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_Five2}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_Six}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_Seven}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_Eight}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_Nine}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_Ten}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSix_Eleven}" /></td></tr>
        <!-- 服务合同文本更新 20230717 end -->
         <!-- 七、  甲乙双方同意本合同进行续签  -->
        <tr><td height="15px"></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSeven_Title}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSeven_One}" /></td></tr>
        <!-- <tr><td style="display:none;">1、</td></tr> -->
        <!--<apex:outputPanel rendered="{!targetMC.MC.Term_Of_Payment__c == '一次性付款' }">
            <tr><td height="95px"></td></tr>
        </apex:outputPanel>
        <apex:outputPanel rendered="{!targetMC.MC.Term_Of_Payment__c == '多次付款' && targetMC.Total_Payment_Time != null && targetMC.Total_Payment_Time == 1 }">
            <tr><td height="70px"></td></tr>
        </apex:outputPanel>
        <apex:outputPanel rendered="{!targetMC.MC.Term_Of_Payment__c == '多次付款' && targetMC.Total_Payment_Time != null && targetMC.Total_Payment_Time == 2 }">
            <tr><td height="20px"></td></tr>
        </apex:outputPanel>-->
        <tr><td>1、</td></tr>
        </table>
            <table border="2px" style="border-style: solid; border-bottom-style: none;" cellspacing="0" cellpadding="0">
                <tr>
                    <td  bgcolor="#ffcc22">合同消费率(X)</td><td  bgcolor="#ffcc22">调整比例%</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermSeven_Table11}</td><td>{!targetMC.TermSeven_Table12}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermSeven_Table21}</td><td>{!targetMC.TermSeven_Table22}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermSeven_Table31}</td><td>{!targetMC.TermSeven_Table32}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermSeven_Table41}</td><td>{!targetMC.TermSeven_Table42}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermSeven_Table51}</td><td>{!targetMC.TermSeven_Table52}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermSeven_Table61}</td><td>{!targetMC.TermSeven_Table62}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermSeven_Table71}</td><td>{!targetMC.TermSeven_Table72}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermSeven_Table81}</td><td>{!targetMC.TermSeven_Table82}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermSeven_Table91}</td><td>{!targetMC.TermSeven_Table92}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermSeven_Table101}</td><td>{!targetMC.TermSeven_Table102}</td>
                </tr>
                <tr>
                    <td>{!targetMC.TermSeven_Table111}</td><td>{!targetMC.TermSeven_Table112}</td>
                </tr>
            </table>
        <table width="100%" cellspacing="0" cellpadding="0" style="font-size:13pt;">
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermSeven_Two}" /></td></tr>
        <!-- HWAG-BLWFGC  追加第八条,原八九条顺延 2020-02-19 update by vivek start -->
        <tr><td height="15px"></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEightAppend_Title}" /></td></tr>
        <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<c:PDFWbr targetStr="{!targetMC.TermEightAppend_One}" /></td></tr>
        <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<c:PDFWbr targetStr="{!targetMC.TermEightAppend_Two}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEightAppend_Three}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEightAppend_Three1}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEightAppend_Four}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEightAppend_Five}" /></td></tr>
        <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<c:PDFWbr targetStr="{!targetMC.TermEightAppend_Six}" /></td></tr>
        <!-- HWAG-BLWFGC  追加第八条,原八九条顺延 2020-02-19 update by vivek end -->
        <!-- 九、 本合同的解释与执行适用中华人民共和国法律 -->
        <tr><td height="15px"></td></tr>
        <tr><td>
            <c:PDFWbr targetStr="{!targetMC.TermEight_Title}" />
        </td></tr>
        <tr>
            <td><c:PDFWbr targetStr="{!targetMC.TermEight_Title2}" /></td>
        </tr>
        <tr>
            <td><c:PDFWbr targetStr="{!targetMC.TermEight_Title3}" /></td>
        </tr>
        <tr>
            <td><c:PDFWbr targetStr="{!targetMC.TermEight_Title4}" /></td>
        </tr>
        <tr>
            <td><c:PDFWbr targetStr="{!targetMC.TermEight_Title5}" /></td>
        </tr>
        <tr>
            <td><c:PDFWbr targetStr="{!targetMC.TermEight_Title6}" /></td>
        </tr>
        <tr>
            <td><c:PDFWbr targetStr="{!targetMC.TermEight_Title7}" /></td>
        </tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEight_One}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEight_Two}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEight_Three}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEight_Four}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEight_Five}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEight_Six}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEight_Seven}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermEight_Eight}" /></td></tr>
        <!-- 十 -->
        <tr><td height="15px"></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermNine}" /></td></tr>
        <!-- 十一 -->
        <tr><td height="15px"></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermNine2}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermNine3}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermNine4}" /></td></tr>
        <tr><td><c:PDFWbr targetStr="{!targetMC.TermNine5}" /></td></tr>
        <!-- 十二、    本合同甲方执   份 -->
        <tr><td height="15px"></td></tr>
        <tr><td>
            <c:PDFWbr targetStr="{!targetMC.TermNine_One}" />
            <u>&nbsp;<c:PDFWbr targetStr="{!targetMC.Mc.First_Party_Contract_Number__c}" />&nbsp;</u>
            <c:PDFWbr targetStr="{!targetMC.TermNine_Two}" />
        </td></tr>
 
        <apex:outputPanel rendered="{!targetMC.MC.Term_Of_Payment__c == '一次性付款' }">
            <tr><td height="30px"></td></tr>
        </apex:outputPanel>
        <apex:outputPanel rendered="{!targetMC.MC.Term_Of_Payment__c == '多次付款' && targetMC.Total_Payment_Time != null }">
            <tr><td height="30px"></td></tr>
        </apex:outputPanel>
        </table>
        <!-- ページ3 -->
        <table width="100%" cellspacing="1" cellpadding="1" style="font-size:13pt;">
            <tr><td height="15px"></td></tr>
            <tr>
                <td style="font-size: 14pt;vertical-align: text-top;">甲方:&nbsp;</td>
                <td width="50%" style="font-size: 14pt;vertical-align: text-top;">
                <c:PDFWbr targetStr="{!IF(targetMC.MC.Dealer__r.Name == null,targetMC.MC.Hospital__r.Name,targetMC.MC.Dealer__r.Name)}"/>
                </td>
                <td style="font-size: 14pt;vertical-align: text-top;">乙方:&nbsp;</td>
                <td width="50%" style="font-size: 14pt;vertical-align: text-top;">
                <c:PDFWbr targetStr="{!targetMC.BCompany}"/>
                </td>
            </tr>
        </table>
        <table width="100%" cellspacing="1" cellpadding="1" style="font-size:13pt;">
            <tr><td height="40px"></td></tr>
            <tr><td width="50%" style="font-size: 14pt;">
                盖章日期:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日
                </td>
                <td width="50%" style="font-size: 14pt;">
                盖章日期:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日
                </td>
            </tr>
        </table>
        <!-- <div style="page-break-after: always;"/>
        <div style="counter-increment: page -1"></div> -->
    </body>
</html>
</apex:page>