高章伟
2022-03-10 1312ba82d4c880bdb5357d28e0d4af5b285f610f
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
<apex:page standardController="LostReport__c" extensions="LostReportEditAssetController" showHeader="false" sidebar="false" id="allPage" action="{!init}">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:includeScript value="/soap/ajax/46.0/connection.js"/>
<apex:includeScript value="/soap/ajax/46.0/apex.js"/>
   <style>
        .dateFormat  {
            display: none;
        }
 
        .requiredInput {
            position: relative;
            height: 100%;
        }
 
        .requiredBlock  {
            background-color: #c00;
            position: absolute;
            left: -4px;
            width: 3px;
            top: 1px;
            bottom: 1px;
        
        }
        .message {
            width: 1184px;
        }
        table {
            margin: 10px 0px;
            /*float: left;*/
            table-layout: fixed;
            border-collapse: collapse;
        }
        a {
            text-decoration: none;
        }
        .navigationBarBlock {
            width: 100%;
        }
        .apexp .bPageBlock.apexDefaultPageBlock .pbBody {
            margin: 0px;
            background-color: white;
        }
        .bPageBlock {
            border-top: 0px;
        }
        .checkButtonStyle input {
            width: 100%;
            text-align: left;
            margin: 2px;
        }
        .searchButtonStyle {
            width: 10%;
        }
        .searchButtonStyle input {
            width: 30%;
            background-color: #9BC2E6;
        }
        .setButtonStyle {
            width: 8%;
        }
        .setButtonStyle input {
            width: 100%;
            background-color: #9BC2E6;
        }
        .startInventory input {
            width: 10%;
            padding: 5px;
            margin-bottom: 5px;
            border-radius: 5px;
            background: #9BC2E6;
        }
        .labelStyle {
            width: 9%;
            padding: 5px;
        }
        .blankStyle {
            width: 3%;
        }
        .inputTextStyle {
            width: 9%;
        }
        .inputTextStyle input {
            width: 90%;
        }
        .redStyle {
            background-color: #F00;
        }
        .greyStyle {
            background-color: #AAA;
        }
        .blueStyle {
            background-color: #9BC2E6;
        }
        .yellowStyle {
            background-color: #FFCC00;
        }
        body td.col_Scroll {width:0px; padding:0px; border-width:0px;}
        .line {
            margin:20px 0;
            width:100%;
            height:1px;
            border:1px;
            background-color:black;
        }
        .datePicker {
            width: 300px;
            height: 200px;
        }
        .bRelatedList .relatedProcessHistory .extraRow td.actionColumn .actionLink, .bRelatedList .relatedProcessHistory .extraRow td, .bRelatedList .relatedProcessHistory .extraRow th {
            color: gray;
        }
        .bPageBlock .list {
            width: auto;
        }
        /*@page {*/
           /*size: 7in 9.25in;*/
           /*margin: 27mm 16mm 27mm 16mm;*/
        /*}*/
 
        /*@page {*/
          /*size: A4 portrait;*/
          /*margin: 20mm 12mm 21mm 12mm;
          @top-left {
              content: element(top-left)
          }
          @top-right {
              font-size: 26px;
              content: element(top-right)
          }
          @bottom-center {
              font-size: 11px;
              content: counter(page) " / " counter(pages) element(bottom-center)
          }*/
      /*}*/
 
        .leftb2 {border-left: black 2px solid;}
        .rightb2 {border-right: black 2px solid;}
        .topb2 {border-top: black 2px solid;}
        .bottomb2 {border-bottom: black 2px solid;}
 
        .leftb {border-left: black 1px solid;}
        .rightb {border-right: black 1px solid;}
        .topb {border-top: black 1px solid;}
        .bottomb {border-bottom: black 1px solid;}
        .B {font-weight:bold;}
 
        td.center {text-align: center;}
        td.right {text-align: right;}
        td.left {text-align: left;}
        .test-textarea {
            /*width: 100%;*/
            margin-left: auto;
            margin-right: auto;
            padding: 3px;
            outline: 0;
            border: 1px solid #ccc;
            font-size: 12px;
            word-wrap: break-word;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-user-modify: read-write-plaintext-only;
            /*border-radius: 4px;*/
            font-size: 100%;
            border-top: black 2px solid;
            border-left: black 2px solid;
            border-right: black 2px solid;
            border-bottom: black 2px solid;
        }
    </style>
    <style type="text/css" media="print">
        .hiddenPrint{display:none !important;}
        .showPrint{display:block !important;}
    </style>
    <script type="text/javascript">
        var loginUserId = '{!JSENCODE($User.Id)}';
        // var loginUserName = '{!JSENCODE($User.Username)}';
        var loginUserName = '{!JSENCODE($User.LastName)}' + ' ' + '{!JSENCODE($User.FirstName)}';
 
        function buttonsEnabled(enabled) {
            // retrieve all of the buttons or links on the page
            // with the css class of btn
            var $buttons = jQuery('.btn');
            // var $save = document.getElementById('allPage:allForm:searchBlock:saveData');
            if (enabled === false) {
                // add the btnDisabled class to give it the look of being disabled
                // add the disabled attribute to actually disable interactability
                // $save.toggleClass('hidden');
                // $save.toggleClass('btnDisabled', true).attr('disabled', 'disabled');
                // $("#allPage:allForm:searchBlock:saveData").toggleClass('btnDisabled', true).attr('disabled', 'disabled');
                $buttons.toggleClass('btnDisabled', true).attr('disabled', 'disabled');
            } else {
                // remove the css class and the disabled attribute
                $buttons.toggleClass('btnDisabled', false).attr('disabled', null);
                // $save.toggleClass('btnDisabled', false).attr('disabled', 'null');
            }
        }
        function unvalid() {
            buttonsEnabled(false);
        }
        function saveChangedRemark(tableName, cnt, thisValue) {
            document.getElementById('allPage:allForm:searchBlock:InventoryResult:' + tableName + ':' + cnt + ':changeFlg').value = 1;
            if (trim(thisValue) != '') {
                document.getElementById('allPage:allForm:searchBlock:InventoryResult:' + tableName + ':' + cnt + ':remarkPerson').value = loginUserId;
                document.getElementById('allPage:allForm:searchBlock:InventoryResult:' + tableName + ':' + cnt + ':remarkPersonName').innerText = loginUserName;
            } else {
                document.getElementById('allPage:allForm:searchBlock:InventoryResult:' + tableName + ':' + cnt + ':remarkPerson').value = '';
                document.getElementById('allPage:allForm:searchBlock:InventoryResult:' + tableName + ':' + cnt + ':remarkPersonName').innerText = '';
            }
        }
 
        function saveLRjs(savetype) {
            if (confirm('一旦提交此记录以待批准,根据您的设置您可能不再能够编辑此记录或将他从批准过程中调回。是否继续?')) {
                var query = "SELECT Rental_Apply_Equipment_Set_Detail__r.Lost_item_check_day__c FROM LostReport_Detail__c WHERE Rental_Apply_Equipment_Set_Detail__r.Lost_item_check_day__c != null AND LostReport__c = '{!lrid}'"; 
                sforce.connection.sessionId = "{!$Api.Session_ID}";
                var records = sforce.connection.query(query).getArray('records');
                if (records.length > 0) {
                    var qianpinDate = new Date(records[0].Rental_Apply_Equipment_Set_Detail__r.Lost_item_check_day__c);
                    for (var i = 1; i < records.length; i++) {
                        var d = new Date(records[i].Rental_Apply_Equipment_Set_Detail__r.Lost_item_check_day__c);
                        if(d < qianpinDate){
                            qianpinDate = d;
                        }
                    }
                    qianpinDate.setDate(qianpinDate.getDate() + 90);
                    var d = '' + qianpinDate.getFullYear()+'/' + (qianpinDate.getMonth()+1) + '/' + qianpinDate.getDate();
                    alert('请您的上级领导于' + d + '前完成遗失报告审批,否则备品自动断念,遗失报告自动取消。');
                }
                blockme();
                saveLR(savetype);
            }
        }
        function returnjs() {
            var lhId = '{!lrid}'
            var url = "/" + lhId;
            window.location.href = url;
        }
 
        function cancelClick() {
            if (confirm('是否确定取消?')) {
                cancelStart();
            }
        }
    </script>
 
    <apex:form id="allForm">
        <apex:actionFunction name="submit" rerender="allForm" oncomplete="unblockUI();"/>
        <apex:actionFunction name="saveLR" action="{!saveLR}" rerender="allForm, process" oncomplete="unblockUI();">
            <apex:param value="" name="saveType"/>
        </apex:actionFunction>
        <apex:actionFunction name="cancelStart" action="{!cancelRecord}" rerender="allForm" oncomplete="unblockUI();"/>
        <!-- <apex:actionFunction action="{!relevantConfirm}" name="relevantConfirm" rerender="allForm" oncomplete="unblockUI();"/> -->
        <!-- <apex:pageBlock id="searchBlock"> -->
            <!-- 左侧按钮区 -->
            <!-- <apex:outputPanel id="LeftArea" layout="block" style="width: 15%; float: left;">
                <apex:pageBlock >
                    <table style='width:140px;'>
                        <tr><td class="checkButtonStyle"><apex:commandButton value="查看全部保有设备" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=all'; return false" /></td></tr>
                        <tr><td class="checkButtonStyle"><apex:commandButton value="查看在库的保有设备" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=consumable'; return false" /></td></tr>
                        <tr><td class="checkButtonStyle"><apex:commandButton value="查看出借中保有设备" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=lending'; return false" /></td></tr>
                        <tr><td class="checkButtonStyle"><apex:commandButton value="查看修理中保有设备" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=repairing'; return false" /></td></tr>
                        <tr><td class="checkButtonStyle"><apex:commandButton value="查看待报废保有设备" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=scrapping'; return false" /></td></tr>
                        <tr><td class="checkButtonStyle"><apex:commandButton value="查看已报废保有设备" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=scrapped'; return false" /></td></tr>
                        <tr><td class="checkButtonStyle"><apex:commandButton value="盘点结果记录" action="{!URLFOR($Page.InventoryResultRecord)}" /></td></tr>
                        <tr><td class="checkButtonStyle"><apex:commandButton style="background: #9BC2E6;" value="盘点报告"/></td></tr>
                    </table>
                </apex:pageBlock>
            </apex:outputPanel> -->
            <!-- 右侧盘点报告 -->
            <apex:outputPanel id="RightArea" layout="block" style="width: 75%; margin: 0 auto;">
                <apex:outputPanel id="message">
                    <apex:pageMessages />
                </apex:outputPanel>
                <div style="margin-top: 1%" class="startInventory">
                    <apex:commandButton styleClass="hiddenPrint" value="返回" rerender="allForm" onclick="returnjs();return false;"/>
                    <!-- <apex:commandButton value="填写遗失报告书" rerender="allForm" onclick="inventory_lost_report();return false;" /> -->
                    <apex:commandButton styleClass="hiddenPrint" value="保存" id="saveData" rendered="{! pBean.islock == false && pBean.hasApprovedFlag == false }" style="float: right;" rerender="allForm" oncomplete="unblockUI();" onclick="blockme()" action="{!saveLR}" />
                    <apex:commandButton styleClass="hiddenPrint" value="保存并提交审批" id="saveData1" rendered="{! pBean.islock == false && pBean.hasApprovedFlag == false}" style="float: right;" rerender="allForm, process" oncomplete="unblockUI();" onclick="saveLRjs('1'); return false;" />
                    <apex:commandButton styleClass="hiddenPrint" value="取消" id="cancel" disabled="{!pBean.lr.Auto_Lost_item_giveupDetailCount__c != 0 || pBean.lr.Status__c == '取消'}" style="float: right;" rerender="allForm, process" oncomplete="unblockUI();" onclick="cancelClick(); return false;" />
                    <!-- <apex:commandButton value="保存" id="saveData" style="margin-left: 25%;" rerender="allForm" oncomplete="unblockUI();" action="{!saveData}" onclick="unvalid()" /> -->
                    <!-- <apex:commandButton value="相关人员确认" rendered="{!IF(ihObj.InventoryCheck_PIC__c!=$User.Id, false, true)}" rerender="allForm" onclick="relevant_confirm();return false;" /> -->
                    <!-- <apex:commandButton value="审批" rendered="{!IF(ihObj.Jingli_Equipment__c!=$User.Id || ihObj.Buzhang_Equipment__c!=$User.Id || ihObj.Zongjian_Equipment__c!=$User.Id, false, true)}" rerender="allForm" oncomplete="unblockUI();" onclick="submit_approval();return false;" /> -->
                </div>
                <p style="margin:0 auto; text-align: center; width:100%; font-weight:bold; font-size:22px;">固定资产遗失・盘亏报告</p>
                <table class="inventoryReportTable" style="width: 100%;">
                    <col style="width: 20%;" />
                    <col style="width: 20%;" />
                    <col style="width: 20%;" />
                    <col style="width: 20%;" />
                    <col style="width: 20%;" />
                    <tr>
                        <td/>
                        <td/>
                        <td/>
                        <td colspan="2">
                            医疗备品管理中心编号: {!pBean.lr.Name}
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_User1__c.label}"/>
                            <div class="hiddenPrint" style="display: inline-block;">
                               <apex:inputField required="{!DESC_RW1['CC_User1__c'] == 'wm'}" rendered="{!DESC_RW1['CC_User1__c'] == 'wm' || DESC_RW1['CC_User1__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" id="CC_User1__c" value="{!pBean.lr.CC_User1__c}">
                                    <script>
                                        if( document.getElementById('allPage:allForm:CC_User1__c_mlktp')){
                                            document.getElementById('allPage:allForm:CC_User1__c_mlktp').style.display="none";
                                        }
                                    </script>
                                </apex:inputField>
                            </div>
                            <apex:outputText value="{!pBean.lr.CC_User1__c}" rendered="{!DESC_RW1['CC_User1__c'] == 'r'}"/>
 
                        </td>
                        <td class="topb2 leftb2 bottomb rightb">报告日期</td>
                        <td class="topb2 bottomb rightb2">{!pBean.lrCreateDate}</td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_User2__c.label}"/>
                            <div class="hiddenPrint" style="display: inline-block;">
                                <apex:inputField required="{!DESC_RW1['CC_User2__c'] == 'wm'}" rendered="{!DESC_RW1['CC_User2__c'] == 'wm' || DESC_RW1['CC_User2__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" id="CC_User2__c" value="{!pBean.lr.CC_User2__c}">
                                    <script>
                                        if( document.getElementById('allPage:allForm:CC_User2__c_mlktp')){
                                            document.getElementById('allPage:allForm:CC_User2__c_mlktp').style.display="none";
                                        }
                                    </script>
                                </apex:inputField>
                            </div>
                            <apex:outputText value="{!pBean.lr.CC_User2__c}" rendered="{!DESC_RW1['CC_User2__c'] == 'r'}"/>
                        </td>
                        <td class="topb leftb2 bottomb rightb">报告者</td>
                        <td class="topb bottomb rightb2">{!pBean.createdByName}</td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_User3__c.label}"/>
                            <div class="hiddenPrint" style="display: inline-block;">
                                <apex:inputField required="{!DESC_RW1['CC_User3__c'] == 'wm'}" rendered="{!DESC_RW1['CC_User3__c'] == 'wm' || DESC_RW1['CC_User3__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" Id="CC_User3__c" value="{!pBean.lr.CC_User3__c}">
                                    <script>
                                        if( document.getElementById('allPage:allForm:CC_User3__c_mlktp')){
                                            document.getElementById('allPage:allForm:CC_User3__c_mlktp').style.display="none";
                                        }
                                    </script>
                                </apex:inputField>
                            </div>
                            <apex:outputText value="{!pBean.lr.CC_User3__c}" rendered="{!DESC_RW1['CC_User3__c'] == 'r'}"/>
                        </td>
                        <td class="topb leftb2 bottomb2 rightb">所属部门</td>
                        <td class="topb bottomb2 rightb2">{!pBean.createdByDep}</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_User4__c.label}"/>
                            <div class="hiddenPrint" style="display: inline-block;">
                                <apex:inputField required="{!DESC_RW1['CC_User4__c'] == 'wm'}" rendered="{!DESC_RW1['CC_User4__c'] == 'wm' || DESC_RW1['CC_User4__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" Id="CC_User4__c" value="{!pBean.lr.CC_User4__c}">
                                    <script>
                                        if( document.getElementById('allPage:allForm:CC_User4__c_mlktp')){
                                            document.getElementById('allPage:allForm:CC_User4__c_mlktp').style.display="none";
                                        }
                                    </script>
                                </apex:inputField>
                            </div>
                            <apex:outputText value="{!pBean.lr.CC_User4__c}" rendered="{!DESC_RW1['CC_User4__c'] == 'r'}"/>
                        </td>
                        <td colspan="3">
                            <apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_Email1__c.label}"/>
                            <div class="hiddenPrint" style="display: inline-block;">
                                <apex:inputField required="{!DESC_RW1['CC_Email1__c'] == 'wm'}" rendered="{!DESC_RW1['CC_Email1__c'] == 'wm' || DESC_RW1['CC_Email1__c'] == 'w'}" styleClass="hiddenPrint"  style="display: inline;" Id="CC_Email1__c" value="{!pBean.lr.CC_Email1__c}">
                                    <script>
                                        if( document.getElementById('allPage:allForm:CC_Email1__c_mlktp')){
                                            document.getElementById('allPage:allForm:CC_Email1__c_mlktp').style.display="none";
                                        }
                                    </script>
                                </apex:inputField>
                            </div>
                            <apex:outputText value="{!pBean.lr.CC_Email1__c}" rendered="{!DESC_RW1['CC_Email1__c'] == 'r'}"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_User5__c.label}"/>
                            <div class="hiddenPrint" style="display: inline-block;">
                                <apex:inputField required="{!DESC_RW1['CC_User5__c'] == 'wm'}" rendered="{!DESC_RW1['CC_User5__c'] == 'wm' || DESC_RW1['CC_User5__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" Id="CC_User5__c" value="{!pBean.lr.CC_User5__c}">
                                    <script>
                                        if( document.getElementById('allPage:allForm:CC_User5__c_mlktp')){
                                            document.getElementById('allPage:allForm:CC_User5__c_mlktp').style.display="none";
                                        }
                                    </script>
                                </apex:inputField>
                            </div>
                            <apex:outputText value="{!pBean.lr.CC_User5__c}" rendered="{!DESC_RW1['CC_User5__c'] == 'r'}"/>
                        </td>
                        <td colspan="3">
                            <apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_Email2__c.label}"/>
                            <div class="hiddenPrint" style="display: inline-block;">
                                <apex:inputField required="{!DESC_RW1['CC_Email2__c'] == 'wm'}" rendered="{!DESC_RW1['CC_Email2__c'] == 'wm' || DESC_RW1['CC_Email2__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" Id="CC_Email2__c" value="{!pBean.lr.CC_Email2__c}">
                                    <script>
                                        if( document.getElementById('allPage:allForm:CC_Email2__c_mlktp')){
                                            document.getElementById('allPage:allForm:CC_Email2__c_mlktp').style.display="none";
                                        }
                                    </script>
                                </apex:inputField>
                            </div>
                            <apex:outputText value="{!pBean.lr.CC_Email2__c}" rendered="{!DESC_RW1['CC_Email2__c'] == 'r'}"/>
                        </td>
                    </tr>
<!--                     <tr>
                        <td colspan="5">
                            <apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_User5__c.label}"/>
                            <apex:inputField styleClass="hiddenPrint" style="display: inline;" Id="CC_User5__c" value="{!pBean.lr.CC_User5__c}">
                                <script>
                                    if( document.getElementById('allPage:allForm:CC_User5__c_mlktp')){
                                        document.getElementById('allPage:allForm:CC_User5__c_mlktp').style.display="none";
                                    }
                                </script>
                            </apex:inputField>
                        </td>
                    </tr> -->
                     <tr>
                        <td colspan="5">
                            记:本部门下述固定资产(遗失・盘亏),特此报告。
                        </td>
                    </tr>
                </table>
                <table class="inventoryReportTable" border="2" style="width: 100%;">
                    <col style="width: 20%;" />
                    <col style="width: 20%;" />
                    <col style="width: 20%;" />
                    <col style="width: 20%;" />
                    <col style="width: 20%;" />
                    <tr>
                        <td >产品型号</td>
                        <td >机身号</td>
                        <td >固定资产编号(Key)</td>
                        <td >资本化日期</td>
                        <td >残值(元)</td>
                    </tr>
                    <apex:repeat value="{!pBean.rowList}" var="row">
                        <tr>
                            <td >
                                <apex:outputText value="{!row.Fixture_Model_No_F}"/>
                            </td>
                            <td >
                                 <apex:outputText value="{!row.SerialNumber}"/>
                            </td>
                            <td >
                                <apex:outputText value="{!row.Internal_Asset_number}"/>
                            </td>
                            <td >
                                <apex:inputField required="{!DESC_RW['Asset_day__c'] == 'wm'}" rendered="{!DESC_RW['Asset_day__c'] == 'w' || DESC_RW['Asset_day__c'] == 'wm'}" value="{!row.lrd.Asset_day__c}"/>
                                <apex:outputText rendered="{!DESC_RW['Asset_day__c'] == 'r'}" value="{!row.asset_dayStr}"/>
                            </td>
                            <td >
                                <apex:inputField required="{!DESC_RW['Asset_Value__c'] == 'wm'}" rendered="{!DESC_RW['Asset_Value__c'] == 'w' || DESC_RW['Asset_Value__c'] == 'wm'}" value="{!row.lrd.Asset_Value__c}"/>
                                <apex:outputText rendered="{!DESC_RW['Asset_Value__c'] == 'r'}" value="{!row.lrd.Asset_Value__c}"/>
                            </td>
                        </tr>
                    </apex:repeat>
                </table>
                <p style="margin:0px;" >备品最后一次使用相关信息</p>
                <table class="inventoryReportTable" border="2" style="width: 100%;margin-top: 0px;">
                    <col style="width: 20%;" />
                    <col style="width: 20%;" />
                    <col style="width: 20%;" />
                    <col style="width: 20%;" />
                    <col style="width: 20%;" />
                    <tr>
                        <td >申请人</td>
                        <td >借用医院名(科室)</td>
                        <td >出库日</td>
                        <td >使用目的</td>
                        <td >出借理由</td>
                    </tr>
                    <tr>
                        <td >
                            <apex:inputField id="ownerSys" value="{!pBean.lr.OwnerSys__c}"/>
                            <!-- <apex:outputField rendered="{!pBean.lr.Status__c != '草案中'}" value="{!pBean.lr.OwnerSys__c}"/> -->
                            <script>
                                if( document.getElementById('allPage:allForm:ownerSys_mlktp')){
                                    document.getElementById('allPage:allForm:ownerSys_mlktp').style.display="none";
                                }
                            </script>
                        </td>
                        <td >
                            <apex:inputField value="{!pBean.lr.AccountSys__c}"/>
                            <!-- <apex:outputField rendered="{!pBean.lr.Status__c != '草案中'}" value="{!pBean.lr.AccountSys__c}"/> -->
                        </td>
                        <td >
                            <apex:inputField value="{!pBean.lr.Bollow_DateSys__c}"/>
                            <!-- <apex:outputField value="{!pBean.lr.Bollow_DateSys__c}"/> -->
                        </td>
                        <td >
                            <apex:inputField value="{!pBean.lr.demo_purpose2Sys__c}"/>
                            <!-- <apex:selectList size="1" value="{!pBean.lr.demo_purpose2Sys__c}"> -->
                                <!-- <apex:selectOptions value="{!demo_purpose2SysList}"/> -->
                            <!-- </apex:selectList> -->
                            <!-- <apex:outputField rendered="{!pBean.lr.Status__c != '草案中'}" value="{!pBean.lr.demo_purpose2Sys__c}"/> -->
                        </td>
                        <td >
                            <apex:inputField value="{!pBean.lr.Demo_purpose_textSys__c}"/>
                            <!-- <apex:outputField rendered="{!pBean.lr.Status__c != '草案中'}" value="{!pBean.lr.Demo_purpose_textSys__c}"/> -->
                        </td>
                    </tr>
                </table>
                <p style="margin:0px;" >描述产品遗失・盘亏等过程</p>
 
                <p style="margin:0px;" >①{!$ObjectType.LostReport__c.fields.Situation_description__c.label}</p>
                <div class="test-textarea showPrint" id="Situation_description" style="min-height: 70px; display: none;" contenteditable="true" oninput="document.getElementById('allPage:allForm:Situation_description').value = this.innerHTML;">{!pBean.lr.Situation_description__c}</div>
                <apex:inputField styleClass="hiddenPrint" style="width: 100%; padding: 0px;" id="Situation_description" required="{!DESC_RW1['Situation_description__c'] == 'wm'}" value="{!pBean.lr.Situation_description__c}" onchange="document.getElementById('Situation_description').innerHTML = this.value;"/>
 
                <p style="margin:0px;" >②{!$ObjectType.LostReport__c.fields.Confirmation_process__c.label}</p>
                <div class="test-textarea showPrint" id="Confirmation_process" style="min-height: 140px; display: none;" contenteditable="true" oninput="document.getElementById('allPage:allForm:Confirmation_process').value = this.innerHTML;">{!pBean.lr.Confirmation_process__c}</div>
                <apex:inputField styleClass="hiddenPrint" style="width: 100%; padding: 0px;" id="Confirmation_process" required="{!DESC_RW1['Confirmation_process__c'] == 'wm'}" value="{!pBean.lr.Confirmation_process__c}" onchange="document.getElementById('Confirmation_process').innerHTML = this.value;"/>
 
                <p style="margin:0px;" >③所属上级领导处理意见</p>
 
                <table class="inventoryReportTable" style="width: 100%;margin-top: 0px; margin-bottom: 0px;">
                    <col style="width: 100%;" />
                    <tr>
                        <td class="topb2 leftb2 rightb2">CL6 经理级:</td>
                    </tr>
                    <tr>
                        <td class="leftb2 rightb2">
                            <apex:outputPanel rendered="{!pBean.jingliInfo.show}" >
                                {!pBean.jingliInfo.userName + ',' + pBean.jingliInfo.appStatus + ','}
                                {!pBean.jingliInfo.appMemo}
                                {!',' + pBean.jingliInfo.appTime}
                            </apex:outputPanel>
                            <apex:outputPanel rendered="{!pBean.jingliInfo.show == false}" >
                                <br/>
                            </apex:outputPanel>
                        </td>
                    </tr>
                    <tr>
                        <td class="topb leftb2 rightb2">CL5 总监级: </td>
                    </tr>
                    <tr>
                        <td class="leftb2 rightb2">
                            <apex:outputPanel rendered="{!pBean.buzhangInfo.show}" >
                                {!pBean.buzhangInfo.userName + ',' + pBean.buzhangInfo.appStatus + ','}
                                {!pBean.buzhangInfo.appMemo}
                                {!',' + pBean.buzhangInfo.appTime}
                            </apex:outputPanel>
                            <apex:outputPanel rendered="{!pBean.buzhangInfo.show == false}" >
                                <br/>
                            </apex:outputPanel>
                        </td>
                    </tr>
                    <tr>
                        <td class="topb leftb2 rightb2">CL3 副总裁(CL4 高级总监): </td>
                    </tr>
                    <tr>
                        <td class="leftb2 rightb2">
                            <apex:outputPanel rendered="{!pBean.zongjianliInfo.show}" >
                                {!pBean.zongjianliInfo.userName + ',' + pBean.zongjianliInfo.appStatus + ','}
                                {!pBean.zongjianliInfo.appMemo}
                                {!',' + pBean.zongjianliInfo.appTime}
                            </apex:outputPanel>
                            <apex:outputPanel rendered="{!pBean.zongjianliInfo.show == false}" >
                                <br/>
                            </apex:outputPanel>
                        </td>
                    </tr>
                    <!-- <tr>
                        <td class="topb leftb2 rightb2">企划课A: </td>
                    </tr>
                    <tr>
                        <td class="leftb2 rightb2">
                            <apex:outputPanel rendered="{!pBean.qihuakeA.show}" >
                                {!pBean.qihuakeA.userName + ',' + pBean.qihuakeA.appStatus + ','}
                                {!pBean.qihuakeA.appMemo}
                                {!',' + pBean.qihuakeA.appTime}
                            </apex:outputPanel>
                            <apex:outputPanel rendered="{!pBean.qihuakeA.show == false}" >
                                <br/>
                            </apex:outputPanel>
                        </td>
                    </tr>
                    <tr>
                        <td class="topb leftb2 rightb2">企划课B: </td>
                    </tr>
                    <tr>
                        <td class="leftb2 rightb2">
                            <apex:outputPanel rendered="{!pBean.qihuakeB.show}" >
                                {!pBean.qihuakeB.userName + ',' + pBean.qihuakeB.appStatus + ','}
                                {!pBean.qihuakeB.appMemo}
                                {!',' + pBean.qihuakeB.appTime}
                            </apex:outputPanel>
                            <apex:outputPanel rendered="{!pBean.qihuakeA.show == false}" >
                                <br/>
                            </apex:outputPanel>
                        </td>
                    </tr> -->
                    <tr>
                        <td class="topb leftb2 rightb2">备品管理中心处理意见:</td>
                    </tr>
                    <tr>
                        <td class="leftb2 rightb2">
                            <apex:outputPanel rendered="{!pBean.fenpeirenInfo.show}" >
                                {!pBean.fenpeirenInfo.userName + ',' + pBean.fenpeirenInfo.appStatus + ','}
                                {!pBean.fenpeirenInfo.appMemo}
                                {!',' + pBean.fenpeirenInfo.appTime}
                                <br/>
                            </apex:outputPanel>
                            <apex:outputPanel rendered="{!pBean.yunyingbuzhangInfo.show}" >
                                {!pBean.yunyingbuzhangInfo.userName + ',' + pBean.yunyingbuzhangInfo.appStatus + ','}
                                {!pBean.yunyingbuzhangInfo.appMemo}
                                {!',' + pBean.yunyingbuzhangInfo.appTime}
                                <br/>
                            </apex:outputPanel>
                             <apex:outputPanel rendered="{!pBean.qihuakeA.show}" >
                                {!pBean.qihuakeA.userName + ',' + pBean.qihuakeA.appStatus + ','}
                                {!pBean.qihuakeA.appMemo}
                                {!',' + pBean.qihuakeA.appTime}
                                <br/>
                            </apex:outputPanel>
                            <apex:outputPanel rendered="{!pBean.qihuakeB.show}" >
                                {!pBean.qihuakeB.userName + ',' + pBean.qihuakeB.appStatus + ','}
                                {!pBean.qihuakeB.appMemo}
                                {!',' + pBean.qihuakeB.appTime}
                                <br/>
                            </apex:outputPanel>
                            <apex:outputPanel rendered="{!pBean.beipinzhongxinInfo.show}" >
                                {!pBean.beipinzhongxinInfo.userName + ',' + pBean.beipinzhongxinInfo.appStatus + ','}
                                {!pBean.beipinzhongxinInfo.appMemo}
                                {!',' + pBean.beipinzhongxinInfo.appTime}
                                <br/>
                            </apex:outputPanel>
                            <apex:outputPanel rendered="{! !pBean.fenpeirenInfo.show && !pBean.yunyingbuzhangInfo.show && !pBean.beipinzhongxinInfo.show && !pBean.qihuakeA.show && !pBean.qihuakeB.show}" >
                                <br/>
                            </apex:outputPanel>
                        </td>
                    </tr>
                    <tr>
                        <td class="topb2 leftb2 rightb2 bottomb center" colspan="5">备品使用注意事项</td>
                    </tr>
                    <tr>
                        <td class="leftb2 rightb2 bottomb left"  colspan="5">1、当发生固定资产遗失・盘亏情况时,申请人须填写本《固定资产遗失・盘亏报告》,逐级向所属部门领导汇报,并取得CL3 副总裁批准。</td>
                    </tr>
                    <tr>
                        <td class="leftb2 rightb2 bottomb left"  colspan="5">2、对于遗失或盘亏的固定资产由公司做出最后处理决定。</td>
                    </tr>
                    <tr>
                        <td class="leftb2 rightb2 bottomb left"  colspan="5">&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="leftb2 rightb2 bottomb2 left"  colspan="5">
奥林巴斯医疗备品管理中心<br/>
<br/>
北京备品中心地址:北京市朝阳区酒仙桥路10号恒通商务园B12C座西门1F<br/>
邮编:100015     TEL:010-59756006-1894      FAX:010-5975-6534<br/>
广州备品中心地址:广州市番禺区东环街番禺大道北537号番山创业中心3号楼1F<br/>
邮编:511400     TEL:020-39198888-8876      FAX:020-39198848<br/>
上海备品中心地址:上海市浦东新区川沙创业路183号1F<br/>
邮编:201201     TEL:021-60391318-8877      FAX:021-60391316<br/>
                        </td>
                    </tr>
                </table>
            </apex:outputPanel>
        <!-- </apex:pageBlock> -->
    </apex:form>
    <apex:outputPanel styleClass="hiddenPrint" id="process">
        <apex:relatedList list="ProcessSteps" ></apex:relatedList>
    </apex:outputPanel>
</apex:page>