<%@page import="com.edeal.frontline.helper.custom.InteractionHelper"%> <%@page import="com.edeal.frontline.Utils"%> <%@page session="true"%><%@ page import="com.edeal.frontline.navigation.FlRequest" %><%@ page import="com.edeal.frontline.FlContext" %><%@ page import="com.edeal.frontline.DataDictionary" %><%@ page import="com.edeal.frontline.FieldNotInitializedException" %><%@ page import="com.edeal.frontline.FrontlineException" %><%@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 = Interaction.getID(); boolean isDone = false; try { isDone = "DONE".equals(dico.getRefCode("IntStiID", Interaction.getIntStiID())); } catch (FieldNotInitializedException fnie) { } catch (FrontlineException fe) { } String intAtvID = null; try { intAtvID = Interaction.getIntAtvID(); } catch (FieldNotInitializedException e) { } String almID = (String)flRequest.getAttribute("AlmID"); boolean existsAlert = almID != null; String inboundMailIntAtvID = null; try { inboundMailIntAtvID = dico.getRefIdByCode("IntAtvID", "INEMAIL"); } catch (FrontlineException e) { } String outboundMailIntAtvID = null; try { outboundMailIntAtvID = dico.getRefIdByCode("IntAtvID", "OUTEMAIL"); } catch (FrontlineException e) { } InteractionHelper interactionHelper = new InteractionHelper(Interaction); String corrID = null; try { corrID = dico.getRefIdByCode("IntType_", "COR"); } catch (FrontlineException e) { corrID = ""; } String todoID = null; try { todoID = dico.getRefIdByCode("IntType_", "ACT"); } catch (FrontlineException e) { todoID = ""; } // Détecter le type de l'intéraction String typeIntID = null; try { typeIntID = (String)Interaction.getCustomProperty("IntType_"); } catch (FieldNotInitializedException e) { typeIntID = ""; } // tiers concerne String tiersConc = null; try { tiersConc = (String)Interaction.getCustomProperty("IntTiersConc_"); } catch (FieldNotInitializedException e) { tiersConc = ""; } String intCatID = null; try { intCatID = (String)Interaction.getIntCatID(); } catch (FieldNotInitializedException e) { intCatID = ""; } String intCatEnvoiMail = null; try { intCatEnvoiMail = dico.getRefIdByCode("IntCatID", "OUE"); } catch (FrontlineException e) { intCatEnvoiMail = ""; } boolean isCorrespondance = typeIntID.equalsIgnoreCase(corrID); boolean isCanalEnvoiMail = (intCatEnvoiMail!=null) && (intCatID!=null) && (intCatEnvoiMail.equalsIgnoreCase(intCatID)); %>
Connexion I-Reflet...
<% if (!isDone) { %> <%} %> <%-- --%> <% if (typeIntID.equalsIgnoreCase(corrID)) { %> <%} else if(typeIntID.equalsIgnoreCase(todoID)) {%> <%} %> <% if (!existsAlert) { %> <% } else { %> <% } %> <% if (!isDone && Interaction.hasAbsentDisplay()) { %> <% } %> <% if (Interaction.hasPrintDisplay()) { %> <% } %> <% /* 0041739: Relance de correspondance http://u-project2.umanis.com/view.php?id=41739 */ if(id!=null && isCorrespondance && isDone && isCanalEnvoiMail){ %> <% } %>