<apex:page action="{!init}" extensions="EventHandleController" id="page" lightningstylesheets="true" standardcontroller="Event">
|
<apex:stylesheet value="{!URLFOR($Resource.jquerysuggestcss)}">
|
</apex:stylesheet>
|
<apex:includescript value="{!URLFOR($Resource.jquery183minjs)}">
|
</apex:includescript>
|
<apex:includescript value="{!URLFOR($Resource.PleaseWaitDialog)}">
|
</apex:includescript>
|
<apex:includescript value="{!URLFOR($Resource.jquerysuggestjs)}">
|
</apex:includescript>
|
<apex:includescript value="{!URLFOR($Resource.connection20)}">
|
</apex:includescript>
|
<apex:includescript value="{!URLFOR($Resource.apex20)}">
|
</apex:includescript>
|
<apex:pagemessages id="msgs" showdetail="false">
|
</apex:pagemessages>
|
<!--2021-09-15 mzy 任务管理改善开发计划 start-->
|
<script type="text/javascript">
|
function SaveJs(){
|
//OPD类型的任务取消提示有关联的OPD
|
var isEventCanelVar = '{!isEventCancel}';
|
var isOPDPlanFlagVar = '{!isOPDPlanFlag}';
|
//alert(isEventCanelVar +'-----'+isOPDPlanFlagVar);
|
if(isEventCanelVar=='true'&&isOPDPlanFlagVar=='true'){
|
//是取消并且有OPD计划的 提醒
|
if(window.confirm('该医院的OPD计划是否确认取消?\r\n如需改期,请选择延期及理由或进入OPD计划进行延期。') == false){
|
return;
|
}
|
}
|
blockme();
|
save();
|
}
|
</script>
|
<!--2021-09-15 mzy 任务管理改善开发计划 end-->
|
<apex:form >
|
<!--2021-09-15 mzy 任务管理改善开发计划 start-->
|
<apex:actionfunction action="{!save}" name="save" oncomplete="unblockUI();" rerender="all,msgs">
|
</apex:actionfunction>
|
<!--2021-09-15 mzy 任务管理改善开发计划 end-->
|
<apex:pageblock id="all" mode="edit" title="{!title}">
|
<!--2021-09-15 mzy 任务管理改善开发计划 如果没有任务还是用这部分 start-->
|
<apex:outputpanel rendered="{!IF(isTaskBlank==true,true,false)}">
|
<apex:pageblocksection >
|
<apex:inputfield label="{!$ObjectType.Event.fields.delayReasonSelect__c.label}" rendered="{!isEventDelay && !isFSE}" value="{!targetEvent.delayReasonSelect__c}">
|
</apex:inputfield>
|
<apex:inputfield label="{!$ObjectType.Event.fields.delayReasonSelectFSE__c.label}" rendered="{!isEventDelay && isFSE}" value="{!targetEvent.delayReasonSelectFSE__c}">
|
</apex:inputfield>
|
<apex:inputfield label="{!$ObjectType.Event.fields.delayReasonOther__c.label}" rendered="{!isEventDelay}" value="{!targetEvent.delayReasonOther__c}">
|
</apex:inputfield>
|
<apex:inputfield label="{!$ObjectType.Event.fields.cancelReasonSelect__c.label}" rendered="{!isEventCancel && !isFSE}" value="{!targetEvent.cancelReasonSelect__c}">
|
</apex:inputfield>
|
<apex:inputfield label="{!$ObjectType.Event.fields.cancelReasonSelectFSE__c.label}" rendered="{!isEventCancel && isFSE}" value="{!targetEvent.cancelReasonSelectFSE__c}">
|
</apex:inputfield>
|
<apex:inputfield label="{!$ObjectType.Event.fields.cancelReasonOther__c.label}" rendered="{!isEventCancel}" value="{!targetEvent.cancelReasonOther__c}">
|
</apex:inputfield>
|
</apex:pageblocksection>
|
</apex:outputpanel>
|
<!--2021-09-15 mzy 任务管理改善开发计划 如果没有任务还是用这部分 end-->
|
<!--2021-09-15 mzy 任务管理改善开发计划 如果有任务用这部分 start-->
|
<!-- <apex:outputPanel rendered="{!IF(isTaskBlank==false,true,false)}"> -->
|
<apex:outputpanel rendered="{!IF(isTaskBlank==false,true,false)}">
|
<apex:pageblocksection >
|
<apex:inputfield label="{!$ObjectType.Event.fields.delayReasonSelect__c.label}" rendered="{!isEventDelay && !isFSE}" value="{!taskOption.delayReasonSelect__c}">
|
</apex:inputfield>
|
<apex:inputfield label="{!$ObjectType.Event.fields.delayReasonSelectFSE__c.label}" rendered="{!isEventDelay && isFSE}" value="{!taskOption.delayReasonSelectFSE__c}">
|
</apex:inputfield>
|
<apex:inputfield label="{!$ObjectType.Event.fields.delayReasonOther__c.label}" rendered="{!isEventDelay}" value="{!targetEvent.delayReasonOther__c}">
|
</apex:inputfield>
|
<apex:inputfield label="{!$ObjectType.Event.fields.cancelReasonSelect__c.label}" rendered="{!isEventCancel && !isFSE}" value="{!taskOption.cancelReasonSelect__c}">
|
</apex:inputfield>
|
<apex:inputfield label="{!$ObjectType.Event.fields.cancelReasonSelectFSE__c.label}" rendered="{!isEventCancel && isFSE}" value="{!taskOption.cancelReasonSelectFSE__c}">
|
</apex:inputfield>
|
<apex:inputfield label="{!$ObjectType.Event.fields.cancelReasonOther__c.label}" rendered="{!isEventCancel}" value="{!targetEvent.cancelReasonOther__c}">
|
</apex:inputfield>
|
</apex:pageblocksection>
|
<!--2021-09-15 mzy 任务管理改善开发计划 如果有任务用这部分 end-->
|
</apex:outputpanel>
|
<apex:pageblockbuttons >
|
<apex:commandbutton onclick="SaveJs();return false;" value="保存">
|
</apex:commandbutton>
|
<apex:commandbutton action="{!cancel}" onclick="blockme();" oncomplete="unblockUI();" rerender="all,msgs" value="取消">
|
</apex:commandbutton>
|
</apex:pageblockbuttons>
|
</apex:pageblock>
|
</apex:form>
|
</apex:page>
|