<% /****************************************************************************** * 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"%> <%@page import="com.edeal.frontline.kpi.DisplayType"%> <%@page import="com.edeal.frontline.kpi.ICalcAxis"%> <%@page import="java.util.List"%> <%@ 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.DataDictionary"%> <%@ page import="java.util.Date"%> <%@ page import="java.util.Hashtable"%> <%@ page import="com.edeal.frontline.FrontlineException"%> <%@ page import="com.edeal.frontline.ActorBean"%> <%@ page import="java.util.Vector"%> <%@ page import="java.util.Set"%> <%@ page import="com.edeal.frontline.SnapshotBean"%> <%@page import="com.edeal.frontline.FlLocale"%> <%@page import="com.edeal.frontline.kpi.AxisType"%> <%@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 dict = context.getDataDictionary(); String id = null; try { id = SnapshotDisplay.getID(); } catch (FieldNotInitializedException e) { } String sdtId = null; try { sdtId = SnapshotDisplay.getSdiSdtID(); } catch (FieldNotInitializedException e) { } SnapshotBean sna = (SnapshotBean) request.getAttribute("activeSnapshot"); String snaId = null; try { snaId = sna.getID(); } catch (Exception e) { } String[] sdiFilterType = new String[4]; try { sdiFilterType[0] = SnapshotDisplay.getSdiFilter1Type(); } catch (FieldNotInitializedException e) { } try { sdiFilterType[1] = SnapshotDisplay.getSdiFilter2Type(); } catch (FieldNotInitializedException e) { } try { sdiFilterType[2] = SnapshotDisplay.getSdiFilter3Type(); } catch (FieldNotInitializedException e) { } try { sdiFilterType[3] = SnapshotDisplay.getSdiFilter4Type(); } catch (FieldNotInitializedException e) { } boolean[] sdiFilterExclude = new boolean[4]; try { sdiFilterExclude[0] = SnapshotDisplay.isSdiFilter1Exclude(); } catch (FieldNotInitializedException e) { } try { sdiFilterExclude[1] = SnapshotDisplay.isSdiFilter2Exclude(); } catch (FieldNotInitializedException e) { } try { sdiFilterExclude[2] = SnapshotDisplay.isSdiFilter3Exclude(); } catch (FieldNotInitializedException e) { } try { sdiFilterExclude[3] = SnapshotDisplay.isSdiFilter4Exclude(); } catch (FieldNotInitializedException e) { } List[] possibleValues = (List[]) request.getAttribute("possibleValues"); Set sfString[] = new Set[4]; sfString[0] = (Set) request.getAttribute("sfString1"); sfString[1] = (Set) request.getAttribute("sfString2"); sfString[2] = (Set) request.getAttribute("sfString3"); sfString[3] = (Set) request.getAttribute("sfString4"); List activeAxes = (List) request.getAttribute("activeAxes"); %> " ou="<%= \"/edit_snapshotdisplay.fl\" + (id != null ? \"?id=\" + id : \"\") %>">
<% List dts = (List) request.getAttribute("displayTypes"); for (DisplayType dt : dts) { %> <% } %> <% for (DisplayType dt : dts) { %> <% } %>
>
<%= dt.getCode() %>
<% if (sna != null) { %> <% int i = 0; for (ICalcAxis ica : activeAxes) { i++; request.setAttribute("ica", ica); if (ica.getType() != AxisType.IGNORED) { %> " title="<%= Utils.getMessage(session, \"T0020\", false, true, \"Filtre sur axe\") +\" \"+ ica.getDisplayName(FlLocale.getInstance(session).getLanguage()) %>" visible="true">
" <%= sdiFilterType[i-1] == null || sdiFilterType[i-1].equals(dict.getRefIdByCode("SdiFilter1Type", "NONE")) ? " checked":" " %>><%= Utils.getMessage(session, "T002B", false, true, "Aucun filtre") %>
<% if (ica.getType() != AxisType.STRING || (i-1 < possibleValues.length && possibleValues[i-1] != null && possibleValues[i-1].size() != 0)) { %>
" <%= sdiFilterType[i-1] != null && sdiFilterType[i-1].equals(dict.getRefIdByCode("SdiFilter1Type", "STATIC")) ? " checked":" " %>><%= Utils.getMessage(session, "T002C", false, true, "Filtre statique") %>
<% if (ica.getType() == AxisType.FOB || ica.getType() == AxisType.REF) { %>
<% } else if (ica.getType() == AxisType.TIME) { %> "/> cal --> "/> cal
<% } else if (ica.getType() == AxisType.INT || ica.getType() == AxisType.DELAY) { %> " />  -  " />
<% } else if (ica.getType() == AxisType.STRING) { for (Object o : possibleValues[i-1]) { %> ><%= o.toString() %>
<% } %> <% } else { %>

Unsupported axis type

<% } %> > Inclure uniquement ces valeurs
> Exclure ces valeurs
<% } %>
" <%= sdiFilterType[i-1] != null && sdiFilterType[i-1].equals(dict.getRefIdByCode("SdiFilter1Type", "DYNAMIC")) ? " checked":" " %>><%= Utils.getMessage(session, "T002D", false, true, "Filtre dynamique") %>
" axis="ica" axisNum="<%= \"\" + i %>" sdi="SnapshotDisplay" styleClass="input select"/>
<% if (ica.getType() == AxisType.FOB) { %>
" <%= sdiFilterType[i-1] != null && sdiFilterType[i-1].equals(dict.getRefIdByCode("SdiFilter1Type", "FORM")) ? " checked":" " %>><%= Utils.getMessage(session, "T002E", false, true, "Filtre fiche") %>
<% } %>
<% } } %> ">
<% } %>