%@ page language="java" contentType="text/plain;charset=UTF-8"%> <%@page session="true" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="java.util.Vector" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.Utils" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); String typ = (String)flRequest.getAttribute("typ"); String salesModel = context.getContextParameter("SalesModel"); Vector results = (Vector)flRequest.getAttribute("results"); String imageStr = ""; if (results == null) { results = new Vector(); } int size = results.size(); %> var toAdd = ""; <% if (size == 0) { %> toAdd = "
"; <% } else if ("per".equals(typ)) { %> toAdd = '\"><%= Utils.formatToJavascript(Utils.formatToWeb(name.toString(), false)) %> | '; <% if (!"B2C".equals(salesModel)) { %> toAdd += '\"><%= Utils.formatToJavascript(Utils.formatToWeb(row.get("PerEntID:EntCorpName"), false)) %> | '; <% } %> toAdd += '\"><%= "".equals(mailAddr) ? "" : imageStr %> | '; toAdd += '\"><%= "".equals(mailAddr) ? "" : imageStr %> | '; toAdd += '\"><%= "".equals(mailAddr) ? "" : imageStr %> | '; toAdd += '\"><%= "".equals(stdNumber) ? "" : stdNumber %> | '; toAdd += '\"><%= "".equals(directNumber) ? "" : directNumber %> | '; toAdd += '\"><%= "".equals(mobileNumber) ? "" : mobileNumber %> | '; toAdd += '\"><%= "".equals(mailAddr) ? "" : mailAddr %> | '; toAdd += '
\"><%= Utils.formatToJavascript(Utils.formatToWeb(name.toString(), false)) %> | '; toAdd += '\"><%= "".equals(mailAddr) ? "" : imageStr %> | '; toAdd += '\"><%= "".equals(mailAddr) ? "" : imageStr %> | '; toAdd += '\"><%= "".equals(mailAddr) ? "" : imageStr %> | '; toAdd += '\"><%= "".equals(stdNumber) ? "" : stdNumber %> | '; toAdd += '\"><%= "".equals(directNumber) ? "" : directNumber %> | '; toAdd += '\"><%= "".equals(mobileNumber) ? "" : mobileNumber %> | '; toAdd += '" %>\"><%= "".equals(mailAddr) ? "" : mailAddr %> | '; toAdd += '
\"><%= Utils.formatToJavascript(name.toString()) %> | '; toAdd += '\"><%= Utils.formatToJavascript((String) row.get("ActSitID:SitName")) %> | '; toAdd += '\"><%= "".equals(mailAddr) ? "" : imageStr %> | '; toAdd += '\"><%= "".equals(mailAddr) ? "" : imageStr %> | '; toAdd += '\"><%= "".equals(mailAddr) ? "" : imageStr %> | '; toAdd += '\"><%= "".equals(stdNumber) ? "" : stdNumber %> | '; toAdd += '\"><%= "".equals(directNumber) ? "" : directNumber %> | '; toAdd += '\"><%= "".equals(mobileNumber) ? "" : mobileNumber %> | '; toAdd += '" %>\"><%= "".equals(mailAddr) ? "" : mailAddr %> | '; toAdd += '