%@ page language="java"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="java.util.Map" %> <%@ page import="com.edeal.frontline.navigation.WebUtils" %> <%@ page import="com.edeal.frontline.ActorBean" %> <%@ page import="com.edeal.frontline.AccessDeniedException" %> <%@ page import="com.edeal.frontline.InteractionBean" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="java.util.Vector" %> <%@ page import="java.lang.reflect.Method" %> <%@ 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(); String nb = "All"; String actID = (String)session.getAttribute("actorID"); String exfEfsID = Utils.getRequestParameter(context, request, "exfEfsID"); String redact = dico.getRefIdByCode("ExfEfsID", "REDACT"); String valact = dico.getRefIdByCode("ExfEfsID", "VALACT"); String valman = dico.getRefIdByCode("ExfEfsID", "VALMAN"); String valcom = dico.getRefIdByCode("ExfEfsID", "VALCOM"); String lc = flRequest.getRequestParameterOrAttribute("lc"); if (lc == null) { lc = flRequest.getRequestParameterOrAttribute("code"); } if (lc == null) { lc = "INTERACTION"; } request.setAttribute("lc", lc); String sc = flRequest.getRequestParameterOrAttribute("sc"); String ou = flRequest.getRequestParameterOrAttribute("ou"); String objTitle = flRequest.getRequestParameterOrAttribute("obj.title"); ActorBean actor = null; boolean isAccountant = false; boolean isAdmin = false; boolean isManager = false; String customPackage = context.getContextParameter("CustomPackage"); try { actor = new ActorBean(actID, session); try { Class customProcessClass = Class.forName((customPackage == null ? "" : customPackage + ".") + "ActorBeanExtension"); Class[] parameters = {Class.forName("com.edeal.frontline.FlContext"), Class.forName("java.lang.Object")}; Method isAccountantMethode = customProcessClass.getMethod("isAccountant", parameters); Object[] arg = {context, actor}; isAccountant = ((Boolean)isAccountantMethode.invoke(customProcessClass, arg)).booleanValue(); } catch (Exception e) { } try { Class customProcessClass = Class.forName((customPackage == null ? "" : customPackage + ".") + "ActorBeanExtension"); Class[] parameters = {Class.forName("com.edeal.frontline.FlContext"), Class.forName("java.lang.Object")}; Method isAdminMethode = customProcessClass.getMethod("isAdmin", parameters); Object[] arg = {context, actor}; isAdmin = ((Boolean)isAdminMethode.invoke(customProcessClass, arg)).booleanValue(); } catch (Exception e) { } try { Class customProcessClass = Class.forName((customPackage == null ? "" : customPackage + ".") + "ActorBeanExtension"); Class[] parameters = {Class.forName("com.edeal.frontline.FlContext"), Class.forName("java.lang.Object")}; Method isManagerMethode = customProcessClass.getMethod("isManager", parameters); Object[] arg = {context, actor}; isManager = ((Boolean)isManagerMethode.invoke(customProcessClass, arg)).booleanValue(); } catch (Exception e) { } } catch (AccessDeniedException ex) { } boolean toValidate = false; try { toValidate = Boolean.valueOf(flRequest.getParameter("validate")).booleanValue(); } catch (Exception e) { } Vector managedActors = null; if (toValidate && !isAccountant) { try { Class customProcessClass = Class.forName((customPackage == null ? "" : customPackage + ".") + "ActorBeanExtension"); Class[] parameters = {Class.forName("com.edeal.frontline.FlContext"), Class.forName("java.lang.Object")}; Method getManagedActorsMethode = customProcessClass.getMethod("getManagedActors", parameters); Object[] arg = {context, actor}; managedActors = (Vector) getManagedActorsMethode.invoke(customProcessClass, arg); } catch (Exception e) { } } %>
" method="post" onsubmit="doSubmit();"> " /> " />