<%@page session="true" import="com.edeal.frontline.*,java.util.*"%> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@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 EntID = null; try { EntID = Enterprise.getEntID(); }catch (FieldNotInitializedException e){} String entCorpName = null; String entAd1 = null; String entAd2 = null; String entAd3 = null; String EntZip = null; String entCity = null; String entCtrID = null; String entCtrStr = null; String entActID = null; String entPosID = null; String entPosStr = null; String entPhone = null; String entFax = null; String entWeb = null; String entOriID = null; int entTurnOver = Integer.MIN_VALUE; try{ entCorpName = Enterprise.getEntCorpName(); }catch (FieldNotInitializedException e){} try{ entAd1 = Enterprise.getEntAd1(); }catch (FieldNotInitializedException e){} try{ entAd2 = Enterprise.getEntAd2(); }catch (FieldNotInitializedException e){} try{ entAd3 = Enterprise.getEntAd3(); }catch (FieldNotInitializedException e){} try{ EntZip = Enterprise.getEntZip(); }catch (FieldNotInitializedException e){} try{ entPhone = Enterprise.getEntPhone(); }catch (FieldNotInitializedException e){} try{ entFax = Enterprise.getEntFax(); }catch (FieldNotInitializedException e){} try{ entWeb = Enterprise.getEntWeb(); }catch (FieldNotInitializedException e){} try{ entActID = Enterprise.getEntActID(); }catch (FieldNotInitializedException e){} try{ entCity = Enterprise.getEntCity(); }catch (FieldNotInitializedException e){} try{ entCtrID = Enterprise.getEntCtrID(); entCtrStr = (String) dico.getRefDisp("EntCtrID", entCtrID); }catch (FieldNotInitializedException e){} String entAtvID = null; String entAtvStr = null; try{ entAtvID = Enterprise.getEntAtvID(); entAtvStr = (String) dico.getRefDisp("EntAtvID", entAtvID); }catch (FieldNotInitializedException e){} try{ entTurnOver = Enterprise.getEntTurnOver(); }catch (FieldNotInitializedException e){} try{ entWeb = Enterprise.getEntWeb(); if (entWeb != null && !entWeb.startsWith("http://") && !entWeb.startsWith("https://")) { entWeb = "http://"+entWeb; } }catch (FieldNotInitializedException e){} try{ entPosID = Enterprise.getEntPosID(); entPosStr = (String)dico.getRefDisp("EntPosID", entPosID); }catch (FieldNotInitializedException e){} try{ entOriID = Enterprise.getEntOriID(); }catch (FieldNotInitializedException e){} boolean hasAd = (entAd1 != null) || (entAd2 != null) || (entAd3 != null); //liste des personnes de l'entreprise String[] fields = new String[]{"PerID","PerEntID","PerFstName","PerName","PerFctID","PerMobile","PerPhone","PerMail"}; String[][] query = new String[][]{{"PerEntID = "+Utils.formatToSQL(context,EntID.trim())}}; Vector perlist; try{ perlist = PersonBean.listSummary(context,fields,query); }catch(Exception e){ perlist = new Vector(); } %> <fl:getMessage code="L30A2" alt="Liste des entreprises"/>

<%= entCorpName != null ? Utils.formatToWeb(entCorpName,false) : "" %>

<% if(entAd1 != null || entAd2 != null || entAd3 != null || EntZip != null || entCtrID != null){%> <%= ( entAd2 != null ? entAd2 + " " : "" )%><%= ( entAd3 != null ? entAd3 + " " : "" )%><%= ( EntZip != null ? EntZip + " " : "" )%><%= ( entCity != null ? entCity + " " : "" )%>"> <%= entAd1 != null ? Utils.formatToWeb(entAd1,false) : ""%> <%= entAd2 != null ? Utils.formatToWeb(entAd2,false) : ""%> <%= entAd3 != null ? Utils.formatToWeb(entAd1,false) : ""%> <%= hasAd ? "
" : ""%> <%= EntZip != null ? Utils.formatToWeb(EntZip,false) : ""%> <%= entCity != null ? Utils.formatToWeb(entCity,false) : ""%> <%= EntZip == null && entCity == null ? "" : "
"%> <%= entCtrStr != null ? Utils.formatToWeb(entCtrStr,false) : ""%>

<% } %> <% if(entPhone != null){ %> <%= Utils.formatPhoneToMobile(entPhone,session)%>
<% } if(entFax != null){ %> <%= Utils.formatToWeb(entFax,false)%>
<% } if(entWeb != null){ %> <%= Utils.formatToWeb(entWeb,false)%> <% } %>
<% if(entActID != null){ %> <% }if(entAtvStr != null){ %> <% }if(entTurnOver != Integer.MIN_VALUE){ %> <% }if(entPosStr != null ){%> <% } if(entOriID != null ){%> <% } %>
<%= Utils.formatToWeb(entAtvStr,false)%>
:
<%= Utils.formatToWeb(entPosStr,false)%>
 :
<% if(perlist != null && !perlist.isEmpty()){ %>
<% for(int i=0; i <% } %> <% } %>

> <%= displayName%>
<%= (function != null) ? Utils.formatToWeb(function, false)+"
" : "" %> <%if(perPhone != null){ %> <%= Utils.formatPhoneToMobile(perPhone,session)%>
<%}if(perMobile != null){%> <%= Utils.formatPhoneToMobile(perMobile,session)%>
<% }if(perMail != null){%> <%= Utils.formatToWeb(perMail,false)%>
<% } %>