%@page import="com.edeal.frontline.helper.InteractionBaseHelper"%>
<%@page import="com.edeal.frontline.helper.custom.InteractionHelper"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Vector"%>
<%@page import="org.json.JSONArray"%>
<%@page import="org.json.JSONObject"%>
<%@page import="com.edeal.frontline.FieldNotInitializedException"%>
<%@page import="com.edeal.frontline.navigation.FlRequest"%>
<%@page import="com.edeal.frontline.MessagesBean"%>
<%@page import="com.edeal.frontline.helper.ContextHelper"%>
<%@ taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %>
<%
InteractionHelper interactionHelper = new InteractionHelper(Interaction);
//InteractionBaseHelper interactionHelper = new InteractionBaseHelper(Interaction);
JSONArray emailCorrespondantJSONObj = interactionHelper.getEmailCorrespondantCustomJSONArray();
String emailCorrespondantJSON = emailCorrespondantJSONObj!=null?emailCorrespondantJSONObj.toString():"[]";
//JSONArray emailCorrespondantJSONObj = interactionHelper.getEmailCorrespondantJSONArray();
//String emailCorrespondantJSON = emailCorrespondantJSONObj!=null?emailCorrespondantJSONObj.toString():"[]";
JSONArray emailActorJSONObj = interactionHelper.getEmailActorJSONArray(true, session);
String emailActorJSON = emailActorJSONObj!=null?emailActorJSONObj.toString():"[]";
%>
<%
ObjectsBean actorBean = dico.getTable("sql", "Actor");
String xmlActortListID = null;
try {
xmlActortListID = actorBean.getObjSelectListID();
} catch (FieldNotInitializedException e) {
}
ObjectsBean personBean = dico.getTable("sql", "Person");
String xmlPersonListID = null;
try {
xmlPersonListID = personBean.getObjSelectListID();
} catch (FieldNotInitializedException e) {
}
%>
<%
try {
Interaction.getIntPvtID();
%>
<%
} catch (FieldNotInitializedException e) { } %>
<%
try {
Interaction.getIntAtvID();
%>
<%
} catch (FieldNotInitializedException e) { }
String selectPersonLinkMultiple = "";
if (xmlPersonListID != null) {
selectPersonLinkMultiple = "xml_select_multiple_list.fl?id=" + xmlPersonListID;
} else {
if (ContextHelper.hasMultifunction(context)) {
selectPersonLinkMultiple = "xml_select_multiple_list.fl?code=FUNCTIONS";
} else {
selectPersonLinkMultiple = "xml_select_multiple_list.fl?code=PERSON";
}
}
String selectActorLinkMultiple = "";
if (xmlActortListID != null) {
selectActorLinkMultiple = "xml_select_multiple_list.fl?id=" + xmlActortListID;
} else {
selectActorLinkMultiple = "xml_select_multiple_list.fl?code=ACTOR";
}
String selectCorrespondentLinkMultiple = "";
selectCorrespondentLinkMultiple = "select_correspondent.fl?multivalSeparator=|&";
%>