From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新

---
 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