DESKTOP-0K9VGFE\hp
2022-03-11 6d766b0c8e9b31e7e03ffd344a94c2851aa9beb9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<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>