%/****************************************************************************** * 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.DataDictionary" %> <%@ page import="com.edeal.frontline.Utils"%> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.custom.Classement_Bean"%> <%@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 = Classement_.getID(); } catch (FieldNotInitializedException fnie) {} String classID = null; String hotClassID = null; String restClassID = null; try { classID = Classement_.getCl_ClassDecision(); } catch (FieldNotInitializedException e1){ } String cocRefID = null; String chemRefID = null; try { cocRefID = (String) dico.getRefIdByCode("Cl_ClassType", "COC"); chemRefID = (String) dico.getRefIdByCode("Cl_ClassType", "CHE"); } catch (Exception e) { cocRefID = ""; chemRefID = ""; } String typeClassID = null; try { typeClassID = Classement_.getCl_ClassType(); } catch (FieldNotInitializedException e2){ typeClassID =""; } String ruptureRefID = null; String retrogradRefID = null; String reclassRefID = null; String promoRefID = null; String demAdhRefID = null; String reintegAccRefID = null; String reintegRejRefID = null; try { ruptureRefID = (String) dico.getRefIdByCode("Cl_ClassDecision", "RUPTCONTRAT"); retrogradRefID = (String) dico.getRefIdByCode("Cl_ClassDecision", "RETROGRAD"); reclassRefID = (String) dico.getRefIdByCode("Cl_ClassDecision", "RECLASS"); promoRefID = (String) dico.getRefIdByCode("Cl_ClassDecision", "PROMO"); demAdhRefID = (String) dico.getRefIdByCode("Cl_ClassDecision", "DEMADH"); reintegAccRefID = (String) dico.getRefIdByCode("Cl_ClassDecision", "REINTACC"); reintegRejRefID = (String) dico.getRefIdByCode("Cl_ClassDecision", "REINTREJ"); } catch (Exception e) { ruptureRefID = ""; reintegAccRefID = ""; reintegRejRefID = ""; retrogradRefID = ""; reclassRefID = ""; promoRefID = ""; demAdhRefID = ""; } Boolean affChdecision = false; if (classID != null) { if ((classID.equals(retrogradRefID) || classID.equals(reclassRefID) || classID.equals(promoRefID) || classID.equals(demAdhRefID) || classID.equals(reintegAccRefID) || classID.equals(reintegRejRefID))) { affChdecision = true; } else { affChdecision = false; } } %> " ou="<%= \"read_classement_.fl\" + (id != null ? \"?id=\" + id : \"\")%>" > " /> " alt=""/> " alt=""/> <% if ( (classID != null && classID.equalsIgnoreCase(ruptureRefID))) { %> <%} %> <% if(affChdecision) { %> <%} %> <%-- " alt=""/> --%> " nbPix="32">