From e6068da47c1bef5517c9e5fdc8c726766867ad4e Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期五, 14 七月 2023 15:10:02 +0800 Subject: [PATCH] Merge branch 'master' into LEXUpgrade2023-Deloitte --- force-app/main/default/pages/AdvanceOpportunity.page | 41 +++++++++++++++++++++++++++-------------- 1 files changed, 27 insertions(+), 14 deletions(-) diff --git a/force-app/main/default/pages/AdvanceOpportunity.page b/force-app/main/default/pages/AdvanceOpportunity.page index 3f44175..644ec3c 100644 --- a/force-app/main/default/pages/AdvanceOpportunity.page +++ b/force-app/main/default/pages/AdvanceOpportunity.page @@ -1,4 +1,4 @@ -<apex:page standardController="Opportunity" extensions="AdvanceOpportunityController" showChat="false" showHeader="false" sidebar="false" action="{!init}" id="Page"> +<apex:page standardController="Opportunity" extensions="AdvanceOpportunityController" showChat="false" showHeader="false" sidebar="false" action="{!init}" id="allPage" lightningStylesheets="true"> <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> @@ -8,25 +8,38 @@ <title>璇环鎺ㄨ繘</title> <script type="text/javascript"> - function save(){ - blockme(); - alert("淇濆瓨鎴愬姛"); - allSave(); - // save(); - } + 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> - -<apex:inputField value="{!AdOpportunity.MarketAdvance__c}">甯傚満鍏卞悓鎺ㄨ繘</apex:inputField> -<br /> -<apex:inputField value="{!AdOpportunity.AddOpportunity__c}">鏂板璇环</apex:inputField> -<br /> +<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.AddPrice__c}">澧炲姞閲戦</apex:inputField> +<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> -- Gitblit v1.9.1