<!--20230420 加壳 <apex:page Controller="EquipmentRentalResponseController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> -->
|
<apex:page Controller="EquipmentRentalResponseController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets="true">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilColorCss)}"/><!-- 20230619 ljh lightning -->
|
<!-- 标准控件弹出页面修改 start -->
|
<apex:includeScript value="{!URLFOR($Resource.SelectFieldJs)}"/>
|
<!-- 标准控件弹出页面修改 end -->
|
<!-- 20230718 zq add -->
|
<style type="text/css">
|
table.mytable tr{
|
height:35px;
|
}
|
body select{
|
margin: 5px;
|
}
|
</style>
|
|
<apex:form id="allForm">
|
<!-- 20210927 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>
|
<!-- 20210927 ljh 应答沟通 update end -->
|
<apex:outputPanel id="allPanel">
|
<apex:pageBlock title="{!$ObjectType.Rental_Apply__c.fields.Response__c.label}" id="allBlock">
|
<apex:pageBlockButtons location="top">
|
<!-- 20230718 zq add style="margin-right:10px" -->
|
<apex:commandButton onclick="j$(this).prop('disabled', true).addClass('btnDisabled'); savejs(); return false;" value="发送" rerender="dummy" style="margin-right:10px"/>
|
<apex:commandButton onclick="canceljs(); return false;" value="取消" rerender="dummy"/>
|
</apex:pageBlockButtons>
|
<!-- 20210927 ljh 应答沟通 update start -->
|
<!-- <apex:outputPanel id="message">
|
<apex:pageMessages />
|
<apex:outputText id="hasError" value="{!hasError}" style="display:none"/>
|
</apex:outputPanel> -->
|
|
<apex:outputText id="raid" value="{!raid}" style="display:none"/>
|
<!-- <apex:outputText id="hasError" value="{!hasError}" style="display:none"/> -->
|
<!-- 20210927 ljh 应答沟通 update end -->
|
<table>
|
<tr>
|
<td>To:</td>
|
<td>
|
<apex:outputPanel layout="none" rendered="{!IF(type='response2center', true, false)}">
|
<apex:outputText value="{!ra.Loaner_centre_mail_address__c}"/>
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(type='response2user', true, false)}">
|
<apex:outputText value="{!ra.Person_In_Charge__r.Name}"/>,
|
<apex:outputText value="{!ra.ApplyUser__r.Name}"/>(操作者)
|
</apex:outputPanel>
|
</td>
|
</tr>
|
<tr>
|
<td>Cc:</td>
|
<td><apex:inputField id="jingli" value="{!cc.JingliApprovalManager__c}"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td><apex:inputField id="sales" value="{!cc.SalesManager__c}" style="padding:10px 10px"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td><apex:inputField id="buchang" value="{!cc.BuchangApprovalManager__c}" style="margin:10px 10px"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td><apex:inputField id="buchangsales" value="{!cc.BuchangApprovalManagerSales__c}"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td><apex:inputField id="zongjian" value="{!cc.ZongjianApprovalManager__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>
|
<script>
|
function savejs() {
|
blockme();
|
savebtn();
|
}
|
|
function canceljs() {
|
top.window.close();
|
}
|
|
function refreshparent() {
|
// 20211123 ljh 应答沟通 update start
|
// allPage:allForm:hasError
|
// allPage:allForm:allBlock:hasError
|
// var hasError = j$(escapeVfId('allPage:allForm:allBlock:hasError')).text();
|
var hasError = j$(escapeVfId('allPage:allForm:hasError')).text();
|
console.log(hasError);
|
if (hasError == 'false') {
|
// top.window.opener.reloadjs();
|
window.open("/{!raid}");
|
top.window.close();
|
}
|
// 20211123 ljh 应答沟通 update end
|
}
|
|
//标准控件弹出页面修改 start
|
//查询参数列表
|
let SelectFieldParamList=[
|
//
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:allBlock:jingli',
|
//查找字段所在对象
|
ObjectType : 'Rental_Apply__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'JingliApprovalManager__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:allBlock:sales',
|
//查找字段所在对象
|
ObjectType : 'Rental_Apply__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'SalesManager__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:allBlock:buchang',
|
//查找字段所在对象
|
ObjectType : 'Rental_Apply__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'BuchangApprovalManager__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:allBlock:buchangsales',
|
//查找字段所在对象
|
ObjectType : 'Rental_Apply__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'BuchangApprovalManagerSales__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:allBlock:zongjian',
|
//查找字段所在对象
|
ObjectType : 'Rental_Apply__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'ZongjianApprovalManager__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
},
|
]
|
//初始化
|
resetOpenPage(SelectFieldParamList);
|
|
|
function unblockUI(){
|
j$("#sbArea").fadeOut(500, function(){
|
j$("#sbArea").remove();
|
});
|
resetOpenPage(SelectFieldParamList);
|
}
|
//标准控件弹出页面修改 end
|
</script>
|
</apex:page>
|