<%@page import="com.google.gson.GsonBuilder"%> <%@page import="com.google.gson.Gson"%> <%@page import="org.apache.http.HttpRequest"%> <%@page import="com.edeal.frontline.DataDictionary"%> <%@page import="org.apache.commons.lang.StringEscapeUtils"%> <%@page import="java.util.Hashtable"%> <%@page import="java.util.HashMap"%> <%@page import="java.util.Map"%> <%@page import="com.edeal.frontline.FrontlineException"%> <%@page import="com.edeal.frontline.LocationBean"%> <%@page import="com.edeal.frontline.EnterpriseBean"%> <%@page import="com.edeal.frontline.PersonBean"%> <%@page import="java.util.Vector"%> <%@page import="java.util.ArrayList"%> <%@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"%> <%@ taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %>
<% if (letterModels!=null && letterModels.size()>0) { %> <% } else { %> <% } %>
<%! String getOptionHtml (FlRequest flRequest, String refCode, boolean checked) throws FrontlineException { FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); String refAdressFilterID = dico.getRefIdByCode("Aru", null, refCode); String refAdressFilterDisplay = (String) dico.getRefDisp(flRequest.getSession(), "Aru", "Te1", refAdressFilterID); return ""+refAdressFilterDisplay; } %>
    <% String refAdressFilterID = null; String refAdressFilterDisplay = null; boolean personIsNull = true; try { PersonBean person = new PersonBean(Interaction.getIntDestPerID(), session); personIsNull = false; String perEntID = null; try { perEntID = person.getPerEntID(); } catch (FieldNotInitializedException e) {} String perLocID = null; try { perLocID = person.getPerLocID(); } catch (FieldNotInitializedException e) {} %>
  • <%= getOptionHtml(flRequest, "INTDEFAULTADDPER", true)%>
  • <% %>
  • <%= getOptionHtml(flRequest, "INTPERADDPER", false)%>
  • <% if (perEntID!=null || perLocID!=null) { %>
  • <%= getOptionHtml(flRequest, "INTPROADDPER", false)%>
  • <% } } catch (FieldNotInitializedException e) {} try { %>
  • <%= getOptionHtml(flRequest, "INTENTADD", personIsNull)%>
  • <% EnterpriseBean enterprise = new EnterpriseBean(Interaction.getIntDestEntID(), session); String[] fields = { "LocID", "LocName", "LocAd1", "LocAd2", "LocAd3", "LocCity", "LocZip", "LocCtrID:Val", "LocAddressType:Val" }; String[][] query = { { "LocEntID = " + Utils.formatToSQL(context, Interaction.getIntDestEntID()) } }; Vector locs = null; try { locs = LocationBean.listSummary(context, fields, query); } catch (FrontlineException e) {} if (locs!=null && locs.size()>0) { %>
  • <%= getOptionHtml(flRequest, "INTLOCADD", false) %>
  • <% } } catch (FieldNotInitializedException e) {} %>