Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\sales\priceseasonality_\popup.jsp
<%@page import="com.edeal.frontline.FrontlineException"%> <% /****************************************************************************** * Copyright (c) 2000-2009 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.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.custom.PriceSeasonality_Bean"%> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.custom.PriceSeasonality_Bean" id="PriceSeasonality_" 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 = PriceSeasonality_.getID(); } catch (FieldNotInitializedException fnie) {} String ps_PrdID = null; try{ ps_PrdID = PriceSeasonality_.getPs_PrdID(); }catch(FrontlineException fle){} %> <html> <head> <title><fl:getMessage code="L2025" alt="e-Deal"/></title> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp"> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/master_css.jsp"> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/presentField.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/sarissa.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/ajax.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/master_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/fobAC_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/format_tel.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/checkFields.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/calendar.jsp"></script> <script type="text/javascript" language="javascript"> function doSubmit() { var f = document.forms[0]; var htmlHead = "<scr" + "ipt language=\"javascript\">"; htmlHead += "window.top.opener.refreshPrices();"; htmlHead += "window.top.close();"; htmlHead += "</scr" + "ipt>"; f.$$returnedHtmlHead.value = htmlHead; f.submit(); } function checkBeforeSubmit(){ var f = document.forms[0]; var args = '&Ps_PrdID=<%=ps_PrdID%>'; if (f.Ps_Millesime.value != '') { args += '&Ps_Millesime=' + encodeURIComponent(f.Ps_Millesime.value.replace(/\s/g,"")); } if (f.Ps_PrixVenteUnitHT.value != '') { args += '&Ps_PrixVenteUnitHT=' + encodeURIComponent(f.Ps_PrixVenteUnitHT.value); } if (f.Ps_PrixVenteUnitHTSais.value != '') { args += '&Ps_PrixVenteUnitHTSais=' + encodeURIComponent(f.Ps_PrixVenteUnitHTSais.value); } if (f.Ps_Ma_ID.value != '') { args += '&Ps_Ma_ID=' + encodeURIComponent(f.Ps_Ma_ID.value); } var url = "<fl:webapp/>/check_PriceSeasonality_.fl?" + args; $.getJSON(url, function(data) { if(data.Status == "KO"){ alert('<fl:getMessage code="MF1DD" alt="Le Critère existe déjà pour ce tiers" js="true"/>'); window.top.opener.refreshPrices(); window.top.close(); return; } doSubmit(); }); } </script> </head> <body> <div id="object_css" style="top: 0px; left: 0px; bottom: 0px; height: 100%;"> <fl:form action="save_priceseasonality_.fl" bean="PriceSeasonality_"> <input type="hidden" name="$$returnedHtmlHead" value=""> <input type="hidden" name="$$returnedHtmlBody" value="Closing..."> <fl:bigTabs objectTitle="PriceSeasonality_" ou="<%= \"edit_priceseasonality_.fl\" + (id != null ? \"?id=\" + id : \"\") %>"> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr> <input type="hidden" name="Ps_PrdID" value="<%= ps_PrdID%>"> <fl:fieldEdit property="Ps_Millesime" mandatoryMsgCode="MF081"/> <fl:fieldEdit property="Ps_Ma_ID"/> <fl:fieldEdit property="Ps_PrixVenteUnitHT"/> <fl:fieldEdit property="Ps_PrixVenteUnitHTSais"/> </tr> </table> </td> </tr> </table> </fl:bigTabs> </fl:form> <div style="width: 100%; text-align: center"> <a href="javascript:checkBeforeSubmit()"><img src="<fl:webapp/>/icons/ico/valid_green2_long.gif" border="0" alt="<fl:getMessage code="A0003" alt="Enregistrer"/>"></a> <a href="javascript:window.close()"><img src="<fl:webapp/>/icons/ico/fermer_red_long.gif" alt="<fl:getMessage code="A3035" alt="Fermer"/>"></a> </div> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de