Edit C:\galaxie\Back\galaxie\sales\contratpartenaire_\popup.jsp
<%@page import="com.edeal.frontline.EnterpriseBean"%> <% /****************************************************************************** * Copyright (c) 2000-2005 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" contentType="text/html; charset=UTF-8"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.controller.ControllerServlet" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="java.util.Date" %> <%@ page import="java.util.Vector" %> <%@ page import="com.edeal.frontline.ActorBean" %> <%@ page import="com.edeal.frontline.ObjectsBean" %> <%@ page import="com.edeal.frontline.controller.actions.SelectAction" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.custom.ContratPartenaire_Bean" id="ContratPartenaire_" 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(); ObjectsBean entBean = dico.getTable("sql", "Enterprise"); String xmlListSelect = entBean.getObjSelectListID(); String id = ""; try { id = ContratPartenaire_.getID(); } catch (FieldNotInitializedException fnie) { } String submitUrl = "window.opener.location.reload();"; String query =""; //query ="[[EntTyeID:RefVal = 'PART']]"; String contratId = flRequest.getRequestParameterOrAttribute("initCp_Contrat"); ContratPartenaire_.setCp_Contrat(contratId); System.out.println("#############################################################"); System.out.println(contratId); System.out.println(ContratPartenaire_.getCp_Contrat()); java.util.Vector jsBeenIncluded = (java.util.Vector)request.getAttribute(ControllerServlet.JS_BEEN_INCLUDED_ATTR); if (jsBeenIncluded == null) { jsBeenIncluded = new java.util.Vector(); } //**************************************************************************** boolean popup = flRequest.getRequestParameterOrAttribute("popup") != null; %> <% if (popup) { %> <html> <head> <title><fl:getMessage code="L62E2" alt="Modification d\'une alerte"/></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"> <% if (!jsBeenIncluded.contains("/js/master_js.jsp")) { %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/master_js.jsp"></script> <%} if (!jsBeenIncluded.contains("/js/ajax/sarissa.js")) {%> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/sarissa.js"></script> <%} if (!jsBeenIncluded.contains("/js/ajax/ajax.js")) {%> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/ajax.js"></script> <%} if (!jsBeenIncluded.contains("/js/presentField.js")) {%> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/presentField.js"></script> <% } } if (!jsBeenIncluded.contains("/js/checkFields.jsp")) { %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/checkFields.jsp"></script> <%} if (!jsBeenIncluded.contains("/js/utils.js")) {%> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/utils.js"></script> <%} if (!jsBeenIncluded.contains("/js/calendar.jsp")) {%> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/calendar.jsp"></script> <%}if (!jsBeenIncluded.contains("/js/calendar.jsp")) {%> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/fobAC_js.jsp"></script> <%}%> <!--[if IE 7]> <script type="text/javascript" language="javascript" src="./js/edeal/libraries/json.org/json2/json2.js"></script> <![endif]--> <script type="text/javascript" language="javascript" src="./js/edeal/context/edContext.js"></script> <script type="text/javascript" language="javascript" src="./js/edeal/application/edApplication.js"></script> <script type="text/javascript" language="javascript" src="./js/edeal/libraries/includeJS/include.js"></script> <script type="text/javascript" language="javascript" src="./js/edeal/tools/utils.js"></script> <script type="text/javascript" language="javascript" src="./js/edeal/managers/edManager.js"></script> <script language="javascript"> $(document).ready(loadMainContent); function loadMainContent() { var context = new edContext('{}'); $(document).one("edApplication_onInitialize", computeEdViews); var application = new edApplication({path: "<fl:webapp/>/"}); } function computeEdViews() { edManager.createEdViewsFromHTML(); } </script> <script type="text/javascript" language="javascript"> function doSubmit() { var f = document.forms[0]; <% if (popup) { %> f.$$returnedHtmlHead.value = '<scr' + 'ipt language="javascript" type="text/javascript"><%= submitUrl %>self.close()</scr'+ 'ipt>'; <% } %> return true; } </script> <% if (popup) { %> </head> <body style="height: 90%; overflow: auto;"> <div id="object_css" style="top:0px;left: 0px;height:90%;"> <% } %> <fl:form action="save_contratpartenaire_.fl" bean="ContratPartenaire_"> <% if (popup) { %> <input type="hidden" name="Cp_Contrat" value="<%= contratId %>"> <input type="hidden" name="popup" value="1"> <input type="hidden" name="$$returnedHtmlHead" value=""> <input type="hidden" name="$$returnedHtmlBody" value="Closing..."> <% } %> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"FF071\", \"Partenaire\") %>" ou="<%= \"edit_contratpartenaire_.fl\" + (id != null ? \"?id=\" + id : \"\")%>" ignoreList="true"> <table class="container" cellpadding="0"> <tr class="ligne_separation"><td></td></tr> <tr> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="Cp_CodePartenaire" mandatoryMsgCode="MF11B" query="<%=query%>"/> <fl:fieldEdit property="Cp_DateDebut"/> <fl:fieldEdit property="Cp_DateFin"/> <fl:fieldEdit property="Cp_Statut_"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="Cp_StatutEMT" alt=""/> </table> </td> </tr> </table> <table class="container" cellpadding="0"> <tr class="ligne_separation"><td></td></tr> <tr> <td class="titrePartie"><fl:getMessage code="FF127" alt="Motif de rupture"/></td> </tr> <tr> <td class="dataValue noPaddingLeft"><fl:input property="Cp_MotifRupture" width="100%" rows="5" nodiv="false"/></td> </tr> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> </table> </fl:bigTabs> </fl:form> <% if (popup) { %> <div style="width: 100%;text-align: center;"><a href="javascript:submit()"><img src="<fl:link url="/icons/ico/valid_green_long.gif"/>"></a> <a href="javascript:window.top.close();"><img src="<fl:link url="/icons/ico/fermer_red_long.gif"/>"></a></div> </div> </body> </html> <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de