%@page session="true" %> <%@ page import="java.util.List" %> <%@ page import="java.util.Map" %> <%@ page import="java.util.Vector" %> <%@ page import="java.util.Hashtable" %> <%@ page import="java.util.Iterator" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.navigation.WebUtils"%> <%@ page import="com.edeal.frontline.DataDictionary"%> <%@ page import="com.edeal.frontline.MessagesBean"%> <%@ page import="com.edeal.frontline.custom.CmdGiftCheque_Bean"%> <%@ page import="com.edeal.frontline.PersonBean"%> <%@ page import="com.edeal.frontline.CorrespondentBean"%> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@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 = flRequest.getRequestParameterOrAttribute("id"); String sfwID = flRequest.getRequestParameterOrAttribute("SfwID"); String type = (String)flRequest.getAttribute("type"); String title = (String)flRequest.getAttribute("title"); String display = (String)flRequest.getAttribute("display"); String mailTo = (String)flRequest.getAttribute("mailTo"); //http://u-project2.umanis.com/view.php?id=45181 // point 1 String code =(String)flRequest.getAttribute("modeleCode");//"COMCC"; //String modelType = "Person".equals(type) ? "MODELE" : "OPPMODELE"; String modelType = "MODELE"; String customerId = null; String lngId = null; CmdGiftCheque_Bean cmdGch = new CmdGiftCheque_Bean(id, context); try { customerId = (String) cmdGch.getCgcCustomer(); if(customerId != null) { CorrespondentBean corr = new CorrespondentBean(customerId, context); String perID =null; try { perID = (String) corr.getCorPerID(); PersonBean per = new PersonBean(perID, context); // la langue principale du client try { lngId = (String) per.getCustomProperty("PerLngRef_"); } catch (FieldNotInitializedException e) { // FR par défaut lngId = dico.getRefIdByCode("Lna", "Te1", "fr_FR"); } } catch (Exception e) { // FR par défaut lngId = dico.getRefIdByCode("Lna", "Te1", "fr_FR"); } } } catch (FieldNotInitializedException fnie) { // FR par défaut lngId = dico.getRefIdByCode("Lna", "Te1", "fr_FR"); } String idModDefaut=null; String dispModele=null; if(code != null) { String[] fieldsQuery = {"MsgID", "MsgSubject"}; String[][] queryList = {{"MsgCode = '" + code + "'"}}; String[] orderBy = {"MsgCrDt DESC"}; Vector listRes = MessagesBean.listSummary(context, fieldsQuery, queryList); if(listRes != null && !listRes.isEmpty()) { Hashtable tab = (Hashtable)listRes.firstElement(); idModDefaut = (String)tab.get("MsgID"); dispModele = (String)tab.get("MsgSubject"); } } %> " ou=""> <%= display %> <%= title %> " > " for="MsgID"> " alt="" class="icon" src="/icons/ico/rechercher.gif"/> " alt="" class="icon" src="/icons/ico/supprimer.gif"/> " alt="" class="icon" src="/icons/ico/importer.gif"/> À ! "> ">