From c51e03fbf2f6633d8e88aeec9dcb8df13524df8f Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期四, 13 七月 2023 12:00:06 +0800
Subject: [PATCH] backup0713
---
force-app/main/default/pages/StatusPage.page | 78 ++++++++++++++++++++------------------
1 files changed, 41 insertions(+), 37 deletions(-)
diff --git a/force-app/main/default/pages/StatusPage.page b/force-app/main/default/pages/StatusPage.page
index c721d2e..ee363e6 100644
--- a/force-app/main/default/pages/StatusPage.page
+++ b/force-app/main/default/pages/StatusPage.page
@@ -1,47 +1,51 @@
-<apex:page controller="StatusPageController" showHeader="false" id="allPage" sidebar="false" action="{!init}" docType="html-5.0">
+<apex:page controller="StatusPageController" showHeader="false" id="allPage" sidebar="false" action="{!init}" docType="html-5.0" lightningStylesheets="true">
<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>
- </head>
+<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
+<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
+ <head>
+ <title>涓嶉渶瑕佺殑鐞嗙敱</title>
+ </head>
<script type="text/javascript">
- function save(){
- var chance = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:chance')).value();
- var name1 = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:name1')).value();
- if (((chance.trim() == '' || chance.trim() == null) && (name1.trim() == null || name1.trim() == '')) || chance == null) {
- alert('涓嶉渶瑕佺悊鐢变笉鑳戒负绌�');
- return;
- }
- if ((chance == '宸茬粡鏈夎浠�') && (name1.trim() == null || name1.trim() == "")) {
- alert('宸叉湁璇环鍚嶇О涓嶈兘涓虹┖');
+ function save(){
+ var chance = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:chance')).value();
+ var name1 = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:name1')).value();
+ if (((chance.trim() == '' || chance.trim() == null) && (name1.trim() == null || name1.trim() == '')) || chance == null) {
+ alert('涓嶉渶瑕佺悊鐢变笉鑳戒负绌�');
return;
- }else{
- blockme();
- allSave();
- }
- }
- function check(){
- window.opener.location.href = "/{!Inquiryform.id}";
- window.close();
- }
+ }
+ if (chance.trim() == '' || chance.trim() == null) {
+ alert('涓嶉渶瑕佺悊鐢变笉鑳戒负绌�');
+ return;
+ }
+ if ((chance == '宸茬粡鏈夎浠�') && (name1.trim() == null || name1.trim() == "")) {
+ alert('宸叉湁璇环鍚嶇О涓嶈兘涓虹┖');
+ return;
+ }else{
+ blockme();
+ allSave();
+ }
+ }
+ function check(){
+ window.opener.location.href = "/{!Inquiryform.id}";
+ window.close();
+ }
</script>
- <apex:form id="allForm">
+ <apex:form id="allForm">
<apex:outputPanel id="message">
<apex:pageMessages />
</apex:outputPanel>
- <apex:actionfunction action="{!save}" name="allSave" onComplete="check();unblockUI();"></apex:actionfunction>
- <apex:pageBlock id="pageBlock">
- <apex:pageBlockSection id="pageBlockSection" >
- <apex:inputField id="chance" value="{!Inquiryform.Reasons_options__c}" style="width: 155px"/>
- <br />
- <apex:inputField id="name1" value="{!Inquiryform.Opp_Name_Search__c}" style="width: 150px"/>
- </apex:pageBlockSection>
- <apex:pageblockbuttons >
- <apex:commandbutton onclick="save();return false;" value="淇濆瓨"></apex:commandbutton>
- </apex:pageblockbuttons>
- </apex:pageBlock>
- </apex:form>
+ <apex:actionfunction action="{!save}" name="allSave" onComplete="check();unblockUI();"></apex:actionfunction>
+ <apex:pageBlock id="pageBlock">
+ <apex:pageBlockSection id="pageBlockSection" >
+ <apex:inputField id="chance" value="{!Inquiryform.Reasons_options__c}" style="width: 155px"/>
+ <br />
+ <apex:inputField id="name1" value="{!Inquiryform.Opp_Name_Search__c}" style="width: 150px"/>
+ </apex:pageBlockSection>
+ <apex:pageblockbuttons location="bottom">
+ <apex:commandbutton onclick="save();return false;" value="淇濆瓨"></apex:commandbutton>
+ </apex:pageblockbuttons>
+ </apex:pageBlock>
+ </apex:form>
</apex:page>
\ No newline at end of file
--
Gitblit v1.9.1