buli
2022-05-09 0953b3b5fcf19c627c6479a6b86648df653c40db
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
<apex:page standardController="Opportunity" extensions="OpportunityVisitNotesController" 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 leavemessage() {
    //blockme();
    if ('{!usertype}' == 'PowerPartner'){
    window.open('/production/apex/OpportunityVisitNotesPopUp?raid=' + '{!URLENCODE(Opportunity.Id)}',
                'VisitNotes',
                'height=400,width=600,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
    } else{
    window.open('/apex/OpportunityVisitNotesPopUp?raid=' + '{!URLENCODE(Opportunity.Id)}',
                'VisitNotes',
                '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="" id="allBlock">
                <apex:pageBlockButtons location="top">
                    <apex:commandButton onclick="leavemessage(); return false;" value="记录" rerender="dummy"/>
                </apex:pageBlockButtons>
 
                <apex:inputField id="response" value="{!ra.Visit_Notes__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>