<% /****************************************************************************** * Copyright (c) 2000-2013 E-DEAL * * E-DEAL S.A. * 41, rue Périer * 92120 Montrouge * France * * T: +33 (0)1 73 03 29 80 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. ******************************************************************************/ %><%@ page session="true" %> <%@ page import="com.edeal.frontline.*" %> <%@ page import="java.util.*" %> <%@ page import="com.edeal.frontline.grid.GridData" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.custom.*" %> <%@ page import="com.edeal.frontline.services.addressnormalisation.*" %> <%@ page import="com.edeal.frontline.helper.ContextHelper" %> <%@ 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 id = null; try { id = Enterprise.getID(); } catch (FieldNotInitializedException e) {} String SfwID = ""; SfwID = flRequest.getRequestParameterOrAttribute("SfwID"); String typOrganisation = null; boolean isAssociation = false; boolean isResto = false; boolean isPartenaire = false; try { typOrganisation = Enterprise.getEntTyeID(); isAssociation = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "ASSO")); isResto = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "RESTO")); isPartenaire = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "PART")); } catch (FieldNotInitializedException e) {} //Vector entStrucLocalIDList = null; String cmdStsRefID = dico.getRefIdByCode("OppStoID", "ORD"); String intTodo = dico.getRefIdByCode("IntType_", "ACT"); String intCOR = dico.getRefIdByCode("IntType_", "COR"); String name = null; try { name = Enterprise.getEntCorpName(); } catch (FieldNotInitializedException e) { } String entZip = null; try { entZip = Enterprise.getEntZip(); } catch (FieldNotInitializedException e) { } String entCity = null; try { entCity = Enterprise.getEntCity(); } catch (FieldNotInitializedException e) { } String webAdr = null; try { webAdr = Enterprise.getEntWeb(); if (!webAdr.startsWith("http://") && !webAdr.startsWith("https://")) { webAdr = "http://"+webAdr; } } catch (FieldNotInitializedException fnie) { } Vector vectLoc = null; if (id != null) { String[][] queryLoc = { { "LocEntID = " + Utils.formatToSQL(context, id) } }; try { vectLoc = LocationBean.list(context, queryLoc); } catch (FrontlineException e) { } } boolean isGeoLocalized = true; try { Enterprise.getEntGeoCodeStatusID(); } catch (FieldNotInitializedException e) { isGeoLocalized = false; } String entPhotoID_ = null; /* String po_LienPhotoExt = null; String po_LienPhotoInt = null; */ String po_apercuPhotoID = null; Photo_Bean entPhoto = null; try { entPhotoID_ = (String)Enterprise.getCustomProperty("EntPhotoID_"); } catch (FieldNotInitializedException e) { } if (entPhotoID_ != null) { try { entPhoto = new Photo_Bean(entPhotoID_,context); } catch (FrontlineException e) { } } if(entPhoto != null) { try { po_apercuPhotoID = (String)entPhoto.getPo_Apercu(); } catch (FieldNotInitializedException fne) { /* try { po_LienPhotoInt = (String)entPhoto.getPo_LienPhoto(); } catch (FieldNotInitializedException fnie) { } try { po_LienPhotoExt = (String)entPhoto.getPo_LienPhotoExt(); } catch (FieldNotInitializedException fnie) { } */ } } String cacdrID = dico.getRefIdByCode("TrnTypCA", "CACDR"); String caccID = dico.getRefIdByCode("TrnTypCA", "CACC"); String cafidID = dico.getRefIdByCode("TrnTypCA", "CAFID"); String catotID = dico.getRefIdByCode("TrnTypCA", "CATOT"); String typoStructID = null; try { typoStructID = (String)Enterprise.getCustomProperty("EntTypoStructure_"); } catch (FieldNotInitializedException e){ typoStructID = ""; } String departID = null; try { departID = dico.getRefIdByCode("EntTypoStructure_", "DEPARTEMENTALE"); } catch (FrontlineException e) { departID = ""; } String regionID = null; try { regionID = dico.getRefIdByCode("EntTypoStructure_", "REGIONAL"); } catch (FrontlineException e) { regionID = ""; } String paysID = null; try { paysID = dico.getRefIdByCode("EntTypoStructure_", "PAYS"); } catch (FrontlineException e) { paysID = ""; } boolean isEditionCatalogue = false; try { isEditionCatalogue = (Boolean)Enterprise.getCustomProperty("EntEditListLogis_"); } catch (FrontlineException e) { } String annMillesime = "N/A"; // Date du jour : Date dateDuJour = new Date(); int mill = dateDuJour.getYear() + 1900; annMillesime = "" + mill; %> " listTitle="<%= Utils.getMessage(session, \"L30A2\", \"Liste des entreprises\") %>" ou="<%= \"/read_enterprise.fl?id=\" + Enterprise.getID() %>">
google news">
<% if(!isAssociation && !isResto && !isPartenaire){ %> <% }else if(isResto){ %> "/> <% } %> <% if(isPartenaire){ %> <% } %>
 
<% try { Enterprise.getEntZip(); Enterprise.getEntCity(); %>
<% } catch(FieldNotInitializedException e) { try { Enterprise.getEntCity(); %>
<% } catch (FieldNotInitializedException ex) {}} %>
<%-- begin : Adresse
<% try { Enterprise.getEntZip(); Enterprise.getEntCity(); %>
<% } catch(FieldNotInitializedException e) { try { Enterprise.getEntCity(); %>
<% } catch (FieldNotInitializedException ex) {}} %> \" : \"\"%>"/>
end : Adresse --%> <% if(!isAssociation && !isPartenaire){ %><% } %> <% if(isPartenaire){ %> "/> <% } %>
"><% if (webAdr != null) { %><% } else { %> <% } %>
<% if(!isAssociation && !isPartenaire){%> "/> <% String entStrucLocalID = null; try { entStrucLocalID = (String)Enterprise.getCustomProperty("EntStructureLocalID_"); } catch (FieldNotInitializedException e) { } if( entStrucLocalID != null ) { EnterpriseBean entAsso = new EnterpriseBean(entStrucLocalID,context); String entCorpName = null; try { entCorpName = (String)entAsso.getEntCorpName(); } catch (FieldNotInitializedException e) { entCorpName =""; } %> "/> <% String entTypoStructure_ = null; try { entTypoStructure_ = (String)entAsso.getCustomProperty("EntTypoStructure_"); } catch (FieldNotInitializedException e) { } if(entTypoStructure_ != null){ String depStructID = dico.getRefIdByCode("EntTypoStructure_", "DEPARTEMENTALE"); String regStructID = dico.getRefIdByCode("EntTypoStructure_", "REGIONAL"); String payStructID = dico.getRefIdByCode("EntTypoStructure_", "PAYS"); String entTypoStructureDisp = (String)dico.getRefDisp(session, "EntTypoStructure_", entTypoStructure_); %> <% if(entTypoStructure_.equals(depStructID)){ String depName = null; try { String depNameID = (String)entAsso.getCustomProperty("EntDepartmentID_"); depName = (String)dico.getRefDisp(session, "EntDepartmentID_", depNameID); } catch (FieldNotInitializedException e) { depName =""; } catch (FrontlineException e) { depName =""; } %> <%} else if(entTypoStructure_.equals(regStructID)) { String regName = null; try { String regNameID = (String)entAsso.getCustomProperty("EntRegionID_"); regName = (String)dico.getRefDisp(session, "EntRegionID_", regNameID); } catch (FieldNotInitializedException e) { regName =""; } catch (FrontlineException e) { regName =""; }%> <%} else if(entTypoStructure_.equals(payStructID)) { String payName = null; try { String payNameID = (String)entAsso.getEntCtrID(); payName = (String)dico.getRefDisp(session, "EntCtrID", payNameID); } catch (FieldNotInitializedException e) { payName =""; } catch (FrontlineException e) { payName =""; }%> <%} } } %>
<%=entTypoStructureDisp%>
<%=depName%>
<%=regName%>
<%=payName%>
<% } %>
<% if(!isAssociation && !isPartenaire){%> "/>
<%if(po_apercuPhotoID != null) { %> <%}%>
<%} else if (isAssociation){%> <% if(typoStructID.equalsIgnoreCase(departID)) {%> <% } else if (typoStructID.equalsIgnoreCase(regionID)) { %> <% } %>
disabled="disabled"/>
<%} else if (isPartenaire){%>
<%if(po_apercuPhotoID != null) { %> <%}%>
<% } %>
" nbPix="32"> <% if(!isAssociation && ! isPartenaire){ %> <%-- Commandes --%> " onselect="refreshCmds();"> "/> <%-- Autres Marques --%> " onselect="refreshOthLabs();refreshOthMrqs();refreshOthGds();">
 
');" tabindex="10" size="10" maxlength="10"> ';" onmouseout="window.status = '';"> ');" tabindex="11" size="10" maxlength="10"> ';" onmouseout="window.status = '';"> Ajouter">
 
 
"/>
 
 
');" tabindex="10" size="10" maxlength="10"> ';" onmouseout="window.status = '';"> ');" tabindex="11" size="10" maxlength="10"> ';" onmouseout="window.status = '';"> Ajouter">
 
 
"/>
 
');" tabindex="10" size="10" maxlength="10"> ';" onmouseout="window.status = '';"> ');" tabindex="11" size="10" maxlength="10"> ';" onmouseout="window.status = '';"> Ajouter">
 
 
"/>
<%-- Conformité site web --%> " onselect="refreshWebCoformity();"> "/> <%-- Réservations --%> " onselect="refreshResas();"> "/> <%-- Textes --%> " onselect="refreshTxts();"> "/> <%-- Chiffres d'affaires --%> " onselect="refreshTurnovers();">
<%= Utils.formatToWeb((String)dico.getRefDisp(session, "TrnTypCA", cacdrID), false) %>
 
"/>
<%= Utils.formatToWeb((String)dico.getRefDisp(session, "TrnTypCA", caccID), false) %>
 
"/>
<%= Utils.formatToWeb((String)dico.getRefDisp(session, "TrnTypCA", cafidID), false) %>
 
"/>
<%= Utils.formatToWeb((String)dico.getRefDisp(session, "TrnTypCA", catotID), false) %>
 
"/>
<%-- Enseignes --%> " onselect="refreshEnseignes();"> "/> <%-- Fichiers --%> "> <%-- Chèques Cadeaux --%> " onselect="refreshGiftCHQ();"> "/> <%-- Fidélisation --%> " onselect="refreshFidelity();">
 
"/>
 
"/>
<%-- Contacts --%> " onselect="refreshPersons();refreshPerAsso();">
"/>

"/>
<%-- Infos Société --%> ">
<%-- Correspondances --%> " onselect="refreshCorresps();"> " /> <%-- Todos --%> " onselect="refreshInts();"> " /> <%-- Prestations --%> " onselect="refreshPrestats2();refreshEquipement();">
 
<% try { Vector> values = dico.getRefList(session, "Qp_", "Te1"); %> <% } catch (FrontlineException fle) { } %> Ajouter">
 
 
"/>
 
<% try { Vector> values = dico.getRefList(session, "E1_", "Te1"); %> <% } catch (FrontlineException fle) { } %> <% try { Vector> values = dico.getRefList(session, "E2_", "Te1"); %> <% }catch (FrontlineException fle) { } %> Ajouter">
 
 
"/>
" onselect="refreshPrestats();">
<%--
 
"/> --%>
 
');" tabindex="10" size="10" maxlength="10"> ';" onmouseout="window.status = '';"> ');" tabindex="11" size="10" maxlength="10"> ';" onmouseout="window.status = '';"> <% try { Vector> values = dico.getRefList(session, "Prd", "Te1"); %>
<% } catch (FrontlineException fle) { } %>
Ajouter">
 
 
"/>
 
 
 
<% try { Vector> values = dico.getRefList(session, "Ctg", "Te1"); %> <% } catch (FrontlineException fle) { } %> <% try { Vector> values = dico.getRefList(session, "Pes", "Te1"); %> <% } catch (FrontlineException fle) { } %> Ajouter">
 
');" type="hidden"> ');" type="text"> ');" type="text">
 
 
"/>
 
');" type="text"> ');" type="text"> Ajouter">
 
 
"/>
 
 
 
"/>
 
 
 
<%-- Photos --%> " onselect="refreshPhotos();"> "/> <%-- Affiliation --%> " onselect="refreshMissions();"> "/> "/>

<%-- Contrats --%> " onselect="refreshCTR();"> "/> <%-- Instances --%> " onselect="refreshInstances();"> "/> <%-- Solicitation --%> " onselect="refreshSols();"> "/>
<% } else if(isAssociation){%> <%-- Infos Société --%> ">
<%-- Contacts --%> " onselect="refreshPersons();">
"/>
<%-- Cotisations --%> " onselect="refreshCmds();"> "/> <%-- Correspondances --%> " onselect="refreshCorresps();"> " /> <%-- Todos --%> " onselect="refreshInts();"> " /> <%-- Fichiers --%> "> <%-- Instances --%> " onselect="refreshInstancesAsso();"> "/>
<% } else if (isPartenaire) {%> <%-- Contacts --%> " onselect="refreshPersonsPart()">
"/>
<%-- Infos Société --%> ">
<%-- Infos Partenaire "> --%> <%-- Correspondances --%> " onselect="refreshCorresps();"> " /> <%-- Todos --%> " onselect="refreshInts();"> " /> <%-- Contrats --%> " onselect="refreshCTR();"> "/> <%-- Fichiers --%> ">
<%} %>