<% /****************************************************************************** * 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.*,java.text.*"%> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.FrontlineException" %> <%@ 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()); String contextPath = (String) session.getAttribute("contextPath"); FlContext context = null; if (contextPath!=null) { context = Frontline.getContext(contextPath); } else { context = Frontline.getContext(request.getContextPath()); } FlRequest flRequest=new FlRequest(request); DataDictionary dico = context.getDataDictionary(); String id = null; try{ id = ExpenseCategory.getID(); }catch(FieldNotInitializedException fnie){ } String cpgId = flRequest.getParameter("initIntCpgID"); String ExcID = flRequest.getParameter( "id"); CampaignBean cBean = new CampaignBean(cpgId, context); request.setAttribute("Campaign", cBean); String postType = null; String ExcPosteIDStr = null; try { ExcPosteIDStr = ExpenseCategory.getExcPosteID(); String ref = (String)dico.getRefDisp("Pst", "Te2", ExcPosteIDStr); postType = dico.getRefIdByCode("Ptf", "Te1", ref); } catch (FieldNotInitializedException e) { } String sfwId = request.getParameter("SfwID"); %> " ou="<%= \"/edit_contribution.fl\" + (id != null ? \"?id=\" + id : \"\")%>"> <% if (ExcID!=null) { %><% } %>
<% if (postType != null) { %> <% } %>
<% //Récupérer l'entité du département try { String cpgDept = Campaign.getCpgDept(); DepartmentBean cpgDepartement = new DepartmentBean(cpgDept,context); String cpgEnt = cpgDepartement.getDptEnt(); Campaign.setCpgEnt(cpgEnt); }catch (FieldNotInitializedException e){} %> <% if (postType != null) { %> <% } %> <% if (postType != null) { %> <% } %>
<%= (String)dico.getRefDisp("Ptf","Te1",postType) %>