<apex:page Controller="AccChangeApprovalResponseController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningstylesheets="true">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.SelectFieldJs)}"/>
|
<style type="text/css">
|
.hideDropdown select{
|
display:none
|
}
|
</style>
|
<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();
|
}
|
}
|
</script>
|
<apex:form id="allForm">
|
<apex:actionFunction name="savebtn" action="{!saveBtn}" rerender="allPanel,message" onComplete="unblockUI();refreshparent();">
|
</apex:actionFunction>
|
<apex:outputPanel id="allPanel">
|
<apex:pageBlock title="{!$ObjectType.Account_Delay_Apply__c.fields.Response__c.label}" id="allBlock">
|
<apex:pageBlockButtons location="top" style="display: flex;width: 70%;">
|
<div style="padding-right: 5px;">
|
<apex:commandButton onclick="savejs(); return false;" value="发送" rerender="dummy"/>
|
</div>
|
|
<apex:commandButton onclick="canceljs(); return false;" value="取消" rerender="dummy"/>
|
</apex:pageBlockButtons>
|
|
<apex:outputPanel id="message">
|
<apex:pageMessages />
|
</apex:outputPanel>
|
|
<apex:outputText id="accid" value="{!accid}" style="display:none"/>
|
<apex:outputText id="hasError" value="{!hasError}" style="display:none"/>
|
|
<table>
|
<tr>
|
<td>To:</td>
|
<td>
|
<!-- to当前审批人 -->
|
<apex:outputPanel layout="none" rendered="{!IF(type='response2system', true, false)}">
|
<!-- <apex:outputText value="{!systemUser.Name}"/>({!systemUser.Email}) -->
|
<apex:inputField id="Cc6" value="{!cc.Response_Cc_User6__c}" styleClass="hideDropdown"/>
|
</apex:outputPanel>
|
<!-- to申请者 del(审批提交人) -->
|
<apex:outputPanel layout="none" rendered="{!IF(type='response2user', true, false)}">
|
<apex:outputText value="{!ra.CreatedBy.Name}"/>({!ra.CreatedBy.Email})
|
</apex:outputPanel>
|
<!-- <apex:inputField value="{!cc.Response_Cc_User6__c}"/> -->
|
</td>
|
</tr>
|
<tr>
|
<td>Cc:</td>
|
<td><apex:inputField id="Cc1" value="{!cc.Response_Cc_User1__c}" styleClass="hideDropdown"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td><apex:inputField id="Cc2" value="{!cc.Response_Cc_User2__c}" styleClass="hideDropdown"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td><apex:inputField id="Cc3" value="{!cc.Response_Cc_User3__c}" styleClass="hideDropdown"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td><apex:inputField id="Cc4" value="{!cc.Response_Cc_User4__c}" styleClass="hideDropdown"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td><apex:inputField id="Cc5" value="{!cc.Response_Cc_User5__c}" styleClass="hideDropdown"/></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>
|
<script>
|
//标准控件弹出页面修改 start
|
|
//查询参数列表
|
let SelectFieldParamList=[
|
//
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:allBlock:Cc6',
|
//查找字段所在对象
|
ObjectType : 'Account_Delay_Apply__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'Response_Cc_User6__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:allBlock:Cc1',
|
//查找字段所在对象
|
ObjectType : 'Account_Delay_Apply__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'Response_Cc_User1__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:allBlock:Cc2',
|
//查找字段所在对象
|
ObjectType : 'Account_Delay_Apply__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'Response_Cc_User2__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:allBlock:Cc3',
|
//查找字段所在对象
|
ObjectType : 'Account_Delay_Apply__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'Response_Cc_User3__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:allBlock:Cc4',
|
//查找字段所在对象
|
ObjectType : 'Account_Delay_Apply__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'Response_Cc_User4__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:allBlock:Cc5',
|
//查找字段所在对象
|
ObjectType : 'Account_Delay_Apply__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'Response_Cc_User5__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
},
|
]
|
//初始化
|
resetOpenPage(SelectFieldParamList);
|
//标准控件弹出页面修改 end
|
|
</script>
|
</apex:page>
|