Edit C:\galaxie\Back\galaxie\netbusiness\messages\read.jsp
<%@page import="com.edeal.frontline.ObjectsBean"%> <% /****************************************************************************** * 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.Utils" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.ObjectsBean" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.MessagesBean" id="Messages" scope="request"/> <% 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 = Messages.getID(); } catch (FieldNotInitializedException fnie) { } boolean isMIME = false; try { String refMIME = dico.getRefIdByCode("MsgCtyID", "MIME"); if (refMIME != null) { isMIME = refMIME.equals(Messages.getMsgCtyID()); } } catch (FieldNotInitializedException ex) { } String CIBLE_RADICAL = "Pvt"; String msgObjID = null; boolean isForCible = false; try{ msgObjID = Messages.getMsgObjID(); ObjectsBean obj = new ObjectsBean(msgObjID,context); String radical = obj.getObjRadical(); if(radical!=null && !radical.isEmpty() && radical.equals(CIBLE_RADICAL)) isForCible = true; }catch(FieldNotInitializedException e){ e.printStackTrace(); } //session.setAttribute("Messages", Messages); %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/sarissa.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/ajax.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/global_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/edeal/libraries/jquery/jquery.js"></script> <script type="text/javascript"> function callback(arrIndex){ if (eDealXmlhttpArr[arrIndex].readyState == 4) { var html = eDealXmlhttpArr[arrIndex].responseText; $('#MsgBody').html(html); } } $("#MsgBody").ready(function() { doAjax("<fl:webapp/>/get_message.fl?msgID=<%= id %>",callback); }); </script> <style> .msgBody { border: 1px solid #006699; height:400px; overflow: auto; } </style> <fl:bigTabs listTitle="<%= Utils.getMessage(session, \"L0020\", false, true, \"Liste des messages\") %>" objectTitle="<%= Utils.getMessage(session, \"L63C9\", false, true, \"Fiche message\") %>" ou="<%= \"/read_messages.fl\" + (id != null ? \"?id=\" + id : \"\") %>"> <div> <table class="container" cellpadding="0"> <tr> <td colspan="5" class="titreFiche"><fl:getProperty name="Messages" property="MsgSubject" alt="" /></td> </tr> <tr class="ligne_separation"><td colspan="5"></td></tr> </table> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldRead property="MsgCtyID"/> <fl:fieldRead property="MsgCode"/> <% if(isForCible){ %> <fl:fieldRead property="MsgTypeForm_"/> <fl:fieldRead property="MsgTypeEnvoi_"/> <%-- <fl:fieldRead property="MsgTypeTiers_"/> <fl:fieldRead property="MsgTypeContrat_"/> --%> <% } %> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldRead property="MsgObjID" bean="true"/> <%--fl:fieldRead property="MsgEvtID" bean="true"/--%> <fl:fieldRead property="MsgLngRef"/> <% if(isForCible){ %> <fl:fieldRead property="MsgStatParticip_"/> <fl:fieldRead property="MsgStatFinanc_"/> <% } %> </table> </td> </tr> <tr class="ligne_separation"><td> </td></tr> </table> <%if(false && isForCible && context.getAutoDisplayManager().hasEntry("Messages", "Messages champs objet cible")) {%><fl:autodisplay name="Messages" zone="Messages champs objet cible"/><%}%> <table> <tr> <td class="dataLabel" id="periodStat_label" style="width: 25%"> <div><label title="Corps du message" for="MsgBody"><fl:getMessage code="F001F" alt="Corps du message"/></label></div> </td> </tr> </table> <div class="msgBody" id="MsgBody"></div> </div> <table> <tr class="ligne_separation"><td> </td></tr> <tr> <td class="titrePartie"><fl:label field="MsgBodyText"/></td> </tr> <tr> <td class="dataValue noPaddingLeft"><fl:getProperty name="Messages" property="MsgBodyText" alt=""/></td> </tr> <tr class="ligne_separation"><td></td></tr> </table> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <fl:smallTabs name="AttachmentsTabs"> <fl:sTab id="files" title="<%= Utils.getMessage(session, \"L201C\", false, true, \"Documents joints\") %>"> <fl:attach name="Messages" colID="MsgAttID" edit="false"/> </fl:sTab> <fl:sTab id="docs" title="<%= Utils.getMessage(session, \"L813E\", false, true, \"Références documentaire\") %>"> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldRead property="MsgDocID" name="Messages" bean="true" href="true" disp="read_document.fl"/> </table> </td> </tr> <tr class="fieldline"><td></td></tr> </table> </td> <td style="width:20px"></td> <td class="column2"></td> </tr> </table> </fl:sTab> </fl:smallTabs> </fl:bigTabs>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de