<% /****************************************************************************** * 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" import="com.edeal.frontline.*,java.util.*,java.text.*,java.lang.reflect.*, com.edeal.frontline.navigation.*"%> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <% 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 = ScriptElementTransition.getID(); }catch(Exception e){ id = flRequest.getRequestParameterOrAttribute("id"); } ObjectsBean tablePer = (ObjectsBean)dico.getTable("rad", "Per"); String criFobID = null; try{ criFobID = tablePer.getID(); }catch(Exception e){} // BEGIN get first LinkScriptElementID info. It's a param if this is the creation, get it from the scriptelementtransitionbean if this is an edition String lse1ID = Utils.getRequestParameter(context, request, "LseID"); if (lse1ID == null) { try { lse1ID = ScriptElementTransition.getSetLse1ID(); } catch (FieldNotInitializedException e) {} } if (lse1ID == null) logger.warn("scriptelementtransition/edit_body.jsp : I really need a linkscriptelement ID to do this!!"); String scriptID = flRequest.getRequestParameterOrAttribute("scriptID"); String dispLse1 = flRequest.getRequestParameterOrAttribute("dispLse1"); boolean canAddResponseCriteria = ((Boolean)flRequest.getAttribute("canAddResponseCriteria")).booleanValue(); String cannotAddResponseCriteriaMsg = flRequest.getRequestParameterOrAttribute("cannotAddResponseCriteriaMsg"); String sceID = flRequest.getRequestParameterOrAttribute("sceID"); // END get first LinkScriptElementID info // BEGIN get second linkscriptelementID info. Get it from the scriptelementtransitionbean if this is an edition String lse2ID = null; try { lse2ID = ScriptElementTransition.getSetLse2ID(); } catch (FieldNotInitializedException e) {} String dispLse2 = flRequest.getRequestParameterOrAttribute("dispLse2"); // END get second linkscriptelementID info //info for link script element search window String lseQuery = "LseScriptID = " + Utils.formatToSQL(context, scriptID); //get scriptelementtransition position, either from total num of transitions for the LinkScriptElement (if this is the creation) //or from the transition itself if this is an edition int maxPosition = ((Integer) flRequest.getAttribute("maxPosition")).intValue(); int ourPosition = maxPosition; try { ourPosition = ScriptElementTransition.getSetPosition(); } catch (FieldNotInitializedException e) {} //get both criteria ids String setCriSerID = null; try { setCriSerID = ScriptElementTransition.getSetCriSerID(); } catch (FieldNotInitializedException e) {} String setCriPerID = null; try { setCriPerID = ScriptElementTransition.getSetCriPerID(); } catch (FieldNotInitializedException e) {} %> <fl:getMessage code="L2025" alt="e-Deal"/>
" bean="ScriptElementTransition"> " >
<% String flechAdd = ""; flechAdd = " "; %>
<%= dispLse1 %>
"/>
<% if (id != null) { %> ">
<% if (setCriSerID != null) { %>  <fl:getMessage code=">  <fl:getMessage code="> <% } %>
<% if (setCriSerID == null) { %> <% if (canAddResponseCriteria) { %> (+) <% } else { %> <%= cannotAddResponseCriteriaMsg %> <% } %> <% } else { %> <% } %>
">
<% if (setCriPerID != null) { %>  <fl:getMessage code=">  <fl:getMessage code="> <% } %>
<% if (setCriPerID == null) { %> (+) <% } else { %> <% } %>
<% } %>