Edit C:\Windows\install\galaxie_p01_01-10\marketing\selection2\edit.jsp
<%@page import="java.util.Iterator"%> <%@page import="java.util.Vector"%> <% /****************************************************************************** * 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 import="com.edeal.frontline.custom.*"%> <%@page import="com.edeal.frontline.*"%> <%@ page session="true" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.Selection2Bean" id="Selection2" 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 = Utils.getRequestParameter(context, request, "id"); int pCond = 0; try { id = Selection2.getSe2ID(); } catch (FieldNotInitializedException e) {} boolean isCreate = id == null; String time = "0"; int ps = 0; String cond = Utils.getRequestParameter(context, request, "cond"); if (id != null) { try { pCond = Selection2.getSe2Condition(); } catch (FieldNotInitializedException e) {} cond = String.valueOf(pCond); } logger.debug("pCond: " + pCond); logger.debug("cond: " + cond); String title = null; /* Add query condition base on inactive model table ref * to Selection model list */ Vector inactiveModelCodes = dico.getRefCodeList("Uin", "Code"); String s2ModelQuery = null; if(inactiveModelCodes != null && !inactiveModelCodes.isEmpty()){ StringBuilder builder = new StringBuilder(); Iterator<Vector> inaModelCodeIt = inactiveModelCodes.iterator(); while(inaModelCodeIt.hasNext()){ Vector<String> rowValues = inaModelCodeIt.next(); if(rowValues.size() > 1){ builder.append("SmdCode <> "); builder.append("'"); builder.append(rowValues.get(1)); builder.append("'"); if(inaModelCodeIt.hasNext()){ builder.append(" AND "); } } } s2ModelQuery = builder.toString(); } %> <fl:form action="/save_selection2_create.fl" bean="Selection2"> <%if (cond != null && !"null".equals(cond) && !"0".equals(cond)) { ps = 1; %> <input name="Se2Condition" type="hidden" value="<%=ps%>"> <%} else { %> <input name="Se2Condition" type="hidden" value="<%=ps%>"> <%}%> <% if ("1".equals(cond)) { title= Utils.getMessage(session, "L659E", "Question type"); } else { title= Utils.getMessage(session, "A0011", "Ciblage"); } %> <fl:bigTabs objectTitle="<%= title %>" ou="<%= \"/edit_selection2.fl\"+(id != null? \"?id=\" + id : \"\") %>"> <table class="container" cellpadding="0"> <tr> <td colspan="5"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="labelTitreFiche"> <fl:label field="Se2Name" labelClassName="titreFiche" code="F2025"/> </td> <td class="fieldTitreFiche"> <fl:input property="Se2Name" mandatoryMsgCode="L63B1"/> </td> </tr> </table> </td> </tr> <tr><td colspan="3" class="ligne_separation"/></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel"> <fl:label code="F2000"/> </td> <td class="dataValue" colspan="3"> <fl:input property="Se2Code" mandatoryMsgCode="L6294" unicityMsgCode="M60CE"/> </td> </tr> <tr class="fieldline"> <td class="dataLabel"> <fl:label code="L305F"/> </td> <td class="dataValue" colspan="3"> <fl:input property="Se2Event"/> </td> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel"> <fl:label code="L65A2"/> </td> <td class="dataValue" colspan="3"> <% if(s2ModelQuery != null && ! "".equals(s2ModelQuery)){ %> <fl:input property="Se2Model" query="<%=s2ModelQuery %>" mandatoryMsgCode="M6103"/> <% } else { %> <fl:input property="Se2Model" mandatoryMsgCode="M6103"/> <% } %> </td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td colspan="5"> </td></tr> </table> <table class="container" cellpadding="0"> <tr class="ligne_separation"><td></td></tr> <tr> <td class="titrePartie"><fl:getMessage code="L2007" alt="Description"/></td> </tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> <tr> <td class="dataValue noPaddingLeft"><fl:input property="Se2Description" rows="8" nodiv="false"/></td> </tr> <tr class="ligne_separation"><td></td></tr> </table> </fl:bigTabs> </fl:form>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de