buli
2023-03-30 cb7617f2a39f5622bb0c6d21aac6d897497ab389
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
<apex:page
    standardController="Account_Delay_Apply__c"
    extensions="AccChangeApprovalResponseController"
    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)}" />
    <script>
        function tocenterjs() {
            //blockme();
            window.open(
                "/apex/AccChangeApprovalResponsePopUp?accid=" +
                    "{!URLENCODE(Account_Delay_Apply__c.Id)}" +
                    "&type=response2system",
                "HospitalApprovalDate",
                "height=400,width=600,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no"
            );
        }
 
        function touserjs() {
            //blockme();
            window.open(
                "/apex/AccChangeApprovalResponsePopUp?accid=" +
                    "{!URLENCODE(Account_Delay_Apply__c.Id)}" +
                    "&type=response2user",
                "HospitalApprovalDate",
                "height=400,width=600,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no"
            );
        }
        function reloadjs() {
            //blockme();
            init();
        }
    </script>
    <apex:form id="allForm">
        <apex:actionFunction
            name="init"
            action="{!init}"
            rerender="allPanel,message"
        >
        </apex:actionFunction>
        <apex:outputPanel id="allPanel">
            <apex:pageBlock
                title="{!$ObjectType.Account_Delay_Apply__c.fields.Response__c.label}"
                id="allBlock"
            >
                <apex:pageBlockButtons location="top">
                    <apex:commandButton
                        onclick="tocenterjs(); return false;"
                        value="To:当前审批人"
                        rerender="dummy"
                    />
                    <apex:commandButton
                        onclick="touserjs(); return false;"
                        value="To:申请者"
                        rerender="dummy"
                    />
                </apex:pageBlockButtons>
 
                <apex:inputField
                    id="response"
                    value="{!ra.Response__c}"
                    style="width: 100%; height: 120px; resize: none"
                />
                <script>
                    j$(escapeVfId("allPage:allForm:allBlock:response")).attr(
                        "readonly",
                        true
                    );
                </script>
            </apex:pageBlock>
        </apex:outputPanel>
    </apex:form>
</apex:page>