Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\sales\person\perdepid_change_ajax.jsp
<%@ page language="java" contentType="text/plain;charset=UTF-8"%><%@ page import="com.edeal.frontline.navigation.FlRequest" %><%@ page import="com.edeal.frontline.FlContext" %><%@ page import="java.util.Vector" %><%@ page import="java.lang.reflect.Method" %><%@ page import="com.edeal.frontline.FieldNotInitializedException" %><%@ page import="com.edeal.frontline.EventBean" %><%@ page import="com.edeal.frontline.Utils" %><%@ page import="com.edeal.frontline.LocationBean" %><%@ page import="com.edeal.frontline.FrontlineException" %><%@ page import="java.util.Hashtable" %><%@ page import="com.edeal.frontline.EnterpriseBean" %><%@ page import="com.edeal.frontline.DataDictionary" %><%@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(); StringBuffer buf = new StringBuffer(); String perDepID = flRequest.getParameter("PerDepID"); String perDepCode = ""; if (perDepID == null) { logger.error("perdepid_change.jsp : String PerDepID is null."); perDepID = ""; } else { perDepCode = dico.getRefCode("PerDepID", perDepID); } String perFctID = flRequest.getParameter("PerFctID"); if (perFctID == null) { perFctID = ""; } Vector perFctS = dico.getRefList(session, "PerFctID"); buf.append("var f = document.forms[0];\n"); buf.append("if (f.PerFctID) { \n"); buf.append("f.PerFctID.options.length = 0;\n"); buf.append("f.PerFctID.options[0] = new Option('', '');\n"); int selected = 0; int cnt = 1; for (int i = 0; i < perFctS.size(); i++) { Vector fct = (Vector)perFctS.elementAt(i); String fctID = (String)fct.firstElement(); String fctDisp = (String)fct.elementAt(1); String fctTe3 = (String)dico.getRefDisp(session, "Fct", "Te3", fctID); if ((fctTe3 != null && fctTe3.equals(perDepCode)) || ("".equals(perDepID))) { if (perFctID.equals(fctID)) { selected = cnt; } buf.append("f.PerFctID.options[" + (cnt)); buf.append("] = new Option('" + Utils.formatToJavascript(fctDisp) + "','" + fctID + "'); \n"); cnt++; } } buf.append("f.PerFctID.selectedIndex=" + selected + "; \n"); buf.append("} \n"); %><%= buf.toString() %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de