Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\admin\slastate\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.FlRequest,com.edeal.frontline.SLABean"%> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.SLAStateBean" id="SLAState" scope="request"/><% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext flContext = flRequest.getContext(); DataDictionary dictionary = flContext.getDataDictionary(); String SfwID = flRequest.getRequestParameterOrAttribute("SfwID"); String slaID = null; try { slaID = SLAState.getSlsSLAID(); } catch (FieldNotInitializedException fnie) { } SLABean SLA = new SLABean(slaID, flContext); String slaObjID = null; try { slaObjID = SLA.getSlaObjID(); } catch (FieldNotInitializedException fnie) { } Vector vectFldSla = null; try { vectFldSla = SLA.getSlaFldID(); } catch (FieldNotInitializedException fnie){ vectFldSla = new Vector(); } String slsID = null; try { slsID = SLAState.getSlsID(); } catch (FieldNotInitializedException fnie) { } String fld1 = null; try { fld1 = SLA.getSlaField1(); } catch (FieldNotInitializedException fnie) { } String fld2 = null; try { fld2 = SLA.getSlaField2(); } catch (FieldNotInitializedException fnie) { } String fld3 = null; try { fld3 = SLA.getSlaField3(); } catch (FieldNotInitializedException fnie){ } %> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L6566\", false, true, \"Etat SLA\") %>" ou="<%= \"/read_sls.fl?id=\" + slsID %>"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td colspan="4"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="labelTitreFiche"><fl:getProperty name="SLAState" alt="" property="SlsLabel"/></td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldRead property="SlsSLAID" bean="true" href="true" disp="<%=\"/read_sla.fl?SfwID=\" +SfwID %>"/> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="F2000" alt="Code"/></td> <td class="dataValue"><fl:getProperty name="SLAState" alt="" property="SlsCode"/></td> </tr> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="L604A" alt="Valeurs associées"/></td> <td class="dataValue"> <% if (fld1 != null) { String value1 = null; try { value1 = SLAState.getSlsValue1(); } catch (FieldNotInitializedException fnie) { } FieldBean fld = dictionary.getFieldByID(fld1); String display = null; String fldDisplayLabel = null; try { fldDisplayLabel = fld.getFldDisplayLabel(); } catch (FieldNotInitializedException fnie) { } String fldDisplay = null; try { fldDisplay = fld.getFldDisplay(); } catch (FieldNotInitializedException fnie) { } if (fldDisplayLabel != null) display = Utils.getMessage(session, fldDisplayLabel, false, true, fldDisplay); else display = fldDisplay; String refDisp = null; if (value1 != null) refDisp = (String)dictionary.getRefDisp(fld.getFldSql(), value1); %> <%= Utils.formatToWeb(display, false) %> : <%= value1 != null ? Utils.formatToWeb(refDisp, false) : " "%><br/> <% } %><% if (fld2 != null) { String value1 = null; try { value1 = SLAState.getSlsValue2(); } catch (FieldNotInitializedException fnie) { } FieldBean fld = dictionary.getFieldByID(fld2); String display = null; String fldDisplayLabel = null; try { fldDisplayLabel = fld.getFldDisplayLabel(); } catch (FieldNotInitializedException fnie) { } String fldDisplay = null; try { fldDisplay = fld.getFldDisplay(); } catch (FieldNotInitializedException fnie) { } if (fldDisplayLabel != null) display = Utils.getMessage(session, fldDisplayLabel, false, true, fldDisplay); else display = fldDisplay; String refDisp = null; if (value1 != null) refDisp = (String)dictionary.getRefDisp(fld.getFldSql(), value1); %> <%= Utils.formatToWeb(display, false) %> : <%= value1 != null ? Utils.formatToWeb(refDisp, false) : " "%><br/> <% } %><% if (fld3 != null) { String value1 = null; try { value1 = SLAState.getSlsValue3(); } catch (FieldNotInitializedException fnie) { } FieldBean fld = dictionary.getFieldByID(fld3); String display = null; String fldDisplayLabel = null; try { fldDisplayLabel = fld.getFldDisplayLabel(); } catch (FieldNotInitializedException fnie) { } String fldDisplay = null; try { fldDisplay = fld.getFldDisplay(); } catch (FieldNotInitializedException fnie) { } if (fldDisplayLabel != null) display = Utils.getMessage(session, fldDisplayLabel, false, true, fldDisplay); else display = fldDisplay; String refDisp = null; if (value1 != null) refDisp = (String)dictionary.getRefDisp(fld.getFldSql(), value1); %> <%= Utils.formatToWeb(display, false) %> : <%= value1 != null ? Utils.formatToWeb(refDisp, false) : " "%><br/> <% } %> </td> </tr> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="L6567" alt="Délai minimal avant l'état"/></td> <td class="dataValue"> <fl:getProperty name="SLAState" alt="" property="SlsDelayMinDay" postText="J"/> <fl:getProperty name="SLAState" alt="" property="SlsDelayMinHour" postText="h"/> <fl:getProperty name="SLAState" alt="" property="SlsDelayMinMin" postText="Min"/> </td> </tr> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="L6568" alt="% Alerte"/></td> <td class="dataValue"><fl:getProperty name="SLAState" alt="" property="SlsPrcMinAlarm" postText="%"/></td> </tr> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="L6569" alt="Temps maximum dans l'état"/></td> <td class="dataValue"> <fl:getProperty name="SLAState" alt="" property="SlsDelayDay" postText="J"/> <fl:getProperty name="SLAState" alt="" property="SlsDelayHour" postText="h"/> <fl:getProperty name="SLAState" alt="" property="SlsDelayMin" postText="Min"/> </td> </tr> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="L6568" alt="% Alerte"/></td> <td class="dataValue"><fl:getProperty name="SLAState" alt="" property="SlsPrcAlarm" postText="%"/></td> </tr> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="L707D" alt="Délai maximal avant sortie l'état"/></td> <td class="dataValue"> <fl:getProperty name="SLAState" alt="" property="SlsDelayMaxDay" postText="J"/> <fl:getProperty name="SLAState" alt="" property="SlsDelayMaxHour" postText="h"/> <fl:getProperty name="SLAState" alt="" property="SlsDelayMaxMin" postText="Min"/> </td> </tr> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="L6568" alt="% Alerte"/></td> <td class="dataValue"><fl:getProperty name="SLAState" alt="" property="SlsPrcMaxAlarm" postText="%"/></td> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="L656A" alt="Champs acteurs à notifier"/></td> <td class="dataValue"><fl:getProperty name="SLAState" alt="" property="SlsFieldActor" bean="true" separator="<br>"/></td> </tr> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="L656B" alt="Rôles à notifier"/></td> <td class="dataValue"><fl:getProperty name="SLAState" alt="" property="SlsRoles" separator="<br>"/></td> </tr> </table> </td> </tr> </table> </fl:bigTabs> <% /****************************************************************************** * CVS Log File - This is no longer maintained! * * Revision 1.1 2007/01/10 16:34 houyam * Initial Revision * *****************************************************************************/ %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de