<%/****************************************************************************** * 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.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.custom.Localite_Bean"%> <%@ page import="com.edeal.frontline.FrontlineException" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.ObjectsBean" %> <%@ page import="com.edeal.frontline.ListBean" %> <%@ page import="java.util.Hashtable"%> <%@ page import="java.util.Vector" %> <%@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 = Localite_.getID(); } catch (FieldNotInitializedException fnie) {} String ctrFrID = null; ctrFrID = dico.getRefIdByCode("Ctr", "Val", "FR"); String localDepartementID = null; try { localDepartementID = Localite_.getLo_Dep(); } catch (Exception e) { localDepartementID = ""; } String paysVal = ""; String regVal = ""; String localRegionID = ""; String region = ""; String localPaysID = ""; String pays = ""; if(localDepartementID != null && !localDepartementID.equalsIgnoreCase("")) { try{ regVal = (String)dico.getRefDisp("Dp_", "Te2", localDepartementID); localRegionID = dico.getRefIdByCode("Rg_", "Te2", regVal); region = (String)dico.getRefDisp("Rg_", "Te1",localRegionID); paysVal = (String)dico.getRefDisp("Rg_", "Te2", localRegionID); localPaysID = dico.getRefIdByCode("Ctr", "Te2", paysVal); pays = (String)dico.getRefDisp("Ctr", "Te1", localPaysID); }catch(FrontlineException e){ } } String localRtID = null; String localDisp = null; try { localRtID = (String) Localite_.getLo_RattID(); if(localRtID != null) { Localite_Bean lrt = new Localite_Bean(localRtID, context); localDisp = (String) lrt.getLo_Nom(); } } catch (Exception e) { } // Id de l'objet Localite String lo_ObjID = null; String lstObjID = null; try { String[] fieldslo_ = {"ObjID"}; String[][] querylo_ = {{"ObjSql = 'Localite_'"}}; Vector listlo_ = ObjectsBean.listSummary(context, fieldslo_, querylo_); // on prend le premier si la liste n'est pas vide if(listlo_ != null && !listlo_.isEmpty()) { Hashtable tab = (Hashtable)listlo_.firstElement(); lo_ObjID = (String)tab.get("ObjID"); } } catch (Exception e) { lo_ObjID =""; } if (lo_ObjID!= null && !lo_ObjID.equalsIgnoreCase("")){ ObjectsBean obj = new ObjectsBean(lo_ObjID, context); String codeListe = obj.getObjSelectListCode(); if (codeListe != null) { try { String[] fieldslst = {"LstID"}; String[][] querylst = {{"LstCode = '" + codeListe + "'"}}; Vector listlst = ListBean.listSummary(context, fieldslst, querylst); // on prend le premier si la liste n'est pas vide if(listlst != null && !listlst.isEmpty()) { Hashtable tab = (Hashtable)listlst.firstElement(); lstObjID = (String)tab.get("LstID"); } } catch (Exception e) { lstObjID =""; } } } %> " >
<% try { Vector> values = dico.getRefList(session, "Ctr", "Te1"); %> <% }catch (FrontlineException fle) { } %>
<% try { Vector> values = dico.getRefList(session, "Rg_", "Te1"); %> <% }catch (FrontlineException fle) { } %>