Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\js\cti\doRequestIdCTI_ajax.jsp
<%@page import="com.edeal.frontline.navigation.FlRequest"%> <%@page import="org.apache.commons.lang.StringUtils"%> <%@page import="java.util.Vector"%> <%@page import="java.util.Hashtable"%> <%@page import="com.edeal.frontline.*"%> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% FlRequest flRequest = new FlRequest(request); String contextPath = (String) session.getAttribute("contextPath"); FlContext context = null; if (contextPath != null) { context = Frontline.getContext(contextPath); } else { context = Frontline.getContext(request.getContextPath()); } String pPhone = Utils.getRequestParameter(context, request, "phone"); if (pPhone == null) { pPhone = ""; } String pRef = Utils.getRequestParameter(context, request, "ref"); if (pRef == null) { pRef = ""; } Boolean actHasCTILic = (Boolean)flRequest.getAttribute("actHasCTILic"); Boolean isDoCTIWindow = (Boolean)flRequest.getAttribute("isDoCTIWindow"); if (actHasCTILic == null) { actHasCTILic = false; } if (isDoCTIWindow == null) { isDoCTIWindow = false; } Vector vectObjs = (Vector) request.getAttribute("vectObjs2"); if (vectObjs == null){ vectObjs = new Vector(); } Boolean isU, isM, isI; isU = (Boolean) request.getAttribute("isUnknown"); isM = (Boolean) request.getAttribute("isMasked"); isI = (Boolean) request.getAttribute("isIdentified"); boolean isMasked = pPhone == null || "".equals(pPhone.trim()); boolean isIdentified = false; boolean isUnknown = true; if (isU!=null) isUnknown = (isU).booleanValue(); if (isM!=null) isMasked = (isM).booleanValue(); if (isI!=null) isIdentified = (isI).booleanValue(); String pCut = flRequest.getRequestParameterOrAttribute("cut"); String entCorpName = ""; String perName = ""; String perFstName = ""; //System.out.println("ok1"); //if (isIdentified) { if (vectObjs != null && vectObjs.size() > 0) { //System.out.println("vect objet non null"); if (vectObjs.size() == 1) { //System.out.println("size == 1"); Hashtable row = (Hashtable)vectObjs.firstElement(); if (row != null) { entCorpName = (String)row.get("EntCorpName"); perName = (String)row.get("Name"); perFstName = (String)row.get("FstName"); if (!isIdentified) perFstName += "?"; } } else { //System.out.println("size > 1"); Hashtable row = (Hashtable)vectObjs.firstElement(); if (row != null) { entCorpName = (String)row.get("EntCorpName"); perName = (String)row.get("Name"); perFstName = (String)row.get("FstName"); if (entCorpName != null && !"".equals(entCorpName.trim())) entCorpName += " ?"; } } } //} if (entCorpName == null) entCorpName = ""; if (perName == null) perName = ""; if (perFstName == null) perFstName = ""; %> var arg0 = '<%= entCorpName %>'; var arg1 = '<%= perName %>'; var arg2 = '<%= perFstName %>'; var arg3 = '<%= pRef %>'; <% if (actHasCTILic) { %> try { <% if (isDoCTIWindow) { %> var winCTI = window.open('', 'CTI'); if (winCTI != null) { winCTI.doSendIdentification(arg0, arg1, arg2, arg3); } <% } else {%> doSendIdentification(arg0, arg1, arg2, arg3); <% } %> } catch (error) { } <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de