DESKTOP-0K9VGFE\hp
2022-03-11 6d766b0c8e9b31e7e03ffd344a94c2851aa9beb9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<apex:page controller="ConsumTrialConfirmController" showHeader="false" action="{!init}" id="allPage">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
    <script type="text/javascript">
        function allConsumedConfirm(){
            blockme();
            var yes = confirm("是否确定全部消耗?");
            if (yes){
                allConsumed();
            }
            else {
                unblockUI();
            }
        }
        function startLoading() {
            document.getElementById("el_loading").style = 'display:block';
        }
 
        function endLoading() {
            document.getElementById("el_loading").style = 'display:none';
        }
    </script>
    <style>
        textarea{width: 100%;}
 
        .waitingSearchDiv {
            background-color: rgba(255, 255, 255, 0.65);
            height: 100%;
            width:100%;
        }
    </style>
    <apex:form id="allForm">
        <apex:pageMessages id="message"/>
        <apex:actionFunction action="{!allConsumed}" oncomplete="unblockUI();" name="allConsumed" reRender="message"/>
        <apex:pageBlock id="allBlock">
            <div class="waitingSearchDiv" id="el_loading" style="width: 100%; overflow:auto; display: none;" onclick="endLoading();">
                <div style="zoom: 200%;" >
                    <apex:outputField id="HP_received_sign_rich"  value="{!ca.HP_received_sign_rich__c}"/>
                </div>
            </div>
            <table width="700px;">
                <tr>
                    <td colspan="4">
                        <apex:pageBlockSection columns="1">
                            <apex:inputField rendered="{!applyerCanEdit}" value="{!ca.HP_received_sign_rich__c}"/>
                            <apex:outputField id="HP_received_sign_rich" rendered="{!NOT(applyerCanEdit)}" value="{!ca.HP_received_sign_rich__c}">
                                <button style="float: right;" onclick="startLoading();return false;">预览</button>
                            </apex:outputField>
                        </apex:pageBlockSection>
                    </td>
                </tr>
                <tr>
                    <td width="125px;" colspan="1" align="right"> <label class="labelCol">确认耗材使用情况</label></td>
                    <td width="120px;" colspan="1"/>
                    <td colspan="1">
                        <apex:commandButton disabled="{!NOT(applyerCanEdit)}" value="全部消耗"
                        onclick="allConsumedConfirm(); return false;"
                        oncomplete="unblockUI();"
                        reRender="message"/>
                    </td>
                    <td colspan="1">
                        <apex:commandButton disabled="{!NOT(applyerCanEdit)}" value="部分寄回"
                        onclick="blockme();"
                        action="{!partSendback}"
                        oncomplete="unblockUI();"
                        reRender="message"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <apex:pageBlockSection columns="1" rendered="{!centerCanEdit}">
                            <apex:inputField value="{!ca.HP_received_sign_NG__c}"/>
                            <apex:inputField value="{!ca.HP_received_sign_NG_Reason__c}"/>
                            <apex:inputField value="{!ca.AssetManageConfirm__c}"/>
                        </apex:pageBlockSection>
                        <apex:pageBlockSection columns="1" rendered="{!NOT(centerCanEdit)}">
                            <apex:outputField value="{!ca.HP_received_sign_NG__c}"/>
                            <apex:outputField value="{!ca.HP_received_sign_NG_Reason__c}"/>
                            <apex:outputField value="{!ca.AssetManageConfirm__c}"/>
                        </apex:pageBlockSection>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" align="center">
                        <apex:commandButton disabled="{!NOT(centerCanEdit)}" value="保存"
                        onclick="blockme();"
                        action="{!save}"
                        oncomplete="unblockUI();"
                        reRender="message"/>
                    </td>
                </tr>
            </table>
        </apex:pageBlock>
    </apex:form>
</apex:page>