<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>
|