Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\automation\process\read.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.Utils" %> <%@ page import="com.edeal.frontline.ProcessBean" %> <%@ taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.ProcessBean" id="Process" scope="request"/> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp"> <% 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) { } %> <script type="text/javascript" language="javascript"> function refreshProcessTask() { _grid__PRT_EMB_js_.render(); } function refreshProcessInstance() { _grid__PRI_EMB_js_.render(); } function doOnLoad() { refreshProcessTask(); } function doDeleteRest(id) { if (confirm('<fl:getMessage code="L82E3" alt="Etes-vous sûr de vouloir supprimer le reste à faire?" js="true"/>')) { cancelProcessInstance(id); } } function cancelProcessInstance(id) { jQuery.openPopupLayer({ name: "WaitingPopup", width: "auto", height: "auto", url: "<fl:webapp/>/waiting_operation_popup.fl", success : function(result) { $.ajax({ type: "POST", url: "<fl:webapp/>/cancel_processinstance.fl?id=" + id, timeout: 20000, contentType: "application/json;charset=utf-8", dataType: 'json', success: function (data) { analyseResponse(data, id); } }); } }); } function analyseResponse(data, id) { if (data != null) { if (data.status == "OK") { $("#waiting_popup").attr("src", "<fl:webapp/>/js/progressbar/images/success.png"); $("#detail_popup").html('<fl:getMessage code="L82E4" alt="La suppression du reste à faire s\\\'est terminée avec succes" js="true"/>'); $("#" + id).find("td").eq(3).html('<fl:getMessage code="L82EB" alt="Le reste à faire est supprimé" js="true"/>'); } else if (data.status == "KO") { $("#waiting_popup").attr("src", "<fl:webapp/>/js/progressbar/images/failure.png"); $("#detail_popup").html(""); $("#error_popup").html(decodeURIComponent(data.error)); } else { $("#waiting_popup").attr("src", "<fl:webapp/>/js/progressbar/images/failure.png"); } } } function deleteProcessTask(id) { if (confirm('<fl:getMessage code="L82EE" alt="Etes-vous sûr de vouloir supprimer le modèle d\\\'actions" js="true"/>')) { doAjax('<fl:webapp/>/delete_processtask_ajax.fl' , deleteProcessTaskCallback, "GET", 'type=ProcessTask&id=' + id); } } function deleteProcessTaskCallback(arrIndex) { if (arrIndex && eDealXmlhttpArr[arrIndex].readyState != 4) { // we are in an ajax context if arrIndex is not null return; } if (eDealXmlhttpArr[arrIndex].readyState == 4) { hideWaiting(); if (eDealXmlhttpArr[arrIndex].responseText != '') { eval(eDealXmlhttpArr[arrIndex].responseText); } else { refreshProcessTask(); } } } </script> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L82CF\", false, true, \"Modèle de procédure\") %>" ou="<%= \"/read_process.fl\" + (id != null ? \"?id=\" + id : \"\")%>"> <table class="container" cellpadding="0"> <tr> <td colspan="5" width="100%"> <table> <tr> <td style="width: 100%" class="titreFiche"> <fl:getProperty name="Process" property="PrsName" alt=" "/><br> </td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr> <td class="column2"> <table class="data_column" cellpadding="0"> <tr class="fieldLine"> <fl:fieldRead property="PrsCategory"/> <fl:fieldRead property="PrsObject"/> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0"> <tr class="fieldLine"> <fl:fieldRead property="PrsStatus"/> <fl:fieldRead property="PrsCode"/> </tr> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> </table> <fl:notes name="EntNotes" title="<%= Utils.getMessage(session, \"L64B4\", \"Commentaires\") %>" nbPix="35"><fl:getProperty name="Process" property="PrsDescription" alt=""/></fl:notes> <fl:smallTabs name="Process_Tabs"> <fl:sTab id="ProcessTask" title="<%= Utils.getMessage(session, \"L8316\", \"Modèles d\'actions\") %>" onselect="refreshProcessTask();"> <fl:grid name="PRT_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=PRT_EMB&PtaProcessID=\" + id %>"/> </fl:sTab> <fl:sTab id="ProcessInstance" title="<%= Utils.getMessage(session, \"L8317\", \"Procédures générées\") %>" onselect="refreshProcessInstance();"> <fl:grid name="PRI_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=PRI_EMB&PriProcessID=\" + id %>"/> </fl:sTab> </fl:smallTabs> </fl:bigTabs>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de