GWY
2022-04-15 b823c7f3569cf9368e2245846e918f78f32e903a
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
<apex:page controller="CustContController" showHeader="true" sidebar="false" action="{!init}" id="allPage" >
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<style type="text/css"> td>div{display: inline-block;}</style>
<script>
function judgement(){
    blockme();
    getisOk();
}
function back(){
    var isOk1 = j$(escapeVfId('isOk')).value();
    if (isOk1!= '') {alert(isOk1);}
    else{alert('客户与联系人都不填,做不到啊');}
}
</script>
 
 
    <apex:form id="allForm">
    <apex:actionFunction name="getisOk" action="{!getisOk}" rerender="ok" oncomplete="back();unblockUI();"></apex:actionFunction>
        <apex:outputPanel id="ok">
         <input type="hidden" id='isOk' value="{!isOk}"/>
         </apex:outputPanel>
         <table border="0" style="width: 260px;">
            <tr>
                <td><apex:outputLabel value="客户" style="float: right;"/></td>
                <td><apex:inputField value="{!lou.Customer__c}" id="acc"></apex:inputField></td>
            </tr>
            <tr>
                <td><apex:outputLabel value="联系人" style="float: right;"/></td>    
                <td><apex:inputField value="{!lou.Contact__c}" id="con"></apex:inputField></td>
            </tr>
            <tr>
                <td style="text-align: center;" colspan="2">
                    <apex:commandButton onclick="judgement();return false;" value="判断" style="width: 60px;"/>
                </td>
            </tr>
         </table>
    </apex:form>
</apex:page>