%@ 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);
%>
|
|
|
|
|
|
|
|
|
|
" title=" ">
|
|
|
|
|
|
|
|
<% if (isArchived) { %>
|
|
|
|
&initOpp=DEV&initOppPerID=<%= id %>&initOppEntID=<%= (entID == null ? "" : entID) %>">
+
|
|
|
|
|
<% if( !guestFctID.equalsIgnoreCase(perFctID)) { %>
|
|
|
|
|
|
<%} if(guestFctID.equalsIgnoreCase(perFctID)) { %>
|
|
|
|
|
|
<%} %>
|
&IntType_=<%= corrID %>&initIntPerID=<%= id %>">
+
|
|
|
|
|
|
&initSolSolliciteurs_=<%= id %>">
+
|
|
|
|
|
|
&initRs_Contact=<%= id %>">
+
|
|
|
|
|
|
" title=" ">
|
|
|
|
|
|
|
|
<%
boolean salesInvestIsActive = SalesInvestBean.isSalesInvestActive(context);
if (salesInvestIsActive) {
%>
|
|
|
<% }
%>
<% } %>
<%@include file="/marketing/formresponse/person_read_action.jsp" %>