|
<%!
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) {}
%>
|