Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\automation\process\read_action.jsp
<% /****************************************************************************** * Copyright (c) 2000-2013 E-DEAL * * E-DEAL S.A. * 41, rue Périer * 92120 Montrouge * France * * T: +33 (0)1 73 03 29 80 * 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.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.ProcessBean" %> <%@ page import="com.edeal.frontline.process.business.api.ProcessStatus" %> <%@ page import="com.edeal.frontline.controller.actions.process.ChangeProcessStatusAction" %> <%@ taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.ProcessBean" id="Process" 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 = Process.getID(); } catch (FieldNotInitializedException fnie) { } String statusID = null; String statusCode = null; ProcessStatus processStatus = null; try { statusID = Process.getPrsStatus(); statusCode = dico.getRefCode("PrsStatus", statusID); processStatus = ProcessStatus.fromString(statusCode); } catch (FieldNotInitializedException fnie) { } %> <script language="javascript"> function doDelete(){ if (confirm('<fl:getMessage code="M2004" alt="Etes-vous s�r de vouloir supprimer?" js="true"/>')) { window.parent.location = '<fl:link url="<%= \"/delete_process.fl?id=\" + id %>"/>'; } } </script> <% if (ProcessStatus.DESIGN == processStatus || ProcessStatus.INACTIVE == processStatus) { %> <fl:access operation="edit" name="Process"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/edit_process.fl\" + ( id != null ? \"?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> </fl:access> <% } if (ProcessStatus.ACTIVE == processStatus) { %> <fl:access operation="edit" name="Process"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/change_process_status.fl?\" + ChangeProcessStatusAction.OPERATION_ATT + \"=\" + ChangeProcessStatusAction.OPERATION_DISABLE + ( id != null ? \"&id=\" + id : \"\" ) %>"/>"> <p class="actions_tabletext"><fl:getMessage code="L826B" alt="Désactiver"/></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> </fl:access> <% } if (ProcessStatus.INACTIVE == processStatus) { %> <fl:access operation="edit" name="Process"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/change_process_status.fl?\" + ChangeProcessStatusAction.OPERATION_ATT + \"=\" + ChangeProcessStatusAction.OPERATION_REACTIVATION + ( id != null ? \"&id=\" + id : \"\" ) %>"/>"> <p class="actions_tabletext"><fl:getMessage code="L82F7" alt="Réactiver"/></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> </fl:access> <% } %> <fl:access operation="delete" name="Process"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:doDelete();"> <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> </fl:access> <fl:access operation="Create" name="ProcessTask"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="/create_processtask.fl?" />&initPtaProcessID=<%= id %>"> <p class="actions_tabletext"><fl:getMessage code="L1033" alt="Action"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> </fl:access>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de