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
<apex:page Controller="HospitalApprovalResponseController" 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 savejs() {
    blockme();
    savebtn();
}
 
function canceljs() {
    top.window.close();
}
 
function refreshparent() {
    var hasError = j$(escapeVfId('allPage:allForm:allBlock:hasError')).text();
    if (hasError == 'false') {
        top.window.opener.reloadjs();
        top.window.close();
    }
}
</script>
    <apex:form id="allForm">
        <apex:actionFunction name="savebtn" action="{!saveBtn}" rerender="allPanel,message" onComplete="unblockUI();refreshparent();">
        </apex:actionFunction>
        <apex:outputPanel id="allPanel">
            <apex:pageBlock title="{!$ObjectType.Account.fields.Response__c.label}" id="allBlock">
                <apex:pageBlockButtons location="top">
                    <apex:commandButton onclick="savejs(); return false;" value="发送" rerender="dummy"/>
                    <apex:commandButton onclick="canceljs(); return false;" value="取消" rerender="dummy"/>
                </apex:pageBlockButtons>
 
                <apex:outputPanel id="message">
                    <apex:pageMessages />
                </apex:outputPanel>
 
                <apex:outputText id="accid" value="{!accid}" style="display:none"/>
                <apex:outputText id="hasError" value="{!hasError}" style="display:none"/>
 
                <table>
                    <tr>
                        <td>To:</td>
                        <td>
                            <apex:outputPanel layout="none" rendered="{!IF(type='response2system', true, false)}">
                                <apex:outputText value="{!systemUser.Name}"/>({!systemUser.Email})
                            </apex:outputPanel>
                            <apex:outputPanel layout="none" rendered="{!IF(type='response2user', true, false)}">
                                <apex:outputText value="{!ra.Owner.Name}"/>({!ra.Owner.Email})(审批提交人)
                            </apex:outputPanel>
                        </td>
                    </tr>
                    <tr>
                        <td>Cc:</td>
                        <td><apex:inputField value="{!cc.Response_Cc_User1__c}"/></td>
                    </tr>
                    <tr>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        <td><apex:inputField value="{!cc.Response_Cc_User2__c}"/></td>
                    </tr>
                    <tr>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        <td><apex:inputField value="{!cc.Response_Cc_User3__c}"/></td>
                    </tr>
                    <tr>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        <td><apex:inputField value="{!cc.Response_Cc_User4__c}"/></td>
                    </tr>
                    <tr>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        <td><apex:inputField value="{!cc.Response_Cc_User5__c}"/></td>
                    </tr>
                    <tr>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        <td>
                            <apex:inputField value="{!cc.ResponseNew__c}" style="resize:none; width:500px; height:150px;"/>
                        </td>
                    </tr>
                </table>
 
            </apex:pageBlock>
        </apex:outputPanel>
    </apex:form>
</apex:page>