<%@page import="com.edeal.frontline.FrontlineException"%> <% /****************************************************************************** * Copyright (c) 2000-2010 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 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.ObjectsBean" %> <%@ page import="com.edeal.frontline.ObjectsBean" %> <%@ page import="com.edeal.frontline.FieldBean" %> <%@ page import="com.edeal.frontline.DocumentBean" %> <%@ page import="java.util.Vector" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.ActorBean" %> <%@ page import="com.edeal.frontline.SalesInvestBean" %> <%@ page import="com.edeal.frontline.controller.actions.SelectAction" %> <%@ page import="com.edeal.frontline.controller.actions.ListImportDocumentAction" %> <%@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 pPopType = flRequest.getRequestParameterOrAttribute("PopType"); String salesModel = context.getContextParameter("SalesModel"); String id = flRequest.getRequestParameterOrAttribute("id"); String actorID = (String) session.getAttribute("actorID"); String actMail = null; Vector actRoles = new Vector(); String[] fieldsA = {"ActID", "ActMail", "ActRoles"}; String[][] queryA = {{"ActID = " + Utils.formatToSQL(context, actorID)}}; Vector actV = ActorBean.listSummary(context, fieldsA, queryA); if (actV.size() > 0) { Hashtable actH = (Hashtable)actV.elementAt(0); actMail = (String)actH.get("ActMail"); actRoles = (Vector) actH.get("ActRoles"); } String type = flRequest.getRequestParameterOrAttribute("PvtTypeSelect"); String montant = flRequest.getRequestParameterOrAttribute("PvtMontant"); boolean popIsPer = Population.isPopIsPer(); boolean popIsEnt = Population.isPopIsEnt(); Vector addressRulesDisplay = null, addressRulesObject = null;; try { addressRulesDisplay = dico.getRefList("Aru", "Te1"); addressRulesObject = dico.getRefList("Aru", "Te3"); } catch(Exception fe) { } String adminRoleId = null; String adminFctRoleId = null; try{ adminRoleId = dico.getRefIdByCode("ActRoles", "ADMIN"); }catch(FrontlineException e){ } try{ adminFctRoleId = dico.getRefIdByCode("ActRoles", "ADMFCT"); }catch(FrontlineException e){ } boolean massBlockDisp = false; if(actRoles.contains(adminRoleId) || actRoles.contains(adminFctRoleId)){ massBlockDisp = true; } %> " ou="/population_actions.fl"> <% if (popIsPer) { %> <% } %> <% ObjectsBean obj = dico.getTable("sql", "Population"); String textRefID = dico.getRefIdByCode("DocType", "TEXTE"); String objID = obj.getID(); String[] fields = {"DocID", "DocTitle"}; String[][] query = {{"DocObjID = " + Utils.formatToSQL(context, objID), "DocType = " + Utils.formatToSQL(context, textRefID)}}; String[] orderBy = {"DocTitle"}; //Vector docList = DocumentBean.listSummary(session, fields, query, orderBy); Vector docList = (Vector) request.getAttribute(ListImportDocumentAction.ATT_DOCS); %> <%if(popIsPer || popIsEnt) { %> <% } boolean isSalesInvestActive = SalesInvestBean.isSalesInvestActive(context); if (isSalesInvestActive) { %> <% } if(massBlockDisp){ %> <%} %>
  Sélectionner  Vider le champ
<fl:getMessage code=" title="" style="vertical-align: middle">
<% if (addressRulesObject != null && addressRulesObject.size() > 0) { %> <% } if (docList != null && !docList.isEmpty()) { %> <% } %>
"> <fl:getMessage code=" title="" style="vertical-align: middle;">
<% //E-Mailing Vector listToDisp = new Vector(); Vector listRefTe2 = new Vector(); Vector refdisplayTe2 = new Vector(); Vector refdisplayTe1 = new Vector(); String code = null; String fldSql = null; Vector refvalues = dico.getRefCodeList("Fem", "Te2"); for (int i = 0 ; i < refvalues.size() ; i++) { code = String.valueOf(i); String refid=(String)((Vector)refvalues.get(i)).firstElement(); refdisplayTe2.addElement((String) dico.getRefDisp(session, "Fem", "Te2",refid)); refdisplayTe1.addElement((String) dico.getRefDisp(session, "Fem", "Te1", refid)); Vector s1 = Utils.explodeList(refdisplayTe2.get(i).toString(), ":"); String chaine1 = s1.get(0).toString(); if ("PpePerID".equals(chaine1)&& Population.isPopIsPer()) { listToDisp.addElement((String)refdisplayTe1.get(i)); listRefTe2.addElement((String)refdisplayTe2.get(i)); } else if ("PpeJouID".equals(chaine1)&& Population.isPopIsJou()) { listToDisp.addElement((String)refdisplayTe1.get(i)); listRefTe2.addElement((String)refdisplayTe2.get(i)); } else if ("PpeSilID".equals(chaine1)&& Population.isPopIsSil()) { listToDisp.addElement((String)refdisplayTe1.get(i)); listRefTe2.addElement((String)refdisplayTe2.get(i)); } else if ("PpeEntID".equals(chaine1)&& Population.isPopIsEnt()) { listToDisp.addElement((String)refdisplayTe1.get(i)); listRefTe2.addElement((String)refdisplayTe2.get(i)); } else if("PpeFob1".equals(chaine1)) { fldSql = s1.get(1).toString(); if (fldSql != null) { String popObjID = ""; String fldobjid = ""; FieldBean fldBean = dico.getFieldByName(fldSql); try { popObjID = Population.getPopObj1(); } catch (FieldNotInitializedException ex) { } try { fldobjid = fldBean.getFldObjID(); } catch (FieldNotInitializedException ex) { } if (popObjID.equals(fldobjid)) { listToDisp.addElement((String)refdisplayTe1.get(i)); listRefTe2.addElement((String)refdisplayTe2.get(i)); } } } else if("PpeFob2".equals(chaine1)) { fldSql =s1.get(1).toString(); if (fldSql != null) { String popObjID=""; String fldobjid=""; FieldBean fldBean = dico.getFieldByName(fldSql); try { popObjID=Population.getPopObj2(); } catch (FieldNotInitializedException ex) {} try { fldobjid=fldBean.getFldObjID(); } catch (FieldNotInitializedException ex) {} if (popObjID.equals(fldobjid)) { listToDisp.addElement((String)refdisplayTe1.get(i)); listRefTe2.addElement((String)refdisplayTe2.get(i)); } } } else if("PpeFob3".equals(chaine1)) { fldSql = s1.get(1).toString(); if (fldSql != null) { String popObjID=""; String fldobjid=""; FieldBean fldBean = dico.getFieldByName(fldSql); try { popObjID=Population.getPopObj3(); } catch (FieldNotInitializedException ex) {} try { fldobjid=fldBean.getFldObjID(); } catch (FieldNotInitializedException ex) {} if (popObjID.equals(fldobjid)) { listToDisp.addElement((String)refdisplayTe1.get(i)); listRefTe2.addElement((String)refdisplayTe2.get(i)); } } } else if("PpeFob4".equals(chaine1)) { fldSql =s1.get(1).toString(); if (fldSql != null) { String popObjID=""; String fldobjid=""; FieldBean fldBean = dico.getFieldByName(fldSql); try { popObjID=Population.getPopObj4(); } catch (FieldNotInitializedException ex) {} try { fldobjid=fldBean.getFldObjID(); } catch (FieldNotInitializedException ex) {} if (popObjID.equals(fldobjid)) { listToDisp.addElement((String)refdisplayTe1.get(i)); listRefTe2.addElement((String)refdisplayTe2.get(i)); } } } else if("PpeFob5".equals(chaine1)) { fldSql =s1.get(1).toString(); if (fldSql != null) { String popObjID=""; String fldobjid=""; FieldBean fldBean = dico.getFieldByName(fldSql); try { popObjID=Population.getPopObj5(); } catch (FieldNotInitializedException ex) {} try { fldobjid=fldBean.getFldObjID(); } catch (FieldNotInitializedException ex) {} if (popObjID.equals(fldobjid)) { listToDisp.addElement((String)refdisplayTe1.get(i)); listRefTe2.addElement((String)refdisplayTe2.get(i)); } } } } if (listToDisp != null&& !listToDisp.isEmpty()) { %> <% } %> <% if (actMail == null) { %> <% } %>
  Sélectionner  Vider le champ
<fl:getMessage code=" title="" style="vertical-align: middle">
<% if (!"B2C".equalsIgnoreCase(salesModel)) { %> <% } else { %> <% } %>
"> <% int nbline = 0; if (popIsPer) { nbline++; %> <% } %> <% if (!"B2C".equals(salesModel)&(popIsEnt)) { nbline++; %> <% } %>
<fl:getMessage code=" title="" style="vertical-align: middle;">
 
<fl:getMessage code=" title="" style="vertical-align: middle">
    <fl:getMessage code=" title="" style="vertical-align: middle;">