% /****************************************************************************** * Copyright (c) 2000-2013 E-DEAL * * E-DEAL S.A. * 41, rue Périer * 92120 Montrouge * France * * T: +33 (0)1 73 03 29 80 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. ******************************************************************************/ %> <%@ page session="true" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.EnterpriseBean" %> <%@ page import="java.util.Date" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.FrontlineException" %> <%@ page import="com.edeal.frontline.LocationBean" %> <%@ page import="java.util.Vector" %> <%@ page import="com.edeal.frontline.PersonEventBean" %> <%@ page import="com.edeal.frontline.FlLocale" %> <%@ page import="com.edeal.frontline.SalesInvestBean" %> <%@ page import="java.text.DateFormat" %> <%@ page import="org.apache.commons.lang.StringUtils" %> <%@ page import="com.edeal.frontline.initializers.PersonReadInitializer" %> <%@ page import="com.edeal.frontline.helper.ContextHelper" %> <%@ page import="com.edeal.frontline.helper.MultifunctionHelper" %> <%@ page import="java.util.List" %> <%@ 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 salesModel = context.getContextParameter("SalesModel"); String id = null; try { id = Person.getID(); } catch (FieldNotInitializedException e) { } String perFctParentID = null; try { perFctParentID = Person.getPerFctParentID(); } catch (FieldNotInitializedException e) { } boolean hasEnterprise = false; if (!"B2C".equalsIgnoreCase(salesModel)) { try { EnterpriseBean enterprise = Person.getPerEnterprise(); hasEnterprise = true; pageContext.setAttribute("Enterprise", enterprise); } catch (FieldNotInitializedException e) { } } String oppType = null; try{ oppType = dico.getRefIdByCode("OppStoID", "ORD"); }catch(FrontlineException e){ oppType = ""; } /*Pour savoir si le groupe de fonctions appartient à une ASSoc*/ String typeFct = null; boolean affStrucAss = false; try{ typeFct = (String)Person.getCustomProperty("PerGrpFct_"); }catch(FieldNotInitializedException e){ typeFct = ""; } if(typeFct.equals(dico.getRefIdByCode("PerGrpFct_", "ASS"))){ affStrucAss = true; } String SfwID = flRequest.getRequestParameterOrAttribute("SfwID"); if (SfwID == null) { SfwID = ""; } StringBuffer fullName = new StringBuffer(); if (id != null) { String val; try { val = Person.getPerCivID(); fullName.append(dico.getRefDisp(session, "PerCivID", val) + " "); } catch (FieldNotInitializedException e) { } try { val = Person.getPerFstName(); fullName.append(val + " "); } catch (FieldNotInitializedException e) { } try { val = Person.getPerName(); fullName.append(val + " "); } catch (FieldNotInitializedException e) { } } String fullNameFormatted = Utils.formatToJavascript(fullName.toString()).trim(); String perFstName = null; try { perFstName = Person.getPerFstName(); } catch (FieldNotInitializedException e) { } String perName = null; try { perName = Person.getPerName(); } catch (FieldNotInitializedException e) { } String nameKey = ""; nameKey = perFstName != null ? perFstName + "+" + perName : perName; List individualFieldsList = MultifunctionHelper.getFieldsForIndividual(context); %> " objectTitle="<%= Utils.getMessage(session, \"F002E\", false, true, \"Personne\") %>" ou="/read_person_consolidated.fl" showFooter="false"> <%= fullName.toString() %> <%@include file="/sales/person/socialNetWorkLinkList.jsp" %> " onselect="refreshFcts();"> <% if (hasEnterprise) { %> "/> <% } %> , <%-- A afficher seulement si le groupe de fonctions est "ASSOCIATION" --%> <% if (affStrucAss){ %> " nbPix="32"> <%} else { %> <%}%> <% if (ContextHelper.hasMultifunction(context)) { %> <% } %> " onselect="refreshCorrs();"> "> " onselect="refreshContrs();"> "/> " onselect="refreshOpps();"> "/> " onselect="refreshReservs();refreshSols();"> " /> " onselect="refreshCards();refreshChqs();refreshTrans();"> "/> "/> "/> " onselect="refreshSolicitations();"> "/>