<%@page import="com.edeal.frontline.FrontlineException"%> <%@page import="com.edeal.frontline.DataDictionary"%> <%@page import="com.edeal.frontline.FlContext"%> <% /****************************************************************************** * Copyright (c) 2000-2008 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * 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 session="true"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@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 = null; try { id = Population.getPopID(); } catch (FieldNotInitializedException fnie) { } int popType = 0; try { popType = Population.getPopType(); } catch (FieldNotInitializedException ex) { } boolean isEditType = (Boolean)flRequest.getAttribute("isEditType"); boolean hasFob1, hasFob2, hasFob3, hasFob4, hasFob5; try { hasFob1 = Population.getPopObj1() != null; } catch (FieldNotInitializedException ex) { hasFob1 = false; } try { hasFob2 = Population.getPopObj2() != null; } catch (FieldNotInitializedException ex) { hasFob2 = false; } try { hasFob3 = Population.getPopObj3() != null; } catch (FieldNotInitializedException ex) { hasFob3 = false; } try { hasFob4 = Population.getPopObj4() != null; } catch (FieldNotInitializedException ex) { hasFob4 = false; } try { hasFob5 = Population.getPopObj5() != null; } catch (FieldNotInitializedException ex) { hasFob5 = false; } // Query string. String queryString = flRequest.getRequest().getQueryString(); if (Utils.isEmpty(queryString)) { //this line is to overcome a Websphere bug/weird behaviour... queryString = (String)flRequest.getRequest().getAttribute("javax.servlet.forward.query_string"); } String manualPopTypeId = null; String emailingPopTypeId = null; String populationGenTypeId = null; try{ manualPopTypeId = dico.getRefIdByCode("PopGenType", "MANUAL"); } catch (FrontlineException e){ } try{ emailingPopTypeId = dico.getRefIdByCode("PopGenType", "MAILTEST"); } catch (FrontlineException e){ } try{ populationGenTypeId = Population.getPopGenType(); } catch (FieldNotInitializedException e){ } %> "> "/> " ou="<%= \"/edit_populationv2.fl\" + (id != null ? \"?id=\" + id : \"\") %>"> <% if (isEditType) { %> <% } %>
">
" class="ligne_separation"/>
">
<% if(populationGenTypeId != null && emailingPopTypeId != null && populationGenTypeId.equals(emailingPopTypeId)){ %> <%} else { %> <%} %>
"> <% if (isEditType) { %> <% } else { %> <% } %>
 
">
" class="ligne_separation"/>
<% if (id != null) { %> " onselect="refreshSynthesis();">
 
<% try { if (Population.isPopIsEnt()) { %> <% } } catch (FieldNotInitializedException fnie) { } try { if (Population.isPopIsPer()) { %> <% } } catch (FieldNotInitializedException fnie) { } try { if (Population.isPopIsSil()) { %> <% } } catch (FieldNotInitializedException fnie) { } try { if (Population.isPopIsSup()) { %> <% } } catch (FieldNotInitializedException fnie) { } try { if (Population.isPopIsJou()) { %> <% } } catch (FieldNotInitializedException fnie) { } if (hasFob1 ) { %> <% } %> <% if (hasFob2) { %> <% } %> <% if (hasFob3) { %> <% } %> <% if (hasFob4) { %> <% } %> <% if (hasFob5) { %> <% } %>
(s) 
(s) 
(s) 
(s) 
(s) 
" onselect="refreshPopulationEntry();">
 
" onselect="refreshAddedPopulationEntry();">
 
" onselect="refreshRemovedPopulationEntry();">
 
<% } %>