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
86
87
88
89
90
91
92
93
94
95
96
97
98
<apex:page id="Page" showHeader="false" sidebar="false" Controller="ProvinceEvaluationController" action="{!init}">
<apex:stylesheet value="{!URLFOR($Resource.PersonalEvaluationCss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PersonalEvaluationJs2)}"/>
<apex:includeScript value="{!URLFOR($Resource.html2canvasJs)}"/>
<script type="text/javascript">
var personalEvaluationMap = null;
var pProvince = '';
 
function getpProvince() {
//    var pProvinceList = jQuery(escapeVfId('Page:Form:province:MultiselectController:multiselectPanel:rightList'))[0].options;
    var pProvinceList = jQuery("input[name*='Page\\:Form\\:province']");
    var i = 0;
    for ( var x = 0; x < pProvinceList.length; x++) {
        if (pProvinceList[x].checked) {
            if (i == 0) {
                pProvince += pProvinceList[x].value;
                i++;
            } else {
                pProvince += "," + pProvinceList[x].value;
            }
        }
    }
}
 
function searchByProvinceJs() {
    var baseUrl = '{!ProvinceUrl}';
    pProvince = '';
    getpProvince();
    if (pProvince != '') {
        baseUrl += '&province=' + encodeURI(pProvince);
    }
    baseUrl = baseUrl.replace("/apex/ProvinceEvaluation&", "/apex/ProvinceEvaluation?")
    alert('baseUrl' + baseUrl);
    document.location.href = baseUrl;
}
</script>
    <apex:form id="Form">
        <apex:outputPanel id="SearchP" layout="none">
            <table style="width:100%;">
                <tr>
                    <td width="40" style="text-align:right;">省:</td><td width="{!IF(ProvinceOptsSize > 0, ProvinceOptsSize * 70, 70)}">
                        <apex:selectCheckboxes id="province" value="{!provinceSelected}">
                            <apex:selectOptions value="{!provinceOpts}"/>
                        </apex:selectCheckboxes>
                    </td>
                    <td>
                        <apex:commandButton value="刷新" onclick="searchByProvinceJs();return false;" reRender="dummy"/>
                    </td>
                    <td width="10"></td>
                </tr>
            </table>
        </apex:outputPanel>
    </apex:form>
    
    <apex:outputPanel id="MessageP">
        <apex:pageMessages />
    </apex:outputPanel>
    <apex:form id="Form2">
    <apex:tabPanel id="MainP" value="{!selectedTab}" tabClass="activeTab" inactiveTabClass="inactiveTab">
        <apex:tab label="{!peSettingsMap[51].Name}" id="tab1" name="{!peSettingsMap[51].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[51] == 'true', true, false)}">
            <div id="in_Tab_container">
                <iframe id="in_Tab" seamless="seamless" src="/apex/ProvinceEvaluationIn{!peSettingsMap[51].Api_Name__c}?tabIdx=51&province={!province}" frameborder="0" allowtransparency="true" width="100%"></iframe>
            </div>
        </apex:tab>
        <apex:tab label="{!peSettingsMap[52].Name}" id="tab2" name="{!peSettingsMap[52].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[52] == 'true', true, false)}">
            <div id="in_Tab_container">
                <iframe id="in_Tab" seamless="seamless" src="/apex/ProvinceEvaluationIn{!peSettingsMap[52].Api_Name__c}?tabIdx=52&province={!province}" frameborder="0" allowtransparency="true" width="100%"></iframe>
            </div>
        </apex:tab>
        <apex:tab label="{!peSettingsMap[53].Name}" id="tab3" name="{!peSettingsMap[53].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[53] == 'true', true, false)}">
            <div id="in_Tab_container">
                <iframe id="in_Tab" seamless="seamless" src="/apex/ProvinceEvaluationIn{!peSettingsMap[53].Api_Name__c}?tabIdx=53&province={!province}" frameborder="0" allowtransparency="true" width="100%"></iframe>
            </div>
        </apex:tab>
    </apex:tabPanel>
    <div class="tabCommentPop" id="tabCommentPop" tab="{!selectedTab}" style="width: 990px;">
        <table>
            <tr>
                <td>指定用户:<font color="red">*</font></td>
                <td><apex:inputField value="{!dummyDr.Reporter__c}" id="userForComment" style="width:90px;"/></td>
            </tr>
        </table>
        <textarea class="limitedtextarea" onKeyDown="limitText(this,200);" onKeyUp="limitText(this,200);"></textarea>
        <br/>
        <input readonly="readonly" type="text" class="countdown" value="200"/><font size="1"> characters left.</font>
        <button class="saveComment" type="button" onclick="saveTabComment(this)">留言</button>
        <iframe id="tabComment" seamless="seamless" src="/apex/PersonalEvaluationCommentList?province={!province}&tab={!selectedTab}" frameborder="0" allowtransparency="true" height="22" width="990"></iframe>
    </div>
    </apex:form>
<script type="text/javascript">
    window.onresize = windowResize;
    windowResize();
    getpProvince();
</script>
</apex:page>