Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\sales\paymentslip_\read_action.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"%> <%@ 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.custom.PaymentSlip_Bean"%> <%@ page import="com.edeal.frontline.custom.GiftCheque_Bean"%> <%@ page import="com.edeal.frontline.FrontlineException"%> <%@ page import="java.util.Vector" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.custom.PaymentSlip_Bean" id="PaymentSlip_" 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 = PaymentSlip_.getID(); } catch (FieldNotInitializedException fnie) {} Boolean existeCcs = false; // Verif si le bordereau contient des CCs if(id != null){ String[] fields = {"GchID"}; String[][] query = {{"GchPslID = '" + id + "'"}}; Vector list = GiftCheque_Bean.listSummary(context, fields, query); if(list != null && !list.isEmpty()) { existeCcs = true; } } %> <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_paymentslip_.fl?id=\" + id%>"/>'; } } function confirmer() { window.location = '<fl:link url="<%= \"/confirmer_paymentslip_.fl?id=\" + id%>"/>'; } function doWord(id,obj,informat) { format = "Word"; if (informat && informat == "PDF") { format = "PDF"; } window.open('<fl:webapp/>/fusion_document.fl?format=' + format + '&idObj='+id+'&object='+obj, 'listOpp', 'menubar=no,status=no,toolbar=no,scrollbars=auto,resizable=yes,width=860,height=460'); } </script> <tr> <td class="actions_cell_left"> </td> <td> <div class="actions_tablecell_1"> <a href="javascript:doWord('<%=id%>','PaymentSlip_','PDF');"/> <!-- <a href="javascript:doWordOpportunity('<fl:getProperty name="Opportunity" property="OppID" alt=""/>','Opportunity', 'PDF', '');"/> --> <img src="<fl:webapp/>/icons/ico_acrobat_inv.gif" style="width: 15; height: 15;" alt="<fl:getMessage code="LF32C" alt="Bordereau de paiement"/>" title="<fl:getMessage code="LF32C" alt="Bordereau de paiement"/>"> <p class="actions_tabletext"><fl:getMessage code="LF32C" alt="Bordereau de paiement"/></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:sendMailPaymentSlip_WithDocuments('<%=id%>', 'PaymentSlip_', null, 'PslAdherent:EntMail_');"/> <img src="<fl:webapp/>/icons/ico_interaction/mail.png" style="width: 15; height: 15;" alt="<fl:getMessage code="LF32B" alt="Envoyer par Mail le bordereau"/>" title="<fl:getMessage code="LF32B" alt="Envoyer par Mail le bordereau"/>"> <p class="actions_tabletext"><fl:getMessage code="LF32B" alt="Envoyer par Mail le bordereau"/></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:confirmer()"> <p class="actions_tabletext"><fl:getMessage code="LF32A" alt="Confirmer l'envoi du bordereau"/></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> --%> <%-- <% if (existeCcs){ %> <fl:access operation="edit" name="PaymentSlip_"> <tr> <td class="actions_cell_left"> </td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="/export_sage_CCs_paymentSlip.fl?" />&typeExport=ACC&initPslID=<%=id%>"> <p class="actions_tabletext"><fl:getMessage code="LF1FA" alt="Export Sage des Chèques cadeaux"/></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="edit" name="PaymentSlip_"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/edit_paymentslip_.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> <fl:access operation="delete" name="PaymentSlip_"> <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> --%>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de