buli
2022-05-09 0953b3b5fcf19c627c6479a6b86648df653c40db
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<apex:page standardController="Campaign" extensions="CampaignRelationshipController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="客户-市场活动关系">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<script>
 
    var openQuoteExcelImportWindow = null;
    var baseUrl = '{!baseUrl}';
    
    var campaignId = '{!campaignId}';
    function openQuoteExcelImport() {
        if ( openQuoteExcelImportWindow == null || openQuoteExcelImportWindow.closed) {
            openQuoteExcelImportWindow = window.open(baseUrl + '/apex/DataLoadAccount?campaignId=' +campaignId, 'xlsdoc', 'width=1800,height=700');
        }
        else {
            openQuoteExcelImportWindow.focus();
        }
    }
 
    function refreshPage(){
            var baseUrlre = j$(escapeVfId("baseUrl")).value();
            window.parent.location.href = baseUrl + '/{!URLENCODE(campaignId)}';
    }
</script>
 
<apex:form id="allForm">
    
    <apex:commandButton onclick="openQuoteExcelImport();return false;" reRender="dummy" value="导入客户" style="width: 70px;right: auto;" oncomplete="unblockUI();"></apex:commandButton>
    
    <apex:outputPanel id="allPanel">
    <input type="hidden" value="{!baseUrl}" id="baseUrl" />
    </apex:outputPanel>
 
    <apex:outputPanel id="Activities">
        
            <table class="formtable" width="100%" border="0" style ="text-align: center;">
                 <colgroup>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="12%"/>
                </colgroup>
                <tr>
                    <th style ="text-align: center" >RVI客户</th>
                </tr>
                <tr>
                    <th style ="text-align: center">客户-市场活动关系名称</th>
                    <th style ="text-align: center">客户</th>
                    <th style ="text-align: center">分野</th>
                    <th style ="text-align: center">客户编码</th>
                    <th style ="text-align: center">客户状态</th>
                </tr>
               
              <apex:repeat id="RVI_CRList" value="{!RVICRList}" var="CR">
 
                <tr>
                    <apex:outputPanel layout="none" rendered="{!IF(CR.RelationshipProductSegment__c == 'RVI', true, false)}">
                        <td style ="text-align: center" > 
                            <apex:outputLink value="/{!CR.Id}" target="LINK_{!CR.Id}">{!CR.name}</apex:outputLink>
                        </td>
                        <td style ="text-align: center" > 
                            <apex:outputLink value="/{!CR.RelationshipAccount__c}" target="LINK_{!CR.RelationshipAccount__c}">{!CR.RelationshipAccount__r.Name}</apex:outputLink>
                        </td>
                        <td style ="text-align: center" > 
                            <apex:outputText id="RVI_ProductSegment" value="{!CR.RelationshipProductSegment__c}" ></apex:outputText>
                        </td>
                        <td style ="text-align: center" > 
                            <apex:outputText id="RVI_ManagementCode" value="{!CR.ManagementCode__c}" ></apex:outputText>
                        </td>
                        <td style ="text-align: center" > 
                            <apex:outputText id="RVI_Status" value="{!IF(OR(CR.RelationshipAccountStatus__c == 'Active',CR.RelationshipAccountStatus__c == ''),'有效','取消')}" ></apex:outputText>
                            
                        </td>
                    </apex:outputPanel>
                </tr>
                 </apex:repeat>
            </table>
       
        <td colspan="9"> <hr/></td>
        
            <table class="formtable" width="100%" border="0" >
                <colgroup>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="12%"/>
                </colgroup>
                <tr>
                    <th style ="text-align: center">NDT客户</th>
                </tr>
                <tr>
                    <th style ="text-align: center">客户-市场活动关系名称</th>
                    <th style ="text-align: center">客户</th>
                    <th style ="text-align: center">分野</th>
                    <th style ="text-align: center">客户编码</th>
                    <th style ="text-align: center">客户状态</th>
                </tr>
                
                <apex:repeat id="NDT_CRList" value="{!NDTCRList}" var="CR">
                    <tr>
                        <apex:outputPanel layout="none" rendered="{!IF(CR.RelationshipProductSegment__c == 'NDT', true, false)}">
                            <td style ="text-align: center"> 
                                <apex:outputLink value="/{!CR.Id}" target="LINK_{!CR.Id}">{!CR.name}</apex:outputLink>
                            </td>
                            <td style ="text-align: center"> 
                                <apex:outputLink value="/{!CR.RelationshipAccount__c}" target="LINK_{!CR.RelationshipAccount__c}">{!CR.RelationshipAccount__r.Name}</apex:outputLink>
                            </td>
                            <td style ="text-align: center"> 
                                <!-- <apex:outputText id="NDT_ProductSegment" value="{!CR.RelationshipProductSegment__c}" ></apex:outputText> -->
                                <c:PDFWbr targetStr="{!CR.RelationshipProductSegment__c}"/>
                            </td>
                            <td style ="text-align: center"> 
                                <apex:outputText id="NDT_ManagementCode" value="{!CR.ManagementCode__c}" ></apex:outputText>
                            </td>
                            <td style ="text-align: center"> 
                                <apex:outputText id="NDT_Status" value="{!IF(OR(CR.RelationshipAccountStatus__c == 'Active',CR.RelationshipAccountStatus__c == ''),'有效','取消')}" ></apex:outputText>
                            </td>
                        </apex:outputPanel>
                    </tr>
                </apex:repeat>
            </table>
        
        <td colspan="9"> <hr/></td>
 
            <table class="formtable" width="100%" border="0" >
                <colgroup>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="12%"/>
                </colgroup>
                <tr>
                    <th style ="text-align: center">ANI客户</th>
                </tr>
                <tr>
                    <th style ="text-align: center">客户-市场活动关系名称</th>
                    <th style ="text-align: center">客户</th>
                    <th style ="text-align: center">分野</th>
                    <th style ="text-align: center">客户编码</th>
                    <th style ="text-align: center">客户状态</th>
                </tr>
                
                <apex:repeat id="ANI_CRList" value="{!ANICRList}" var="CR">
                    <tr>
                        <apex:outputPanel layout="none" rendered="{!IF(CR.RelationshipProductSegment__c == 'ANI', true, false)}">
                            <td style ="text-align: center"> 
                                <apex:outputLink value="/{!CR.Id}" target="LINK_{!CR.Id}">{!CR.name}</apex:outputLink>
                            </td>
                            <td style ="text-align: center"> 
                                <apex:outputLink value="/{!CR.RelationshipAccount__c}" target="LINK_{!CR.RelationshipAccount__c}">{!CR.RelationshipAccount__r.Name}</apex:outputLink>
                            </td>
                            <td style ="text-align: center"> 
                                <apex:outputText id="ANI_ProductSegment" value="{!CR.RelationshipProductSegment__c}" ></apex:outputText>
                            </td>
                            <td style ="text-align: center"> 
                                <apex:outputText id="ANI_ManagementCode" value="{!CR.ManagementCode__c}" ></apex:outputText>
                            </td>
                            <td style ="text-align: center"> 
                                <apex:outputText id="ANI_Status" value="{!IF(OR(CR.RelationshipAccountStatus__c == 'Active',CR.RelationshipAccountStatus__c == ''),'有效','取消')}" ></apex:outputText>
                            </td>
                        </apex:outputPanel>
                    </tr>
                </apex:repeat>
            </table>
        
        <td colspan="9"> <hr/></td>
 
            <table class="formtable" width="100%" border="0" >
                <colgroup>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="11%"/>
                    <col width="12%"/>
                </colgroup>
                <tr>
                    <th style ="text-align: center">IE客户</th>
                </tr>
                <tr>
                    <th style ="text-align: center">客户-市场活动关系名称</th>
                    <th style ="text-align: center">客户</th>
                    <th style ="text-align: center">分野</th>
                    <th style ="text-align: center">客户编码</th>
                    <th style ="text-align: center">客户状态</th>
                </tr>
                
            <apex:repeat id="IE_CRList" value="{!IECRList}" var="CR">    
                <tr>
                    <apex:outputPanel layout="none" rendered="{!IF(CR.RelationshipProductSegment__c == 'IE', true, false)}">
                        <td style ="text-align: center"> 
                            <!-- <apex:outputText id="IE_Name" value="{!CR.name}" ></apex:outputText> -->
                            <apex:outputLink value="/{!CR.Id}" target="LINK_{!CR.Id}">{!CR.name}</apex:outputLink>
                        </td>
                        <td style ="text-align: center"> 
                           <!--  <apex:outputText id="IE_Account" value="{!CR.RelationshipAccount__r.Name}" ></apex:outputText> -->
                            <apex:outputLink value="/{!CR.RelationshipAccount__c}" target="LINK_{!CR.RelationshipAccount__c}">{!CR.RelationshipAccount__r.Name}</apex:outputLink>
                        </td>
                        <td style ="text-align: center"> 
                            <!-- <apex:outputText id="IE_ProductSegment" value="{!CR.RelationshipProductSegment__c}" ></apex:outputText> -->
                            <c:PDFWbr targetStr="{!CR.RelationshipProductSegment__c}"/>
                        </td>
                        <td style ="text-align: center"> 
                            <apex:outputText id="IE_ManagementCode" value="{!CR.ManagementCode__c}" ></apex:outputText>
                        </td>
                        <td style ="text-align: center"> 
                            <apex:outputText id="IE_Status" value="{!IF(OR(CR.RelationshipAccountStatus__c == 'Active',CR.RelationshipAccountStatus__c == ''),'有效','取消')}" ></apex:outputText>
                        </td>
                    </apex:outputPanel>
                </tr>
            </apex:repeat>
            </table>
        
        <td colspan="9"> <hr/></td>
    </apex:outputPanel>
 
</apex:form>
 
 
</apex:page>