高章伟
2022-03-10 1312ba82d4c880bdb5357d28e0d4af5b285f610f
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
86
87
88
89
90
<apex:page standardController="Campaign" showHeader="false" sidebar="false" extensions="CampaignCreateController" action="{!init}" >
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
    <apex:stylesheet value="{!URLFOR($Resource.jquerysuggestcss)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquerysuggestjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
    <apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
    <script type="text/javascript">
        // function skipJS() {
        //     skipPage();
        // }
        // function ReturnWindowJs(){
        //     returnPage();
        // }
        function displayDecisionThemeJS(){
            if(document.getElementById('j_id0:allForm:allBlock:Meeting_Approved_No').value != ''){
                var MeetingApprovedName = document.getElementById('j_id0:allForm:allBlock:Meeting_Approved_No').value;
                displayDecisionTheme(MeetingApprovedName);
            }
        }
        function changeCheckbox(){
            debugger
            var as = j$(escapeVfId("j_id0:allForm:allBlock:isAdjudication")).value();
            if(as==""){
                changeCheckboxs('0');
            }else{
                changeCheckboxs('1');
            }
        }
    </script>
    <apex:form id="allForm">
        <apex:actionFunction name="returnPage" action="{!returnPage}" rerender="allForm,allPanel,allBlock,records">
        </apex:actionFunction>
        <apex:actionFunction name="skipPage" action="{!skipPage}" rerender="allForm,allPanel,allBlock,records">
        </apex:actionFunction>
        <apex:actionFunction name="displayDecisionTheme" action="{!displayDecisionTheme}" rerender="allForm,allPanel,allBlock,records">
            <apex:param name="firstParam" assignTo="{!MeetingApprovedName}" value="" /> 
        </apex:actionFunction>
        <apex:actionFunction name="changeCheckboxs" action="{!changeCheckboxs}" rerender="allForm,allPanel,allBlock,records">
            <apex:param name="firstParam" assignTo="{!flag}" value="" /> 
        </apex:actionFunction>
        <apex:outputPanel id="allPanel">
            <apex:pageBlock id="allBlock">
                <input type="hidden" id="hasError" value="{!hasError}"/>
                <apex:outputPanel id="message">
                    <apex:pageMessages />
                </apex:outputPanel>
                <table id="linetable" class="linetable" border="0" style="border-collapse: collapse;width:1000px;table-layout:fixed;">
                    <colgroup>
                        <col width="100px"/>
                        <col width="300px"/>
                        <col width="350px"/>
                        <col width="300px"/>
                    </colgroup>
                    <!-- <apex:repeat value="{!AdjudicationDataList}" var="AdInfo" id="records"> -->
                    <tr>
                        <td align="left" colspan="4">
                            <apex:outputLabel value="> 决裁信息" style="font-size:22px;font-weight:bold;"/>
                        </td>
                    </tr>
                    <tr><td>&nbsp;</td></tr>
                    <tr>
                        <td style="text-align: center;">&nbsp;</td>
                        <td style="text-align: left;">
                            <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="是否需要申请决裁"/>
                            <apex:inputField id="isAdjudication" value="{!AdjudicationDataobj.cam.IF_Approved__c}"  onchange="changeCheckbox();"/>
                        </td>
                        <td style="text-align: left;">
                            <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="会议决裁编码"/>
                            <apex:inputField id="Meeting_Approved_No" value="{!AdjudicationDataobj.cam.Meeting_Approved_No__c}" onchange="displayDecisionThemeJS();"/>
                        </td>
                        <td style="text-align: left;">
                            <apex:outputLabel style="font-weight: bold; padding-right: 8px;" value="会议决裁主题:"/>
                            <apex:outputText id="DecisionTheme" value="{!CampaignTheme}"/>
                        </td>
                    </tr>
                    <tr><td>&nbsp;</td></tr>
                    <tr>
                        <td align="center" colspan="3">
                            <apex:commandButton immediate="true" action="{!skipPage}" value="确认" style="width:50px;margin-right: 10px;"/>
                            <apex:commandButton immediate="true" action="{!returnPage}" value="取消" style="width:50px"/>
                        </td>
                    </tr>
                    <!-- </apex:repeat> -->
                </table>
            </apex:pageBlock>
        </apex:outputPanel>
    </apex:form>
</apex:page>