Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\service\solicitation\read.jsp
<% /****************************************************************************** * 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.*, com.edeal.frontline.navigation.*"%> <jsp:useBean id="Solicitation" class="com.edeal.frontline.SolicitationBean" scope="request" /> <jsp:useBean id="Silhouette" class="com.edeal.frontline.SilhouetteBean" scope="request" /> <%@ taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <%@ taglib uri="http://www.e-deal.com/taglib/ft" prefix="ft" %> <%@ page isELIgnored="false" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <% 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(); SolicitationBean obj = (SolicitationBean)request.getAttribute("Solicitation"); String id=null; try{ id = Solicitation.getID(); }catch(Exception e){ id=flRequest.getRequestParameterOrAttribute("id"); } String solID = null; try { solID = obj.getID(); } catch (FieldNotInitializedException ex) { } String sfwID = flRequest.getRequestParameterOrAttribute("SfwID"); String loadCart = flRequest.getRequestParameterOrAttribute("loadCart"); String intTodo = dico.getRefIdByCode("IntType_", "ACT"); String intCOR = dico.getRefIdByCode("IntType_", "COR"); String closedState; // Fermée try { closedState = dico.getRefIdByCode("Sts", "Te1", "CLOSED"); } catch (Exception e) { closedState = null; } // Détecter l'état de la sollicitation String statutID = null; try { statutID = Solicitation.getSolStsID(); } catch (FieldNotInitializedException e) { statutID=""; } // ramener les ids des 4 catégories de la sollicitation String reservationCatID; // Plainte d'un Guest suite à une réservation String fidelisationStateID; // Plainte liée au programme de fidélisation String mecontentementStateID; // Plainte de mécontentement (suivi qualité) String complimentStateID; // Compliment try { reservationCatID = dico.getRefIdByCode("So_", "Te1", "SPRES"); fidelisationStateID = dico.getRefIdByCode("So_", "Te1", "SPFID"); mecontentementStateID = dico.getRefIdByCode("So_", "Te1", "SPQA"); complimentStateID = dico.getRefIdByCode("So_", "Te1", "SCOM"); } catch (Exception e) { reservationCatID = null; fidelisationStateID = null; mecontentementStateID = null; complimentStateID = null; } // Catégorie oplainte String solCategorieID = null; try { solCategorieID = (String)Solicitation.getCustomProperty("SolCategorie_"); } catch (FieldNotInitializedException e) { solCategorieID = ""; } %> <script type="text/javascript" language="javascript"> var eDealXmlhttpArr = new Array(); function doDelete(idSac){ if(window.confirm('<fl:getMessage code="M2004" alt="Etes-vous sûr de vouloir supprimer ?" js="true"/>')){ var str = '<fl:link url="/delete_object_ajax.fl?type=SAction&id='+idSac+'"/>'; doAjax(str, deleteSACReturn); } } function deleteSACReturn(arrIndex) { if (eDealXmlhttpArr[arrIndex].readyState == 4) { hideWaiting(); refreshAction(); } } function doEdit(idSac){ var win = window.open('<fl:link url="/edit_saction.fl?1=1" list="true" menu="true" webapp="true"/>&id='+idSac+'&solID='+'<%=id%>','Action' , 'toolbar=no,location=no,height=450,width=800'); } function wait10NrefreshAction(){ setTimeout("waitNrefreshAction()", 10); } function waitNrefreshAction(arrIndex) { refreshAction(); } function refreshAction(){ _grid__Saction_js_.render(); return ; } function wait10NgetWorkLoad(){ setTimeout("getWorkLoad()", 10); } function waitNgetWorkLoad(arrIndex) { getWorkLoad(); } function getWorkLoad(){ doAjax('<fl:webapp/>/get_workLoad.fl?SolID=<%=id%>'); } function waitNrefreshAll(){ setTimeout("refreshNpass()", 10); } function refreshNpass(){ if (eDealXmlhttp.readyState == 4){ //doAjax('<%=flRequest.computeURL("/list_SAction_ajax.fl?id="+id)%>', waitNgetWorkLoad); } } function refreshCusSatisfaction(){ _grid__SOLSATIS_js_.render(); } function refreshCart(){ _grid__CART_EMB_js_.render(); } function refreshCorrs() { _grid__CORRSSOL_js_.render(); } function refreshTodos() { _grid__TODOSSOL_js_.render(); } function doReadKnowledgeBase(id){ var query ="knowledge_base.fl?CrtID="+id+"<%=sfwID!= null ? "&SfwID=" + sfwID : ""%>"; window.open(query, 'knowledge_base', 'width=1024,height=768,scrollbars,resizable'); } function doOnLoad() { refreshTodos(); } function doRefresh() { window.top.location.reload(); } </script> <style> .dataValue { width: 100%; /*overflow: hidden;*/ margin: 0px; padding: 0px; padding-left: 10px; font-size: small; font-size: expression("x-small"); color: rgb(0, 0, 0); font-family: Arial, Verdana, sans-serif; vertical-align: top; } </style> <fl:bigTabs objectTitle="<%=Utils.getMessage(session, \"L60E8\", false, true, \"Sollicitation\")%>" ou="<%=\"/read_solicitation.fl\"+(id!=null? \"?id=\"+id : \"\")%>"> <table class="container" cellpadding="0"> <tr> <td colspan="5" class="titreFiche"> <fl:getProperty name="Solicitation" property="SolSubject" alt=""/> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldRead property="SolCategorie_" alt=""/> <fl:fieldRead property="SolStsID" alt=""/> <fl:fieldRead property="SolChnID" alt=""/> <fl:fieldRead property="SolGravite_" alt=""/> <fl:fieldRead property="SolToken" alt=""/> <tr class="fieldline"> <td id="Sol_label" class="dataLabel"><fl:label code="FF0A4" label="Solliciteur(s)"/></td> <td id="Apercu_value" class="dataValue"> <fl:getProperty name="Solicitation" property="SolSolliciteurs_" bean="true" href="true" disp="<%= flRequest.computeURL(\"/read_person.fl\") %>" postText="<br>" alt=""/> </td> </tr> <fl:fieldRead property="SolDate_" alt=""/> <fl:fieldRead property="SolHeureDebut_" alt="" format="HH:mm"/> <fl:fieldRead property="SolHeureFin_" alt="" format="HH:mm"/> <tr class="fieldline"> <td id="Sol_label" class="dataLabel"><fl:label code="FF076" label="Tiers concerné"/></td> <td id="Apercu_value" class="dataValue"> <fl:getProperty name="Solicitation" property="SolTiersConcerne_" bean="true" href="true" disp="<%= flRequest.computeURL(\"/read_enterprise.fl\") %>" alt=""/> </td> </tr> <tr class="fieldline"> <td id="Sol_label" class="dataLabel"><fl:label code="LF012" label="Réservation"/></td> <td id="Apercu_value" class="dataValue"> <fl:getProperty name="Solicitation" property="SolReservation_" bean="true" href="true" disp="<%= flRequest.computeURL(\"/read_reservation_.fl\") %>" alt=""/> </td> </tr> <fl:fieldRead property="SolDateSejourDebut_" alt=""/> <fl:fieldRead property="SolDateSejourFin_" alt=""/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <% if( statutID.equalsIgnoreCase(closedState) ){%> <% if (solCategorieID.equalsIgnoreCase(reservationCatID) || solCategorieID.equalsIgnoreCase(fidelisationStateID)) { %> <fl:fieldRead property="SolSourcePlainte_" alt=""/> <% } if (solCategorieID.equalsIgnoreCase(reservationCatID) || solCategorieID.equalsIgnoreCase(fidelisationStateID) || solCategorieID.equalsIgnoreCase(mecontentementStateID)) { %> <fl:fieldRead property="SolCommentaire_" alt=""/> <% } if (solCategorieID.equalsIgnoreCase(reservationCatID)) { %> <fl:fieldRead property="SolMontantIndemn_" postText=" €" alt=""/> <fl:fieldRead property="SolTypeIndemn_" alt=""/> <% } %> <fl:fieldRead property="SolClsDate" alt=" " format="date"/> <%} %> <fl:fieldRead property="SolActeursCharge_" bean="true" href="true" disp="<%= flRequest.computeURL(\"/read_actor.fl\") %>"/> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> </table> <table class="container" cellpadding="0"> <tr> <td> <fl:notes name="SolNotes" title="<%=Utils.getMessage(session, \"F2024\", false, true, \"Notes\")%>"><fl:getProperty name="Solicitation" property="SolNotes_" alt=""/></fl:notes> </td> </tr> </table> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <fl:smallTabs name="DETAIL"> <fl:sTab id="Todos" title="<%= Utils.getMessage(session, \"\", \"Todos\") %>" onselect="refreshTodos();"> <fl:grid name="TODOSSOL" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=TODOSSOL&IntSolicitation_=\" + Solicitation.getID()%>" /> </fl:sTab> <fl:sTab id="Corrs" title="<%= Utils.getMessage(session, \"\", \"Correspondances\") %>" onselect="refreshCorrs();"> <fl:grid name="CORRSSOL" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CORRSSOL&IntSolicitation_=\" + Solicitation.getID()%>" /> </fl:sTab> <%-- <fl:sTab id="AttFiles" title="<%=Utils.getMessage(session, \"L201C\", false, true, \"Fichiers\")%>"> <div class="dataValue"> <fl:attach name="Solicitation" colID="SolAttID" edit="false"/> </div> </fl:sTab> --%> <fl:sTab id="AttFiles" title="<%=Utils.getMessage(session, \"L201C\", false, true, \"Fichiers\")%>"> <fl:attach name="Solicitation" colID="SolAttID" edit="false" listFobs="true"/> </fl:sTab> <%-- <fl:sTab id="WALL" title="<%= Utils.getMessage(session, \"L81AD\", false, true, \"Mur\") %>"> <div class="wallInTab"> <edWall id="wall2" isRequired="false" async='{"url": "post_object.fl", "parameters":{"objId":"<%=id%>", "objType":"Solicitation", "top":"10"}}'> </edWall> </div> </fl:sTab> <fl:sTab id="SOLICITATION1" title="<%= context.getAutoDisplayManager().getTitle(session, \"Solicitation\", \"Sollicitation 1\") %>" visible="<%= context.getAutoDisplayManager().hasEntry(\"Solicitation\", \"Sollicitation 1\") %>"> <fl:autodisplay name="Solicitation" zone="Sollicitation 1"/> </fl:sTab> <fl:sTab id="Solliciteur" title="<%=Utils.getMessage(session , \"F612F\",false, true, \"Solliciteur\")%>" onselect="getWorkLoad()"> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="M1009" alt="Solliciteur"/><%= (!isPer ? " ("+Utils.getMessage(session, "F002F", "Silhouette")+")": "")%></td> <td class="dataValue"> <% String destMail = ""; if (isPer){ SilhouetteBean bean =(SilhouetteBean) pageContext.findAttribute("Silhouette"); destMail = obj.getSolPerID(); %> <edLink edtooltip='{"objid": "<%=obj.getSolPerID()%>", "objtype": "Person"}' values="<fl:getProperty name="Silhouette" property="SilCivID" alt="" postText=" "/><fl:getProperty name="Silhouette" property="SilFstName" alt="" postText=" "/><fl:getProperty name="Silhouette" property="SilName" alt=""/>" url='read_person.fl?id=<%=obj.getSolPerID()%>' ></edLink> <% } else { String silID = null; try { silID = sil.getID(); } catch (FieldNotInitializedException ex) { } if (silID != null) { %> <edLink edtooltip='{"objid": "<%=silID%>", "objtype": "Silhouette"}' values="<fl:getProperty name="Silhouette" property="SilCivID" alt="" postText=" "/><fl:getProperty name="Silhouette" property="SilFstName" alt="" postText=" "/><fl:getProperty name="Silhouette" property="SilName" alt=""/>" url='read_silhouette.fl?id=<%=silID%>' ></edLink> <% } } %> </td> </tr> <fl:fieldRead property="SilEnterprise" alt=""/> <tr> <td class="dataLabel"><fl:label code="F2012" label="Adresse"/> </td> <td class="dataValue"> <fl:getProperty name="Silhouette" property="SilAd1" alt="" postText="<br>"/> <fl:getProperty name="Silhouette" property="SilAd2" alt="" postText="<br>"/> <fl:getProperty name="Silhouette" property="SilAd3" alt="" postText="<br>"/> <fl:getProperty name="Silhouette" property="SilZip" alt=""/> <fl:getProperty name="Silhouette" property="SilCity" alt="" postText="<br>"/> <fl:getProperty name="Silhouette" property="SilCtrID" alt=""/> </td> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldRead property="SilService" alt=""/> <fl:fieldRead property="SilFonction" alt=""/> <fl:fieldRead property="SilPhone" alt=""/> <fl:fieldRead property="SilMail" alt=""> <ft:email idObjMod="<%=id%>" typObjMod="Solicitation" idDest="<%=destMail%>" /> </fl:fieldRead> <fl:fieldRead property="SilCookie" alt=""/> </table> </td> </tr> </table> </fl:sTab> <fl:sTab id="SOLICITATION2" title="<%= context.getAutoDisplayManager().getTitle(session, \"Solicitation\", \"Sollicitation 2\") %>" visible="<%= context.getAutoDisplayManager().hasEntry(\"Solicitation\", \"Sollicitation 2\") %>"> <fl:autodisplay name="Solicitation" zone="Sollicitation 2"/> </fl:sTab> <fl:sTab id="SuivCh" title="<%=Utils.getMessage(session , \"M100A\",false, true, \"Suivi & charges\")%>" onselect="getWorkLoad()"> <div> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldRead property="SolActID" alt="" bean="true" href="true" disp="<%=flRequest.computeURL(\"/read_actor.fl\")%>"/> <fl:fieldRead property="SolCreID" alt=" " bean="true" href="true" disp="<%=flRequest.computeURL(\"/read_actor.fl\")%>"/> <fl:fieldRead property="SolClsID" alt=" " bean="true" href="true" disp="<%=flRequest.computeURL(\"/read_actor.fl\")%>"/> <fl:fieldRead property="SolDelay" alt=" " format="int" postText=" jour(s)"/> <fl:fieldRead property="SolSlaID" alt=" " bean="true" href="true" disp="<%= \"/read_sla.fl?SfwID=\"+sfwID %>"/> <fl:fieldRead property="SolNextUpd" alt=" " format="date"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldRead property="SolNotifyActor" valueIfTrue="Oui" valueIfFalse="Non" /> <fl:fieldRead property="SolCrDt" alt=" " format="date"/> <fl:fieldRead property="SolClsDate" alt=" " format="date"/> <fl:fieldRead property="SolWorkload" format="#,###.0" postText=" heure(s)" alt=" "/> <fl:fieldRead property="SolSllID" alt=" " bean="true" href="true" disp="<%= \"/read_sll.fl?SfwID=\"+sfwID %>"/> </table> </td> </tr> </table> </div> </fl:sTab> <% if(solID != null) {%> <fl:sTab id="Action" title="<%=Utils.getMessage(session, \"A0010\", false, true, \"Actions\")%>" onselect="refreshAction();"> <div> <fl:grid name="Saction" height="100px" width="100%" ajaxUrl="<%= \"/list_SAction_ajax.fl?id=\"+id %>"></fl:grid> </div> </fl:sTab> <% } %> <%if (msgID!=null){%> <fl:sTab id="Message" title="<%=Utils.getMessage(session, \"L63D5\", false, true, \"Message d\\'origine\")%>"> <div> <iframe width="100%" class="normal" src="<fl:webapp/>/netbusiness/messages/display_message.jsp?msgID=<%= msgID %>"></iframe> </div> </fl:sTab> <%}%> <fl:sTab id="CommInt" title="<%=Utils.getMessage(session, \"F1020\", false, true, \"Commentaire interne\")%>"> <div class="dataValue"> <fl:getProperty name="Solicitation" property="SolIntRmk" alt=" "/> </div> </fl:sTab> <fl:sTab id="Panier" title="<%=Utils.getMessage(session, \"L70D8\", false, true, \"Paniers\")%>" onselect="refreshCart();"> <fl:grid name="CART_EMB" width="100%" ajaxUrl="<%= \"/embedded_list_ajax.fl?CrtSolID=\"+id %>"></fl:grid> </fl:sTab> <fl:sTab id="CompteRendu" title="<%=Utils.getMessage(session, \"F1021\", false, true, \"Compte rendu\")%>"> <div class="dataValue" Style="width=100%"> <fl:getProperty name="Solicitation" property="SolReport" alt=" "/> </div> </fl:sTab> <fl:sTab id="SOLICITATION3" title="<%= context.getAutoDisplayManager().getTitle(session, \"Solicitation\", \"Sollicitation 3\") %>" visible="<%= context.getAutoDisplayManager().hasEntry(\"Solicitation\", \"Sollicitation 3\") %>"> <fl:autodisplay name="Solicitation" zone="Sollicitation 3"/> </fl:sTab> <% try { Vector attID = Solicitation.getSolAttID(); if(attID != null && attID.size() > 0) { %> <fl:sTab id="AttFiles" title="<%=Utils.getMessage(session, \"L201C\", false, true, \"Documents joints\")%>"> <div class="dataValue"> <fl:attach name="Solicitation" colID="SolAttID" edit="false"/> </div> </fl:sTab> <% } } catch (FieldNotInitializedException ex) {} %> <fl:sTab id="SolSatis" title="<%=Utils.getMessage(session, \"xxxx\", false, true, \"Satisfaction\")%>" onselect="refreshCusSatisfaction();"> <fl:grid name="SOLSATIS" height="100px" width="100%" ajaxUrl="<%= \"/list_ajax.fl?CsaSolID=\"+id %>"></fl:grid> </fl:sTab> --%> </fl:smallTabs> </fl:bigTabs>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de