Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\admin\metadatatransfer\read_action.jsp
<%@page session="true"%> <%@ page import="com.edeal.frontline.navigation.FlRequest"%> <%@ page import="com.edeal.frontline.MetaDataTransferBean"%> <%@ page import="com.edeal.frontline.*"%> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl"%> <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 id = null; String sfwId = null; String etat = null; String origineAction = null; boolean noDiff = false; String statusCreate = dico.getRefIdByCode("MdtStatus","CREATE"); String statusDiff = dico.getRefIdByCode("MdtStatus","DIFF"); String statusApply = dico.getRefIdByCode("MdtStatus","APPLIED"); String statusError = dico.getRefIdByCode("MdtStatus","ERR"); String statusEnCours = dico.getRefIdByCode("MdtStatus","ENCOURS"); noDiff = "true".equals(flRequest.getRequestParameterOrAttribute("noDiff")); sfwId = flRequest.getRequestParameterOrAttribute("SfwID"); try { id = MetaDataTransfer.getID(); etat = MetaDataTransfer.getMdtStatus(); } catch (Exception e) { id = flRequest.getRequestParameterOrAttribute("id"); } String calcDiffStr; if (noDiff) { calcDiffStr = Utils.getMessage(session, "L7108", "Calculer différences"); } else { calcDiffStr = Utils.getMessage(session, "M7110", "Recalculer différences"); } %> <script language="javascript"> function validate(){ if (confirm('<fl:getMessage code="F3122" alt="Le transfert va être définitivement supprimé. Voulez-vous vraiment procéder à la suppression?" js="true"/>')) { window.location.href = '<fl:link url="<%= \"/delete_metadatatransfer.fl?id=\" + id %>"/>'; } } function doCalcDiffs() { var win = window.open('<fl:link url="<%= \"/calc_transfer_diffs.fl?id=\" + id %>"/>', 'transferDiffs', 'width=400,height=230'); } </script> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/edit_metadatatransfer.fl?id=\" + id %>"/>"> <p class="actions_tabletext"> <fl:getMessage code="A0008" alt="Modifier" /> </p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:validate()"> <p class="actions_tabletext"> <fl:getMessage code="A0007" alt="Supprimer" /> </p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:doCalcDiffs();"> <p class="actions_tabletext"> <%= calcDiffStr %> </p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <% if(statusApply.equals(etat) || statusError.equals(etat) || statusEnCours.equals(etat)){ origineAction = "rollback"; %> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:var win=window.open('<fl:webapp/>/transfer_login.fl?id=<%= id %>&SfwID=<%= sfwId %>&origine=<%= origineAction %>', 'downloadSQL', 'width=400,height=430');"> <p class="actions_tabletext"> <fl:getMessage code="F0109" alt="Appliquer le rollback" /> </p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <% if(statusError.equals(etat)){ origineAction = "apply"; %> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:var win=window.open('<fl:webapp/>/transfer_login.fl?id=<%= id %>&SfwID=<%= sfwId %>&origine=<%= origineAction %>', 'login', 'width=400,height=430');"> <p class="actions_tabletext"> <fl:getMessage code="F0103" alt="Recommencer l'application SQL" /> </p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <% } } if (!(statusApply.equals(etat) || statusError.equals(etat))) { origineAction = "apply"; if(!statusApply.equals(etat)){ %> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <% if(noDiff){ %> <a href="javascript:var win=window.open('<fl:webapp/>/transfer_login.fl?id=<%= id %>&SfwID=<%= sfwId %>&origine=<%= origineAction %>', 'login', 'width=400,height=430');"> <% }else{ %> <a href="javascript:var win=window.open('<fl:webapp/>/transfer_login.fl?id=<%= id %>&SfwID=<%= sfwId %>&origine=<%= origineAction %>', 'login', 'width=400,height=430');"> <% } %> <p class="actions_tabletext"> <fl:getMessage code="F310E" alt="Appliquer changements" /> </p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <% } %> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <% if(noDiff){ %> <a href="javascript:var win=window.alert('<fl:getMessage code="F3125" alt="Aucune différence n'a été trouvée, il n'y a donc aucune requête à télécharger." js="true"/>');"> <% }else{ %> <a href="javascript:var win=window.open('<fl:webapp/>/download_queries.fl?id=<%= id %>', 'downloadSQL', 'width=400,height=200');"> <% } %> <p class="actions_tabletext"> <fl:getMessage code="F3114" alt="Téléchargement du SQL d\'application"/> </p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <% if(noDiff){ %> <a href="javascript:var win=window.alert('<fl:getMessage code="F3125" alt="Aucune différence n'a été trouvée, il n'y a donc aucune requête à télécharger." js="true"/>');"> <% }else{ %> <a href="javascript:var win=window.open('<fl:webapp/>/download_rollback.fl?id=<%= id %>', 'downloadRollback', 'width=400,height=200');"> <% } %> <p class="actions_tabletext"> <fl:getMessage code="F3115" alt="Téléchargement du SQL de rollback"/> </p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de