FUYU
2023-05-19 559771a80cf779dc13a84ecd2f178e6ca5a8353a
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
<apex:page standardController="Opportunity" extensions="AdvanceOpportunityController" showChat="false" showHeader="false" sidebar="false" action="{!init}" id="allPage">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:includeScript value="/soap/ajax/29.0/connection.js"/>
<apex:includeScript value="/soap/ajax/29.0/apex.js"/>
<head>
<title>询价推进</title>
 
    <script type="text/javascript">
        function save(){
            blockme();
            savebtn();
        }
        function refreshparent() {
            var hasError = j$(escapeVfId('allPage:allForm:hasError')).text();
            if (hasError == 'false') {
                alert('保存成功');
                //top.window.opener.reloadjs();
                window.opener.top.location.reload();
                window.open("/{!aoId}");
                top.window.close();
            }
        }
    </script>
</head>
<apex:form id="allForm">
<apex:actionFunction name="savebtn" action="{!save}"  rerender="message"  onComplete="unblockUI();refreshparent();"></apex:actionFunction>
<apex:outputPanel id="message">
    <apex:pageMessages />
    <apex:outputText id="hasError" value="{!hasError}" style="display:none"/>
</apex:outputPanel>
<apex:inputField value="{!AdOpportunity.BigContract__c}">大合同</apex:inputField>
<br />
<apex:inputField value="{!AdOpportunity.AddPrice__c}">增加金额</apex:inputField>
<br />
 
<apex:inputField value="{!AdOpportunity.GradePro__c}">等级提升</apex:inputField>
<br />
<apex:inputField value="{!AdOpportunity.KeepPushing__c}">保持推进</apex:inputField>
<br />
<apex:inputField value="{!AdOpportunity.MarketAdvance__c}">市场共同推进</apex:inputField>
<br />
<apex:commandButton action="{!save}" onclick="save();return false;" value="保存"></apex:commandButton>
</apex:form>
</apex:page>