Edit C:\Users\Administrator\Desktop\Back\Livraison EVQG22\sales\enterprise\read.jsp
<%@page import="com.edeal.frontline.helper.custom.Contrat_Helper"%> <% /***************************************************************************** * 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" %> <%@page import="com.edeal.frontline.helper.custom.EnterpriseHelper"%> <%@ taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.EnterpriseBean" id="Enterprise" scope="request"/> <%-- <jsp:useBean class="com.edeal.frontline.custom.Fermetures_Bean" id="Fermetures_" scope="session"/> <jsp:useBean class="com.edeal.frontline.custom.Equipement_Bean" id="Equipement_" scope="request"/> <jsp:useBean class="com.edeal.frontline.custom.OtherGuides_Bean" id="OtherGuides_" scope="session"/> <jsp:useBean class="com.edeal.frontline.custom.OtherLbls_Bean" id="OtherLbls_" scope="session"/> <jsp:useBean class="com.edeal.frontline.custom.OtherMrq_Bean" id="OtherMrq_" scope="session"/> --%> <script language="javascript"> //http://u-project2.umanis.com/view.php?id=41725 Affichage nom société document.title = '<fl:getProperty name="Enterprise" property="EntTriName_" alt=""/>'; function refreshCarteFID(){ _grid__CARTEFID_js_.render(); } function deleteMarkedCa_ID(Ca_ID) { if (confirm('<fl:getMessage code="MF1B6" alt="Etes-vous sûr de vouloir supprimer cette carte?" js="true"/>')) { doAjax('<fl:webapp/>/delete_carteFID.fl?id='+Ca_ID , waitNrefreshCarteFID_); } } function waitNrefreshCarteFID_(arrIndex) { if (eDealXmlhttpArr[arrIndex].readyState == 4) { hideWaiting(); refreshCarteFID(); } } </script> <style> .black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 200%; background-color: grey; z-index:1001; y-index:-200; -moz-opacity: 0.8; opacity:.50; filter: alpha(opacity=50); } .white_content { display: none; position: absolute; top: 35%; left: 40%; width: 15%; height: 15%; padding: 5px; border: 5px solid DodgerBlue; background-color: white; z-index:1002; overflow: auto; } </style> <% 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; boolean isCabaudit = false; boolean isJournaliste = false; boolean isPresta = false; boolean editChapsPresta = false; boolean isResto2 = false; String mensualite=null; String modeReglement=null; mensualite=EnterpriseHelper.getModeReglement(context,id); if(mensualite!=null){ modeReglement =(String)dico.getRefDisp("Mg_","Te1", mensualite); } try { typOrganisation = Enterprise.getEntTyeID(); isAssociation = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "ASSO")); isResto = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "RESTO")); if(isResto || typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "ETAB")))isResto2 = true; isPartenaire = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "PART")); isCabaudit = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "AUDIT")); isJournaliste = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "JOURN")); isPresta = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "PRESTA")); } catch (FieldNotInitializedException e) {} //Vector<String> entStrucLocalIDList = null; Vector <String> mqIds = null; mqIds = new Vector<String>(); String apercuIcoID = null; String ctrPrincipalID = null; if (!isAssociation && !isPartenaire && !isCabaudit && !isJournaliste && !isPresta) { // les marques EnterpriseHelper entHelper = new EnterpriseHelper(Enterprise); mqIds = entHelper.getMarquesIcos(Enterprise); // rappatrier le contrat principal ctrPrincipalID = entHelper.getCtrPrincipal(Enterprise); } String titreEntreprise = ""; titreEntreprise = (String) dico.getRefDisp("EntTyeID", typOrganisation); 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 numVoie = null; try{ numVoie = (String)Enterprise.getCustomProperty("EntVoieNum_"); }catch(FieldNotInitializedException e){ } String natVoie = null; try{ natVoie = (String)Enterprise.getCustomProperty("EntNatureVoieID_"); }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<LocationBean> 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; String entPhoto2ID_ = null; Photo_Bean entPhoto2 = null; String po_apercuPhoto2ID = null; String nomPhotoGuide1 = ""; String nomPhotoGuide2 = ""; try { entPhotoID_ = (String)Enterprise.getCustomProperty("EntPhotoID_"); } catch (FieldNotInitializedException e) { } try { entPhoto2ID_ = (String)Enterprise.getCustomProperty("EntPhoto2ID_"); } catch (FieldNotInitializedException e) { } if (entPhotoID_ != null) { try { entPhoto = new Photo_Bean(entPhotoID_,context); nomPhotoGuide1 = entPhoto.getPo_NomPhoto(); } catch (FrontlineException e) { } } if (entPhoto2ID_ != null) { try { entPhoto2 = new Photo_Bean(entPhoto2ID_,context); nomPhotoGuide2 = entPhoto2.getPo_NomPhoto(); } catch (FrontlineException e) { } } if(entPhoto2ID_!= null) { try { po_apercuPhoto2ID = (String)entPhoto2.getPo_Apercu(); } catch (FieldNotInitializedException fne) { } } if(entPhoto != null) { try { po_apercuPhotoID = (String)entPhoto.getPo_Apercu(); } catch (FieldNotInitializedException fne) { } } String cacdrID = dico.getRefIdByCode("TrnTypCA", "CACDR"); String caccID = dico.getRefIdByCode("TrnTypCA", "CACC"); String cafidID = dico.getRefIdByCode("TrnTypCA", "CAFID"); String catotID = dico.getRefIdByCode("TrnTypCA", "CATOT"); Vector urlCrystal = new Vector(); urlCrystal = dico.getRefList("Rep", "Te1"); Vector lienAffiche = new Vector(); lienAffiche = dico.getRefList("Rep", "Te2"); Vector lienType = new Vector(); lienType = dico.getRefList("Rep", "Te3"); Vector lienTypeTarget = new Vector(); lienTypeTarget = dico.getRefList("Rep", "Nu1"); Vector urlRes = new Vector(); urlRes = dico.getRefList("Res", "Te1"); Vector lienAfficheres = new Vector(); lienAfficheres = dico.getRefList("Res", "Te2"); Vector lienTyperes = new Vector(); lienTyperes = dico.getRefList("Res", "Te3"); Vector lienTypeTargetres = new Vector(); lienTypeTargetres = dico.getRefList("Res", "Nu1"); Vector urlCev = new Vector(); urlCev = dico.getRefList("Cev", "Te1"); Vector lienAffichecev = new Vector(); lienAffichecev = dico.getRefList("Cev", "Te2"); Vector lienTypecev = new Vector(); lienTypecev = dico.getRefList("Cev", "Te3"); Vector lienTypeTargetcev = new Vector(); lienTypeTargetcev = dico.getRefList("Cev", "Nu1"); 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 departMultiID; try { departMultiID = dico.getRefIdByCode("EntTypoStructure_", "MULTI"); } catch (FrontlineException e) { departMultiID = ""; } 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) { } boolean canGenerateCotDevis = false; try { canGenerateCotDevis = (Boolean)Enterprise.getCustomProperty("EntGenCotDevis_"); } catch (FrontlineException e) { } boolean islgXML = false; try { islgXML = (Boolean)Enterprise.getCustomProperty("EntlgXML_"); } catch (FrontlineException e) { } boolean ispassrelle = false; try { ispassrelle = (Boolean)Enterprise.getCustomProperty("Entpasserelle_"); } catch (FrontlineException e) { } boolean ischaine = false; try { ischaine = (Boolean)Enterprise.getCustomProperty("Entchainehotel_"); } catch (FrontlineException e) { } String annMillesime = "N/A"; // Date du jour : Date dateDuJour = new Date(); int mill = dateDuJour.getYear() + 1900; annMillesime = "" + mill; String queryCcApointe = ""; queryCcApointe = "[[GchStatusID:RefVal = 'IN', GchUseWithAdherent <> '" + id + "'] , [GchStatusID:RefVal = 'IN', GchUseWithAdherent = null]]"; Boolean existeCcPointeAajouterBordereau = false; if(id != null){ String[] fields = {"GchID"}; String[][] query = {{"GchUseWithAdherent = '" + id + "'" , "GchStatusID:RefVal = 'PO'"}}; Vector list = GiftCheque_Bean.listSummary(context, fields, query); if(list != null && !list.isEmpty()) { existeCcPointeAajouterBordereau = true; } } boolean DISPLAY_PLAQUES = false; try { DISPLAY_PLAQUES = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "ETAB")) || typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "HOTEL")) || typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "INSOLIT")) || typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "MAISON")) || typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "AUBERGE")); } catch (FieldNotInitializedException e) {} %> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <script language="javascript" src="<fl:webapp/>/js/checkFields.jsp"></script> <script language="javascript" src="<fl:webapp/>/js/popup.js"></script> <script language="javascript"> <%if (po_apercuPhotoID != null) {%> var fois = 0; var apercu; function afficheImage() { /*if (fois != 0) { return; } */ var apercuWidth = (apercu.width < 400 ? 400 : apercu.width + 50); var apercuHeight = ((apercu.height + 100) < 400 ? 400 : (apercu.height + 100)); var ouvrirImage = window.open('<fl:webapp/>/sales/photo_/showApercu.jsp?id=<%=po_apercuPhotoID%>','photoWindow','toolbar=0,location=0,menuBar=0,scrollbars=0,resizable=1,width=' + apercuWidth + ',height=' + apercuHeight); fois=1; } <%}%> function refreshInstancesAsso(){ _grid__EVTASSO_js_.render(); } function refreshInstances(){ _grid__INSTANCE2_js_.render(); } function refreshGiftCHQ(){ _grid__GCH_EMB3_js_.render(); } function refreshPrestats(){ //_grid__RESTOS_js_.render(); refreshPrix(); refreshFermetures(); refreshRooms(); refreshTimetables(); //loadTypePrestation(); var f = document.prix; //loadTypePrestation(f.PrxTypeID.value); } function refreshPrestats2(){ _grid__EQP_EMB_js_.render(); _grid__ENV_EMB_js_.render(); } function refreshEnvies(){ _grid__ENV_EMB_js_.render(); } function doRefresh() { window.top.location.reload(); } function refreshFermetures(){ _grid__FER_EMB_js_.render(); } function refreshPrix(){ _grid__PRX_EMB_js_.render(); } function refreshRooms(){ _grid__ROO_EMB_js_.render(); } function refreshTurnovers(){ _grid__TURNOVERS1_js_.render(); _grid__TURNOVERS2_js_.render(); _grid__TURNOVERS3_js_.render(); _grid__TURNOVERS4_js_.render(); } function refreshFidelity(){ _grid__CQF_EMB_js_.render(); _grid__TRF_EMB_js_.render(); } function refreshEnseignes(){ _grid__ENSEIGNES_js_.render(); } function refreshOthLabs(){ _grid__OTHLABELS_js_.render(); } function refreshOthMrqs(){ _grid__OTHMARQUES_js_.render(); } function refreshDivers(){ _grid__DIVERS_js_.render(); } function refreshOthGds(){ _grid__OTHGUIDES_js_.render(); } function refreshMissions(){ _grid__AUDIT_js_.render(); _grid__CLAS_EMB_js_.render(); } function refreshWebCoformity(){ _grid__WEBCONFORM_js_.render(); } function refreshPerAsso(){ _grid__PER_ASSO_js_.render(); } function refreshCTR(){ _grid__CTR_EMB_js_.render(); } //-------------------- function refreshCONTRATS(){ _grid__CONTRATS_js_.render(); } //-------------------- function refreshPersons() { _grid__PER_EMB_js_.render({"PerEntID":"<%=Enterprise.getID()%>"},{"PerLocID":"LocEntID='<%=Enterprise.getID()%>'"}); } function refreshPersonsPart() { _grid__PER_EMB_PT_js_.render({"PerEntID":"<%=Enterprise.getID()%>"},{"PerLocID":"LocEntID='<%=Enterprise.getID()%>'"}); } function refreshCmds() { _grid__CMD_EMB_js_.render(); } function refreshDevs() { _grid__DEV_EMB_js_.render(); } function refreshFacs() { _grid__FAC_EMB_js_.render(); } function refreshDevs() { _grid__DEV_EMB_js_.render(); } function refreshFacts() { _grid__Fact_EMB_js_.render(); } function refreshSols() { _grid__SOL_EMB_js_.render(); } function refreshSols_OLA() { _grid__SOL_EMB_OL_js_.render(); } function refreshResas() { _grid__RESA_js_.render(); } function refreshResaRestaurants() { _grid__RESA_RESTA_js_.render(); } function refreshTxts(){ _grid__TEXTES_js_.render(); } function refreshInts() { _grid__INTERALIST_js_.render(); } function refreshCots() { _grid__COTISATION_js_.render(); } function refreshPhotos() { _grid__PHOTO_EMB_js_.render(); } function refreshTiersAssocies() { _grid__TIERS_EMB_js_.render(); } function refreshCorresps() { _grid__CORRESLIST_js_.render(); } function refreshLocations(){ myAjaxURL_LOC_EMB = _grid__LOC_EMB_js_.getAjaxUrl(); _grid__LOC_EMB_js_.render("LocEntID",'<%= Enterprise.getID()%>') } function refreshLnks() { _grid__EntLin_js_.render("EntName",encodeURIComponent('<%= Utils.formatToJavascript(name) %>')); } function doLink() { if (navigator.appName == 'Microsoft Internet Explorer') { window.open('<fl:webapp/>/open_link_enterprise.fl?entID=<%= id %>', 'LinkEnt', 'menubar=no, status=no, toolbar=no, scrollbars=no, resizable=yes, width=840, height=230'); } else { window.open('<fl:webapp/>/open_link_enterprise.fl?entID=<%= id %>', 'LinkEnt', 'menubar=no, status=no, toolbar=no, scrollbars=no, resizable=yes, width=840, height=200'); } } function doLinkID(linID) { if (navigator.appName == 'Microsoft Internet Explorer') { window.open('<fl:webapp/>/open_link_enterprise.fl?entID=<%= id %>&id=' + linID, 'LinkEnt', 'menubar=no, status=no, toolbar=no, scrollbars=no, resizable=yes, width=840, height=230'); } else { window.open('<fl:webapp/>/open_link_enterprise.fl?entID=<%= id %>&id=' + linID, 'LinkEnt', 'menubar=no, status=no, toolbar=no, scrollbars=no, resizable=yes, width=840, height=200'); } } function delLink(linID) { if (confirm('<fl:getMessage code="M2004" alt="Etes-vous sûr de vouloir supprimer?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=Link&id=' + linID, lnkDelReturn); } } function lnkDelReturn(arrIndex) { if (eDealXmlhttpArr[arrIndex].readyState == 4) { window.setTimeout(refreshLnks, 10); } } //chercher société avec siren function searchSociete() { entCorpName = '<%= Utils.formatToJavascript(name) %>'; siren = '<fl:getProperty name="Enterprise" property="EntSiren" alt=""/>'; EntZip = '<fl:getProperty name="Enterprise" property="EntZip" alt=""/>'; if (siren != '') { if (siren.length > 9) { try { siren = siren.substring(0,9); } catch(e) { } } window.open('http://www.societe.com/cgi-bin/recherche?rncs=' + siren); } else if (entCorpName != '' || EntZip != '') { if (EntZip != '') { EntZip = EntZip.substring(0,2); } window.open('http://www.societe.com/cgi-bin/liste?nom=' + entCorpName + '&dep=' + EntZip); } else { window.open('http://www.societe.com'); } } function openLinkSite(){ entWeb = '<%= Utils.formatToJavascript(webAdr) %>'; if (entWeb != '') { window.open(entWeb); } } function goSearchEnterprise() { popupCenter('http://news.google.com/news/search?q=<%= Utils.formatToJavascript(Utils.encodeURIComponent(name)) %>', '<%= Utils.getMessage(session, "L7090", "Google news").replaceAll(" ", "") %>', '930', '600', 'menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes'); } function doOnLoad() { if(!<%=isAssociation%> && !<%=isPartenaire%> && !<%=isCabaudit%> && !<%=isJournaliste%> && !<%=isPresta%>){ refreshPersons(); refreshPerAsso(); } else if( (!<%=isAssociation%>) && (!<%=isPartenaire%>) ) { refreshPersonsPart(); refreshPerAsso(); //refreshCmds(); //refreshDevs(); //refreshFacs(); }else if(<%=isAssociation%>) { refreshPersons(); }else if(<%=isPartenaire%>) { refreshPersonsPart(); } <%if (po_apercuPhotoID != null) {%> apercu = new Image(); apercu.src = '<fl:webapp/>/download?id=<%=po_apercuPhotoID%>'; // Sometimes, for an unknown reason, we have to do it twice if (apercu.width == 0 && apercu.height == 0) { apercu = new Image(); apercu.src = '<fl:webapp/>/download?id=<%=po_apercuPhotoID%>'; } <%}%> } function parseDateT(date) { var dateParts = date.split("/"); var dateParsed = new Date(dateParts[2], (dateParts[1] - 1), dateParts[0]); return dateParsed; } function addFermeture() { var f = window.document.fermetures; if(f.FerPlageBgDt.value == '' && f.FerHebdoText.value == '') { alert('<fl:getMessage code="MF099" alt="Vous devez saisir la date de début." js="true"/>'); f.FerPlageBgDt.focus(); return; } if(f.FerPlageEndDt.value == '' && f.FerHebdoText.value == '') { alert('<fl:getMessage code="MF09A" alt="Vous devez saisir la date de fin." js="true"/>'); f.FerPlageEndDt.focus(); return; } var args = '&FerTiersID=<%=id%>'; if (f.FerMilID.value != '') { args += '&FerMilID=' + encodeURIComponent(f.FerMilID.value); } if (f.FerCategorie.value != '') { args += '&FerCategorie=' + encodeURIComponent(f.FerCategorie.value); } if (f.FerPlageBgDt.value != '') { args += '&FerPlageBgDt=' + encodeURIComponent(f.FerPlageBgDt.value); } if (f.FerPlageEndDt.value != '') { args += '&FerPlageEndDt=' + encodeURIComponent(f.FerPlageEndDt.value); } if (f.FerHebdoText.value != '') { args += '&FerHebdoText=' + encodeURIComponent(f.FerHebdoText.value); } var ajaxURL = '<fl:link url="/save_fermetures_ajax.fl?"/>' + args; f.FerPlageBgDt.value = ''; f.FerPlageEndDt.value = ''; f.FerHebdoText.value = ''; doAjax(ajaxURL, waitNrefreshSLFermetures); } function addChambre() { var f = window.document.chambres; if(f.RooTypeChambre.value == '') { alert('<fl:getMessage code="MF09E" alt="Vous devez saisir un type de chambre." js="true"/>'); f.RooTypeChambre.focus(); return; } var args = '&RooTiers=<%=id%>'; if (f.RooMillesimeID.value != '') { args += '&RooMilID=' + encodeURIComponent(f.RooMillesimeID.value); } if (f.RooTypeChambre.value != '') { args += '&RooTypeChambre=' + encodeURIComponent(f.RooTypeChambre.value); } if (f.RooCouchageNb.value != '') { args += '&RooCouchageNb=' + encodeURIComponent(f.RooCouchageNb.value); } if (f.RooNumber.value != '') { args += '&RooNumber=' + encodeURIComponent(f.RooNumber.value); } //var ajaxURL = '<fl:link url="/save_object_ajax.fl?type=Room_&$$presentFields="/>' + args; var ajaxURL = '<fl:link url="/save_chambres_ajax.fl?"/>' + args; f.RooCouchageNb.value = ''; f.RooNumber.value = ''; doAjax(ajaxURL, waitNrefreshSLRooms); } function addPtitdej(){ var f = window.document.ptitdej; var args = '&id=<%=id%>'; if (f.EntPtitDej_.value != '') { args += '&EntPtitDej_=' + encodeURIComponent(f.EntPtitDej_.checked); } var ajaxURL = '<fl:link url="/save_object_ajax.fl?type=Enterprise&$$presentFields="/>' + args; doAjax(ajaxURL , addDiversCallback); } function addDivers(){ var f = window.document.divers; var args = '&id=<%=id%>'; if (f.EntThema_.value != '') { args += '&EntThema_=' + encodeURIComponent(f.EntThema_.value); } var cboxes1 = document.getElementsByName('EntBankCardID_'); var len1 = cboxes1.length; var argCards = ""; for (var i=0; i<len1; i++) { if(cboxes1[i].checked) { argCards += cboxes1[i].value + "|"; } } var cboxes2 = document.getElementsByName('EntSpokLngID_'); var len2 = cboxes2.length; var argSpokLng = ""; for (var i=0; i<len2; i++) { if (cboxes2[i].checked) argSpokLng += cboxes2[i].value + "|"; } args += '&EntBankCardID_=' + encodeURIComponent(argCards); args += '&EntSpokLngID_=' + encodeURIComponent(argSpokLng); var ajaxURL = '<fl:link url="/save_object_ajax.fl?type=Enterprise&$$presentFields="/>' + args; doAjax(ajaxURL , addDiversCallback); } function addDiversCallback(arrIndex){ if (eDealXmlhttpArr[arrIndex].readyState == 4) { hideWaiting(); } } function addOtherMrq() { var f = window.document.autresmrq; /* if(f.Om_DateDeb.value == '') { alert('<fl:getMessage code="MF0A2" alt="Vous devez saisir date de début." js="true"/>'); f.Om_DateDeb.focus(); return; } if(f.Om_DateFin.value == '') { alert('<fl:getMessage code="MF0A3" alt="Vous devez saisir la date de fin." js="true"/>'); f.Om_DateFin.focus(); return; } */ if(f.Om_LibelleTR.value == '') { alert('<fl:getMessage code="MF0A0" alt="Vous devez saisir le libellé de l\'autre marque." js="true"/>'); f.Om_LibelleTR.focus(); return; } if(parseDateT(f.Om_DateFin.value) < parseDateT(f.Om_DateDeb.value)) { alert('<fl:getMessage code="M6064" alt="La date de fin doit être supérieure à la date de début." js="true"/>'); f.Om_DateDeb.focus(); return; } var args = '&Om_Tiers=<%=id%>'; args += '&Type=OtherMrq_'; if (f.Om_DateDeb.value != '') { args += '&Om_DateDeb=' + encodeURIComponent(f.Om_DateDeb.value); } if (f.Om_MillesimeID.value != '') { args += '&Om_MillesimeID=' + encodeURIComponent(f.Om_MillesimeID.value); } if (f.Om_DateFin.value != '') { args += '&Om_DateFin=' + encodeURIComponent(f.Om_DateFin.value); } if (f.Om_LibelleTR.value != '') { args += '&Om_LibelleTR=' + encodeURIComponent(f.Om_LibelleTR.value); } //var ajaxURL = '<fl:link url="/save_object_ajax.fl?type=OtherMrq_&$$presentFields="/>' + args; var ajaxURL = '<fl:link url="/save_custom_ajax.fl?"/>' + args; f.Om_DateDeb.value = ''; f.Om_DateFin.value = ''; f.Om_LibelleTR.value = ''; doAjax(ajaxURL, waitNrefreshSLMrq); } function addOtherLbl() { var f = window.document.autreslbl; /* if(f.Ol_DateDeb.value == '') { alert('<fl:getMessage code="MF0A2" alt="Vous devez saisir date de début." js="true"/>'); f.Ol_DateDeb.focus(); return; } if(f.Ol_DateFin.value == '') { alert('<fl:getMessage code="MF0A3" alt="Vous devez saisir la date de fin." js="true"/>'); f.Ol_DateFin.focus(); return; } */ if(f.Ol_LibelleTR.value == '') { alert('<fl:getMessage code="MF0A4" alt="Vous devez saisir le libellé de l\'autre label." js="true"/>'); f.Ol_LibelleTR.focus(); return; } if(parseDateT(f.Ol_DateFin.value) < parseDateT(f.Ol_DateDeb.value)) { alert('<fl:getMessage code="M6064" alt="La date de fin doit être supérieure à la date de début." js="true"/>'); f.Ol_DateDeb.focus(); return; } var args = '&Ol_Tiers=<%=id%>'; args += '&Type=OtherLbls_'; if (f.Ol_DateDeb.value != '') { args += '&Ol_DateDeb=' + encodeURIComponent(f.Ol_DateDeb.value); } if (f.Ol_MillesimeID.value != '') { args += '&Ol_MillesimeID=' + encodeURIComponent(f.Ol_MillesimeID.value); } if (f.Ol_DateFin.value != '') { args += '&Ol_DateFin=' + encodeURIComponent(f.Ol_DateFin.value); } if (f.Ol_LibelleTR.value != '') { args += '&Ol_LibelleTR=' + encodeURIComponent(f.Ol_LibelleTR.value); } //var ajaxURL = '<fl:link url="/save_object_ajax.fl?type=OtherLbls_&$$presentFields="/>' + args; var ajaxURL = '<fl:link url="/save_custom_ajax.fl?"/>' + args; f.Ol_DateDeb.value = ''; f.Ol_DateFin.value = ''; f.Ol_LibelleTR.value = ''; doAjax(ajaxURL, waitNrefreshSLLbl); } function addOtherGds() { var f = window.document.autresgds; /* if(f.Og_DateDeb.value == '') { alert('<fl:getMessage code="MF0A2" alt="Vous devez saisir date de début." js="true"/>'); f.Og_DateDeb.focus(); return; } if(f.Og_DateFin.value == '') { alert('<fl:getMessage code="MF0A3" alt="Vous devez saisir la date de fin." js="true"/>'); f.Og_DateFin.focus(); return; } */ if(f.Og_LibelleTR.value == '') { alert('<fl:getMessage code="MF0A5" alt="Vous devez saisir le libellé de l\'autre guide." js="true"/>'); f.Og_LibelleTR.focus(); return; } if(parseDateT(f.Og_DateFin.value) < parseDateT(f.Og_DateDeb.value)) { alert('<fl:getMessage code="M6064" alt="La date de fin doit être supérieure à la date de début." js="true"/>'); f.Og_DateDeb.focus(); return; } var args = '&Og_Tiers=<%=id%>'; args += '&Type=OtherGuides_'; if (f.Og_DateDeb.value != '') { args += '&Og_DateDeb=' + encodeURIComponent(f.Og_DateDeb.value); } if (f.Og_DateFin.value != '') { args += '&Og_DateFin=' + encodeURIComponent(f.Og_DateFin.value); } if (f.Og_MillesimeID.value != '') { args += '&Og_MillesimeID=' + encodeURIComponent(f.Og_MillesimeID.value); } if (f.Og_LibelleTR.value != '') { args += '&Og_LibelleTR=' + encodeURIComponent(f.Og_LibelleTR.value); } //var ajaxURL = '<fl:link url="/save_object_ajax.fl?type=OtherGuides_&$$presentFields="/>' + args; var ajaxURL = '<fl:link url="/save_custom_ajax.fl?"/>' + args; f.Og_DateDeb.value = ''; f.Og_DateFin.value = ''; f.Og_LibelleTR.value = ''; doAjax(ajaxURL, waitNrefreshSLGds); } function addPrix() { var f = window.document.prix; var prmin = (f.PrxMin.value).replace(" ",""); var prmax = (f.PrxMax.value).replace(" ",""); var prixmin = parseFloat(toSysNum(prmin)); var prixmax = parseFloat(toSysNum(prmax)); if(f.PrxMin.value == '') { alert('<fl:getMessage code="MF0A9" alt="Vous devez saisir un prix minimum." js="true"/>'); f.PrxMin.focus(); return; } if( (f.PrxMax.value != '') && (prixmin > prixmax) ) { alert('<fl:getMessage code="MF0B9" alt="Le prix Max. doit être supérieur au prix Min." js="true"/>'); f.PrxMin.focus(); return; } var args = '&PrxTiersID=<%=id%>'; if (f.PrxMin.value != '') { args += '&PrxMin=' + encodeURIComponent(f.PrxMin.value.replace(/[^0-9,.]/g, '')); } if (f.PrxMax.value != '') { args += '&PrxMax=' + encodeURIComponent(f.PrxMax.value.replace(/[^0-9,.]/g, '')); } if (f.PrxMillesimeID.value != '') { args += '&PrxMillesimeID=' + encodeURIComponent(f.PrxMillesimeID.value); } /* if (f.PrxTypeID.value != '') { args += '&PrxTypeID=' + encodeURIComponent(f.PrxTypeID.value); } */ if (f.PrxPrestationID.value != '') { args += '&PrxPrestationID=' + encodeURIComponent(f.PrxPrestationID.value); } //var ajaxURL = '<fl:link url="/save_object_ajax.fl?type=Price_&$$presentFields="/>' + args; var ajaxURL = '<fl:link url="/save_prix_ajax.fl?"/>' + args; f.PrxMin.value = ''; f.PrxMax.value = ''; doAjax(ajaxURL, waitNrefreshSLPrx); } function addEnvies(){ var f = window.document.envies; var args = '&EnvTiersID=<%=id%>'; args += '&Type=Envies_'; if (f.EnvcategoryID.value != '') { args += '&EnvcategoryID=' + encodeURIComponent(f.EnvcategoryID.value); }else{ alert('<fl:getMessage code="MF0B3" alt="Veuillez choisir une catégorie d\\\'envies?" js="true"/>'); f.EnvcategoryID.focus(); return; } if (f.EnvSubCategoryID.value != '') { args += '&EnvSubCategoryID=' + encodeURIComponent(f.EnvSubCategoryID.value); } if (f.EnvComments.value != '') { args += '&EnvComments=' + encodeURIComponent(f.EnvComments.value); } f.EnvcategoryID.value = ''; f.EnvSubCategoryID.value = ''; f.EnvComments.value = ''; //var ajaxURL = '<fl:link url="/save_object_ajax.fl?type=Envies_&$$presentFields="/>' + args; var ajaxURL = '<fl:link url="/save_custom_ajax.fl?"/>' + args; doAjax(ajaxURL, addEnvCallback); } function addEnvCallback(arrIndex){ if (eDealXmlhttpArr[arrIndex].readyState == 4) { hideWaiting(); setTimeout('refreshEnvies()', 10); } } function addEquipment(){ var f = window.document.equipement; var args = '&Eq_TiersID=<%=id%>'; if (f.Eq_NameID.value != '') { args += '&Eq_NameID=' + encodeURIComponent(f.Eq_NameID.value); }else{ alert('<fl:getMessage code="MF0B2" alt="Veuillez choisir un libellé d\\\'équipement." js="true"/>'); f.Eq_NameID.focus(); return; } if (f.Eq_Comment.value != '') { args += '&Eq_Comment=' + encodeURIComponent(f.Eq_Comment.value); } //check if the parent equipment is allowed to be created var url = "<fl:webapp/>/check_equipement_.fl?Eq_NameID=" + encodeURIComponent(f.Eq_NameID.value) + "&isAdd=true"; $.getJSON(url, function(data) { if(data.Status == "KO"){ alert('<fl:getMessage code="MF1D9" alt="Cet équipement étant « automatique » il ne vous est pas possible de l\\\'ajouter/supprimer. Vérifiez l\\\'existence de son équivalent gratuit ou payant" js="true"/>'); return; }else{ f.Eq_NameID.value = ''; f.Eq_Comment.value = ''; var ajaxURL = '<fl:link url="/save_equipement_ajax.fl?"/>' + args; doAjax(ajaxURL, addEqpCallback); } }); } function pointerCCs(){ var f = window.document.chequecadeau; var args = '&id=<%=id%>'; if (f.EntCCsApointer_.value != '') { args += '&EntCCsApointer_=' + encodeURIComponent(f.EntCCsApointer_.value); }else{ alert('<fl:getMessage code="MF0D5" alt="Veuillez choisir des Chèques cadeaux à pointer" js="true"/>'); //f.EntCCsApointer_.focus(); return; } var ajaxURL = '<fl:link url="/save_object_ajax.fl?type=Enterprise&$$presentFields="/>' + args; //var ajaxURL = '<fl:link url="/save_equipement_ajax.fl?"/>' + args //document.getElementById("ChAdd").style.display = 'none'; doAjax(ajaxURL, pointerCCsCallback); } function pointerCCsCallback(arrIndex){ if (eDealXmlhttpArr[arrIndex].readyState == 4) { hideWaiting(); //setTimeout('doRefresh();', 10); window.location = '<fl:webapp/>/read_enterprise.fl?id=<%=id%>&focusCCs=true'; } } function addEqpCallback(arrIndex){ if (eDealXmlhttpArr[arrIndex].readyState == 4) { hideWaiting(); setTimeout('refreshEquipement()', 10); } } function refreshEquipement(){ _grid__EQP_EMB_js_.render(); } /* function waitNrefreshSLFermetures(arrIndex) { currentState = 0; if (eDealXmlhttpArr[arrIndex].readyState == 4) { refreshFermetures(); } } */ function waitNrefreshSLFermetures(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { refreshFermetures(); window.scrollTo(0,1000); } else { hideWaiting(); alert('<fl:getMessage code="MF0BC" alt="Impossible de supprimer la fermeture seléctionnée." js="true"/>'); } } } function waitNrefreshSLRooms(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { refreshRooms(); window.scrollTo(0,1000); } else { hideWaiting(); alert('<fl:getMessage code="MF0BD" alt="Impossible de supprimer la chambre seléctionnée." js="true"/>'); } } } function waitNrefreshSLMrq(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { refreshOthMrqs(); window.scrollTo(0,1000); } else { hideWaiting(); alert('<fl:getMessage code="MF0BF" alt="Impossible de supprimer l\'autre marque seléctionnée." js="true"/>'); } } } function waitNrefreshSLPrx(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { refreshPrix(); window.scrollTo(0,1000); } else { hideWaiting(); alert('<fl:getMessage code="MF0C0" alt="Impossible de supprimer le prix seléctionné." js="true"/>'); } } } function waitNrefreshSLLbl(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { refreshOthLabs(); window.scrollTo(0,1000); } else { hideWaiting(); alert('<fl:getMessage code="MF0C1" alt="Impossible de supprimer l\'autre label seléctionné." js="true"/>'); } } } function waitNrefreshSLGds(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { refreshOthGds(); window.scrollTo(0,1000); } else { hideWaiting(); alert('<fl:getMessage code="MF0C3" alt="Impossible de supprimer l\'autre guide seléctionné." js="true"/>'); } } } function waitNrefreshSLEquipement(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { _grid__EQP_EMB_js_.render(); window.scrollTo(0,1000); } else { hideWaiting(); alert('<fl:getMessage code="MF0C4" alt="Impossible de supprimer l\'équipement seléctionné." js="true"/>'); } } } function waitNrefreshSLEnvies(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { _grid__ENV_EMB_js_.render(); window.scrollTo(0,1000); } else { hideWaiting(); alert('<fl:getMessage code="MF0C5" alt="Impossible de supprimer l\'envie seléctionnée." js="true"/>'); } } } function waitNrefreshSLPo_(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { _grid__PHOTO_EMB_js_.render(); window.scrollTo(0,1000); } else { hideWaiting(); alert('<fl:getMessage code="MF0D6" alt="Impossible de supprimer la Photo seléctionnée." js="true"/>'); } } } function waitNrefreshSLRot(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { _grid__RDC_EMB_js_.render(); window.scrollTo(0,1000); } else { hideWaiting(); alert('<fl:getMessage code="MF0FF" alt="Impossible de supprimer la cotisation seléctionnée." js="true"/>'); } } } function deleteMarkedFermeture(FerID) { if (confirm('<fl:getMessage code="MF09B" alt="Etes-vous sûr de vouloir supprimer cette Période de fermeture ?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=Fermetures_&id=' + FerID , waitNrefreshSLFermetures); } } function deleteMarkedEnvies(envID){ if (confirm('<fl:getMessage code="MF0B4" alt="Etes-vous sûr de vouloir supprimer cette envie?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=Envies_&id=' + envID , waitNrefreshSLEnvies); } } function deleteMarkedEquipement(eq_ID) { if (confirm('<fl:getMessage code="MF0AD" alt="Etes-vous sûr de vouloir supprimer cet équipement?" js="true"/>')) { //Check if the equipment is a parent that it is not allowed to be deleted var url = "<fl:webapp/>/check_equipement_.fl?Eq_ID=" + encodeURIComponent(eq_ID) + "&isAdd=false"; $.getJSON(url, function(data) { if(data.Status == "KO"){ alert('<fl:getMessage code="MF1D9" alt="Cet équipement étant « automatique » il ne vous est pas possible de l\\\'ajouter/supprimer. Vérifiez l\\\'existence de son équivalent gratuit ou payant" js="true"/>'); return; }else{ doAjax('<fl:webapp/>/delete_object_ajax.fl?type=Equipement_&id=' + eq_ID , waitNrefreshSLEquipement); } }); } } function deleteMarkedChambre(RooID) { if (confirm('<fl:getMessage code="MF09F" alt="Etes-vous sûr de vouloir supprimer cette Chambre ?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=Room_&id=' + RooID , waitNrefreshSLRooms); } } function deleteMarkedOtherMrq(Om_ID) { if (confirm('<fl:getMessage code="MF0A1" alt="Etes-vous sûr de vouloir supprimer cette Autre Marque ?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=OtherMrq_&id=' + Om_ID , waitNrefreshSLMrq); } } function deleteMarkedOtherGds(Og_ID) { if (confirm('<fl:getMessage code="MF0A6" alt="Etes-vous sûr de vouloir supprimer cet Autre Guide ?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=OtherGuides_&id=' + Og_ID , waitNrefreshSLGds); } } function deleteMarkedOtherLbl(Ol_ID) { if (confirm('<fl:getMessage code="MF0A7" alt="Etes-vous sûr de vouloir supprimer cet Autre Label ?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=OtherLbls_&id=' + Ol_ID , waitNrefreshSLLbl); } } function deleteMarkedTxt(Ol_ID) { if (confirm('<fl:getMessage code="MF0BB" alt="Etes-vous sûr de vouloir supprimer ce Texte ?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=Textes_&id=' + Ol_ID , waitNrefreshSLTextes); } } function deleteMarkedPrx(PrxID) { if (confirm('<fl:getMessage code="MF0AB" alt="Etes-vous sûr de vouloir supprimer ce prix ?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=Price_&id=' + PrxID , waitNrefreshSLPrx); } } function deleteMarkedPo_(Po_ID) { if (confirm('<fl:getMessage code="MF0D7" alt="Etes-vous sûr de vouloir supprimer cette Photo ?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=Photo_&id=' + Po_ID , waitNrefreshSLPo_); } } function deleteMarkedRotID(RotID) { if (confirm('<fl:getMessage code="MF100" alt="Etes-vous sûr de vouloir supprimer cette Cotisation ?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=RdcCotisation_&id=' + RotID , waitNrefreshSLRot); } } function loadSubCategory(catID) { if (catID == undefined || catID == null || catID == '') { $("#EnvSubCategoryID").html("<option value=''> </option>"); $("#EnvSubCategoryID").width($("#div_EnvSubCategoryID").width()); return; } $.getJSON("<fl:webapp/>/get_envies__subcategory.fl?catID=" + catID, function(data) { if (data != null) { var optContent = "<option value=''> </option>"; for (var i = 0; i < data.length; i++) { var optValue = data[i].value; var optText = data[i].text; optContent += "<option" optContent += " value='" + optValue + "'>" + optText + "</option>" } $("#EnvSubCategoryID").html(optContent); $("#EnvSubCategoryID").width($("#div_EnvSubCategoryID").width());//For IE7 } }); } function loadTypePrestation(typPrixID) { if (typPrixID == undefined || typPrixID == null || typPrixID == '') { $("#PrxPrestationID").html("<option value=''> </option>"); $("#PrxPrestationID").width($("#div_PrxPrestationID").width()); return; } $.getJSON("<fl:webapp/>/get_prestations_prix.fl?typPrixID=" + typPrixID, function(data) { if (data != null) { var optContent = ""; for (var i = 0; i < data.length; i++) { var optValue = data[i].value; var optText = data[i].text; optContent += "<option" optContent += " value='" + optValue + "'>" + optText + "</option>" } $("#PrxPrestationID").html(optContent); $("#PrxPrestationID").width($("#div_PrxPrestationID").width());//For IE7 } }); } function loadCotiProduct(millesime,id){ if (millesime == undefined || millesime == null || millesime == '') { $("#RotPrdID").html("<option value=''> </option>"); $("#RotPrdID").width($("#div_RotPrdID").width()); return; } $.getJSON("<fl:webapp/>/get_cotisation_prds.fl?id="+id+"&millesime=" + millesime, function(data) { if (data != null) { var optContent = "<option value=''> </option>"; for (var i = 0; i < data.length; i++) { var optValue = data[i].value; var optText = data[i].text; optContent += "<option" optContent += " value='" + optValue + "'>" + optText + "</option>" } $("#RotPrdID").html(optContent); $("#RotPrdID").width($("#div_RotPrdID").width());//For IE7 } }); } function addCotRule(){ var f = window.document.cotrule; var args = '&RotEntID=<%=id%>'; if (f.RotPrdID.value != '') { args += '&RotPrdID=' + encodeURIComponent(f.RotPrdID.value); }else{ alert('<fl:getMessage code="MF1A8" alt="Veuillez choisir un produit." js="true"/>'); f.RotPrdID.focus(); return; } if (f.RotDiscountID.value != '') { args += '&RotDiscountID=' + encodeURIComponent(f.RotDiscountID.value); } if (f.RotMillesime.value != '') { args += '&RotMillesime=' + encodeURIComponent(f.RotMillesime.value); } var ajaxURL = '<fl:link url="/save_rot_ajax.fl?"/>' + args; doAjax(ajaxURL, cotisationCallback); } function RefreshRotList(){ _grid__RDC_EMB_js_.render(); } function cotisationCallback(arrIndex){ if (eDealXmlhttpArr[arrIndex].readyState == 4) { hideWaiting(); setTimeout('refreshPrdCot()', 10); } } function refreshPrdCot(){ var millesime = document.getElementById("RotMillesime").value; loadCotiProduct(millesime,'<%= id %>'); RefreshRotList(); } function ajouterCCsBordreau(){ if(<%=existeCcPointeAajouterBordereau%>) { if (confirm('<fl:getMessage code="MF0E1" alt="Etes-vous sûr de vouloir ajouter les Chèques cadeaux pointés chez le Tiers actuel au Bordereau de réglement ?" js="true"/>')) { var f = window.document.textes; var args = '&adherentID=<%=id%>'; var ajaxURL = '<fl:link url="/ajouterCcs_Bordereau.fl?"/>' + args; doAjax(ajaxURL, waitNrefreshSLBordereau); } } else { alert("Pas de chèque pointé à ajouter au Bordereau de règlement"); } } function waitNrefreshSLBordereau(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { //refreshGiftCHQ(); window.location='<fl:webapp/>/read_enterprise.fl?id=<%=id%>&focusCCs=true'; } else { hideWaiting(); } } } function waitNrefreshSLCl_(arrIndex) { currentState = 0; if (eDealXmlhttpArr[arrIndex].readyState == 4) { refreshMissions(); window.scrollTo(0,1000); } } function deleteMarkedCl_(Cl_ID) { if (confirm('<fl:getMessage code="MF0B8" alt="Etes-vous sûr de vouloir supprimer ce classement ?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=Classement_&id=' + Cl_ID , waitNrefreshSLCl_); //doRefresh(); setTimeout('doRefresh();', 3); } } //http://u-project2.umanis.com/view.php?id=44201 function addUrlReseau(){ var f = window.document.urlreseau; var args = '&Ur_EntID=<%=id%>'; if (f.Ur_TypeReseau.value != '') { args += '&Ur_TypeReseau=' + encodeURIComponent(f.Ur_TypeReseau.value); }else{ alert('<fl:getMessage code="MF1A5" alt="Veuillez choisir un type réseau" js="true"/>'); f.Ur_TypeReseau.focus(); return; } if (f.Ur_Url.value != '') { args += '&Ur_Url=' + encodeURIComponent(f.Ur_Url.value); } args += '&Ur_ReseauSocial=' + encodeURIComponent(f.Ur_ReseauSocial.checked); var ajaxURL = '<fl:link url="/save_urlreseau_ajax.fl?"/>' + args; doAjax(ajaxURL, urlReseauCallback); } function RefreshUrlReseau(){ _grid__URLRESEAU__js_.render(); } function urlReseauCallback(arrIndex){ if (eDealXmlhttpArr[arrIndex].readyState == 4) { hideWaiting(); setTimeout('RefreshUrlReseau()', 10); var f = window.document.urlreseau; f.Ur_Url.value = ''; f.Ur_ReseauSocial.checked = false; } } function deleteMarkedUr_ID(Ur_ID) { if (confirm('<fl:getMessage code="MF1A6" alt="Etes-vous sûr de vouloir supprimer cet URL réseau ?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=UrlReseau_&id=' + Ur_ID , waitNrefreshUrlRes); } } function waitNrefreshUrlRes(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { _grid__URLRESEAU__js_.render(); window.scrollTo(0,1000); } else { hideWaiting(); alert('<fl:getMessage code="MF1A7" alt="Impossible de supprimer l\\\'url seléctionnée." js="true"/>'); } } } </script> <fl:bigTabs objectTitle="<%=titreEntreprise%>" listTitle="<%= Utils.getMessage(session, \"L30A2\", \"Liste des entreprises\") %>" ou="<%= \"/read_enterprise.fl?id=\" + Enterprise.getID() %>"> <%-- <fl:bigTabs objectTitle="<%= (isAssociation)?Utils.getMessage(session, \"LF09E\", \"Association\"):Utils.getMessage(session, \"F002B\", \"Entreprise\") %>" listTitle="<%= Utils.getMessage(session, \"L30A2\", \"Liste des entreprises\") %>" ou="<%= \"/read_enterprise.fl?id=\" + Enterprise.getID() %>"> --%> <table class="container" cellpadding="0"> <tr> <td colspan="5" class="titreFiche"> <fl:getProperty name="Enterprise" property="EntDispName_" alt="" /> <span>      </span> <span> <% if(mqIds != null) { %> <% for(int i =0; i< mqIds.size(); i++) { apercuIcoID = mqIds.elementAt(i); %> <%if(apercuIcoID != null) { %> <img alt="test" src='<fl:webapp/>/download?id=<%=apercuIcoID%>' height="15" width="15"> <%} %> <%} %> <%} %> <%-- <a href="javascript:goSearchEnterprise();"><img src="<fl:webapp/>/icons/google-news.png" name="icon" border="0" width="20" height="20" style="vertical-align:baseline;" title="<fl:getMessage code="L7090" alt="google news"/>"></a> --%> </span> </td> </tr> <tr class="ligne_separation"><td colspan="5"></td></tr> <tr> <td class="column2"> <table class="container" > <fl:fieldRead property="EntTriName_" /> <fl:fieldRead property="EntNomGuide_" /> <fl:fieldRead property="EntCorpName"/> <tr><td colspan="5" class="ligne_separation"/></tr> <% if(!isAssociation && !isResto && !isPartenaire && !isCabaudit && !isJournaliste && !isPresta){ %> <fl:fieldRead property="EntHotelID_" /> <% }else if(isResto){ %> <%-- <fl:fieldRead property="EntRestoDispName_"/> <fl:fieldRead property="EntRestoTriName_"/> --%> <% } %> <fl:fieldRead property="EntWihpid_" /> <% if( (typOrganisation!= null && (typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "ETAB")) || typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "HOTEL")))) ) {}{ %> <fl:fieldRead property="EntRatachHotelID_" bean="true" href="true" disp="<%= flRequest.computeURL(\"/read_enterprise.fl\") %>"/> <%} %> <fl:fieldRead property="EntCode_"/> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF002" alt="Adresse Postale"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <tr class="fieldline"> <td id="EntVoie_label" class="dataLabel"><fl:label code="FF1D0" label="Voie"/></td> <td id="EntVoie_value" class="dataValue"> <% if(numVoie != null) {%> <fl:getProperty name="Enterprise" property="EntVoieNum_" alt=""/> <%}%> <% if(natVoie != null) {%> <fl:getProperty name="Enterprise" property="EntNatureVoieID_" alt=""/> <%}%><fl:getProperty name="Enterprise" property="EntLblVoie_" alt=""/></td> </tr> <fl:fieldRead property="EntGeoCplt_" alt="" /> <fl:fieldRead property="EntPtRmCourrier_" alt="" /> <fl:fieldRead property="EntBP_"/> <fl:fieldRead property="EntLieuDit_" alt="" /> <td class="dataLabel"><fl:getMessage code="FF096" alt="Code Postal/Ville"/></td> <td id="Ent.Zip_value" class="dataValue"> <div title=""> <fl:getProperty name="Enterprise" property="EntZip" alt="" postText=" "/><fl:getProperty name="Enterprise" property="EntCity" alt="" postText=""/><% try { Enterprise.getEntZip(); Enterprise.getEntCity(); %><br><% } catch(FieldNotInitializedException e) { try { Enterprise.getEntCity(); %><br><% } catch (FieldNotInitializedException ex) {}} %> </div> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntCtrID" alt="" /> <% if(isPartenaire){ %> <fl:fieldRead property="EntRegionID_" /> <fl:fieldRead property="EntDepartmentID_" /> <% } %> <tr><td colspan="5" class="ligne_separation"/></tr> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="FF2D7" alt="Localité Guide"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntLocalityID_" bean="true" href="true" disp="<%= flRequest.computeURL(\"/read_localite_.fl\") %>"/> <tr><td colspan="5" class="ligne_separation"/></tr> </table> <table class="container" > <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntPhone" format="phone"/> <fl:fieldRead property="EntSecondPhone_" format="phone"/> <fl:fieldRead property="EntFax"/> <fl:fieldRead property="EntMail_"/> <fl:fieldRead property="EntMailFac_"/> <fl:fieldRead property="EntSecondMail_"/> <fl:fieldRead property="EntBillingMail_" /> <%--Mantis 31710 --%> <%-- <% if(!isAssociation && !isPartenaire){ %> <fl:fieldRead property="EntBillingMail_" /> <% } %> --%> <tr class="fieldline"> <td id="EntWeb_label" class="dataLabel"><fl:label code="F200B" label="Site Web"/></td> <td id="EntWeb_value" class="dataValue"><div title="<fl:getProperty name="Enterprise" property="EntWeb" alt=""/>"><% if (webAdr != null) { %><a href="<%=webAdr%>" target="_blank"><fl:getProperty name="Enterprise" property="EntWeb" alt=""/></a><% } else { %> <% } %></div></td> </tr> <tr><td colspan="5" class="ligne_separation"/></tr> <tr><td colspan="5" class="ligne_separation"/></tr> </table> <% if(!isAssociation && !isPartenaire){%> <table class="container"> <fl:fieldRead property="EntTyeID"/> <% if (!isCabaudit && !isJournaliste && !isPresta){ %> <fl:fieldRead property="EntActsID_" bean="true" href="true" disp="<%= flRequest.computeURL(\"/read_actor.fl\") %>"/> <%} %> <tr><td colspan="5" class="ligne_separation"/></tr> <% 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 =""; } %> <% if(!isCabaudit && !isJournaliste && !isPresta) { %> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF004" alt="Structure Locale"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntStructureLocalID_" bean="true" href="true" disp="<%= flRequest.computeURL(\"/read_enterprise.fl\") %>"/> <% String entTypoStructure_ = null; try { entTypoStructure_ = (String)entAsso.getCustomProperty("EntTypoStructure_"); } catch (FieldNotInitializedException e) { } if(entTypoStructure_ != null){ String depStructID = dico.getRefIdByCode("EntTypoStructure_", "DEPARTEMENTALE"); String depStructMutliID = dico.getRefIdByCode("EntTypoStructure_", "MULTI"); String regStructID = dico.getRefIdByCode("EntTypoStructure_", "REGIONAL"); String payStructID = dico.getRefIdByCode("EntTypoStructure_", "PAYS"); String entTypoStructureDisp = (String)dico.getRefDisp(session, "EntTypoStructure_", entTypoStructure_); %> <tr class="fieldline"> <td id="EntTypoStructure___label" class="dataLabel"><fl:label code="FF095" label="Typologie Structure" /></td> <td id="EntTypoStructure___value" class="dataValue"><div title="<%=entTypoStructureDisp%>"></div><%=entTypoStructureDisp%></td> </tr> <% 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 =""; } %> <tr class="fieldline"> <td id="EntDepartmentID___label" class="dataLabel"><fl:label code="L6435" label="Département" /></td> <td id="EntDepartmentID___value" class="dataValue"><div title="<%=depName%>"></div><%=depName%></td> </tr> <%} 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 =""; }%> <tr class="fieldline"> <td id="EntRegionID___label" class="dataLabel"><fl:label code="F6006" label="Région" /></td> <td id="EntRegionID___value" class="dataValue"><div title="<%=regName%>"></div><%=regName%></td> </tr> <%} 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 =""; }%> <tr class="fieldline"> <td id="EntCtrID__label" class="dataLabel"><fl:label code="F2015" label="Pays" /></td> <td id="EntCtrID__value" class="dataValue"><div title="<%=payName%>"></div><%=payName%></td> </tr> <%} } } } %> </table> <% } %> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <% if (isPresta ){%> <table class="container" cellpadding="0"> <!-- <tr class="fieldline"> <td id="EntPhoto_label" class="dataLabel"><img src="po_LienPhotoExt " title="" alt="" width="400px" height="250px"/></td> </tr> --> <tr class="fieldline"> <td id="EntPhoto_label" class="dataLabel"><fl:label code="FF001" label="Photo"/></td> <td id="EntPhoto_value" class="dataValue"> <%if(po_apercuPhotoID != null) { %> <img alt="" src='<fl:webapp/>/download?id=<%=po_apercuPhotoID%>' onclick="" height="300" width="200"> <%} %> </td> </tr> </table> <%} %> <% if(!isAssociation && !isPartenaire && !isCabaudit && !isJournaliste && !isPresta){%> <table class="container" cellpadding="0"> <!-- <tr class="fieldline"> <td id="EntPhoto_label" class="dataLabel"><img src="po_LienPhotoExt " title="" alt="" width="400px" height="250px"/></td> </tr> --> <tr class="fieldline"> <td id="EntPhoto_label" class="dataLabel"><fl:label code="FF001" label="Photo"/></td> <td id="EntPhoto_value" class="dataValue"> <table width="450px"> <tr> <td style="text-align: center;" width="225px"><span>Photo Guide 1 - <%= nomPhotoGuide1 %></span></td> <td style="text-align: center;" width="225px"><span>Photo Guide 2 - <%= nomPhotoGuide2 %></span></td> </tr> <tr> <td> <%if(po_apercuPhotoID != null) { %> <img alt="PhotoGuide1" src='<fl:webapp/>/download?id=<%=po_apercuPhotoID%>' onclick="" width="200px"> <%} %> </td> <td> <%if(po_apercuPhoto2ID != null) { %> <img alt="PhotoGuide2" src='<fl:webapp/>/download?id=<%=po_apercuPhoto2ID%>' onclick="" width="200px"> <%} %> </td> </tr> </table> </td> </tr> <td class="titreInterneSmalltabs" colspan="5"> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntEnvoiWebDt_" format="dd/MM/yyyy HH:mm:ss"/> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntNextAuditDt_"/> <fl:fieldRead property="EntSegHeb_"/> <fl:fieldRead property="EntSegRes_"/> <%if(isResto2){ %> <fl:fieldRead property="EntNbCouverts_"/> <%} %> <fl:fieldRead property="EntNbSeminaires_" /> <fl:fieldRead property="EntSemLivrGuide_"/> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntRefLngID_"/> <fl:fieldRead property="EntCheNbID_"/> <fl:fieldRead property="EntCocNbID_"/> <fl:fieldRead property="EntSaisonnier_"/> <tr><td colspan="5" class="ligne_separation"/></tr> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="FF01F" alt="Classement étoile"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntStarClassID_"/> <fl:fieldRead property="EntNormStarDt_"/> <fl:fieldRead property="EntReclassDate_"/> <fl:fieldRead property="EntAnx_"/> <tr><td colspan="5" class="ligne_separation"/></tr> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="FF022" alt="PMS"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntPmsID_"/> <% if(DISPLAY_PLAQUES){ %> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntPlaqueAlu_"/> <fl:fieldRead property="EntPlaqueCosseRiz_"/> <fl:fieldRead property="EntIDhotelPartenaire1_" alt=""/> <fl:fieldRead property="EntIDhotelPartenaire2_" alt=""/> <fl:fieldRead property="EntIDhotelPartenaire3_" alt=""/> <fl:fieldRead property="EntIDhotelPartenaire4_" alt=""/> <fl:fieldRead property="EntIDhotelPartenaire5_" alt=""/> <% } %> </table> <%} else if (isAssociation){ %> <table class="container" cellpadding="0"> <fl:fieldRead property="EntTyeID"/> <tr><td colspan="5" class="ligne_separation"/></tr> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF09E" alt="Association"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntTypoStructure_"/> <% if(typoStructID.equalsIgnoreCase(departID)) {%> <fl:fieldRead property="EntDepartmentID_" labelCode="FF01D"/> <%-- <fl:fieldRead property="EntRegionID_" labelCode="FF01C"/> --%> <% } else if (typoStructID.equalsIgnoreCase(regionID)) { %> <fl:fieldRead property="EntRegionID_" labelCode="FF01C"/> <% }else if(typoStructID.equalsIgnoreCase(departMultiID)){ %> <fl:fieldRead property="EntMultiDep_" labelCode="FF01D"/> <%} else if(typoStructID.equalsIgnoreCase(paysID)) {%> <fl:fieldRead property="EntPaysStruct_"/> <%} %> <fl:fieldRead property="EntAssoDissolDt_"/> <tr class="fieldline"> <td id="Hs_label" class="dataLabel"> <fl:label field="EntEditListLogis_"/> </td> <td id="Apercu_value" class="dataValue"> <input type="checkbox" <%= isEditionCatalogue?"checked":"" %> disabled="disabled"/> </td> </tr> <tr class="fieldline"> <td id="Hs_label" class="dataLabel"> <fl:label field="EntGenCotDevis_"/> </td> <td id="Apercu_value" class="dataValue"> <input type="checkbox" <%= canGenerateCotDevis ? "checked" : "" %> disabled="disabled"/> </td> </tr> </table> <%} else if (isPartenaire){ %> <table class="container" cellpadding="0"> <fl:fieldRead property="EntTyeID"/> <fl:fieldRead property="EntSousGrp_" /> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntInterlocuteurID_" bean="true" href="true" disp="<%= flRequest.computeURL(\"/read_actor.fl\") %>"/> <fl:fieldRead property="EntPartenaireID" /> </table> <% } %> </td> </tr> </table> <fl:notes name="EntNotes" title="<%= Utils.getMessage(session, \"L64B4\", \"Commentaires\") %>" nbPix="32"><fl:getProperty name="Enterprise" property="EntNotes" alt=""/></fl:notes> <% if(!isAssociation && !isPartenaire && !isCabaudit && !isJournaliste && !isPresta){ %> <fl:smallTabs name="tiers"> <%-- Contacts --%> <fl:sTab id="contact" title="<%= Utils.getMessage(session, \"L3106\", false, true, \"Contacts\") %>" onselect="refreshPersons();refreshPerAsso();"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF1FF" alt="Autres fonctions"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <div><fl:grid name="PER_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=PER_EMB&PerEntID=\" + Enterprise.getID() %>"/></div> <div><br/></div> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF200" alt="Fonctions association"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <div><fl:grid name="PER_ASSO" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=PER_ASSO&pEntID=\" + Enterprise.getID() %>"/></div> </fl:sTab> <%-- Correspondances --%> <fl:sTab id="Correspondances" title="<%= Utils.getMessage(session, \"LF031\", \"Correspondances\") %>" onselect="refreshCorresps();"> <fl:grid name="CORRESLIST" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CORRESLIST&IntTiersConc_=\" + Enterprise.getID()+\"&EntID=\" + Enterprise.getID()%>" /> </fl:sTab> <%-- Todos --%> <fl:sTab id="Todos" title="<%= Utils.getMessage(session, \"LF011\", \"Todos\") %>" onselect="refreshInts();"> <fl:grid name="INTERALIST" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=INTERALIST&IntTiersConc_=\" + Enterprise.getID()%>" /> </fl:sTab> <%-- Prestations --%> <fl:sTab id="prestas2" title="<%= Utils.getMessage(session, \"LF192\", false, true, \"Autres Prestations\") %>" onselect="refreshPrestats2();refreshEquipement();"> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="2" class="titreInterneSmalltabs"><fl:getMessage code="FF03E" alt="Equipement"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:access name="Equipement_" operation="create"> <form name="equipement" class="fieldTable"> <table class="container" cellpadding="0"> <tr> <td> <span class="criteriaLabel"> <fl:getMessage code="F2001" alt="Libellé"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Qp_", "Te1"); %> <select name="Eq_NameID" id="Eq_NameID" style="background-color: #FDCBCC"> <option value=""></option> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <span class="criteriaLabel"> </td> <td class="smallFieldPart"><a href="javascript:addEquipment()"> <img src="<fl:webapp/>/icons/ico/save_all_long.gif" id="bt_addEq" title="<fl:getMessage code="A000F" alt="Ajouter"/>"></a> </td> </tr> <tr><td colspan="2" class="dataLabel"> </td></tr> <tr> <td colspan="2"> <span class="criteriaLabel"> <fl:getMessage code="F2024" alt="Notes"/> </span> <fl:input property="Eq_Comment" width="auto"/> </td> </tr> <tr><td colspan="2" class="dataLabel"> </td></tr> </table> </form> </fl:access> <fl:grid name="EQP_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=EQP_EMB&Eq_TiersID=\" + id %>"/> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="FF15E" alt="Envies"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:access name="Envies_" operation="create"> <form name="envies" class="fieldTable"> <table class="container" cellpadding="0"> <tr> <td> <span class="criteriaLabel"> <fl:getMessage code="F2029" alt="Catégorie"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "E1_", "Te1"); %> <select name="EnvcategoryID" id="EnvcategoryID" style="background-color: #FDCBCC" onchange="loadSubCategory(this.value);"> <option value=""></option> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <span class="criteriaLabel"> </td> <td> <span class="criteriaLabel"> <fl:getMessage code="F70AB" alt="Sous catégorie"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "E2_", "Te1"); %> <select name="EnvSubCategoryID" id="EnvSubCategoryID"> <option value=""></option> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% }catch (FrontlineException fle) { } %> <span class="criteriaLabel"> </td> <td class="smallFieldPart"><a href="javascript:addEnvies()"> <img src="<fl:webapp/>/icons/ico/save_all_long.gif" id="bt_addEnv" title="<fl:getMessage code="A000F" alt="Ajouter"/>"></a> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td colspan="3"> <span class="criteriaLabel"> <fl:getMessage code="F2024" alt="Notes"/> </span> <fl:input property="EnvComments" width="auto"/> </td> </tr> <tr><td colspan="2" class="dataLabel"> </td></tr> </table> </form> </fl:access> <fl:grid name="ENV_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=ENV_EMB&EnvTiersID=\" + id %>"/> </td> </tr> </table> </fl:sTab> <fl:sTab id="prestas" title="<%= Utils.getMessage(session, \"LF006\", false, true, \"Prestations\") %>" onselect="refreshPrestats();"> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF099" alt="Fermetures"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:access name="Fermetures_" operation="create"> <form name="fermetures" class="fieldTable"> <table class="container" cellpadding="0"> <tr> <td colspan="3"> <span class="criteriaLabel"> <fl:getMessage code="FF1A2" alt="Millésime"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Mil", "Te1"); %> <select name="FerMilID" id="FerMilID" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <span class="criteriaLabel"> <fl:getMessage code="F2029" alt="Catégorie"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Ctg", "Te1"); %> <select name="FerCategorie" id="FerCategorie" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr><td colspan="3" class="dataValue"><fl:getMessage code="LF197" alt="Fermeture Hebdomadaire"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td> <textarea id="FerHebdoText" name="FerHebdoText" class="input textarea" style="width:100%; width:100%;"></textarea> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr><td colspan="3" class="dataValue"><fl:getMessage code="LF196" alt="Fermeture Annuelle"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td> <span class="criteriaLabel"> <fl:getMessage code="L3128" alt="Du"/> </span> <input id="FerPlageBgDt" name="FerPlageBgDt" value="" class="input text chpsTextObligatoire" style="text-align: right; width: 10%" type="text" maxlength="5"> <span class="criteriaLabel"> <fl:getMessage code="L63B4" alt="Au"/> </span> <input id="FerPlageEndDt" name="FerPlageEndDt" value="" class="input text chpsTextObligatoire" style="text-align: right; width: 10%" type="text" maxlength="5"> </td> <td class="smallFieldPart"><a href="javascript:addFermeture()"> <img src="<fl:webapp/>/icons/ico/save_all_long.gif" id="bt_add" title="<fl:getMessage code="A000F" alt="Ajouter"/>"></a> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> </form> </fl:access> <fl:grid name="FER_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=FER_EMB&FerTiersID=\" + id %>"/> <%-- <fl:sTab id="TimeTables_" title="<%= Utils.getMessage(session, \"\", false, true, \"Textes\") %>" onselect="refreshTxts();"> --%> <jsp:include page="read_tabtimetables.jsp"> <jsp:param name="id" value="<%=id %>"/> </jsp:include> <%-- </fl:sTab> --%> <%if(editChapsPresta) {%> <form name="divers" class="fieldTable"> <table class="container" cellpadding="0" > <tr><td class="dataLabel"> </td></tr> <tr><td class="ligne_separation_couleur"></td></tr> <tr><td class="dataLabel"> </td></tr> <tr><td class="titreInterneSmalltabs"><fl:getMessage code="LF0A9" alt="Divers"/></td></tr> <tr><td class="dataLabel"> </td></tr> </table> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="data_column" cellpadding="0" id="Div" style="display:table;"> <fl:fieldEdit property="EntThema_" type="list"/> <tr><td class="dataLabel"> </td></tr> <fl:fieldEdit property="EntBankCardID_" /> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0" id="Lng" style="display:table;"> <fl:fieldEdit property="EntSpokLngID_"/> </table> </td> </tr> <tr> <td class="smallFieldPart"> </td> <td class="smallFieldPart"> </td> <td class="smallFieldPart"> </td> <td class="smallFieldPart"><a href="javascript:addDivers()"> <img src="<fl:webapp/>/icons/ico/save_long.gif" id="bt_add" title="<fl:getMessage code="A0003" alt="Enregistrer"/>"></a> </td> </tr> </table> </form> <%} else { %> <form name="divers" class="fieldTable"> <table class="container" cellpadding="0" > <tr><td class="dataLabel"> </td></tr> <tr><td class="ligne_separation_couleur"></td></tr> <tr><td class="dataLabel"> </td></tr> <tr><td class="titreInterneSmalltabs"><fl:getMessage code="LF0A9" alt="Divers"/></td></tr> <tr><td class="dataLabel"> </td></tr> </table> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="data_column" cellpadding="0" id="Div" style="display:table;"> <fl:fieldRead property="EntThema_"/> <tr><td class="dataLabel"> </td></tr> <fl:fieldRead property="EntBankCardID_" /> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0" id="Lng" style="display:table;"> <fl:fieldRead property="EntSpokLngID_"/> </table> </td> </tr> </table> </form> <%}%> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF09D" alt="Chambres"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:access name="Room_" operation="create"> <form name="chambres" class="fieldTable"> <table class="container" cellpadding="0"> <tr> <td colspan="3"> <span class="criteriaLabel"> <fl:getMessage code="FF1A2" alt="Millésime"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Mil", "Te1"); %> <select name="RooMillesimeID" id="RooMillesimeID" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <span class="criteriaLabel"> <fl:getMessage code="FF139" alt="Type de chambre"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Tch", "Te1"); %> <select name="RooTypeChambre" id="RooTypeChambre" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> </td> </tr> <tr> <tr><td colspan="4" class="dataLabel"> </td></tr> <td > <span class="criteriaLabel"> <fl:getMessage code="FF160" alt="Nombre couchage"/> </span> <input id="RooCouchageNb" name="RooCouchageNb" value="" class="input number" style="text-align: right; width: 10%" onblur="ctrlNumField(this, 'integer', '<fl:getMessage code="M302E" alt="Format incorrect. Veuillez corriger." js="true"/>');" type="text"> <span class="criteriaLabel"> <fl:getMessage code="F6110" alt="Nombre"/> </span> <input id="RooNumber" name="RooNumber" value="" class="input number" style="text-align: right; width: 10%" onblur="ctrlNumField(this, 'integer', '<fl:getMessage code="M302E" alt="Format incorrect. Veuillez corriger." js="true"/>');" type="text"> </td> <td class="smallFieldPart"><a href="javascript:addChambre()"> <img src="<fl:webapp/>/icons/ico/save_all_long.gif" id="bt_add" title="<fl:getMessage code="A000F" alt="Ajouter"/>"></a> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> </form> </fl:access> <fl:grid name="ROO_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=ROO_EMB&RooTiers=\" + id %>"/> <%-- <table class="container" cellpadding="0"> <tr><td class="dataLabel"> </td></tr> <tr><td class="ligne_separation_couleur"/></tr> <tr><td class="dataLabel"> </td></tr> <tr><td class="titreInterneSmalltabs"><fl:getMessage code="LF0A8" alt="Restaurants"/></td></tr> <tr><td class="dataLabel"> </td></tr> </table> <fl:grid name="RESTOS" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=RESTOS&EntRatachHotelID_=\" + id %>"/> --%> <table class="container" cellpadding="0"> <tr><td colspan="4" class="ligne_separation_couleur"/></tr> <tr><td colspan="4" class="dataLabel"> </td></tr> <tr><td colspan="4" class="titreInterneSmalltabs"><fl:getMessage code="F60B8" alt="Prix"/></td></tr> <tr><td colspan="4" class="dataLabel"> </td></tr> </table> <fl:access name="Price_" operation="create"> <form name="prix" class="fieldTable"> <table class="container" cellpadding="0"> <td colspan="3"> <span class="criteriaLabel"> <fl:getMessage code="FF1A2" alt="Millésime"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Mil", "Te1"); %> <select name="PrxMillesimeID" id="PrxMillesimeID" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <%-- <span class="criteriaLabel"> <fl:getMessage code="F60D3" alt="Type de prix"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Pxt", "Te1"); %> <select name="PrxTypeID" id="PrxTypeID" style="background-color: #FDCBCC" onchange="loadTypePrestation(this.value);"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> --%> <span class="criteriaLabel"> <fl:getMessage code="FF1DE" alt="Type de prestation"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Pes", "Te1"); %> <select name="PrxPrestationID" id="PrxPrestationID" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> </td> <td class="smallFieldPart"><a href="javascript:addPrix()"> <img src="<fl:webapp/>/icons/ico/save_all_long.gif" id="bt_add" title="<fl:getMessage code="A000F" alt="Ajouter"/>"></a> </td> <tr><td colspan="4" class="dataLabel"> </td></tr> <tr> <td colspan="3"> <span class="criteriaLabel"> <fl:getMessage code="FF1B7" alt="Prix min."/> </span> <input id="PrxMin" name="PrxMin" value="" class="input number chpsTextObligatoire" style="text-align: right ;width: 10%" onblur="ctrlNumField(this, 'float', '<fl:getMessage code="M302E" alt="Format incorrect. Veuillez corriger." js="true"/>');" type="text"> <span class="criteriaLabel"> <fl:getMessage code="FF1B8" alt="Prix max."/> </span> <input id="PrxMax" name="PrxMax" value="" class="input number" style="text-align: right; width: 10%" onblur="ctrlNumField(this, 'float', '<fl:getMessage code="M302E" alt="Format incorrect. Veuillez corriger." js="true"/>');" type="text"> </td> </tr> <tr><td class="dataLabel"> </td></tr> <tr><td colspan="4" class="dataLabel"> </td></tr> </table> </form> <form name="ptitdej" class="fieldTable"> <table class="container" cellpadding="0"> <tr><td class="dataLabel"> </td></tr> <fl:fieldEdit property="EntPtitDej_"/> <td class="smallFieldPart"><a href="javascript:addPtitdej()"> <img src="<fl:webapp/>/icons/ico/save_long.gif" id="bt_add" align="right" title="<fl:getMessage code="A0003" alt="Enregistrer"/>"></a> </td> </table> </form> </fl:access> <fl:grid name="PRX_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=PRX_EMB&PrxTiersID=\" + id %>"/> </td> </tr> </table> </fl:sTab> <%-- Affiliation --%> <fl:sTab id="Missions" title="<%= Utils.getMessage(session, \"LF1D1\", \"Historique décisions\") %>" onselect="refreshMissions();"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="FF1BE" alt="Dossier"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="AUDIT" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=AUDIT&Ds_HotelID=\" + id %>"/> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="FF21F" alt="Classement"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="CLAS_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CLAS_EMB&Cl_Tiers=\" + id %>"/> <div><br/></div> </fl:sTab> <%-- Contrats --%> <%-- <fl:sTab id="Contrats" title="<%= Utils.getMessage(session, \"\", false, true, \"Contrats\") %>" onselect="refreshCTR();"> <fl:grid name="CTR_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CTR_EMB&EntID=\" + id %>"/> --%> <fl:sTab id="Contrats" title="<%= Utils.getMessage(session, \"\", false, true, \"Contrats\") %>" onselect="refreshCONTRATS();"> <fl:grid name="CONTRATS" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CONTRATS&EntID=\" + id %>"/> </fl:sTab> <%-- Solicitation --%> <fl:sTab id="SOLS" title="<%= Utils.getMessage(session, \"L652F\", false, true, \"Sollicitations\") %>" onselect="refreshSols(); refreshSols_OLA();"> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="FF291" alt="Sollicitation Galaxie"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="SOL_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=SOL_EMB&SolTiersConcerne_=\" + id %>"/> </tr> <tr><td colspan="3" class="ligne_separation_couleur"/></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="FF292" alt="Sollicitation OLAKALA"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="SOL_EMB_OL" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=SOL_EMB_OL&SolTiersConcerne_=\" + id %>"/> </tr> </table> </fl:sTab> </fl:smallTabs> <% } if(isAssociation){ %> <fl:smallTabs name="EntRead" > <%-- Contacts --%> <fl:sTab id="contact" title="<%= Utils.getMessage(session, \"L3106\", false, true, \"Contacts\") %>" onselect="refreshPersons();"> <div><fl:grid name="PER_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=PER_EMB&PerEntID=\" + Enterprise.getID() %>"/></div> </fl:sTab> <%-- Correspondances --%> <fl:sTab id="Correspondances" title="<%= Utils.getMessage(session, \"LF031\", \"Correspondances\") %>" onselect="refreshCorresps();"> <fl:grid name="CORRESLIST" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CORRESLIST&IntTiersConc_=\" + Enterprise.getID()+\"&EntID=\" + Enterprise.getID()%>" /> </fl:sTab> <%-- Todos --%> <fl:sTab id="Todos" title="<%= Utils.getMessage(session, \"LF011\", \"Todos\") %>" onselect="refreshInts();"> <fl:grid name="INTERALIST" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=INTERALIST&IntTiersConc_=\" + Enterprise.getID()%>" /> </fl:sTab> <fl:sTab id="Reports" title="<%= Utils.getMessage(session, \"LF1EF\", false, true, \"Reporting\") %>"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF221" alt="Liens Crystal Report"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <% if( id != null){ for(int i=0; i<urlCrystal.size(); i++){ Vector objectUrl = (Vector)urlCrystal.elementAt(i); Vector objectTypeUrl = (Vector)lienType.elementAt(i); Vector objectLienAff = (Vector)lienAffiche.elementAt(i); Vector objectLienTarget = (Vector)lienTypeTarget.elementAt(i); String typeUrl = (String) objectTypeUrl.elementAt(1); if(isAssociation && typeUrl.equalsIgnoreCase("ASSO")) { String url = (String) objectUrl.elementAt(1); String strAffiche = (String) objectLienAff.elementAt(1); double dblLienTarget = (Double) objectLienTarget.elementAt(1); url = url.replace("#code#", id); %> <tr> <% if(dblLienTarget == 1) {%> <td><a href="<%=url %>" target="_self"><%=strAffiche%></a> <% } else {%> <td><a href="<%=url %>" target="_blank"><%=strAffiche%></a> <%} %> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <% } } } %> </table> </fl:sTab> <!-- -----------------------------------------------------Commande---------------------------------------------------------- --> <%-- Commandes --%> <fl:sTab id="Commandes" title="<%= Utils.getMessage(session, \"MF1A9\", false, true, \"Devis Commandes Factures\") %>" onselect="refreshDevs();refreshCmds();refreshFacs();"> <%-- <fl:grid name="CMD_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CMD_EMB&OppEntID=\" + id + \"&OppStoID=\" + cmdStsRefID %>"/> --%> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="L653F" alt="Devis"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="DEV_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=DEV_EMB&OppEntID=\" + id %>"/> </tr> <tr><td colspan="3" class="ligne_separation_couleur"/></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF035" alt="Commandes"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="CMD_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CMD_EMB&OppEntID=\" + id%>"/> </tr> <tr><td colspan="3" class="ligne_separation_couleur"/></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="F60D4" alt="Factures"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="FAC_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=FAC_EMB&OppEntID=\" + id %>"/> </tr> </table> </fl:sTab> </fl:smallTabs> <% } else if (isPartenaire) { %> <fl:smallTabs name="EntRead" > <%-- Contacts --%> <fl:sTab id="contact" title="<%= Utils.getMessage(session, \"L3106\", false, true, \"Contacts\") %>" onselect="refreshPersonsPart()"> <div><fl:grid name="PER_EMB_PT" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=PER_EMB_PT&PerEntID=\" + Enterprise.getID() %>"/></div> </fl:sTab> <%-- Infos Partenaire --%> <fl:sTab id="infopart" title="<%= Utils.getMessage(session, \"LF12E\", false, true, \"Infos Partenaire\") %>"> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="data_column" cellpadding="0"> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF218" alt="Evaluation qualitative & quantitative"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntNbrvistMois_"/> <fl:fieldRead property="EntNbrvisitAn_"/> <fl:fieldRead property="EntRepartNational_"/> <fl:fieldRead property="EntDureemoyCon_"/> <fl:fieldRead property="EntPagepluslues_"/> <fl:fieldRead property="EntDatePortail_"/> <tr><td colspan="5" class="ligne_separation"/></tr> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF219" alt="Evaluation économique"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntCAautres_"/> <fl:fieldRead property="EntTauxcomission_"/> <fl:fieldRead property="EntCategoriehotel_"/> <fl:fieldRead property="EntModEco_" alt=""/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0"> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF21A" alt="Evaluation Technique"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <tr class="fieldline"> <td id="Hs_label" class="dataLabel"> <fl:label field="EntlgXML_"/> </td> <td id="Apercu_value" class="dataValue"> <input type="checkbox" <%= islgXML?"checked":"" %> disabled="disabled"/> </td> </tr> <tr class="fieldline"> <td id="Hs_label" class="dataLabel"> <fl:label field="Entpasserelle_"/> </td> <td id="Apercu_value" class="dataValue"> <input type="checkbox" <%= ispassrelle?"checked":"" %> disabled="disabled"/> </td> </tr> <fl:fieldRead property="EntFluxXML_"/> <fl:fieldRead property="EntFreqMAJ_" alt=""/> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="L2087" alt="Accès"/> </td> <fl:fieldRead property="EntDistriLogin_"/> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF21B" alt="Evaluation du contenu"/> </td> <tr class="fieldline"> <td id="Hs_label" class="dataLabel"> <fl:label field="Entchainehotel_"/> </td> <td id="Apercu_value" class="dataValue"> <input type="checkbox" <%= ischaine?"checked":"" %> disabled="disabled"/> </td> </tr> <fl:fieldRead property="EntchaineRef_" bean="true" href="true" disp="<%= flRequest.computeURL(\"/read_enterprise.fl\") %>"/> </table> </td> </tr> </table> </fl:sTab> <%-- Correspondances --%> <fl:sTab id="Correspondances" title="<%= Utils.getMessage(session, \"LF031\", \"Correspondances\") %>" onselect="refreshCorresps();"> <fl:grid name="CORRESLIST" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CORRESLIST&IntTiersConc_=\" + Enterprise.getID()+\"&EntID=\" + Enterprise.getID()%>" /> </fl:sTab> <%-- Todos --%> <fl:sTab id="Todos" title="<%= Utils.getMessage(session, \"LF011\", \"Todos\") %>" onselect="refreshInts();"> <fl:grid name="INTERALIST" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=INTERALIST&IntTiersConc_=\" + Enterprise.getID()%>" /> </fl:sTab> <%-- Contrats --%> <%--<fl:sTab id="Contrats" title="<%= Utils.getMessage(session, \"\", false, true, \"Contrats\") %>" onselect="refreshCTR();"> <fl:grid name="CTR_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CTR_EMB&EntID=\" + id %>"/> --%> <fl:sTab id="Contrats" title="<%= Utils.getMessage(session, \"\", false, true, \"Contrats\") %>" onselect="refreshCONTRATS();"> <fl:grid name="CONTRATS" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CONTRATS&EntID=\" + id %>"/> </fl:sTab> <fl:sTab id="Reports" title="<%= Utils.getMessage(session, \"LF1EF\", false, true, \"Reporting\") %>"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF221" alt="Liens Crystal Report"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <% if( id != null){ for(int i=0; i<urlCrystal.size(); i++){ Vector objectUrl = (Vector)urlCrystal.elementAt(i); Vector objectTypeUrl = (Vector)lienType.elementAt(i); Vector objectLienAff = (Vector)lienAffiche.elementAt(i); Vector objectLienTarget = (Vector)lienTypeTarget.elementAt(i); String typeUrl = (String) objectTypeUrl.elementAt(1); if((isPartenaire && typeUrl.equalsIgnoreCase("PART"))) { String url = (String) objectUrl.elementAt(1); String strAffiche = (String) objectLienAff.elementAt(1); double dblLienTarget = (Double) objectLienTarget.elementAt(1); url = url.replace("#code#", id); %> <tr> <% if(dblLienTarget == 1) {%> <td><a href="<%=url %>" target="_self"><%=strAffiche%></a> <% } else {%> <td><a href="<%=url %>" target="_blank"><%=strAffiche%></a> <%} %> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <% } } } %> </table> </fl:sTab> <!-- -----------------------------------------------------Commande---------------------------------------------------------- --> <%-- Commandes --%> <fl:sTab id="Commandes" title="<%= Utils.getMessage(session, \"MF1A9\", false, true, \"Devis Commandes Factures\") %>" onselect="refreshDevs();refreshCmds();refreshFacs();"> <%-- <fl:grid name="CMD_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CMD_EMB&OppEntID=\" + id + \"&OppStoID=\" + cmdStsRefID %>"/> --%> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="L653F" alt="Devis"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="DEV_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=DEV_EMB&OppEntID=\" + id %>"/> </tr> <tr><td colspan="3" class="ligne_separation_couleur"/></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF035" alt="Commandes"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="CMD_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CMD_EMB&OppEntID=\" + id%>"/> </tr> <tr><td colspan="3" class="ligne_separation_couleur"/></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="F60D4" alt="Factures"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="FAC_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=FAC_EMB&OppEntID=\" + id %>"/> </tr> </table> </fl:sTab> </fl:smallTabs> <% } else if (isCabaudit || isJournaliste || isPresta) {%> <fl:smallTabs name="EntRead" > <%-- Contacts --%> <fl:sTab id="contact" title="<%= Utils.getMessage(session, \"L3106\", false, true, \"Contacts\") %>" onselect="refreshPersonsPart()"> <div><fl:grid name="PER_EMB_PT" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=PER_EMB_PT&PerEntID=\" + Enterprise.getID() %>"/></div> </fl:sTab> <%-- Infos Partenaire <fl:sTab id="Partners" title="<%= Utils.getMessage(session, \"LF12E\", \"Infos Partenaire\") %>"> </fl:sTab> --%> <%-- Correspondances --%> <fl:sTab id="Correspondances" title="<%= Utils.getMessage(session, \"LF031\", \"Correspondances\") %>" onselect="refreshCorresps();"> <fl:grid name="CORRESLIST" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CORRESLIST&IntTiersConc_=\" + Enterprise.getID()+\"&EntID=\" + Enterprise.getID()%>" /> </fl:sTab> <%-- Todos --%> <fl:sTab id="Todos" title="<%= Utils.getMessage(session, \"LF011\", \"Todos\") %>" onselect="refreshInts();"> <fl:grid name="INTERALIST" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=INTERALIST&IntTiersConc_=\" + Enterprise.getID()%>" /> </fl:sTab> <%-- Contrats --%> <%--<fl:sTab id="Contrats" title="<%= Utils.getMessage(session, \"\", false, true, \"Contrats\") %>" onselect="refreshCTR();"> <fl:grid name="CTR_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CTR_EMB&EntID=\" + id %>"/> --%> <fl:sTab id="Contrats" title="<%= Utils.getMessage(session, \"\", false, true, \"Contrats\") %>" onselect="refreshCONTRATS();"> <fl:grid name="CONTRATS" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CONTRATS&EntID=\" + id %>"/> </fl:sTab> <fl:sTab id="Reports" title="<%= Utils.getMessage(session, \"LF1EF\", false, true, \"Reporting\") %>"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF221" alt="Liens Crystal Report"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <% if( id != null){ for(int i=0; i<urlCrystal.size(); i++){ Vector objectUrl = (Vector)urlCrystal.elementAt(i); Vector objectTypeUrl = (Vector)lienType.elementAt(i); Vector objectLienAff = (Vector)lienAffiche.elementAt(i); Vector objectLienTarget = (Vector)lienTypeTarget.elementAt(i); String typeUrl = (String) objectTypeUrl.elementAt(1); if((isCabaudit && typeUrl.equalsIgnoreCase("AUDIT")) || (isJournaliste && typeUrl.equalsIgnoreCase("JOURN")) || (isPresta && typeUrl.equalsIgnoreCase("PRESTA")) ) { String url = (String) objectUrl.elementAt(1); String strAffiche = (String) objectLienAff.elementAt(1); double dblLienTarget = (Double) objectLienTarget.elementAt(1); url = url.replace("#code#", id); %> <tr> <% if(dblLienTarget == 1) {%> <td><a href="<%=url %>" target="_self"><%=strAffiche%></a> <% } else {%> <td><a href="<%=url %>" target="_blank"><%=strAffiche%></a> <%} %> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <% } } } %> </table> </fl:sTab> <!-- -----------------------------------------------------Commande---------------------------------------------------------- --> <%-- Commandes --%> <fl:sTab id="Commandes" title="<%= Utils.getMessage(session, \"MF1A9\", false, true, \"Devis Commandes Factures\") %>" onselect="refreshDevs();refreshCmds();refreshFacs();"> <jsp:include page="Commandes.jsp"> <jsp:param name="id" value="<%=id %>"/> </jsp:include> </fl:sTab> </fl:smallTabs> <% } if(!isAssociation && !isPartenaire && !isCabaudit && !isJournaliste && !isPresta){ %> <fl:smallTabs name="EntRead" > <!-- -----------------------------------------------------Reporting---------------------------------------------------------- --> <fl:sTab id="Reports" title="<%= Utils.getMessage(session, \"LF1EF\", false, true, \"Reporting\") %>"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF221" alt="Liens Crystal Report"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <% if( id != null){ for(int i=0; i<urlCrystal.size(); i++){ Vector objectUrl = (Vector)urlCrystal.elementAt(i); Vector objectTypeUrl = (Vector)lienType.elementAt(i); Vector objectLienAff = (Vector)lienAffiche.elementAt(i); Vector objectLienTarget = (Vector)lienTypeTarget.elementAt(i); String typeUrl = (String) objectTypeUrl.elementAt(1); if( typeUrl.equalsIgnoreCase("LOGIS") ) { String url = (String) objectUrl.elementAt(1); String strAffiche = (String) objectLienAff.elementAt(1); double dblLienTarget = (Double) objectLienTarget.elementAt(1); url = url.replace("#code#", id); %> <tr> <% if(dblLienTarget == 1) {%> <td><a href="<%=url %>" target="_self"><%=strAffiche%></a> <% } else {%> <td><a href="<%=url %>" target="_blank"><%=strAffiche%></a> <%} %> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <% } } } %> </table> <% try{ String hotelid=(String)Enterprise.getCustomProperty("EntHotelID_"); String loginForCevLink =(new ActorBean((String)session.getAttribute("actorID"),context)).getActLogin(); if( id != null){ %> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF327" alt="Liens de débranchement Reservit :"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <% for(int i=0; i<urlRes.size(); i++){ Vector objectUrl = (Vector)urlRes.elementAt(i); Vector objectTypeUrl = (Vector)lienTyperes.elementAt(i); Vector objectLienAff = (Vector)lienAfficheres.elementAt(i); Vector objectLienTarget = (Vector)lienTypeTargetres.elementAt(i); String typeUrl = (String) objectTypeUrl.elementAt(1); if( typeUrl.equalsIgnoreCase("lienres") ) { String url = (String) objectUrl.elementAt(1); String strAffiche = (String) objectLienAff.elementAt(1); double dblLienTarget = (Double) objectLienTarget.elementAt(1); url = url.replace("#code#", hotelid); %> <tr> <% if(dblLienTarget == 1) {%> <td><a href="<%=url %>" target="_self"><%=strAffiche%></a> <% } else {%> <td><a href="<%=url %>" target="_blank"><%=strAffiche%></a> <%} %> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <% } } %> </table> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF328" alt="Liens de débranchement CEV :"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <% for(int i=0; i<urlCev.size(); i++){ Vector objectUrl = (Vector)urlCev.elementAt(i); Vector objectTypeUrl = (Vector)lienTypecev.elementAt(i); Vector objectLienAff = (Vector)lienAffichecev.elementAt(i); Vector objectLienTarget = (Vector)lienTypeTargetcev.elementAt(i); String typeUrl = (String) objectTypeUrl.elementAt(1); if( typeUrl.equalsIgnoreCase("liencev") ) { String url = (String) objectUrl.elementAt(1); String strAffiche = (String) objectLienAff.elementAt(1); double dblLienTarget = (Double) objectLienTarget.elementAt(1); url = url.replace("#code#", hotelid); url = url.replace("#login#",loginForCevLink); %> <tr> <% if(dblLienTarget == 1) {%> <td><a href="<%=url %>" target="_self"><%=strAffiche%></a> <% } else {%> <td><a href="<%=url %>" target="_blank"><%=strAffiche%></a> <%} %> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <% } } %> </table> <% } }catch(FieldNotInitializedException fnie){ logger.warn("enthotelid_ not initialized exception"); logger.warn(fnie.getMessage()); logger.warn(fnie.getStackTrace()); } %> </fl:sTab> <%-- Autres Marques--%> <fl:sTab id="Autres Marques" title="<%= Utils.getMessage(session, \"\", false, true, \"Autres Marques\") %>" onselect="refreshOthLabs();refreshOthMrqs();refreshOthGds();"> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF070" alt="Autres marques"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:access name="OtherMrq_" operation="create"> <form name="autresmrq" class="fieldTable"> <table class="container" cellpadding="0"> <tr> <td colspan="3"> <span class="criteriaLabel"> <fl:getMessage code="FF1A2" alt="Millésime"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Mil", "Te1"); %> <select name="Om_MillesimeID" id="Om_MillesimeID" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <!-- <tr><td colspan="3" class="dataLabel"></td></tr> --> <span class="criteriaLabel"> <fl:getMessage code="F6138" alt="Date de début"/> </span> <input name="Om_DateDeb" type="text" onfocus="this.select();" onblur="ctrlDateField(this, '<fl:getMessage code="M202B" alt="Format de date incorrect. Veuillez corriger." js="true"/>');" tabindex="10" size="10" maxlength="10"> <a href="javascript:openCalendar(document.autresmrq.Om_DateDeb)" onmouseover="window.status = '<fl:getMessage code="A2000" alt="Afficher le calendrier" js="true"/>';" onmouseout="window.status = '';"><img src="<fl:webapp/>/icons/ico/clock_neutre.gif" class="icon"></a> <span class="criteriaLabel"> <fl:getMessage code="F6132" alt="Date de fin"/> </span> <input name="Om_DateFin" type="text" onfocus="this.select();" onblur="ctrlDateField(this, '<fl:getMessage code="M202B" alt="Format de date incorrect. Veuillez corriger." js="true"/>');" tabindex="11" size="10" maxlength="10"> <a href="javascript:openCalendar(document.autresmrq.Om_DateFin)" onmouseover="window.status = '<fl:getMessage code="A2000" alt="Afficher le calendrier" js="true"/>';" onmouseout="window.status = '';"><img src="<fl:webapp/>/icons/ico/clock_neutre.gif" class="icon"></a> <!-- </td> --> <!-- <tr><td colspan="3" class="dataLabel"> </td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> --> <!-- <tr> <td colspan="3"class="dataLabel"> --> <span class="criteriaLabel"> <fl:getMessage code="LF1C4" alt="Nature"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "AM_", "Te1"); %> <select name="Om_LibelleTR" id="Om_LibelleTR" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <td class="smallFieldPart"><a href="javascript:addOtherMrq()"> <img src="<fl:webapp/>/icons/ico/save_all_long.gif" id="bt_add" title="<fl:getMessage code="A000F" alt="Ajouter"/>"></a> </td> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> </form> </fl:access> <fl:grid name="OTHMARQUES" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=OTHMARQUES&Om_Tiers=\" + id %>"/> <fl:access name="OtherLbls_" operation="create"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="ligne_separation_couleur"/></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="FF1D4" alt="Autres labels"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <form name="autreslbl" class="fieldTable"> <table class="container" cellpadding="0"> <tr> <td colspan="3"> <span class="criteriaLabel"> <fl:getMessage code="FF1A2" alt="Millésime"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Mil", "Te1"); %> <select name="Ol_MillesimeID" id="Ol_MillesimeID" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <!-- </td> </tr> <tr><td colspan="4" class="dataLabel"> </td></tr> <tr> <td> --> <span class="criteriaLabel"> <fl:getMessage code="F6138" alt="Date de début"/> </span> <input name="Ol_DateDeb" type="text" onfocus="this.select();" onblur="ctrlDateField(this, '<fl:getMessage code="M202B" alt="Format de date incorrect. Veuillez corriger." js="true"/>');" tabindex="10" size="10" maxlength="10"> <a href="javascript:openCalendar(document.autreslbl.Ol_DateDeb)" onmouseover="window.status = '<fl:getMessage code="A2000" alt="Afficher le calendrier" js="true"/>';" onmouseout="window.status = '';"><img src="<fl:webapp/>/icons/ico/clock_neutre.gif" class="icon"></a> <span class="criteriaLabel"> <fl:getMessage code="F6132" alt="Date de fin"/> </span> <input name="Ol_DateFin" type="text" onfocus="this.select();" onblur="ctrlDateField(this, '<fl:getMessage code="M202B" alt="Format de date incorrect. Veuillez corriger." js="true"/>');" tabindex="11" size="10" maxlength="10"> <a href="javascript:openCalendar(document.autreslbl.Ol_DateFin)" onmouseover="window.status = '<fl:getMessage code="A2000" alt="Afficher le calendrier" js="true"/>';" onmouseout="window.status = '';"><img src="<fl:webapp/>/icons/ico/clock_neutre.gif" class="icon"></a> <!-- </td> </tr> --> <!-- <tr><td colspan="3" class="dataLabel"> </td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> --> <!-- <tr> <td colspan="3"> --> <span class="criteriaLabel"> <fl:getMessage code="LF1C4" alt="Nature"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Nal", "Te1"); %> <select name="Ol_LibelleTR" id="Ol_LibelleTR" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <%-- <fl:input property="Ol_LibelleTR" style="background-color: #FDCBCC"/> --%> </td> <td class="smallFieldPart"><a href="javascript:addOtherLbl()"> <img src="<fl:webapp/>/icons/ico/save_all_long.gif" id="bt_add" title="<fl:getMessage code="A000F" alt="Ajouter"/>"></a> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> </form> </fl:access> <fl:grid name="OTHLABELS" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=OTHLABELS&Ol_Tiers=\" + id %>"/> </td> <tr><td colspan="3" class="ligne_separation_couleur"/></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <!-- <td class="separation"><div class="separation"></div></td> --> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="FF1D5" alt="Autres guides"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:access name="OtherGuides_" operation="create"> <form name="autresgds" class="fieldTable"> <table class="container" cellpadding="0"> <tr> <td colspan="3"> <span class="criteriaLabel"> <fl:getMessage code="FF1A2" alt="Millésime"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Mil", "Te1"); %> <select name="Og_MillesimeID" id="Og_MillesimeID" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <!-- </td> </tr> <tr><td colspan="4" class="dataLabel"> </td></tr> <tr> <td> --> <span class="criteriaLabel"> <fl:getMessage code="F6138" alt="Date de début"/> </span> <input name="Og_DateDeb" type="text" onfocus="this.select();" onblur="ctrlDateField(this, '<fl:getMessage code="M202B" alt="Format de date incorrect. Veuillez corriger." js="true"/>');" tabindex="10" size="10" maxlength="10"> <a href="javascript:openCalendar(document.autresgds.Og_DateDeb)" onmouseover="window.status = '<fl:getMessage code="A2000" alt="Afficher le calendrier" js="true"/>';" onmouseout="window.status = '';"><img src="<fl:webapp/>/icons/ico/clock_neutre.gif" class="icon"></a> <span class="criteriaLabel"> <fl:getMessage code="F6132" alt="Date de fin"/> </span> <input name="Og_DateFin" type="text" onfocus="this.select();" onblur="ctrlDateField(this, '<fl:getMessage code="M202B" alt="Format de date incorrect. Veuillez corriger." js="true"/>');" tabindex="11" size="10" maxlength="10"> <a href="javascript:openCalendar(document.autresgds.Og_DateFin)" onmouseover="window.status = '<fl:getMessage code="A2000" alt="Afficher le calendrier" js="true"/>';" onmouseout="window.status = '';"><img src="<fl:webapp/>/icons/ico/clock_neutre.gif" class="icon"></a> <!-- </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td colspan="3"> --> <span class="criteriaLabel"> <fl:getMessage code="LF1C4" alt="Nature"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Nag", "Te1"); %> <select name="Og_LibelleTR" id="Og_LibelleTR" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <%-- <fl:input property="Og_LibelleTR" style="background-color: #FDCBCC"/> --%> </td> <td class="smallFieldPart"><a href="javascript:addOtherGds()"> <img src="<fl:webapp/>/icons/ico/save_all_long.gif" id="bt_add" title="<fl:getMessage code="A000F" alt="Ajouter"/>"></a> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> </form> </fl:access> <fl:grid name="OTHGUIDES" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=OTHGUIDES&Og_Tiers=\" + id %>"/> </td> </tr> </table> </fl:sTab> <%-- Sites autres réseaux --%> <fl:sTab id="SiteAutreReseaux" title="<%= Utils.getMessage(session, \"MF1A4\", false, true, \"Sites autres réseaux\") %>" onselect="RefreshUrlReseau();"> <jsp:include page="read_tabsites.jsp"> <jsp:param name="id" value="<%=id %>"/> </jsp:include> </fl:sTab> <%-- Textes --%> <fl:sTab id="Textes" title="<%= Utils.getMessage(session, \"\", false, true, \"Textes\") %>" onselect="refreshTxts();"> <jsp:include page="read_tabtextes.jsp"> <jsp:param name="id" value="<%=id %>"/> </jsp:include> </fl:sTab> <%-- Chiffres d'affaires --%> <fl:sTab id="TURNOVERS" title="<%= Utils.getMessage(session, \"LF091\", false, true, \"Chiffres d\'affaires\") %>" onselect="refreshTurnovers();"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><%= Utils.formatToWeb((String)dico.getRefDisp(session, "TrnTypCA", cacdrID), false) %></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="TURNOVERS1" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=TURNOVERS&TrnTiersID=\" + id + \"&TrnTypCA=\" + cacdrID %>"/> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><%= Utils.formatToWeb((String)dico.getRefDisp(session, "TrnTypCA", caccID), false) %></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="TURNOVERS2" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=TURNOVERS&TrnTiersID=\" + id + \"&TrnTypCA=\" + caccID %>"/> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><%= Utils.formatToWeb((String)dico.getRefDisp(session, "TrnTypCA", cafidID), false) %></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="TURNOVERS3" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=TURNOVERS&TrnTiersID=\" + id + \"&TrnTypCA=\" + cafidID %>"/> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><%= Utils.formatToWeb((String)dico.getRefDisp(session, "TrnTypCA", catotID), false) %></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="TURNOVERS4" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=TURNOVERS&TrnTiersID=\" + id + \"&TrnTypCA=\" + catotID %>"/> </fl:sTab> <%-- Enseignes --%> <fl:sTab id="enseignes" title="<%= Utils.getMessage(session, \"\", false, true, \"Enseignes\") %>" onselect="refreshEnseignes();"> <fl:grid name="ENSEIGNES" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=ENSEIGNES&Cr_Tiers=\" + id %>"/> </fl:sTab> <%-- Chèques Cadeaux --%> <fl:sTab id="GCH_EMB" title="<%= Utils.getMessage(session, \"LF095\", false, true, \"Chèques Cadeaux\") %>" onselect="refreshGiftCHQ();"> <fl:access name="GiftCheque_" operation="edit"> <form name="chequecadeau" class="fieldTable"> <table class="container" cellpadding="0" id="ChAdd" style="display:table;"> <tr> <td class="column2"> <table> <fl:fieldEdit property="EntCCsApointer_" query="<%=queryCcApointe%>"/> <td class="column2"> <td class="smallFieldPart"><a href="javascript:pointerCCs()"> <img src="<fl:webapp/>/icons/ico/valid_green_long.gif" id="bt_add" title="<fl:getMessage code="LF1E7" alt="Pointer les chèques cadeaux"/>"></a> </td> </td> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <td class="smallFieldPart"><a href="javascript:ajouterCCsBordreau()"> <img src="<fl:webapp/>/icons/ico/save_all_long.gif" id="bt_add" title="<fl:getMessage code="FF271" alt="Ajouter les Chèques au bordereau de réglement"/>"></a> </td> </td> </tr> </table> </form> </fl:access> <fl:grid name="GCH_EMB3" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=GCH_EMB3&GchUseWithAdherent=\" + id %>"/> </fl:sTab> <!-- -----------------------------------------------------Tiers Associés---------------------------------------------------------- --> <fl:sTab id="tiersConcernés" title="<%= Utils.getMessage(session, \"MF0FE\", false, true, \"Tiers associés\") %>" onselect="refreshTiersAssocies();"> <fl:grid name="TIERS_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=TIERS_EMB&EntRatachHotelID_=\" + id %>"/> </fl:sTab> <!-- -----------------------------------------------------Commande---------------------------------------------------------- --> <%-- Commandes --%> <fl:sTab id="Commandes" title="<%= Utils.getMessage(session, \"MF1A9\", false, true, \"Devis Commandes Factures\") %>" onselect="refreshDevs();refreshCmds();refreshFacs();"> <%-- <fl:grid name="CMD_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CMD_EMB&OppEntID=\" + id + \"&OppStoID=\" + cmdStsRefID %>"/> --%> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="L653F" alt="Devis"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="DEV_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=DEV_EMB&OppEntID=\" + id %>"/> </tr> <tr><td colspan="3" class="ligne_separation_couleur"/></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF035" alt="Commandes"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="CMD_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CMD_EMB&OppEntID=\" + id%>"/> </tr> <tr><td colspan="3" class="ligne_separation_couleur"/></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="F60D4" alt="Factures"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="FAC_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=FAC_EMB&OppEntID=\" + id %>"/> </tr> </table> </fl:sTab> </fl:smallTabs> <% } %> <fl:smallTabs name="EntRead3rd" > <% if(!isAssociation && !isPartenaire && !isCabaudit && !isJournaliste && !isPresta){ %> <%-- Infos Société --%> <fl:sTab id="infosoc" title="<%= Utils.getMessage(session, \"LF005\", false, true, \"Infos société\") %>"> <table class="container" cellpadding="0"> <tr> <td class="column3"> <table class="data_column" cellpadding="0"> <fl:fieldRead property="EntCorpName"/> <fl:fieldRead property="EntSiret"/> <fl:fieldRead property="EntSiren"/> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntRCS_"/> <fl:fieldRead property="EntCodeAPE_"/> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntTVAIntracom_"/> <fl:fieldRead property="EntComptaNum_"/> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntCA_"/> <fl:fieldRead property="EntNbEmployees_"/> <fl:fieldRead property="EntAtvID_"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column3"> <table class="data_column" cellpadding="0"> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF00E" alt="Coordonnées GPS"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntGPSX_"/> <fl:fieldRead property="EntGPSY_"/> <tr><td colspan="5" class="ligne_separation"/></tr> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF1D6" alt="Coordonnées Bancaires FIL"/> <tr><td colspan="5" class="ligne_separation"/></tr> </td> <fl:fieldRead property="EntBanque_"/> <fl:fieldRead property="EntIBAN_"/> <fl:fieldRead property="EntBIC_"/> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF1D7" alt="Coordonnées Bancaires LIS"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> </td> <fl:fieldRead property="EntBanqueLis_"/> <fl:fieldRead property="EntIBANLis_"/> <fl:fieldRead property="EntBICLis_"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column3"> <table class="data_column" cellpadding="0"> <fl:fieldRead property="EntLimitedResto_" valueCodeIfTrue="L2005" valueCodeIfFalse="L2006"/> <fl:fieldRead property="EntMajGA_" valueCodeIfTrue="L2005" valueCodeIfFalse="L2006"/> <td><span class="criteriaLabel"><fl:getMessage code="FF2C1" alt="Mode de règlement"/></span></td> <%if(modeReglement!=null){%><td><%=modeReglement%></td><%} %> <fl:fieldRead property="EntTauxRFAFournisseur_"/> <fl:fieldRead property="EntTauxRestrocessHot_"/> </table> </td> </tr> </table> </fl:sTab> <%-- Cotisation --%> <fl:sTab id="Cotisation" title="<%= Utils.getMessage(session, \"LF09F\", false, true, \"Cotisation\") %>" onselect="refreshPrdCot();"> <form name="cotrule" class="fieldTable" id="cotrule"> <table class="container" cellpadding="0"> <tr> <td> <span class="criteriaLabel"><fl:getMessage code="FF1A2" alt="Millésime"/></span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Mls", "Te1"); %> <select name="RotMillesime" id="RotMillesime" style="background-color: #FDCBCC" onchange="loadCotiProduct(this.value,'<%= id %>');"> <% if (values != null) { for (Vector<String> val : values) { String refID = (String)val.firstElement(); String refDisp = val.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> </td> <td nowrap="nowrap"> <span class="criteriaLabel"><fl:getMessage code="F203E" alt="Produit"/></span> <select name="RotPrdID" id="RotPrdID" style="background-color: #FDCBCC"> </select> </td> <td> <span class="criteriaLabel"><fl:getMessage code="FF1FE" alt="Remise"/></span> <% try { Vector<Vector<Object>> values = dico.getRefList(session, "Od_", "Te1"); %> <select name="RotDiscountID" id="RotDiscountID" style="background-color: #FDCBCC" onchange="javascript:doExclure();"> <% if (values != null) { for (Vector<Object> val : values) { String refID = (String)val.firstElement(); String refDisp = (String)val.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> </td> <td> <span>Ne pas génerer cette ligne de produit</span> <input type="checkbox" id="isExclure" name="isExclure" onchange="javascript:doExclure();"> </td> <fl:access name="RdcCotisation_" operation="create"> <td class="smallFieldPart"><a href="javascript:addCotRule();"> <img src="<fl:webapp/>/icons/ico/save_all_long.gif" id="bt_addEnv" title="<fl:getMessage code="A000F" alt="Ajouter"/>"></a> </td> </fl:access> </tr> <tr><td colspan="5" class="ligne_separation"/></tr> <tr><td colspan="5" class="ligne_separation"/></tr> <tr><td colspan="5" class="ligne_separation"/></tr> </table> </form> <fl:grid name="RDC_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=RDC_EMB&RotEntID=\" + id %>"/> </fl:sTab> <%-- Photos --%> <fl:sTab id="photos" title="<%= Utils.getMessage(session, \"LF008\", false, true, \"Photos\") %>" onselect="refreshPhotos();"> <fl:grid name="PHOTO_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=PHOTO_EMB&Po_Tiers=\" + id %>"/> </fl:sTab> <%-- Instances --%> <fl:sTab id="INSTANCE2" title="<%= Utils.getMessage(session, \"LF085\", \"Instances\") %>" onselect="refreshInstances();"> <fl:grid name="INSTANCE2" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=INSTANCE2&PvtPersonID:PerEntID=\" + id %>"/> </fl:sTab> <%-- Fichiers --%> <fl:sTab id="FATTACH" title="<%= Utils.getMessage(session, \"L201C\", \"Documents joints\") %>"> <fl:attach name="Enterprise" colID="EntAttID" edit="false" listFobs="true" /> </fl:sTab> <%-- Conformité site web--%> <fl:sTab id="siteweb" title="<%= Utils.getMessage(session, \"LF03A\", false, true, \"Conformité site web\") %>" onselect="refreshWebCoformity();"> <fl:grid name="WEBCONFORM" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=WEBCONFORM&Wc_TiersID=\" + id %>"/> </fl:sTab> <%-- Réservations --%> <fl:sTab id="Réservations" title="<%= Utils.getMessage(session, \"\", false, true, \"Réservations\") %>" onselect="refreshResas();refreshResaRestaurants();"> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="FF152" alt="Hôtel"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="RESA" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=RESA&Rs_HotelID=\" + id %>"/> </tr> <tr><td colspan="3" class="ligne_separation_couleur"/></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF0A8" alt="Restaurants"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="RESA_RESTA" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=RESA_RESTA&Rs_HotelID=\" + id %>"/> </tr> </table> </fl:sTab> <%-- Fidélisation --%> <fl:sTab id="Fidelity" title="<%= Utils.getMessage(session, \"FF0AF\", \"Fidélisation\") %>" onselect="refreshFidelity();"> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF07F" alt="Chèques de Fidélité"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="CQF_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=CQF_EMB&Cf_UtilAdherent=\" + id %>"/> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF080" alt="Transactions de Fidélité"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:grid name="TRF_EMB" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=TRF_EMB&Tf_AdherentID=\" + id %>"/> </fl:sTab> <% } %> <% if(isAssociation){ %> <%-- Infos Société --%> <fl:sTab id="infosoc" title="<%= Utils.getMessage(session, \"LF005\", false, true, \"Infos société\") %>"> <table class="container" cellpadding="0"> <tr> <td class="column3"> <table class="data_column" cellpadding="0"> <fl:fieldRead property="EntSiret"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column3"> <table class="data_column" cellpadding="0"> <fl:fieldRead property="EntSiren"/> <fl:fieldRead property="EntRCS_"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column3"> <table class="data_column" cellpadding="0"> <fl:fieldRead property="EntCodeAPE_"/> <fl:fieldRead property="EntTVAIntracom_"/> <fl:fieldRead property="EntComptaNum_"/> </table> </td> </tr> </table> </fl:sTab> <%-- Instances --%> <fl:sTab id="EVTASSO" title="<%= Utils.getMessage(session, \"LF085\", \"Instances\") %>" onselect="refreshInstancesAsso();"> <fl:grid name="EVTASSO" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=EVTASSO&EvtTiers_=\" + id %>"/> </fl:sTab> <%-- Fichiers --%> <fl:sTab id="FATTACH" title="<%= Utils.getMessage(session, \"L201C\", \"Documents joints\") %>"> <fl:attach name="Enterprise" colID="EntAttID" edit="false" listFobs="true" /> </fl:sTab> <% } else if (isPartenaire) { %> <%-- Infos Société --%> <fl:sTab id="infosoc" title="<%= Utils.getMessage(session, \"LF005\", false, true, \"Infos société\") %>"> <table class="container" cellpadding="0"> <tr> <td class="column3"> <table class="data_column" cellpadding="0"> <fl:fieldRead property="EntSiret"/> <fl:fieldRead property="EntSiren"/> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntRCS_"/> <fl:fieldRead property="EntCodeAPE_"/> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntTVAIntracom_"/> <fl:fieldRead property="EntComptaNum_"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column3"> <table class="data_column" cellpadding="0"> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF00E" alt="Coordonnées GPS"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntGPSX_"/> <fl:fieldRead property="EntGPSY_"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column3"> <table class="data_column" cellpadding="0"> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF1D6" alt="Coordonnées Bancaires FIL"/> <tr><td colspan="5" class="ligne_separation"/></tr> </td> <fl:fieldRead property="EntBanque_"/> <fl:fieldRead property="EntIBAN_"/> <fl:fieldRead property="EntBIC_"/> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF1D7" alt="Coordonnées Bancaires LIS"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> </td> <fl:fieldRead property="EntBanqueLis_"/> <fl:fieldRead property="EntIBANLis_"/> <fl:fieldRead property="EntBICLis_"/> </table> </td> </tr> </table> </fl:sTab> <%-- Fichiers --%> <fl:sTab id="FATTACH" title="<%= Utils.getMessage(session, \"L201C\", \"Documents joints\") %>"> <fl:attach name="Enterprise" colID="EntAttID" edit="false" listFobs="true" /> </fl:sTab> <% } else if (isCabaudit || isJournaliste || isPresta) { %> <%-- Infos Société --%> <fl:sTab id="infosoc" title="<%= Utils.getMessage(session, \"LF005\", false, true, \"Infos société\") %>"> <table class="container" cellpadding="0"> <tr> <td class="column3"> <table class="data_column" cellpadding="0"> <fl:fieldRead property="EntCorpName"/> <fl:fieldRead property="EntSiret"/> <fl:fieldRead property="EntSiren"/> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntRCS_"/> <fl:fieldRead property="EntCodeAPE_"/> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntTVAIntracom_"/> <fl:fieldRead property="EntComptaNum_"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column3"> <table class="data_column" cellpadding="0"> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF00E" alt="Coordonnées GPS"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> <fl:fieldRead property="EntGPSX_"/> <fl:fieldRead property="EntGPSY_"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column3"> <table class="data_column" cellpadding="0"> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF1D6" alt="Coordonnées Bancaires FIL"/> <tr><td colspan="5" class="ligne_separation"/></tr> </td> <fl:fieldRead property="EntBanque_"/> <fl:fieldRead property="EntIBAN_"/> <fl:fieldRead property="EntBIC_"/> <td class="titreInterneSmalltabs" colspan="5"> <fl:getMessage code="LF1D7" alt="Coordonnées Bancaires LIS"/> </td> <tr><td colspan="5" class="ligne_separation"/></tr> </td> <fl:fieldRead property="EntBanqueLis_"/> <fl:fieldRead property="EntIBANLis_"/> <fl:fieldRead property="EntBICLis_"/> </table> </td> </tr> </table> </fl:sTab> <%-- Fichiers --%> <fl:sTab id="FATTACH" title="<%= Utils.getMessage(session, \"L201C\", \"Documents joints\") %>"> <fl:attach name="Enterprise" colID="EntAttID" edit="false" listFobs="true" /> </fl:sTab> <% } %> <!-- http://u-project2.umanis.com/view.php?id=48902 | Ajout de l'onglet : Taux de générosité | mmi --> <%-- Taux de générosité --%> <fl:sTab id="TauxGenerosite" title="<%= Utils.getMessage(session, \"MF1AA\", \"Taux de générosité\") %>" onselect="refreshTauxGenerosite();"> <jsp:include page="read_tabtauxgen.jsp"> <jsp:param name="id" value="<%=id %>"/> </jsp:include> </fl:sTab> <fl:sTab id="CartesFID" title="<%= Utils.getMessage(session, \"FF147\", \"Cartes de fidélité\") %>" onselect="refreshCarteFID();"> <jsp:include page="read_carteFID.jsp"> <jsp:param name="id" value="<%=id %>"/> </jsp:include> </fl:sTab> <fl:sTab id="foozitoo" title="<%= Utils.getMessage(session, \"\", \"Divers\") %>" onselect="refreshFoozitoo()"> <jsp:include page="divers.jsp"> <jsp:param name="id" value="<%=id %>"/> </jsp:include> </fl:sTab> </fl:smallTabs> </fl:bigTabs> <% String lngId = ""; try{ lngId = (new EnterpriseBean(id, context)).getCustomProperty("EntRefLngID_").toString(); }catch(Exception e){ lngId = dico.getRefIdByCode("Lna", "Te1", "fr_FR"); } String lngCode = dico.getRefCode("EntRefLngID_", lngId); %> <div id="light" class="white_content" align="center"> <br><br> <input type="button" id="btnSearch" value="<%=Utils.getMessage(context, lngCode, "MF103", true,true,"SANS Classements")%>" onClick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none';sendEntToWeb('<%=id %>','n');" onkeydown="if (event.keyCode == 13) document.getElementById('btnSearch').click()"> <br><br> <input type="button" value='<%=Utils.getMessage(context, lngCode, "MF104", true,true,"AVEC Classements")%>' onClick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none';sendEntToWeb('<%=id %>','y');" /> <br><br> </div> <div id="fade" class="black_overlay" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none';"></div> <% String idcotdev = null; String idcotass = null; try{ idcotdev = (String)Enterprise.getCustomProperty("EntCotDevID_"); }catch(Exception e){ idcotdev = null; } try{ idcotass = (String)Enterprise.getCustomProperty("EntCotAssoDevID_"); }catch(Exception e){ idcotass = null; } %> <div id="light2" class="white_content" style="height: 20%;" align="center"> <br> <% if(idcotdev!=null || idcotass!=null){ %> <% if(idcotdev!=null){ %><fl:getMessage code="MF11E" alt="Lien du devis :"/><a href="<fl:link url="<%= \"/read_opportunity.fl?\" + ( idcotdev != null ? \"id=\" + idcotdev : \"\") %>"/>"><fl:getMessage code="LF22A" alt="Cotisations FIL"/></a><%} %><br> <% if(idcotass!=null){ %><fl:getMessage code="MF11E" alt="Lien du devis :"/><a href="<fl:link url="<%= \"/read_opportunity.fl?\" + ( idcotass != null ? \"id=\" + idcotass : \"\") %>"/>"><fl:getMessage code="MF11D" alt="Cotisations Association"/></a><%} %> <br><br> <fl:getMessage code="MF11F" alt="En cliquant sur désactiver, vous pourrez générer un devis de cotisations (si 1 devis existe déjà pour l'année en cours, celui-ci sera automatiquement désactivé)" js="false"/> <br> <% }else{ %> <fl:getMessage code="MF120" alt="Cliquer sur Activer pour activer la génération des cotisations pour ce tiers." js="false"/><br><br><br> <% } %><br> <input type="button" id="btnSearch2" value="<%=Utils.getMessage(context, lngCode, "A2002", true,true,"Annuler")%>" onClick="document.getElementById('light2').style.display='none';document.getElementById('fade2').style.display='none';" onkeydown="if (event.keyCode == 13) document.getElementById('btnSearch2').click()"> <input type="button" value='<%=Utils.getMessage(context, lngCode, "AF002", true,true,"Activer")%>' onClick="document.getElementById('light2').style.display='none';document.getElementById('fade2').style.display='none';activerFlagCotisations('<%=id %>');" /> <br> </div> <div id="fade2" class="black_overlay" onClick="document.getElementById('light2').style.display='none';document.getElementById('fade2').style.display='none';"></div> <script type="text/javascript"> <% String focusCCs = ""; focusCCs = flRequest.getRequestParameterOrAttribute("focusCCs"); if(focusCCs != null && focusCCs.contains("true")){%> setTimeout(function(){ javascript:swapSmallTabs('EntRead', 'in', 6); javascript:swapSmallTabs('EntRead', 'out', 0); javascript:selectSmallTab('EntRead', 6); }, 3500); window.scrollTo(0,1000); <%}%> </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de