From 559771a80cf779dc13a84ecd2f178e6ca5a8353a Mon Sep 17 00:00:00 2001 From: FUYU <fuyu@prec-tech.com> Date: 星期五, 19 五月 2023 15:52:16 +0800 Subject: [PATCH] 备份省目标录入 --- force-app/main/default/pages/StatusPage.page | 72 ++++++++++++++++++------------------ 1 files changed, 36 insertions(+), 36 deletions(-) diff --git a/force-app/main/default/pages/StatusPage.page b/force-app/main/default/pages/StatusPage.page index 220b918..8a573b2 100644 --- a/force-app/main/default/pages/StatusPage.page +++ b/force-app/main/default/pages/StatusPage.page @@ -2,50 +2,50 @@ <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; - } + 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.trim() == '' || chance.trim() == null) { alert('涓嶉渶瑕佺悊鐢变笉鑳戒负绌�'); return; } - if ((chance == '宸茬粡鏈夎浠�') && (name1.trim() == null || name1.trim() == "")) { - alert('宸叉湁璇环鍚嶇О涓嶈兘涓虹┖'); + if ((chance == '宸茬粡鏈夎浠�') && (name1.trim() == null || name1.trim() == "")) { + alert('宸叉湁璇环鍚嶇О涓嶈兘涓虹┖'); return; - }else{ - blockme(); - allSave(); - } - } - function check(){ - window.opener.location.href = "/{!Inquiryform.id}"; - window.close(); - } + }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 location="bottom"> - <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