<%@page session="true"%><%@ page import="com.edeal.frontline.navigation.FlRequest" %><%@ page import="com.edeal.frontline.FlLocale" %><%@ page import="java.text.SimpleDateFormat" %><%@ page import="java.util.Date" %><%@ page import="com.edeal.frontline.FlContext" %><%@ page import="com.edeal.frontline.DataDictionary" %><%@ page import="com.edeal.frontline.Utils" %> <%@page import="com.edeal.frontline.helper.ActorBaseHelper"%> <%@page import="org.apache.commons.lang.StringUtils"%> <%@page import="com.edeal.frontline.ActorBean"%> <%@page import="com.edeal.frontline.LicenceManager"%> <%@page import="com.edeal.frontline.services.cti.CTIServiceClient"%> <%@page import="com.edeal.frontline.helper.CTIHelper"%> <%@page import="com.edeal.frontline.services.FlServiceException"%> <%@page import="com.edeal.frontline.SyncModelBean"%><%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% // Remark : this page is not stand-alone. It uses variables declared in // navigation/dashboard/dashboard.jsp : org.apache.commons.logging.Log logger, // FlRequest flRequest, FlContext context, DataDictionary dico and String // actID. // Store the actor's name in the session for future use String strActDisp_info = (String)flRequest.getSession().getAttribute(ActorBaseHelper.ACTOR_SESSION_FULLNAME_KEY); if (strActDisp_info == null || "".equals(strActDisp_info)) { try { strActDisp_info = dico.getTable("sql", "Actor").toString(session, actID); } catch (Throwable ex) { } flRequest.getSession().setAttribute(ActorBaseHelper.ACTOR_SESSION_FULLNAME_KEY, strActDisp_info); } SyncModelBean smb = (SyncModelBean)flRequest.getSession().getAttribute(ActorBaseHelper.ACTOR_SESSION_ACTSYNCMODEL_KEY); if (smb == null) { try { ActorBean actBean = new ActorBean(actID, session); String actSyncModel = actBean.getActSyncModel(); smb = new SyncModelBean(actSyncModel, session); flRequest.getSession().setAttribute(ActorBaseHelper.ACTOR_SESSION_ACTSYNCMODEL_KEY, smb); } catch (Exception e) { } } boolean fSyncEnabled=(smb!=null); boolean fSyncIsGoogle=false; try { fSyncIsGoogle=dico.getRefIdByCode("SymType","GOOGLEAPPS").equals(smb.getSymType()); } catch (Exception e) {} FlLocale locale = FlLocale.getInstance(session); SimpleDateFormat sdf = locale.getSimpleDateFormat("EEEE dd MMMM yyyy"); boolean isSA = "true".equalsIgnoreCase(flRequest.getParameter("standalone")); String actifID = dico.getRefIdByCode("Sta", "Val", "ACTIF"); String indispoID = dico.getRefIdByCode("Sta", "Val", "INDISPO"); String actorStatusID = (String)session.getAttribute("ActStaID"); if (actorStatusID == null) { actorStatusID = actifID; session.setAttribute("ActStaID", actifID); } String actorUrl = indispoID.equals(actorStatusID) ? "ico_pas_dispo.gif" : "ico_dispo.gif"; String actorTitle = (String)dico.getRefDisp(session, "Sta", "Te1", actorStatusID); boolean actHasLic = false; try { // Lic V3 version. actHasLic = context.getLicenceManager().actorHasSoftware(actID, CTIServiceClient.CTI_LIC_CODE, LicenceManager.LicenceType.PermanentLicence, null); } catch (Exception e) { logger.error("LoginAction: cannot perform CTI licence check",e); } //if CTI is activated, the CTI window will pop up. //if not, it is hidden in the main frameset and the ActiveX control should not be loaded. CTIServiceClient cti; try { cti = (CTIServiceClient)context.getServiceManager().getServiceClient(session, "CTI"); } catch (FlServiceException e) { cti = null; } boolean isicomCTI = false; // DGE : vocalcom add-on. boolean vocalcomCTI = false; boolean sibiloCTI = false; boolean isCCACTI = false; boolean genesysCTI = false; boolean algoriaCTI = false; boolean activateCTI = (cti != null); String idService = null; if (activateCTI) { idService = cti.getProviderId(); if ("isicom".equalsIgnoreCase(idService)){ isicomCTI = true; } else if ("vocalcom".equalsIgnoreCase(idService)) { vocalcomCTI = true; } else if ("sibilo".equalsIgnoreCase(idService)) { sibiloCTI = true; } else if ("cca".equalsIgnoreCase(idService)) { isCCACTI = true; } else if ("genesys".equalsIgnoreCase(idService)) { genesysCTI = true; } else if ("algoria".equalsIgnoreCase(idService)) { algoriaCTI = true; } } if (isSA) { %> <% } %>
<%-- Information will be here --%>
<% int table_nbcols=0; %>
<%-- It's a link to open the Google sync opts window --%> <% if (fSyncIsGoogle) { table_nbcols=table_nbcols+1; %> <% } %> <% if (fSyncEnabled) { table_nbcols=table_nbcols+2; %> <% } table_nbcols=table_nbcols+4; %> <%-- Change actor status. --%> <%-- Readiness handling for the Genesys CTI. Set the actor as ready/non ready in Genesys CTI should change the actor status, and vice versa. --%> <% if (activateCTI && cti !=null && "genesys".equalsIgnoreCase(cti.getProviderId()) && "1".equals((String)session.getAttribute(CTIHelper.SESSION_ATTRIBUTE_GENESYSLOGGED))) { table_nbcols=table_nbcols+1; %> <% } %>
Paramètres Google">Synchro Manuelle"> Synchro Nettoyage Contacts">Etat des licences"> <%= Utils.formatToWeb(strActDisp_info, false) %> Logout">en
<%= sdf.format(new Date()) %> 
Spring 2013
<% if (isSA) { %> <% } %>