<%@ page import="com.edeal.frontline.helper.MultifunctionHelper"%> <%@ page import="com.edeal.frontline.helper.ContextHelper"%> <%@ page session="true" import="com.edeal.frontline.*"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.custom.*" %> <%@ page import="com.edeal.frontline.helper.custom.DocumentHelper" %> <%@ 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 id; try { id = Person.getID(); } catch (FieldNotInitializedException e) { id = null; } String entID; try { entID = Person.getPerEntID(); } catch (FieldNotInitializedException e) { entID = null; } String corrID; try { corrID = dico.getRefIdByCode("IntType_", "COR"); } catch (FieldNotInitializedException e) { corrID = ""; } String deleteUrl = ""; // l'id de la fonction "guest" String guestFctID; try { guestFctID = dico.getRefIdByCode("PerFctID", "GST"); } catch (FieldNotInitializedException e) { guestFctID = ""; } // on récupère la fonction du contact String perFctID; try { perFctID = Person.getPerFctID(); } catch (FieldNotInitializedException e) { perFctID = null; } if (ContextHelper.hasMultifunction(context)) { if (ContextHelper.isB2C(context)) { deleteUrl = "/delete_function_b2c.fl"; } else { deleteUrl = "/delete_function.fl"; } } else { if (ContextHelper.isB2C(context)) { deleteUrl = "/delete_person_b2c.fl"; } else { deleteUrl = "/delete_person.fl"; } } String perFctParentID = null; if (ContextHelper.hasMultifunction(context)) { try { perFctParentID = Person.getPerFctParentID(); } catch (FieldNotInitializedException e){ } } Boolean isArchived = false; try { isArchived = Person.isPerFctIsActive(); } catch (FieldNotInitializedException e) { } MultifunctionHelper mltFunHlp = new MultifunctionHelper(Person); %>
<%-- <% if (ContextHelper.hasMultifunction(context)) { if (isArchived) { %> "/>"> <fl:getMessage code=" title="">   <fl:getMessage code=" title="">   <%-- "/>"> <fl:getMessage code=" title="">        <% } else { %> "/>"> <fl:getMessage code=" title="">                         <% } } %> --%> <% if (DocumentHelper.hasDocumentWordML(session, context, "Person")) { %> " href="javascript:doWord('','Person','Word');"> <fl:getMessage code=">   " href="javascript:doWord('','Person', 'PDF');"> <fl:getMessage code=">   <% } %> " href="javascript:sendMailWithDocuments('<%= id %>', 'Person', null, 'PerMail')"> <fl:getMessage code=">
<% if (isArchived) { %> <% if( !guestFctID.equalsIgnoreCase(perFctID)) { %>
"/>">

+

<%} if(guestFctID.equalsIgnoreCase(perFctID)) { %> <%} %>
<fl:getMessage code=" title="">

"/>">

<% boolean salesInvestIsActive = SalesInvestBean.isSalesInvestActive(context); if (salesInvestIsActive) { %> <% } %> <% } %> <%@include file="/marketing/formresponse/person_read_action.jsp" %>