%
/******************************************************************************
* 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" %>
<%
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 actorBean = dico.getTable("sql", "Actor");
String xmlListSelect = actorBean.getObjSelectListID();
String id = null;
try {
id = Alarm.getID();
} catch (FieldNotInitializedException fnie) {
}
String almOppID;
try {
almOppID = Alarm.getAlmOppID();
} catch (FieldNotInitializedException e) {
almOppID = null;
}
String almIntID;
try {
almIntID = Alarm.getAlmIntID();
} catch (FieldNotInitializedException e) {
almIntID = null;
}
String submitUrl;
if (almIntID != null) {
submitUrl = "window.opener.location = \\'" + flRequest.computeURL("/read_interaction.fl?id=" + almIntID) + "\\';";
} else if (almOppID != null) {
submitUrl = "window.opener.location = \\'" + flRequest.computeURL("/read_opportunity.fl?id=" + almOppID) + "\\';";
} else {
submitUrl = "window.opener.location.reload();";
}
boolean isCreate = id == null;
String actID = null;
if(isCreate){
actID = flRequest.getRequestParameterOrAttribute("actID");
} else {
try{
actID = Alarm.getAlmActID();
} catch (FieldNotInitializedException fnie) {
}
}
Vector actors = (Vector)flRequest.getAttribute("actors");
if (actors == null) {
actors = new Vector();
}
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) { %>
<% if (isCreate) { %><% } else { %><% } %>
<% if (!jsBeenIncluded.contains("/js/master_js.jsp")) { %>
<%}
if (!jsBeenIncluded.contains("/js/ajax/sarissa.js")) {%>
<%}
if (!jsBeenIncluded.contains("/js/ajax/ajax.js")) {%>
<%}
if (!jsBeenIncluded.contains("/js/presentField.js")) {%>
<% }
}
if (!jsBeenIncluded.contains("/js/checkFields.jsp")) { %>
<%}
if (!jsBeenIncluded.contains("/js/utils.js")) {%>
<%}
if (!jsBeenIncluded.contains("/js/calendar.jsp")) {%>
<%}if (!jsBeenIncluded.contains("/js/calendar.jsp")) {%>
<%}%>
<% if (popup) { %>
<% } %>
" bean="Alarm">
">
">
<% if (popup) { %>
<% } %>
">
<% if(!isCreate) { %>
<% } %>
" ou="<%= \"/edit_alarm.fl\" + (id != null ? \"?id=\" + id : \"\") %>" ignoreList="true">
|
|
<% if (isCreate) { %>
">
"
target="POPUP"
url='xml_select_multiple_list.fl?id=<%=xmlListSelect%>&field=Acteurs'
>
|
|
|
<% } else { %>
|
<% } %>
|
|
|
<% if (popup) { %>
<% } %>