<% /****************************************************************************** * 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.DataDictionary" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.CampaignBean" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="java.util.Vector" %> <%@ page import="com.edeal.frontline.ObjectsBean" %> <%@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 = Simulation.getID(); } catch (FieldNotInitializedException fnie) { } boolean simCalculated = false; try { simCalculated = Simulation.isSimCalculated(); } catch (FieldNotInitializedException e) {} String simDailyCoeffs = "1;1;1;1;1;0;0"; String simDailyCoeff1, simDailyCoeff2, simDailyCoeff3, simDailyCoeff4, simDailyCoeff5, simDailyCoeff6, simDailyCoeff7; simDailyCoeff1 = simDailyCoeff2 = simDailyCoeff3 = simDailyCoeff4 = simDailyCoeff5 = simDailyCoeff6 = simDailyCoeff7 = ""; try { simDailyCoeffs = Simulation.getSimDailyCoeffs(); } catch (FieldNotInitializedException e) { } if (simDailyCoeffs!=null) { Vector dailyCoeffs = Utils.explodeList(simDailyCoeffs, ";"); if (dailyCoeffs != null && dailyCoeffs.size() > 0) { simDailyCoeff1 = (String)dailyCoeffs.elementAt(0); simDailyCoeff2 = (String)dailyCoeffs.elementAt(1); simDailyCoeff3 = (String)dailyCoeffs.elementAt(2); simDailyCoeff4 = (String)dailyCoeffs.elementAt(3); simDailyCoeff5 = (String)dailyCoeffs.elementAt(4); simDailyCoeff6 = (String)dailyCoeffs.elementAt(5); simDailyCoeff7 = (String)dailyCoeffs.elementAt(6); } } int simActorType = 1; try { simActorType = Simulation.getSimActorType(); } catch (FieldNotInitializedException e) { } int simEndParameter = 0; // 0 is end date, 1 is max per day try { simEndParameter = Simulation.getSimEndParameter(); } catch (FieldNotInitializedException e) { } int simVolume = 0; try { simVolume = Simulation.getSimVolume(); } catch (FieldNotInitializedException e) { } String err = flRequest.getRequestParameterOrAttribute("doRealizeError"); %> " ou="<%= \"/read_simulation.fl\" + (id != null ? \"?id=\" + id : \"\") %>" listTitle="<%= Utils.getMessage(session, \"L63C7\", false, true, \"Liste des plans d\\'actions\") %>">
<%-- if (simEndParameter == 0) { --%> <% if (simActorType == 1) { %> <% } else if (simActorType == 2) { %> <% } else if (simActorType == 3) { %> <% } else if (simActorType == 4) { %> <% } %>
<% if (simCalculated) { %> <%}else{ %> <%}%>
 
">
<%= simDailyCoeff1 %>
<%= simDailyCoeff2 %>
<%= simDailyCoeff3 %>
<%= simDailyCoeff4 %>
<%= simDailyCoeff5 %>
<%= simDailyCoeff6 %>
<%= simDailyCoeff7 %>
">
&id=">
&id=">