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
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
<apex:page Controller="NewDBPaymentPlanLoadController"  showHeader="false" sidebar="false" action="{!init}" id="allPage" title="维修合同文本信息录入页面" pageStyle="PageStyleCss" lightningStylesheets="true" > 
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<style type="text/css">
    .BlockSytle{
        width: 1500px;
    }
    .PageStyleCss{
        width: 980px;
        height: 340px;
    }
    .align-save-button {
        vertical-align: top;
        margin-top: 0.0rem;
         margin-bottom: 0.125rem;
    }
    body .pbButton .btn,body .pbButtonb .btn {
      margin-top: -0.1rem;
      margin-bottom: .125rem;
      }
      body .bPageBlock .pbSubheader, .slds-vf-scope .bPageBlock .pbSubheader {
        background-color: #08107b;
        /*background-color: #00a1e0;*/
        color: white;
        border-bottom: 1px solid white;
    }
    body .bPageBlock .detailList .labelCol, .slds-vf-scope .bPageBlock .detailList .labelCol{
        vertical-align: middle;
        width: 3.5%;
    }
    input{
        disabled: false;
    }
    .readonly {
        background-color: #f2f2f2;
        pointer-events: none;
    }
    .checkbox-table {
            display: table;
            width: 100%;
        }
        
        .checkbox-row {
            display: table-row;
        }
        
        .checkbox-cell {
            display: table-cell;
            padding: 5px;
        }
 
        /* 处理 table 左右滑动 */
        .wrap {
            /* 这个只是用来居中内容 */
            align-items: center;
            display: flex;
            height: 100%;
            justify-content: center;
            padding: 8px;
        }
        
        table thead th{
            font-size: 400;
        }
        
        .table_wrap {
            border: 1px solid rgba(0, 0, 0, 0.3);
            height: 400px;
            overflow: auto;
            width: 100%;
        }
        
        .table {
            border-collapse: collapse;
            width: 100%;
        }
        
        .table_title {
            padding: 10px;
            background-color: rgb(221, 221, 221);
            left: 0px;
            position: sticky; 
            font-weight: bold;
            text-align: center;
        }
        
        .table_title p,  .table_content p{
            width: 200px;
            font-size: 12px;
        }
        
        .table_content {
            padding: 10px;
            width: 15%;
        }
        
        .table_tr{
            border-top: 1px solid rgba(0, 0, 0, 0.3);
        }
        body .pbHeader .pbTitle, .slds-vf-scope .pbHeader .pbTitle{
            display: none;
        }
        body .detailList td{
            white-space: nowrap;
        }
</style>    
<script type="text/javascript">
    j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Contract_Limit_Times__c')).attr('disabled',true);
        function PrintJs() {    
            console.log('---------------1-----------------');
            var Rs = j$(escapeVfId('allPage:allForm:statusSave')).value();
            console.log('---------------2-----------------');
            console.log(Rs);
            if(Rs == 'Fin'){
                console.log('---------------3-----------------');
                unblockUI();
                console.log('---------------4-----------------');
                if ('{!printContract}' == 'true') {
                    console.log('---------------5-----------------');
                        if ('{!limitPrice}' == 'false') {
                            console.log('/apex/NewDBMCHPNLPPDF?id={!PageMCEElement.id}');
                            window.open('/apex/NewDBMCHPNLPPDF?id={!PageMCEElement.id}', 'DBMCHPNLPPDF');//测试打包合同文本
                            window.close();    
                        }else{
                            alert("暂无PDF模板");
                            window.close();    
                        }
                }else if ('{!printAgent}' == 'true') {
                    if ('{!limitPrice}' == 'true') {
                        window.open('/apex/NewDBMCAgentPDF?id={!PageMCEElement.id}', 'DBMCAgentPDF');//测试上限经销商
                        window.close();
                    }else{
                        window.open('/apex/NewDBMCAgentNLPPDF?id={!PageMCEElement.id}', 'DBMCAgentNLPPDF');//测试非上限经销商
                        window.close();
                    }
                }else {
                    alert('1');
                }
            }else{
                unblockUI();
            }
        }
        function ChangeTermofPaymentPlanJS(){
            //XLIU-CEP8WW LY 20220905 start
            var saveBT = '{!PageMCEElement.old_Is_RecognitionModel__c}';
            var payment = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).val();
            console.info(payment);
            console.info(saveBT);
            // if (saveBT =='false' && payment=='多次付款'){
            //     j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", false);
            //     j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", false);
            //     j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", false);
            //     j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", false);
            // }
            // if (saveBT =='false' && payment=='一次性付款') {
            //     j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", false);
            //     j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", false);
            //     j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", false);
            //     j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", false);
            // }
            //XLIU-CEP8WW LY 20220905 end
            ChangeTermofPaymentPlan();
 
        }
        function AllChecktime(){
            var Allchecks;
            // gzw fix 20210929 追加非标准合同判断
 
            var ContractAllMonth = '{!Contract_validMonth}';//j$(escapeVfId('allPage:allForm:Contract_validMonth')).value();
            // alert(ContractAllMonth);
            var contractType = j$(escapeVfId('allPage:allForm:allBlock:Is_Standard_Contract')).val();
            var checks;
            if(contractType == '是'){
                checks= j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Inspection_Time__c')).val();
            }else{
                checks= j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Inspection_Time__cno')).val();
            }
            //  = j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Inspection_Time__c')).val();
            // alert(checks);
            // add 一年内点检区间不够生成一次点检计划,默认生成一个点检计划,计划区间为合同开始日-结束日 2021/10/25 fxk Star
            if((checks == 1 && ContractAllMonth < 9) 
                || (checks == 2 && ContractAllMonth < 6) 
                || (checks == 3 && ContractAllMonth < 4)
                || (checks == 4 && ContractAllMonth < 3)){
                Allchecks = 1;
            }else{
            // add 一年内点检区间不够生成一次点检计划,默认生成一个点检计划,计划区间为合同开始日-结束日 2021/10/25 fxk End
                if (ContractAllMonth - parseInt(ContractAllMonth / 12) * 12 >= 6 && checks == 1){
                    Allchecks = parseInt((ContractAllMonth * checks)/12+1);
                }else{
                    Allchecks = parseInt((ContractAllMonth * checks)/12);
                    // alert(Allchecks);
                }
            }
            // alert(Allchecks);
            if(contractType == '是'){
                j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Contract_Limit_Times__c')).text(Allchecks);
            }else{
                j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Contract_Limit_Times__cno')).text(Allchecks);
            }
            
        }
        function CloseJs() {
                // body...
                var Rs = j$(escapeVfId('allPage:allForm:statusSave')).value();
                // alert(Rs);
                // fxk 2021/8/31 点检次数必须填 end
                // var saveErrorflag = j$(escapeVfId('saveErrorflag')).value();
                if(Rs == 'Fin'){    
                    // fxk 2021/8/31 点检次数必须填 end
                        window.opener.top.location.href = '/{!PageMCEElement.id}';
            //          top.window.close();
                        window.close();    
                        unblockUI();
                    }else{
                        unblockUI();
                    }
        }
        /** 数字金额大写转换(可以处理整数,小数,负数) */    
        function smalltoBIG(n){    
            var fraction = ['角', '分'];    
            var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];    
            var unit = [ ['元', '万', '亿'], ['', '拾', '佰', '仟']  ];    
            var head = n < 0? '欠': ''; 
            n = n.replace(/\,/g,"");
            n = Math.abs(n);    
            var s = '';    
            for (var i = 0; i < fraction.length; i++){
                s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');    
            }    
            s = s || '整';    
            n = Math.floor(n);    
            for (var i = 0; i < unit[0].length && n > 0; i++)     {    
                var p = '';    
                for (var j = 0; j < unit[1].length && n > 0; j++)     {    
                    p = digit[n % 10] + unit[1][j] + p;    
                    n = Math.floor(n / 10);    
                }    
                s = p.replace(/(零.)*零$/, '').replace(/^$/, '零')  + unit[0][i] + s;    
            }    
            return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整');    
        }
        function Convert_Amount(number) {
            var Amount = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_'+number)).val();
            if(Amount == null || Amount== undefined || Amount.length == 0)
                return;
            var Amount_In_Words = smalltoBIG(Amount);
            j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_' + number + '_in_Word')).text(Amount_In_Words);
            j$(escapeVfId('allPage:allForm:Payment_Plan_Sum_' + number + '_in_Word_Hidden')).val(Amount_In_Words);
            j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_'+number)).val(toNumComma(Amount));
        }
        function Convert_Contract_Amount() {
            var Total_Contract_Amount = j$(escapeVfId('allPage:allForm:Contract_Amount_Hidden')).val();
            var Total_Contract_Amount_In_Words = smalltoBIG(Total_Contract_Amount);
            j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Total_Contract_Amount_In_Words')).text(Total_Contract_Amount_In_Words);
            j$(escapeVfId('allPage:allForm:Total_Contract_Amount_In_Words_Hidden')).val(Total_Contract_Amount_In_Words);
 
            // <!-- 上限合同 20230110 start -->
            var Limit_Price_Amount = j$(escapeVfId('allPage:allForm:Limit_Price_Amount_Hidden')).val();
            var Limit_Price_Amount_in_Word = smalltoBIG(Limit_Price_Amount);
            j$(escapeVfId('allPage:allForm:Limit_Price_Amount_in_Word_Hidden')).val(Limit_Price_Amount_in_Word);
            // <!-- 上限合同 20230110 end -->
            //Limit_Price_Amount_In_Words__c
        }
 
        function Amount_Warranty_Coverage(){
            var Total_Contract_Amount = j$(escapeVfId('allPage:allForm:Contract_Amount_Hidden')).val();
            var Amount_Warranty_Coverage = (Total_Contract_Amount*1.3).toString();
            console.log(Amount_Warranty_Coverage+'======');
            var Amount_Warranty_Coverage_In_Words = smalltoBIG(Amount_Warranty_Coverage);
            console.log(Amount_Warranty_Coverage_In_Words+'======');
            // j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Total_Contract_Amount_In_Words')).text(Amount_Warranty_Coverage_In_Words);
            j$(escapeVfId('allPage:allForm:Amount_Warranty_Coverage_In_Word_Hidden')).val(Amount_Warranty_Coverage_In_Words);
            j$(escapeVfId('allPage:allForm:Amount_Warranty_Coverage_Hidden')).val(Amount_Warranty_Coverage);
        }
        function Initdisabled() {
            if ('{!printContract}' == 'true') {
                if ('{!limitPrice}' == 'false') {
                    // j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).attr("disabled", true);
                }
            }else if ('{!printAgent}' == 'true') {
                if ('{!limitPrice}' == 'false') {
                    // j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).attr("disabled", true);
                }
            }
            //XLIU-CEP8WW LY 20220905 startp
            var saveBT = '{!PageMCEElement.old_Is_RecognitionModel__c}';
            var payment = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).val();
            // var Uplimit = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Upperlimit')).val();
            // var Uplimit = '{!UpperLimitPrice}';
            // console.log('Uplimit='+Uplimit);
            // if (saveBT =='true' && payment=='多次付款'){
                // j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", true);
                // j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", true);
                // j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", true);
                // j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", true);
            // }
            // if (Uplimit =='true'){
            //     j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", true);
            //     j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", true);
            //     j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", true);
            //     j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", true);
            // }
            //XLIU-CEP8WW LY 20220905 end
            
        }
        function Convert_All_Amount() {
            var Total_Contract_Amount = j$(escapeVfId('allPage:allForm:Contract_Amount_Hidden')).val();
            var Total_Contract_Amount_In_Words = j$(escapeVfId('allPage:allForm:Total_Contract_Amount_In_Words_Hidden')).val();
            if( Total_Contract_Amount !=null && Total_Contract_Amount!=undefined  && Total_Contract_Amount.length > 0 ){
                Convert_Contract_Amount();
                Amount_Warranty_Coverage();
                for(var i=1; i<7; i++){
                Convert_Amount(i);
                }
            }
        }
        function paytime(val){
            ChangeTermofPaymentPlan();
        }
        function init() {
            
            Convert_All_Amount();
            calculate();
            // 新增点检总次数(只在页面中显示)fxk 2021/9/2 Star
            AllChecktime();
            // 新增点检总次数(只在页面中显示)fxk 2021/9/2 ENd
            Initdisabled();
        }
        // 多次付款,每期金额计算 WYL start
        function calculate(n) {
            var inputs = document.querySelectorAll('input[id$="Payment_Plan_Sum2_'+n+'"]');
            var sum = 0;
            for (var i = 0; i < inputs.length; i++) {
                var value = localParseFloat(inputs[i].value);
                if (!isNaN(value)) {
                    sum += value;
                }
            }
            console.log("计算结果:" + sum);
            j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_'+n)).val(sum);
        }
        // 多次付款,每期金额计算 WYL end
        //当选择报价单(详细版)的时候隐藏报价单(简化版)
        // 4个选项只可以选一个
        function hideSimplify(cb){
            for (j = 0; j < 4; j++) {
                if (j$(escapeVfId('allPage:allForm:allBlock:check' + j)).attr('checked')) {
                    j$(escapeVfId('allPage:allForm:allBlock:check' + j)).attr('checked',false);
                    if (j == cb) {
                        j$(escapeVfId('allPage:allForm:allBlock:check' + j)).attr('checked',true);
                    }
                }
            }
 
        }
</script>
<apex:form styleClass="BlockSytle" id="allForm">
    <body onload="init()">
 
        <apex:actionFunction name="ChangeTermofPaymentPlan" action="{!Dummy}" rerender="paymentPlan"></apex:actionFunction>
        <apex:actionFunction name="RerenderallpageBlockJS" action="{!Dummy2}" rerender="TextInformation" oncomplete="AllChecktime();"></apex:actionFunction>
        <!-- <apex:actionFunction name="RerenderallpageBlockJS"  rerender="TextInformation"></apex:actionFunction> -->
    
        <apex:outputPanel id="hiddenInput">
        <apex:inputHidden value="{!PageMCEElement.Limit_Price_Amount_In_Words__c}" id="Limit_Price_Amount_In_Words__c"></apex:inputHidden>
        <apex:inputHidden value="{!statusSave}" id="statusSave"/>
        <!--  2023-11-17 WYL 修改 申请报价金额改为最终用户合同金额 FieldRequest_quotation_Amount__c =》Contract_Amount__c     -->
        <apex:inputHidden value="{!PageMCEElement.Contract_Amount__c}" id="Contract_Amount_Hidden"/>
        <!-- 上限合同 start -->
        <apex:inputHidden value="{!PageMCEElement.Limit_Price_Amount__c}" id="Limit_Price_Amount_Hidden"/>
        <apex:inputHidden value="{!PageMCEElement.Limit_Price_Amount_In_Words__c}" id="Limit_Price_Amount_in_Word_Hidden"/>
        <!-- 上限合同 end -->
        <apex:inputHidden value="{!PageMCEElement.Amount_Warranty_Coverage__c}" id="Amount_Warranty_Coverage_Hidden" />
        <apex:inputHidden value="{!PageMCEElement.Amount_Warranty_Coverage_In_Word__c}" id="Amount_Warranty_Coverage_In_Word_Hidden"/>
        <apex:inputHidden value="{!PageMCEElement.Total_FieldRequest_quotation_In_Words__c}" id="Total_Contract_Amount_In_Words_Hidden"/>
        
        <apex:inputHidden value="{!PageMCEElement.Payment_Plan_Sum_First_in_Word__c}" id="Payment_Plan_Sum_1_in_Word_Hidden"/>
        <apex:inputHidden value="{!PageMCEElement.Payment_Plan_Sum_Second_in_Word__c}" id="Payment_Plan_Sum_2_in_Word_Hidden"/>
        <apex:inputHidden value="{!PageMCEElement.Payment_Plan_Sum_Third_in_Word__c}" id="Payment_Plan_Sum_3_in_Word_Hidden"/>
        <apex:inputHidden value="{!PageMCEElement.Payment_Plan_Sum_Forth_in_Word__c}" id="Payment_Plan_Sum_4_in_Word_Hidden"/>
        <apex:inputHidden value="{!PageMCEElement.Payment_Plan_Sum_Fifth_in_Word__c}" id="Payment_Plan_Sum_5_in_Word_Hidden"/>
        <apex:inputHidden value="{!PageMCEElement.Payment_Plan_Sum_Sixth_in_Word__c}" id="Payment_Plan_Sum_6_in_Word_Hidden"/>
        </apex:outputPanel>
    <apex:pageBlock id="allBlock" >
        <apex:pageMessages id="Messages" />
        <table border="0" >
            <colgroup>
                <col width="25%"/>
                <col width="25%"/>
                <col width="25%"/>
                <col width="25%"/>
            </colgroup>
            <tr>
                <td style ="text-align: right;">
                    <apex:outputText value="是否为标准合同:"  /> &nbsp;&nbsp;
                </td>
                <td style ="text-align: left;">
                    <div class="requiredInput"><div class="requiredBlock"></div>
                        <apex:inputField id="Is_Standard_Contract" value="{!PageMCEElement.Is_Standard_Contract__c}" onchange="RerenderallpageBlockJS(); "/>
                         (必填项,所有合同均必须勾选)       
                    </div>
                </td>
                <td/>
                <td/>
            </tr>
        </table>
        <br/>
        <apex:pageBlockSection id="paymentPlan" title="付款计划(必填内容):" columns="1">
            <apex:selectList label="付款方式:" style="margin-right:3px" size="1" id="Term_Of_Payment__c" value="{!PageMCEElement.Term_Of_Payment__c}" onchange="ChangeTermofPaymentPlanJS();">
                <apex:selectOptions value="{!Term_Of_Payment}"/>
            </apex:selectList>
                <!-- 一次性付款 -->
            <apex:outputPanel style="display: {!IF(Check_Of_Payment, '', 'none')}" >
                <h3 style="margin-left:4%;margin-top: 0px; color:#6b6bf1;" >一次性付款:</h3>
                <p style="margin-left:4%;margin-bottom:0px;">
                     本合同正式签订之日起
                    <apex:selectList style="margin-right:3px;margin-left:3px" size="1" id="one_off_payment_agreed_period__c" value="{!PageMCEElement.one_off_payment_agreed_period__c}">
                        <apex:selectOptions value="{!one_off_payment_agreed_period}"/>
                    </apex:selectList>
                     日内,甲方向乙方支付全部合同款人民币
                     <!--  2023-11-17 WYL 修改 申请报价金额改为最终用户合同金额 FieldRequest_quotation_Amount__c =》 Contract_Amount__c     Total_FieldRequest_quotation_In_Words__c-->
                     <apex:outputText style="margin-right:3px;margin-left:3px" value="{!PageMCEElement.Contract_Amount__c}"/>元,大写<apex:outputText id="Total_Contract_Amount_In_Words" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Total_FieldRequest_quotation_In_Words__c}"/>。
                </p>
            </apex:outputPanel>
            <!-- 多次付款 -->
            <apex:outputPanel style="display: {!IF(Not(Check_Of_Payment), '', 'none')}">
                <!-- <h2 style="margin-left:4%;" >多次付款:</h2> -->
                <h3 style="margin-left:4.7%; margin-top: -1px; color:#6b6bf1;" >多次付款:</h3>
                <!-- <div style="margin-left:4%;line-height:22px;overflow-x: scroll;"> -->
                    
                    <div style="overflow: auto; white-space: nowrap;">
                            <table style="display: inline-table;">
                            <thead>
                                <tr>
                                    <td style="width:20%">
                                        &nbsp;本合同款项分&nbsp;&nbsp;
                                        <apex:selectList style="margin-right:3px" size="1" id="Total_Payment_Time__c" value="{!PageMCEElement.Total_Payment_Time__c}" onchange="paytime(this.value)">
                                            <apex:selectOptions value="{!Total_Payment_Time}"/>
                                        </apex:selectList>&nbsp;期付出,详细如下:
                                        <br/>
                                    </td>
                                    <td></td>
                                    <apex:repeat value="{!MC}" var="m">
                                        <td style="vertical-align: bottom;">
                                            <span style="font-size: 10pt">{!m.Management_Code__c}</span>
                                        </td>
                                    </apex:repeat>
                                </tr>
                                <tr>
                                    <td style="width:22%;border-left-width: 20px;"></td>
                                    <td style="padding-left: 35px;">
                                        <!--  2023-11-17 WYL 修改 申请报价金额改为最终用户合同金额 FieldRequest_quotation_Amount__c =》Contract_Amount__c     -->
                                        合同总金额&nbsp;<apex:inputField value="{!PageMCEElement.Contract_Amount__c}" style="width:100px" styleClass="readonly"/>&nbsp;&nbsp;元,
                                    </td>
                                    <apex:repeat value="{!MC}" var="m">
                                        <td style="width: 120px;">
                                            <apex:inputField value="{!m.Contract_Amount__c}" style="width:100px"  styleClass="readonly"></apex:inputField>
                                        </td>
                                    </apex:repeat>
                                </tr>
                            </thead>
                            <tbody style=" /* white-space: normal;">
                                <tr id="paytime1" style="display:{!IF((PageMCEElement.Total_Payment_Time__c='6' || PageMCEElement.Total_Payment_Time__c='5' || PageMCEElement.Total_Payment_Time__c='4' || PageMCEElement.Total_Payment_Time__c='3' || PageMCEElement.Total_Payment_Time__c='2' || PageMCEElement.Total_Payment_Time__c='1'),'','none')};">
                                    <td>
                                        第一期付款计划日&nbsp;
                                        <apex:inputField id="Payment_Plan_Date_First" value="{!PageMCEElement.Payment_Plan_Date_First__c}" />
                                        &nbsp;前,
                                    </td>
                                    <td style="width:20%">
                                        第一期付款金额&nbsp;    
                                        <apex:inputField id="Payment_Plan_Sum_1" value="{!PageMCEElement.Payment_Plan_Sum_First__c}"  style="width:100px" onchange="Convert_Amount('1');"  styleClass="readonly"/>
                                        &nbsp;元,
                                    </td>
                                    <td style="display: none;">
                                        大写<apex:outputText id="Payment_Plan_Sum_1_in_Word" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Payment_Plan_Sum_First_in_Word__c}"/>
                                    </td>
                                    <apex:repeat value="{!MC}" var="m">
                                        <td style="width: 100px;">
                                            <apex:inputField id="Payment_Plan_Sum2_1"  value="{!m.Payment_Plan_Sum_First__c}" style="width:100px" onchange="calculate(1)"/>
                                            <apex:inputHidden id="Payment_Plan_Sum_1_in_Word" value="{!m.Payment_Plan_Sum_First_in_Word__c}"/>
                                        </td>
                                    </apex:repeat>
                                </tr>    
                                <tr id="paytime2" style="display:{!IF((PageMCEElement.Total_Payment_Time__c='6' || PageMCEElement.Total_Payment_Time__c='5' || PageMCEElement.Total_Payment_Time__c='4' || PageMCEElement.Total_Payment_Time__c='3' || PageMCEElement.Total_Payment_Time__c='2'),'','none')};">
                                    <td>
                                        第二期付款计划日&nbsp;
                                        <apex:inputField id="Payment_Plan_Date_Second" value="{!PageMCEElement.Payment_Plan_Date_Second__c}" />
                                        &nbsp;前,
                                    </td>
                                    <td style="width:20%">
                                        第二期付款金额&nbsp;
                                        <apex:inputField id="Payment_Plan_Sum_2" style="width:100px" value="{!PageMCEElement.Payment_Plan_Sum_Second__c}" onchange="Convert_Amount('2');" styleClass="readonly"/>
                                        &nbsp;元,
                                    </td>
                                    <td style="display: none;">
                                        大写
                                        <apex:outputText id="Payment_Plan_Sum_2_in_Word" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Payment_Plan_Sum_Second_in_Word__c}"/>    
                                    </td>
                                    <apex:repeat value="{!MC}" var="m">
                                        <td style="width: 100px;">
                                            <apex:inputField id="Payment_Plan_Sum2_2"  value="{!m.Payment_Plan_Sum_Second__c}" style="width:100px" onchange="calculate(2)"/>
                                            <apex:inputHidden id="Payment_Plan_Sum_2_in_Word"  value="{!m.Payment_Plan_Sum_Second_in_Word__c}"/>
                                        </td>
                                    </apex:repeat>
                                </tr>
                                <tr id="paytime3" style="display:{!IF((PageMCEElement.Total_Payment_Time__c='6' || PageMCEElement.Total_Payment_Time__c='5' || PageMCEElement.Total_Payment_Time__c='4' || PageMCEElement.Total_Payment_Time__c='3'),'','none')};">
                                    <td>
                                        第三期付款计划日&nbsp;
                                        <apex:inputField id="Payment_Plan_Date_Third"  value="{!PageMCEElement.Payment_Plan_Date_Third__c}"  />
                                        &nbsp;前,
                                    </td>
                                    <td style="width:20%">
                                        第三期付款金额&nbsp;
                                        <apex:inputField id="Payment_Plan_Sum_3" style="width:100px" value="{!PageMCEElement.Payment_Plan_Sum_Third__c}" onchange="Convert_Amount('3');" styleClass="readonly"/>
                                        &nbsp;元,
                                    </td>
                                    <td style="display: none;">
                                        大写
                                        <apex:outputText id="Payment_Plan_Sum_3_in_Word" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Payment_Plan_Sum_Third_in_Word__c}"/>
                                    </td>
                                    <apex:repeat value="{!MC}" var="m">
                                        <td style="width: 100px;">
                                            <apex:inputField id="Payment_Plan_Sum2_3" value="{!m.Payment_Plan_Sum_Third__c}" style="width:100px" onchange="calculate(3)"/>
                                            <apex:inputHidden id="Payment_Plan_Sum_3_in_Word"  value="{!m.Payment_Plan_Sum_Third_in_Word__c}"/>
                                        </td>
                                    </apex:repeat>
                                </tr>
                                <tr id="paytime4" style="display:{!IF((PageMCEElement.Total_Payment_Time__c='6' || PageMCEElement.Total_Payment_Time__c='5' || PageMCEElement.Total_Payment_Time__c='4'),'','none')};">
                                    <td>
                                        第四期付款计划日&nbsp;
                                        <apex:inputField id="Payment_Plan_Date_Forth" value="{!PageMCEElement.Payment_Plan_Date_Forth__c}" />
                                        &nbsp;前,
                                    </td>
                                    <td style="width:20%">
                                        第四期付款金额&nbsp;
                                        <apex:inputField id="Payment_Plan_Sum_4" value="{!PageMCEElement.Payment_Plan_Sum_Forth__c} " style="width:100px" onchange="Convert_Amount('4');" styleClass="readonly"/>
                                        &nbsp;元,
                                    </td>
                                    <td style="display: none;">
                                        大写
                                        <apex:outputText id="Payment_Plan_Sum_4_in_Word" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Payment_Plan_Sum_Forth_in_Word__c}"/>
                                    </td>
                                    <apex:repeat value="{!MC}" var="m">
                                        <td style="width: 100px;">
                                            <apex:inputField id="Payment_Plan_Sum2_4" value="{!m.Payment_Plan_Sum_Forth__c}" style="width:100px" onchange="calculate(4)"/>
                                            <apex:inputHidden id="Payment_Plan_Sum_4_in_Word"  value="{!m.Payment_Plan_Sum_Forth_in_Word__c}"/>
                                        </td>
                                    </apex:repeat>
                                </tr>
                                <tr id="paytime5" style="display:{!IF((PageMCEElement.Total_Payment_Time__c='6' || PageMCEElement.Total_Payment_Time__c='5'),'','none')};">
                                    <td>
                                        第五期付款计划日&nbsp;
                                        <apex:inputField id="Payment_Plan_Date_Fifth" value="{!PageMCEElement.Payment_Plan_Date_Fifth__c}" />
                                        &nbsp;前,
                                    </td>
                                    <td style="width:20%">
                                        第五期付款金额&nbsp;
                                        <apex:inputField id="Payment_Plan_Sum_5" value="{!PageMCEElement.Payment_Plan_Sum_Fifth__c}" style="width:100px" onchange="Convert_Amount('5');" styleClass="readonly"/>
                                        &nbsp;元,
                                    </td>
                                    <td style="display: none;">
                                        大写
                                        <apex:outputText id="Payment_Plan_Sum_5_in_Word" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Payment_Plan_Sum_Fifth_in_Word__c}"/>
                                    </td>
                                    <apex:repeat value="{!MC}" var="m">
                                        <td style="width: 100px;">
                                            <apex:inputField id="Payment_Plan_Sum2_5" value="{!m.Payment_Plan_Sum_Fifth__c}" style="width:100px" onchange="calculate(5)"/>
                                            <apex:inputHidden id="Payment_Plan_Sum_5_in_Word"  value="{!m.Payment_Plan_Sum_Fifth_in_Word__c}"/>
                                        </td>
                                    </apex:repeat>
                                </tr>
                                <tr id="paytime6" style="display:{!IF(PageMCEElement.Total_Payment_Time__c='6','','none')};">
                                    <td>
                                        第六期付款计划日&nbsp;
                                        <apex:inputField id="Payment_Plan_Date_Sixth" value="{!PageMCEElement.Payment_Plan_Date_Sixth__c}" />
                                        &nbsp;前,
                                    </td>
                                    <td style="width:20%">
                                        第六期付款金额&nbsp;
                                        <apex:inputField id="Payment_Plan_Sum_6" style="width:100px" value="{!PageMCEElement.Payment_Plan_Sum_Sixth__c}" onchange="Convert_Amount('6');"  styleClass="readonly"/>
                                        &nbsp;元,
                                    </td>
                                    <td style="display: none;">
                                        大写
                                        <apex:outputText id="Payment_Plan_Sum_6_in_Word" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Payment_Plan_Sum_Sixth_in_Word__c}"/>。
                                    </td>
                                    <apex:repeat value="{!MC}" var="m">
                                        <td style="width: 100px;">
                                            <apex:inputField id="Payment_Plan_Sum2_6" value="{!m.Payment_Plan_Sum_Sixth__c}" style="width:100px" onchange="calculate(6)"/>
                                            <apex:inputHidden id="Payment_Plan_Sum_6_in_Word" value="{!m.Payment_Plan_Sum_Sixth_in_Word__c}"/>
                                        </td>
                                    </apex:repeat>
                                </tr>
                            </tbody>
                            </table>
                            <table style="display: inline-table;">
                            </table>
                    </div>                      
                      
                <!-- </div> -->
            </apex:outputPanel>
        </apex:pageBlockSection>
        <!-- <br/>
 
        <h2>
            <div style="margin-left:5%; color:Blue">
                <apex:outputText >提示信息:标准合同下述内容需要全部填写。</apex:outputText>
            </div>
        </h2>
        <br/> -->
        <h3 style="margin-top: 5px;margin-bottom: 5px;margin-left:-8px;">
        <div style="margin-left:5%; color:#6b6bf1;">
            <apex:outputText >提示信息:标准合同下述内容需要全部填写。</apex:outputText>
        </div>
        </h3>
 
        <apex:pageBlockSection id="TextInformation" title="文本信息" columns="1">
            <apex:outputPanel id="StandardContractContextno" rendered="{!IF(PageMCEElement.Is_Standard_Contract__c == '否', 'true', 'false')}" style="margin-bottom:5px;">
                <table border="" style="width:90%" >
                    <colgroup>
                        <col width="25%"/>
                        <col width="25%"/>
                        <col width="25%"/>
                        <col width="25%"/>
                    </colgroup>
                    <tr>
                        <td style =" text-align:left;">
                        </td>
                        <td style ="text-align: left;">
                        </td>
                        <td style ="text-align: left;">
                        </td>
                        <td style ="text-align: left;">
                        </td>
                    </tr>
                    <tr>
                        <td style ="text-align: left;">
                            <apex:outputText style="margin-left:20%;" value="点检:"  /> &nbsp;&nbsp;&nbsp;&nbsp;
                        </td>
                        <td style ="text-align: left;">
                            <div class="requiredInput"><div class="requiredBlock"></div>
                                每年
                                <apex:selectList style="margin-left:3px;margin-right:3px" size="1" id="Inspection_Time__cno" value="{!PageMCEElement.Inspection_Time__c}" onchange="AllChecktime();"> 
                                    <apex:selectOptions value="{!Tour_Check}"/>
                                </apex:selectList>次
                                (必填项)
                            </div>
                        </td>
                        <td style ="text-align: left;">
                        </td>
                        <td style ="text-align: left;">
                        </td>
                    </tr>
                    <tr>
                        <td style ="text-align: left;">
                            <apex:outputText style="margin-left:20%;" value="点检总次数:"  /> &nbsp;&nbsp;&nbsp;&nbsp;
                        </td>
                        <td style ="text-align: left;">
                            共
                            <apex:outputText style="margin-left:3px;margin-right:3px;width:25px" id="Contract_Limit_Times__cno" value="{!PageMCEElement.Service_contract_target_number__c}">
                            </apex:outputText>次
                        </td>
                        <td style ="text-align: left;">
                        </td>
                        <td style ="text-align: left;">
                        </td>
                    </tr>
                </table>
            </apex:outputPanel>
            <apex:outputPanel id="StandardContractContext" rendered="{!IF(PageMCEElement.Is_Standard_Contract__c == '是', 'true', 'false')}">
                <apex:outputPanel id="StandardContractContext2" rendered="true">
                    <table border="0" style="width:42%" >
                        <colgroup>
                            <col width="25%"/>
                            <col width="25%"/>
                            <col width="25%"/>
                            <col width="25%"/>
                        </colgroup>
                        <tr>
                            <td style ="text-align: left;">
                                <apex:outputText style="margin-left:20%;" value="小修理时限:"  /> &nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td style ="text-align: left;">
                                <apex:selectList style="margin-right:3px" size="1" id="Small_Repair_Time__c" value="{!PageMCEElement.Small_Repair_Time__c}">
                                    <apex:selectOptions value="{!Small_Repair_Time}"/>
                                </apex:selectList>
                            <!-- XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 start-->
                            工作日
                            <!-- XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 end-->
                            </td>
                
                            <td style ="text-align: left;">
                                <apex:outputText style="margin-left:20%;" value="大修理时限:"  /> &nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td style ="text-align: left;">
                                <apex:selectList style="margin-right:3px" size="1" id="Big_Repair_Time__c" value="{!PageMCEElement.Big_Repair_Time__c}">
                                    <apex:selectOptions value="{!Big_Repair_Time}"/>
                                </apex:selectList>
                            工作日
                            </td>
                
                        </tr>
                        <tr>
                            <td style ="text-align: left;">
                                <apex:outputText style="margin-left:20%;" value="现场技术支持时限:"  /> &nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td style ="text-align: left;">
                                <apex:selectList style="margin-right:3px" size="1" id="Live_Technical_Support_Time__c" value="{!PageMCEElement.Live_Technical_Support_Time__c}" >
                                    <apex:selectOptions value="{!Live_Technical_Support_Time}"/>
                                </apex:selectList>
                            小时
                            </td>
                            <td style ="text-align: left;">
                                <apex:outputText style="margin-left:20%;" value="巡回:"  /> &nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td style ="text-align: left;">
                                每年
                                <apex:selectList style="margin-left:3px;margin-right:3px" size="1" id="Tour_Check__c"  value="{!PageMCEElement.Tour_Check__c}">
                                    <apex:selectOptions value="{!Tour_Check}"/>
                                </apex:selectList>次
                            </td>
                        </tr>
                        <tr>
                            <td style =" text-align:left;">
                                <apex:outputText style="margin-left:20%;" value="工程师姓名:"  /> &nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td style ="text-align: left;">
                                 <apex:inputTextarea id="Engineer_Name__c" value="{!PageMCEElement.Engineer_Name__c}"/>
                            </td>
                            <td style ="text-align: left;">
                                <apex:outputText style="margin-left:20%;" value="手机号码:"  /> &nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td style ="text-align: left;">
                                <apex:inputTextarea id="Phone_Number__c" value="{!PageMCEElement.Phone_Number__c}"/>
                            </td>
                        </tr>
                        <tr>
                            <td style ="text-align: left;">
                                <apex:outputText style="margin-left:20%;" value="点检:"  /> &nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td style ="text-align: left;">
                                <div class="requiredInput"><div class="requiredBlock"></div>
                                    每年
                                    <apex:selectList style="margin-left:3px;margin-right:3px" size="1" id="Inspection_Time__c" value="{!PageMCEElement.Inspection_Time__c}" onchange="AllChecktime();"> 
                                        <apex:selectOptions value="{!Tour_Check}"/>
                                    </apex:selectList>次
                                    (必填项)
                                </div>
                            </td>
                            <td style ="text-align: left;">
                                <apex:outputText style="margin-left:20%;" value="除尘:"  /> &nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td style ="text-align: left;">
                                每年
                                <apex:selectList style="margin-left:3px;margin-right:3px" size="1" id="Dedust__c" value="{!PageMCEElement.Dedust__c}">
                                    <apex:selectOptions value="{!Dedust}"/>
                                </apex:selectList>次
                            </td>
                        </tr>
                        <tr>
                            <td style ="text-align: left;">
                                <apex:outputText value="合同份数:甲方:" style="margin-left:20%" />
                            </td>
                            <td style ="text-align: left;">
                                <apex:selectList style="margin-left:3px;margin-right:3px" size="1" id="First_Party_Contract_Number__c" value="{!PageMCEElement.First_Party_Contract_Number__c}">
                                    <apex:selectOptions value="{!First_Party_Contract_Number}"/>
                                </apex:selectList>份
                
                               </td>
                            <td style ="text-align: left;">
                                <apex:outputText value="乙方:" style="margin-left:20%" />
                            </td>
                        
                            <td>
                                <apex:selectList style="margin-left:3px;margin-right:3px" size="1" id="Second_Party_Contract_Number__c" value="{!PageMCEElement.Second_Party_Contract_Number__c}">
                                    <apex:selectOptions value="{!First_Party_Contract_Number}"/>
                                </apex:selectList>
                                份
                           </td>
                        </tr>
                    </table>
                    
                    <div style="margin-left:5%;">
                        <apex:outputText >
                           协商方式:<apex:selectList style="margin-left:1px;margin-right:10px" size="1" id="Negotiate_Mean__c" value="{!PageMCEElement.Negotiate_Mean__c}">
                                            <apex:selectOptions value="{!Negotiate_Mean}"/>
                                    </apex:selectList>
                            提示信息:(1)任何一方有权向设在北京的中国国际经济贸易仲裁委员会申请仲裁,仲裁的裁决是终局性的,对双方均有约束力。(2)向甲方所在地有管辖权的人民法院提起诉讼。(3)向乙方所在地有管辖权的人民法院提起诉讼。
                        </apex:outputText>
                    </div>
                </apex:outputPanel>
            </apex:outputPanel>
    
 
        </apex:pageBlockSection>
        <apex:pageBlockSection id="newsCoverage" title="封皮和设备清单" columns="1">
            <apex:outputPanel >  
                <table border="0" style="background-color:#ffd6c1;" width="100%">
                    <!-- <tr>
                        <th width="50px">打印报价</th>
                        <td width="90px"><apex:inputCheckbox id="check0" onchange="hideSimplify(0);"/>完整版+折扣前</td>
                        <td width="90px"><apex:inputCheckbox id="check1" onchange="hideSimplify(1);"/>完整版+折扣后</td>
                        <td width="80px"><apex:inputCheckbox id="check2" onchange="hideSimplify(2);"/>简化版+折扣前</td>
                        <td width="80px"><apex:inputCheckbox id="check3" onchange="hideSimplify(3);"/>简化版+折扣后</td>
                    </tr> -->
                    <tr>
                        <th width="70px">打印合同配置</th>
                        <td width="60px">
                            医院合同
                        </td>
                        <!-- <td width="60px">
                        三方协议</td> -->
                        <td width="85px">
                        代理商合同</td>    
                    </tr>
                </table>
            </apex:outputPanel>  
            <!-- <div class="checkbox-table">
                <div class="checkbox-row">
                    <div class="checkbox-cell">
                        <apex:inputCheckbox />
                        <label>完整版+折扣前</label>
                    </div>
                    
                    <div class="checkbox-cell">
                        <apex:inputCheckbox />
                        <label>完整版+折扣后</label>
                    </div>
                </div>
                
                <div class="checkbox-row">
                    <div class="checkbox-cell">
                        <apex:inputCheckbox />
                        <label>简化版+折扣前</label>
                    </div>
                    
                    <div class="checkbox-cell">
                        <apex:inputCheckbox />
                        <label>简化版+折扣后</label>
                    </div>
                </div>
            </div> -->
        
        </apex:pageBlockSection>
 
    
        <apex:pageBlockButtons id="allButtons" style="text-align:center;">
            <apex:outputPanel id="bottom" rendered="true">
                <apex:commandButton styleClass="align-save-button"  id="SaveButton" value="保存"  action="{!save}" onclick="blockme();" reRender="hiddenInput,Messages"  oncomplete="CloseJs();"/>
            <apex:commandButton id="CancelButton" value="取消" onclick="CloseJs(); return false;"/>
            <apex:commandButton id="PrintButton" value="打印" action="{!print}" onclick="blockme();" rerender="hiddenInput,Messages,pdfPrint"  oncomplete="PrintJs();" />
            </apex:outputPanel>
        </apex:pageBlockButtons>
    
    </apex:pageBlock>
    <br/>
    <hr/>
 
    </body>     
</apex:form>
 
 
</apex:page>