| | |
| | | <apex:page standardController="Opportunity" extensions="SI_Opportunity_ResponseController" showHeader="false" sidebar="false" action="{!init}" id="allPage" > |
| | | <apex:page standardController="Opportunity" extensions="SI_Opportunity_ResponseController" 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)}"/> |
| | |
| | | |
| | | var resStatus = j$(escapeVfId('allPage:allForm:ResponseBlock:mailStatus')).val(); |
| | | if(resStatus =='Fin'){ |
| | | setTimeout( alert('发送完成'),5000 ); |
| | | top.window.opener.reloadJs(); |
| | | top.window.close(); |
| | | setTimeout( alert('发送完成'),5000 ); |
| | | top.window.opener.reloadJs(); |
| | | top.window.close(); |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <apex:actionFunction action="{!sendMail}" name="sendMail"/> |
| | | <apex:actionFunction action="{!init}" name="initJs" /> |
| | | <apex:pageBlock id="allBlock" rendered="{!IF(isShowFlg=='true',true,false)}"> |
| | | |
| | | <apex:pageBlockButtons location="top"> |
| | | |
| | | <apex:pageBlockButtons location="top" style="display:flex"> |
| | | <apex:commandButton title="SI部门" value="TO:SP-SI" onclick="SendToSIJs()" /> |
| | | <apex:commandButton title="申请者" value="TO:营业本部" onclick="SendToApplyJs()" /> |
| | | </apex:pageBlockButtons> |
| | |
| | | </apex:pageBlock> |
| | | <apex:pageBlock rendered="{!IF(isShowFlg=='true',false,true)}" id="ResponseBlock"> |
| | | <apex:outputPanel id="message"> |
| | | <apex:pageMessages /> |
| | | </apex:outputPanel> |
| | | <apex:inputHidden id="mailStatus" value="{!mailStatus}"/> |
| | | <apex:pageMessages /> |
| | | </apex:outputPanel> |
| | | <apex:inputHidden id="mailStatus" value="{!mailStatus}"/> |
| | | <apex:pageBlockButtons location="top" > |
| | | <apex:commandButton onclick="ConfirmJs(); " value="发送" rerender="allForm,ResponseBlock,message,mailStatus" oncomplete="refreshPage();"/> |
| | | <apex:commandButton onclick="CancelJs(); " value="取消" rerender="dummy" oncomplete="CancelJs();"/> |