<% /****************************************************************************** * Copyright (c) 2000-2004 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" import="com.edeal.frontline.*,java.util.*"%> <%@ page import="java.text.SimpleDateFormat" %> <%@ page import="com.edeal.frontline.FlLocale" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="java.util.TimeZone" %> <%@ page import="java.util.GregorianCalendar" %> <%@ page import="com.edeal.frontline.InteractionBean" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.ActorBean" %> <%@ page import="com.edeal.frontline.CorrespondentBean" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@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 fromDate = flRequest.getRequestParameterOrAttribute("fromDate"); Date baseDate = new Date(); if (fromDate != null) { baseDate = Utils.formatFromWeb(fromDate); Interaction.setIntDate(baseDate); } try { baseDate = Interaction.getIntDate(); }catch (FieldNotInitializedException e){ Interaction.setIntDate(new Date()); } String id = null; try { id = Interaction.getIntID(); }catch (FieldNotInitializedException e){} String actorID = (String)session.getAttribute("actorID"); try { Vector vectActor = Interaction.getIntActID(); }catch (FieldNotInitializedException e){ Vector vectActor = new Vector(); vectActor.addElement(actorID); Interaction.setIntActID(vectActor); } String perCorID = flRequest.getRequestParameterOrAttribute("perID"); Vector vectCorres = new Vector(); try { vectCorres = Interaction.getIntCorID(); }catch (FieldNotInitializedException e){} if (perCorID!=null && !"".equals(perCorID)) { String[] keys = {"CorPerID"}; String[] values = {perCorID}; String corID = CorrespondentBean.getCorrespondentIDBy(context, keys, values); if (!vectCorres.contains(corID)) { vectCorres.addElement(corID); } } String corIDForInput=Utils.implodeList(vectCorres, "|"); Date begTime = new Date(); try { begTime = Interaction.getIntTimeBeg(); } catch (FieldNotInitializedException e){} Date endTime = new Date(); try { endTime = Interaction.getIntTimeEnd(); } catch (FieldNotInitializedException e){} FlLocale userLocale = (FlLocale.getInstance(session)); String dateFormat = "dd/MM/yyyy"; try { dateFormat = userLocale.getDateFormat().toPattern(); } catch (Exception e) { dateFormat = "dd/MM/yyyy"; } %> <fl:getMessage code="L309D" alt="Agenda"/> <% if (id != null) { %> <% } %> ">
"/>
<% if (id != null) { %> <% } %>

" maxlength="10" size="9" class="input date chpsTextObligatoire"> - +
<% //decouper le begin time pour les afficher begTime int hourBeg = begTime.getHours(); int minBeg = begTime.getMinutes(); String pMinBeg = ""; if (minBeg < 15) pMinBeg = "00"; else if (minBeg < 30) pMinBeg = "15"; else if (minBeg < 45) pMinBeg = "30"; else pMinBeg = "45"; %> - <% //decouper le begin time pour les afficher begTime int hourEnd = endTime.getHours(); int minEnd = endTime.getMinutes(); String pMinEnd = ""; if (minEnd < 15) pMinEnd = "00"; else if (minEnd < 30) pMinEnd = "15"; else if (minEnd < 45) pMinEnd = "30"; else pMinEnd = "45"; %>
<% int nbLigne = 2; String nbMaxLigne = (String) session.getAttribute("ActNbLigneEditMax"); String nbMaxL = "2"; if (nbMaxLigne != null) { Integer nbMax = new Integer(nbMaxLigne); nbLigne = nbMax.intValue(); nbMaxL = new Integer(nbLigne).toString(); } %>
<%-- <% Vector vectActor = new Vector(); try { vectActor = Interaction.getIntActID(); }catch (FieldNotInitializedException e){} String[] fieldAct = {"ActName","ActFstName","ActMobile","ActPhone","ActMail"}; String[][] queryAct = {{"ActID in ("+Utils.implodeList(vectActor,",","'")+")"}}; Vector vectAct = ActorBean.listSummary(session,fieldAct,queryAct); if (vectAct != null && vectAct.size() > 0) { %>
<% for (int k = 0; k < vectAct.size(); k++) { Hashtable row = (Hashtable) vectAct.elementAt(k); String fstName = (String) row.get("ActFstName"); String name = (String) row.get("ActName"); String mobile = (String) row.get("ActMobile"); String phone = (String) row.get("ActPhone"); String mail = (String) row.get("ActMail"); %> <% } %>

 

> <%= (fstName != null)? Utils.formatToWeb(fstName,false) +" " : "" %><%= Utils.formatToWeb(name,false) +" " %>  ()  <%= (phone == null) ? "" : "
    "+ Utils.getMessage(session, "L70BD", "T.") + " " + Utils.formatPhoneToMobile(phone,session)%> <%= (mobile == null) ? "" : "
    "+ Utils.getMessage(session, "L70BE", "M.") + " " + Utils.formatPhoneToMobile(mobile,session)%> <%= (mail == null) ? "" : "
    "+ Utils.getMessage(session, "LFFFF", "E.") + " " + Utils.formatToWeb(mail,false) + ""%>
<% } %> <% Vector vectCorre = new Vector(); try { vectCorre = Interaction.getIntCorID(); }catch (FieldNotInitializedException e){} String[] fieldCor = {"CorPerID","CorPerID:PerName","CorPerID:PerFstName","CorPerID:PerMobile","CorPerID:PerMail","CorPerID:PerEntID:EntCorpName","CorPerID:PerEntID"}; String[][] queryCor = {{"CorID in ("+Utils.implodeList(vectCorre,",","'")+")"}}; Vector vectCor = CorrespondentBean.listSummary(session,fieldCor,queryCor); if (vectCor != null && vectCor.size() > 0) { %>
<% for (int k = 0; k < vectCor.size(); k++) { Hashtable row = (Hashtable) vectCor.elementAt(k); String perID = (String) row.get("CorPerID"); String fstName = (String) row.get("CorPerID:PerFstName"); String name = (String) row.get("CorPerID:PerName"); String phone = (String) row.get("CorPerID:PerPhone"); String mobile = (String) row.get("CorPerID:PerMobile"); String mail = (String) row.get("CorPerID:PerMail"); String raison = (String) row.get("CorPerID:PerEntID:EntCorpName"); String entID = (String) row.get("CorPerID:PerEntID"); if (perID != null) { %> <% }//if perid }//for %>

 

> <%= (fstName != null)? Utils.formatToWeb(fstName,false) +" " : "" %><%= Utils.formatToWeb(name,false)%> <% if (entID != null) { %>  (<%= Utils.formatToWeb(raison,false)%>) <% } %> <% if (phone != null) {%>
     <%= Utils.formatPhoneToMobile(phone,session)%> <% } %> <% if (mobile != null) {%>
     <%= Utils.formatPhoneToMobile(mobile,session)%> <% } %> <% if (mail != null) {%>
     <%= Utils.formatToWeb(mail,false)%> <% } %>
<% } //if vectCor %> --%>