<% /****************************************************************************** * 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.FieldNotInitializedException" %> <%@ page import="java.util.Date" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.CampaignBean" %> <%@ page import="java.util.Vector" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.StageBean" %> <%@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 = Stage.getID(); } catch (FieldNotInitializedException fnie) { } Hashtable campaign = (Hashtable)request.getAttribute("campaign"); if (campaign == null) { campaign = new Hashtable(); } Date dateDeb = (Date)campaign.get("CpgDateBeg"); Date dateFin = (Date)campaign.get("CpgDateEnd"); // Intitulés des indicateurs par defaut String defIndic1, defIndic2, defIndic3, defIndic4, defIndic5; // Unités des indicateurs par defaut String defIndicUnit1, defIndicUnit2, defIndicUnit3, defIndicUnit4, defIndicUnit5; // Version javascript String defIndic1JS, defIndic2JS, defIndic3JS, defIndic4JS, defIndic5JS; if (campaign != null) { defIndic1 = (String)campaign.get("CpgIndicLabel1"); defIndic2 = (String)campaign.get("CpgIndicLabel2"); defIndic3 = (String)campaign.get("CpgIndicLabel3"); defIndic4 = (String)campaign.get("CpgIndicLabel4"); defIndic5 = (String)campaign.get("CpgIndicLabel5"); defIndicUnit1 = (String)campaign.get("CpgIndicUnit1"); defIndicUnit2 = (String)campaign.get("CpgIndicUnit2"); defIndicUnit3 = (String)campaign.get("CpgIndicUnit3"); defIndicUnit4 = (String)campaign.get("CpgIndicUnit4"); defIndicUnit5 = (String)campaign.get("CpgIndicUnit5"); defIndic1JS = Utils.formatToJavascript(defIndic1); defIndic2JS = Utils.formatToJavascript(defIndic2); defIndic3JS = Utils.formatToJavascript(defIndic3); defIndic4JS = Utils.formatToJavascript(defIndic4); defIndic5JS = Utils.formatToJavascript(defIndic5); } else { defIndic1 = defIndic2 = defIndic3 = defIndic4 = defIndic5 = ""; defIndicUnit1 = defIndicUnit2 = defIndicUnit3 = defIndicUnit4 = defIndicUnit5 = ""; defIndic1JS = defIndic2JS = defIndic3JS = defIndic4JS = defIndic5JS = ""; } try { Stage.getStgIndicLabel1(); } catch (FieldNotInitializedException fnie) { Stage.setStgIndicLabel1(defIndic1); } try { Stage.getStgIndicLabel2(); } catch (FieldNotInitializedException fnie) { Stage.setStgIndicLabel2(defIndic2); } try { Stage.getStgIndicLabel3(); } catch (FieldNotInitializedException fnie) { Stage.setStgIndicLabel3(defIndic3); } try { Stage.getStgIndicLabel4(); } catch (FieldNotInitializedException fnie) { Stage.setStgIndicLabel4(defIndic4); } try { Stage.getStgIndicLabel5(); } catch (FieldNotInitializedException fnie) { Stage.setStgIndicLabel5(defIndic5); } try { Stage.getStgIndicUnit1(); } catch (FieldNotInitializedException fnie) { Stage.setStgIndicUnit1(defIndicUnit1); } try { Stage.getStgIndicUnit2(); } catch (FieldNotInitializedException fnie) { Stage.setStgIndicUnit2(defIndicUnit2); } try { Stage.getStgIndicUnit3(); } catch (FieldNotInitializedException fnie) { Stage.setStgIndicUnit3(defIndicUnit3); } try { Stage.getStgIndicUnit4(); } catch (FieldNotInitializedException fnie) { Stage.setStgIndicUnit4(defIndicUnit4); } try { Stage.getStgIndicUnit5(); } catch (FieldNotInitializedException fnie) { Stage.setStgIndicUnit5(defIndicUnit5); } Vector units = dico.getRefCodeList("StgIndicUnit1"); String errorMessageGen = Utils.getMessage(session, "M2003", true, "Le format du champ est incorrect, veuillez corriger."); String onChangeBeg = "ctrlDateField(this, '" + errorMessageGen + "'); doCompareDate2(); doCompareDate(this.value , '" + Utils.formatToWebDate(session, dateDeb, false) + "')"; String onChangeEnd = "ctrlDateField(this, '" + errorMessageGen + "'); doCompareDate2(); doCompareDate('" + Utils.formatToWebDate(session, dateFin, false) + "', this.value)"; %> "> " listTitle="<%= Utils.getMessage(session, \"L646F\", \"Liste des étapes\") %>" ou="<%= \"/edit_stage.fl\" + (id != null ? \"?id=\" + id : \"\") %>">
">
 
" onBlur="ctrlNumField(this , 'integer', '<%= errorMessageGen %>');doCalculBudget(this)"> " onBlur="ctrlNumField(this , 'integer', '<%= errorMessageGen %>');doCalculBudget(this)"> :  %
" visible="<%= context.getAutoDisplayManager().hasEntry(\"Stage\", \"Etape 1\") %>"> ">
 
€ : %
€ : %
  €
  €
€ : %
">
" SIZE="25" maxlength="100" onBlur="if(this.value=='')this.value='<%=defIndic1JS%>';"> " SIZE="15" onBlur="ctrlNumField(this , 'float', '');doCalculResultat(this)"> " SIZE="15" onBlur="ctrlNumField(this , 'float', '');doCalculResultat(this)"> : %
" SIZE="25" maxlength="100" onBlur="if(this.value=='')this.value='<%= defIndic2JS %>';"> " SIZE="15" onBlur="ctrlNumField(this , 'float', '');doCalculResultat(this)"> " SIZE="15" onBlur="ctrlNumField(this , 'float', '');doCalculResultat(this)"> : %
" SIZE="25" maxlength="100" onBlur="if(this.value=='')this.value='<%= defIndic3JS %>';"> " SIZE="15" onBlur="ctrlNumField(this , 'float', '');doCalculResultat(this)"> " SIZE="15" onBlur="ctrlNumField(this , 'float', '');doCalculResultat(this)"> : %
" SIZE="25" maxlength="100" onBlur="if(this.value=='')this.value='<%= defIndic4JS %>';"> " SIZE="15" onBlur="ctrlNumField(this , 'float', '');doCalculResultat(this)"> " SIZE="15" onBlur="ctrlNumField(this , 'float', '');doCalculResultat(this)"> : %
" SIZE="25" maxlength="100" onBlur="if(this.value=='')this.value='<%= defIndic5JS %>';"> " SIZE="15" onBlur="ctrlNumField(this , 'float', '');doCalculResultat(this)"> " SIZE="15" onBlur="ctrlNumField(this , 'float', '');doCalculResultat(this)"> : %
">