<% /****************************************************************************** * Copyright (c) 2000-2005 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" %> <%@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; String[] fieldsA = {"ActID", "ActMail"}; 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"); } String type = flRequest.getRequestParameterOrAttribute("PvtTypeSelect"); String montant = flRequest.getRequestParameterOrAttribute("PvtMontant"); boolean popIsPer = Population.isPopIsPer(); boolean popIsEnt = Population.isPopIsEnt(); %> " ou="/population_actions.fl"> <% ObjectsBean obj = dico.getTable("sql", "Population"); String objID = obj.getID(); String[] fields = {"DocID", "DocTitle"}; String[][] query = {{"DocObjID = " + Utils.formatToSQL(context, objID)}}; String[] orderBy = {"DocTitle"}; Vector docList = DocumentBean.listSummary(session, fields, query, orderBy); %> <%if(popIsPer || popIsEnt) { %> <% } if (popIsPer) { %> <% } boolean isSalesInvestActive = SalesInvestBean.isSalesInvestActive(context); if (isSalesInvestActive) { %> <% } %>
<% 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); refdisplayTe2.addElement((String) dico.getRefDisp(session, "Fem", "Te2", dico.getRefIdByCode("Fem", "Te2", code))); refdisplayTe1.addElement((String) dico.getRefDisp(session, "Fem", "Te1", dico.getRefIdByCode("Fem", "Te1", code))); 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 { %> <% } %>
"> <%if (popIsPer) { %> <% } %> <% if (!"B2C".equals(salesModel)&(popIsEnt)) { %> <% } %>
rowspan="2"<% } %>> <fl:getMessage code=" title="" style="vertical-align: middle;">
  Sélectionner  Vider le champ
<fl:getMessage code=" title="" style="vertical-align: middle">
 
<fl:getMessage code=" title="" style="vertical-align: middle">
<fl:getMessage code=" title="" style="vertical-align: middle;">