Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\admin\metadatatransfer\edit.jsp
<%@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.Utils"%> <%@ page import="com.edeal.frontline.MetaDataTransferBean"%> <%@ page import="com.edeal.frontline.FieldNotInitializedException"%> <%@page import="com.edeal.frontline.AttachmentBean"%> <%@page import="org.apache.commons.lang.StringUtils"%> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl"%> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/smalltabs_css.jsp"> <jsp:useBean class="com.edeal.frontline.MetaDataTransferBean" id="MetaDataTransfer" 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 etat = null; String statusApply = null; String statuserror = null; statusApply = dico.getRefIdByCode("MdtStatus","APPLIED"); statuserror = dico.getRefIdByCode("MdtStatus","ERR"); String id = null; try { id = MetaDataTransfer.getID(); etat = MetaDataTransfer.getMdtStatus(); } catch (FieldNotInitializedException fnie) {} %> <script language="javascript"> function popupWarn(){ if (<%=(statusApply.equals(etat)||statuserror.equals(etat))%> ){ alert('<fl:getMessage code="F3123" alt=" Des requêtes SQL ont été appliquées à la base de données. Vous ne pouvez plus changer le fichier XML. Veuillez créer un nouveau transfert." js="true"/>'); return false; } else { return true; } } function validate(){ if (<%=((id !=null) && !(statusApply.equals(etat)||statuserror.equals(etat)))%>) { if (confirm('<fl:getMessage code="F3120" alt="Si vous modifiez le fichier xml, le transfert sera réinitialisé et il faudra donc relancer le calcul de différences." js="true"/>') == false) { uploader.cancel(); } } } </script> <fl:form action="/save_metadatatransfer.fl" bean="MetaDataTransfer"> <fl:bigTabs objectTitle="Transfert d'environnement"> <table class="container" cellpadding="0"> <tr> <td colspan="3"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="labelTitreFiche"> <fl:label field="mdtName" labelClassName="titreFiche" /> </td> <td class="fieldTitreFiche"> <fl:input property="MdtName" mandatoryMsgCode="L7106" style="width:99%" /> </td> </tr> </table> </td> </tr> <tr><td class="ligne_separation" /></tr> <tr> <td class="column2"> <table class="data_column" cellpadding="0"> <tr class="fieldline" > <td class="dataLabel" align="justify"> <fl:label field="MdtSource" /> </td> <td class="data_column" > <fl:attach name="MetaDataTransfer" colID="MdtSource" htmlClass="chpsTextObligatoire" edit="true" mandatory="true" onChange="return popupWarn();" onSelect="validate();"/> </td> </tr> </table> </td> </tr> </table> <table class="container" cellpadding="0"> <tr class="ligne_separation"><td></td></tr> <tr> <td class="titrePartie"><fl:getMessage code="L1035" alt="Détail"/></td> </tr> <tr> <td class="dataValue noPaddingLeft"><fl:input property="MdtDescription" nodiv="false"/></td> </tr> <tr class="ligne_separation"><td></td></tr> </table> </fl:bigTabs> </fl:form>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de