<apex:page Controller="TransferApplyResponseController" showHeader="false" sidebar="false" id="allPage" action="{!init}">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<script>
|
function savejs() {
|
blockme();
|
savebtn();
|
}
|
|
function canceljs() {
|
top.window.close();
|
}
|
|
function refreshparent() {
|
// var hasError = j$(escapeVfId('allPage:allForm:allBlock:hasError')).text();
|
// if (hasError == 'false') {
|
// top.window.opener.reloadjs();
|
// top.window.close();
|
// }
|
// 20211123 ljh 应答沟通 update start
|
var hasError = j$(escapeVfId('allPage:allForm:hasError')).text();
|
console.log(hasError);
|
if (hasError == 'false') {
|
window.open("/{!raid}");
|
top.window.close();
|
}
|
// 20211123 ljh 应答沟通 update end
|
}
|
</script>
|
<apex:form id="allForm">
|
<!-- 20211105 ljh 应答沟通 update start -->
|
<!-- <apex:actionFunction name="savebtn" action="{!saveBtn}" rerender="allPanel,message" onComplete="unblockUI();refreshparent();"> -->
|
<apex:actionFunction name="savebtn" action="{!saveBtn}" rerender="message" onComplete="unblockUI();refreshparent();">
|
</apex:actionFunction>
|
<apex:outputPanel id="message">
|
<apex:pageMessages />
|
<apex:outputText id="hasError" value="{!hasError}" style="display:none"/>
|
</apex:outputPanel>
|
<!-- 20211105 ljh 应答沟通 update end -->
|
<apex:outputPanel id="allPanel">
|
<apex:pageBlock title="{!$ObjectType.TransferApply__c.fields.Response__c.label}" id="allBlock">
|
<apex:pageBlockButtons location="top">
|
<apex:commandButton onclick="j$(this).prop('disabled', true).addClass('btnDisabled'); savejs(); return false;" value="发送" rerender="dummy"/>
|
<apex:commandButton onclick="canceljs(); return false;" value="取消" rerender="dummy"/>
|
</apex:pageBlockButtons>
|
<!-- 20211105 ljh 应答沟通 update start -->
|
<!-- <apex:outputPanel id="message">
|
<apex:pageMessages />
|
</apex:outputPanel> -->
|
|
<apex:outputText id="raid" value="{!raid}" style="display:none"/>
|
<!-- <apex:outputText id="hasError" value="{!hasError}" style="display:none"/> -->
|
<!-- 20211105 ljh 应答沟通 update end -->
|
<table>
|
<tr>
|
<td>To:</td>
|
<td>
|
<apex:outputText value="{!toString}"/>
|
</td>
|
</tr>
|
<tr>
|
<td>Cc:</td>
|
<td><apex:inputField value="{!cc.JingliApprovalManager__c}"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td><apex:inputField value="{!cc.SalesManager__c}"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td><apex:inputField value="{!cc.BuchangApprovalManager__c}"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td><apex:inputField value="{!cc.BuchangApprovalManagerSales__c}"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td><apex:inputField value="{!cc.ZongJian__c}"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td>
|
<apex:inputField value="{!cc.ResponseNew__c}" style="resize:none; width:500px; height:150px;"/>
|
</td>
|
</tr>
|
</table>
|
|
</apex:pageBlock>
|
</apex:outputPanel>
|
</apex:form>
|
</apex:page>
|