Edit C:\Users\Administrator\Desktop\Back\Livraison EVQG22\sales\enterprise\read_action.jsp
<%@page import="com.edeal.frontline.helper.custom.EnterprisePersonEventHelper"%> <%@page import="com.edeal.frontline.helper.DecisionDataBaseHelper"%> <% /****************************************************************************** * Copyright (c) 2000-2011 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="java.util.*" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.*" %> <%@ page import="com.edeal.frontline.AccessControlManager" %> <%@ page import="com.edeal.frontline.PersonBean" %> <%@ page import="com.edeal.frontline.LocationBean" %> <%@ page import="com.edeal.frontline.InteractionBean" %> <%@ page import="com.edeal.frontline.OpportunityBean" %> <%@ page import="com.edeal.frontline.custom.*" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.helper.ContextHelper" %> <%@ page import="com.edeal.frontline.helper.custom.DocumentHelper" %> <%@ 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"/> <% 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 etiqMasseDocTyp = null; String clientCase = "2"; String actRoleIDactuel=null; String roleAsso_avec_SalID=null; String roleAsso_sans_SalID=null; boolean fHasRightModif = false; boolean fHasRightSuppTiers = false; boolean fHasRightSupp = false; boolean conformeWeb = false; boolean isConsLogis = false; try { etiqMasseDocTyp = dico.getRefIdByCode("Fdc", "Te1", "ASSO"); } catch (Exception e) { etiqMasseDocTyp = null; } String id; try { id = Enterprise.getID(); } catch (Exception e) { id = null; } String corrID; try { corrID = dico.getRefIdByCode("IntType_", "COR"); } catch (FrontlineException e) { corrID = ""; } String todoID; try { todoID = dico.getRefIdByCode("IntType_", "ACT"); } catch (FrontlineException e) { todoID = ""; } //Traitement de la hierarchie boolean hasHierarchy = false; try { Enterprise.getEntParentID(); hasHierarchy = true; } catch (FieldNotInitializedException fe) { } catch (Exception e) {} if (!hasHierarchy) { String[] hFields={"EntID"}; String[][] hQuery={{"EntParentID="+Utils.formatToSQL(context,id),"EntID <> "+Utils.formatToSQL(context,id)}}; Vector hList = EnterpriseBean.listSummary(context,hFields,hQuery); if (hList.size() > 0) hasHierarchy = true; } // Tiers is an association String typOrganisation = null; boolean isAssociation = false; boolean isPartenaire = false; boolean isRestaurant = false; boolean isCabaudit = false; boolean isJournaliste = false; boolean isPresta = false; boolean isHotel = false; boolean isEtab = false; try { typOrganisation = Enterprise.getEntTyeID(); isAssociation = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "ASSO")); isPartenaire = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "PART")); if(typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "RESTO"))) { isRestaurant = true; } isCabaudit = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "AUDIT")); isJournaliste = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "JOURN")); isPresta = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "PRESTA")); isEtab = typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "ETAB")); isHotel= typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "HOTEL")); } catch (FieldNotInitializedException e) { typOrganisation=""; } boolean isEnvoyerWeb = false; String codeReservit = null; try { codeReservit = (String)dico.getRefDisp(session, "Tye", "Te2", typOrganisation); } catch (Exception e) { codeReservit = null; } //System.out.println("codeReservit"+codeReservit); if(codeReservit != null) isEnvoyerWeb = true; else isEnvoyerWeb = false; //System.out.println("isEnvoyerWeb"+isEnvoyerWeb); // On récupère l'ID de l'acteur connecté String actID = null; if (session != null) { actID = (String)session.getAttribute("effectiveActorID"); if (actID == null) { actID = (String)session.getAttribute("actorID"); if (actID == null) { throw new FrontlineException("there is not an actor ID in session"); } } } try { ActorBean act = new ActorBean(actID, context); Vector<String> actRolesIDs = new Vector<String>(); actRolesIDs.addAll(act.getRoles()); String roleADMID = dico.getRefIdByCode("ActRoles", "ADMIN"); /* Role Administrateur*/ String roleTECHADMID = dico.getRefIdByCode("ActRoles", "S_ADM_TECH"); /* Role Administrateur Technique*/ String role6ID = dico.getRefIdByCode("ActRoles", "R_CHARGE_WEB"); /* Role charge web*/ String roleConsLogis = dico.getRefIdByCode("ActRoles", "C_CONS_LOGIS"); roleAsso_avec_SalID = dico.getRefIdByCode("ActRoles", "ASSO_SAL"); /* Association avec salarié*/ roleAsso_sans_SalID = dico.getRefIdByCode("ActRoles", "ASSO_SANS_SAL"); /* Association sans salarié */ String roleAssrespAffID = dico.getRefIdByCode("ActRoles", "R_ASSIST_RES_AFFIL"); /* Role Assistant Réseau Affilies */ // rappatrier les rôles concernés par le type actuel de l'entreprise String roles = ""; roles = (String)dico.getRefDisp(session, "Tye", "Te3", typOrganisation); if(roles != null){ String rolesTab[] = roles.split(";"); for (int i = 0; i < actRolesIDs.size(); i++) { actRoleIDactuel = actRolesIDs.get(i).toString(); if( (actRoleIDactuel.equalsIgnoreCase(roleADMID) ) ) { fHasRightModif = true; fHasRightSupp = true; fHasRightSuppTiers= true; conformeWeb=true; } else if (actRoleIDactuel.equalsIgnoreCase(roleTECHADMID)){ fHasRightModif = true; conformeWeb=true; } else if (actRoleIDactuel.equalsIgnoreCase(role6ID)){ conformeWeb=true; }else if (actRoleIDactuel.equalsIgnoreCase(roleAssrespAffID)){ conformeWeb=true; } if(actRoleIDactuel.equals(roleConsLogis)){ fHasRightModif = true; isConsLogis = true; } for (int j=0; j<rolesTab.length ; j++) { String roletabActuel = rolesTab[j].toString(); Vector<String> roleNameType = Utils.explodeList(roletabActuel, "|"); String roleType = roleNameType.firstElement(); String roleName = roleNameType.lastElement(); if(roleType.equals("M")) { // Modification String refValueRole = (String) dico.getRefCode("ActRoles", actRoleIDactuel); if(refValueRole.equals(roleName)) { fHasRightModif = true; } else if("ALL".equals(roleName)) { fHasRightModif = true; } } else if (roleType.equals("S")) { // Suppression // Modification String refValueRole = (String) dico.getRefCode("ActRoles", actRoleIDactuel); if(refValueRole.equals(roleName)) { fHasRightSupp = true; } else if("ALL".equals(roleName)) { fHasRightSupp = true; } } } } } } catch (Exception e) { } String activID; try { activID = dico.getRefIdByCode("EntStatus", "ON"); } catch (FrontlineException e) { activID = ""; } String desactivID; try { desactivID = dico.getRefIdByCode("EntStatus", "OFF"); } catch (FrontlineException e) { desactivID = ""; } String entStatusID = null; try { entStatusID = (String)Enterprise.getEntStatus(); } catch (FieldNotInitializedException e){ entStatusID = ""; } Boolean ccsTiers = false; String ctrPrincipalID = null; EnterpriseHelper entHelper = new EnterpriseHelper(Enterprise); Boolean res = entHelper.getTiersContrat(context, id); if (!isAssociation && !isPartenaire && !isCabaudit && !isJournaliste && !isPresta) { // rappatrier le contrat principal ctrPrincipalID = entHelper.getCtrPrincipal(Enterprise); } if (actRoleIDactuel.equalsIgnoreCase(roleAsso_avec_SalID)|| actRoleIDactuel.equalsIgnoreCase(roleAsso_sans_SalID)) { if (isEtab || isHotel || isRestaurant) { if (res == true) { fHasRightModif = false; } else { fHasRightModif = true; } } else { if (isEnvoyerWeb == true && res == true){ fHasRightModif = false; } else { fHasRightModif = true; } } } String mensualite=null; mensualite=EnterpriseHelper.getModeReglement(context,id); String modeReg=null; try { modeReg = dico.getRefIdByCode("Mg_", "Te1", "MS"); } catch (Exception e) { modeReg = ""; } boolean isStat = false; String linkPart2 = EnterprisePersonEventHelper.getJSOpenWindowEditResponse(id,"EVQSTAT",context); if(linkPart2!=null) isStat = true; String linkPart3 = EnterprisePersonEventHelper.getQuestGuideCurrentMillesime(id,"EVQG",context); %> <script type="text/javascript" language="javascript"> function activerFlagCotisations(id){ var url = '<fl:link url="/activate_cotisation_flag.fl?1=1"/>&id=' + id ; showWaiting(); $.getJSON(url, function(data) { hideWaiting(); window.location = '<fl:link url="<%= \"/view_generate_cotisation.fl\" %>"/>'; }); } function sendEntToWeb(id,msg){ var url = '<fl:link url="/send_to_web.fl?1=1"/>&id=' + id + '&msg=' + msg; showWaiting(); $.getJSON(url, function(data) { hideWaiting(); var msg =""; var cpt = 0; $.each( data, function( key, val ) { if(cpt == 0) msg = val; else if(cpt == 1) msg += val + '\n'; else if(cpt == 2) msg += val; else if(cpt == 3) msg += val; else msg += "\n Message d'erreur : \n"+val; cpt ++; }); alert(msg); window.location = '<fl:link url="<%= \"/read_enterprise.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>'; }); } function doDisable(){ if (window.confirm('<fl:getMessage code="MF089" alt="Etes-vous sûr de vouloir désactiver." js="true"/>') == true) { window.location = '<fl:link url="<%= \"/desactiver_entreprise.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>'; } } function doDelete() { if (window.confirm('<fl:getMessage code="M2004" alt="Etes-vous s�r de vouloir supprimer?" js="true"/>') == true) { window.location = '<fl:link url="<%= \"/delete_enterprise.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>'; } } function doFusion() { window.open('<fl:webapp/>/fusion_enterprise.fl?id=<%= id %>', 'MoveEnt', 'menubar=no, status=no, toolbar=no, scrollbars=no, resizable=yes, width=500, height=220'); } function doOpenHierarchy(){ window.open('<fl:webapp/>/tree_hierarchy.fl?entID=<%= id %>', 'Hierarchy', 'menubar=no,status=no,toolbar=no,scrollbars=auto,resizable=yes,width=860,height=600'); } function doWord(id,obj,informat) { format = "Word"; if (informat && informat == "PDF") { format = "PDF"; } window.open('<fl:webapp/>/fusion_document.fl?format=' + format + '&idObj='+id+'&object='+obj, 'listOpp', 'menubar=no,status=no,toolbar=no,scrollbars=auto,resizable=yes,width=860,height=460'); } // --Decision : analysis pop-up function doDecisionReport(id,objsql_id) { window.open('<fl:webapp/>/decision_popup.fl?objectID='+id+'&DdaObjID='+objsql_id+'&displayType=embedded&width=800&height=600', 'dec_popup', 'menubar=no,status=no,toolbar=no,scrollbars=auto,resizable=yes,width=860,height=350'); } function cqcadeaux() { window.open('<fl:link list="false" url="<%= \"/popup_cqcadeaux.fl?$$presentFields=&id=\" + id %>"/>','Enterprise', 'width=750,height=310,scrollbars=yes,resizable=yes,toolbar=no'); } function fichier() { window.open('<fl:link list="false" url="<%= \"/addfile_tiers.fl?$$presentFields=&id=\" + id %>"/>','Fichier', 'width=450,height=200,scrollbars=yes,resizable=no,toolbar=no'); } function genererEtiquette(id,obj,informat,family) { format = "Word"; if (informat && informat == "PDF") { format = "PDF"; } window.open('<fl:webapp/>/fusion_document_enterprise_asso_eti.fl?family=' + family + '&format=' + format + '&idObj='+id+'&object='+obj, 'listOpp', 'menubar=no,status=no,toolbar=no,scrollbars=auto,resizable=yes,width=860,height=460'); } function printStatQuest(){ window.open('<fl:webapp/>/web_form.fl?<%=linkPart2%>&printOnly=TRUE', 'EditFormResponse' , 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=1024,height=850'); } function printQuestGuide(){ <% if(linkPart3 != null){%> window.open('<fl:webapp/>/web_form.fl?<%=linkPart3%>&printOnly=TRUE', 'EditFormResponse' , 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=1024,height=850'); <% } else { %> alert('Aucun questionnaire n\'est disponible.'); <% } %> } function doExclure(){ if(document.getElementById("isExclure").checked == true){ document.getElementById("RotDiscountID").style.backgroundColor = "gray"; document.getElementById("RotDiscountID").selectedIndex = 0; } else{ document.getElementById("RotDiscountID").style.backgroundColor = "#FDCBCC"; } } </script> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1 actions_nolabel"> <% if (hasHierarchy){ %> <a title="<fl:getMessage code="L6556" alt="Hi�rarchie"/>" href="javascript:doOpenHierarchy();"> <img src="<fl:webapp/>/icons/hierarchy.gif" alt="<fl:getMessage code="L6556" alt="Hi�rarchie"/>" style="border: 0px;"/> </a> <% } if (DocumentHelper.hasDocumentWordML(session, context, "Enterprise")) { %> <a class="doc_fusion word" title="<fl:getMessage code="L6126" alt="G�n�rer Document Word"/>" href="javascript:doWord('<fl:getProperty name="Enterprise" property="EntID" alt=""/>','Enterprise','Word');"> <img src="<fl:webapp/>/icons/ico_word_inv.gif" border=0 width="15" height="15" alt="<fl:getMessage code="L6126" alt="G�n�rer Document Word"/>"> </a> <a class="doc_fusion pdf" title="<fl:getMessage code="L6557" alt="G�n�rer Document PDF"/>" href="javascript:doWord('<fl:getProperty name="Enterprise" property="EntID" alt=""/>','Enterprise','PDF');"> <img src="<fl:webapp/>/icons/ico_acrobat_inv.gif" border=0 width="15" height="15" alt="<fl:getMessage code="L6557" alt="G�n�rer Document PDF"/>"> </a> <% } String objSqlID=null; try { objSqlID=context.getDataDictionary().getTable("sql","Enterprise").getID(); } catch (Exception e) {} %> <% if(DecisionDataBaseHelper.objectHasAccess(session, context, objSqlID)) { %> <a class="" href="javascript:doDecisionReport('<fl:getProperty name="Enterprise" property="EntID" alt=""/>','<%= objSqlID %>');"> <img src="<fl:webapp/>/icons/ico_decision.gif" border="0" width="15" height="15" alt="<fl:getMessage code="L6087" alt="Analyses"/>"> </a> <% } %> </div> </td> <td class="actions_cell_right"></td> </tr> <%if(!actRoleIDactuel.equalsIgnoreCase(roleAsso_avec_SalID) && !actRoleIDactuel.equalsIgnoreCase(roleAsso_sans_SalID)){ %> <% /*les droits de Modification de la fiche*/ if(fHasRightModif) { %> <fl:access name="Enterprise" operation="edit"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/edit_enterprise.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="A0008" alt="Modifier"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%if(fHasRightSuppTiers) { %> <fl:access name="Enterprise" operation="delete"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:doDelete()"> <p class="actions_tabletext"><fl:getMessage code="A0007" alt="Supprimer"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%} %> <% if( (entStatusID.equalsIgnoreCase(activID)) && fHasRightSupp) { %> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:doDisable()"> <p class="actions_tabletext"><fl:getMessage code="AF001" alt="Désactiver"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <%} else if (entStatusID.equalsIgnoreCase(desactivID)){ %> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/activer_entreprise.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="AF002" alt="Activer"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <%} %> <%} %> <% if(!isAssociation && !isPartenaire && !isCabaudit && !isJournaliste){ %> <fl:access name="Photo_" operation="create"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/create_photo_.fl\" + ( id != null ? \"?initPo_Tiers=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="" alt="Photo"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <% } %> <% if(!isAssociation && !isPartenaire && !isCabaudit && !isJournaliste && !isPresta){ %> <fl:access operation="create" name="Solicitation"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/create_solicitation.fl?initSolActID=true&\" + ( id != null ? \"initSolTiersConcerne_=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="L104A" alt="Sollicitation"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%if(conformeWeb || isConsLogis){ %> <fl:access operation="create" name="webConformity_"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/create_webconformity_.fl\" + ( id != null ? \"?initWc_TiersID=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="LF03A" alt="Conformité site Web"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%} %> <% if(!isConsLogis){ %> <%-- Devis + Commande --%> <fl:access operation="create" name="Opportunity"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/create_opportunity.fl\" + ( id != null ? \"?initOppCmdTypo_=OTHER&initOpp=DEV&initOppEntPerID=\" + id + \"&initOppEntID=\" + id : \"\") + ( ctrPrincipalID != null ? \"&initOppAffiliationCtID_=\" + ctrPrincipalID : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="L653F" alt="Devis"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <%-- <a href="<fl:link url="<%= \"/create_opportunity.fl\" + ( id != null ? \"?initOppCmdTypo_=OTHER&initOpp=DEV&initOppEntID=\" + id : \"\") %>"/>"> --%> <a href="<fl:link url="<%= \"/create_opportunity.fl\" + ( id != null ? \"?initOppCmdTypo_=OTHER&initOpp=ORD&initOppEntPerID=\" + id + \"&initOppEntID=\" + id : \"\") + ( ctrPrincipalID != null ? \"&initOppAffiliationCtID_=\" + ctrPrincipalID : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="LF035" alt="Commande"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%} if (ccsTiers) {%> <fl:access operation="create" name="Opportunity"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="/pointer_giftcheque_tiers.fl?" />&initGchCgcID=<%=id%>"> <p class="actions_tabletext"><fl:getMessage code="LF1E7" alt="Pointer les chèques cadeaux"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%} %> <fl:access operation="create" name="Contrat_"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/create_contrat_tiers_.fl\" + ( id != null ? \"?&initSgTiers=\" + id : \"\") + ( ctrPrincipalID != null ? \"&initCt_ContratPrincipal=\" + ctrPrincipalID : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="LF015" alt="Contrat"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%if(!isRestaurant){ if( typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "ETAB")) || typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "HOTEL")) //ABM: Evolution : http://u-project2.umanis.com/view.php?id=41789 || typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "MAISON")) || typOrganisation.equals((String)dico.getRefIdByCode("EntTyeID", "INSOLIT"))) { %> <fl:access operation="create" name="Enterprise"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/create_enterprise.fl\" + ( id != null ? \"?initEntRatachHotelID_=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="FF038" alt="Tiers"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <% } %> <% } %> <%if(conformeWeb){ %> <fl:access operation="create" name="webconformity_"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/edit_webconformity_.fl\" + ( id != null ? \"?initWc_TiersID=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="LF03A" alt="Conformité site Web"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%} }%> <% // Voir Mantis 27454 11/06/2015 if(isEnvoyerWeb){ %> <fl:access name="Enterprise" operation="edit"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <%-- <a href="javascript:sendEntToWeb('<%=id %>')"> --%> <a href="#" onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block';document.getElementById('btnSearch').focus();return false;"> <% /* <fl:link url="<%= \"/send_to_web.fl?nbFlux=1\" + ( id != null ? \"&id=\" + id : \"\") "/> */ %> <p class="actions_tabletext"><fl:getMessage code="LF071" alt="Envoyer au Web"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%} if(!isAssociation && !isPartenaire && !isCabaudit && !isJournaliste && !isPresta){ if(res && !isConsLogis){%> <fl:access name="Enterprise" operation="edit"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <%-- <a href="javascript:sendEntToWeb('<%=id %>')"> --%> <a href="#" onclick="document.getElementById('light2').style.display='block';document.getElementById('fade2').style.display='block';document.getElementById('btnSearch2').focus();return false;"> <% /* <fl:link url="<%= \"/send_to_web.fl?nbFlux=1\" + ( id != null ? \"&id=\" + id : \"\") "/> */ %> <p class="actions_tabletext"><fl:getMessage code="MF11C" alt="Devis Cotisations"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%if(modeReg.equals(mensualite)){%> <fl:access name="Enterprise" operation="edit"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/generate_devis_echeancier.fl?\" + ( id != null ? \"id=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="FF2C4" alt="Générer le devis de cotisation échéancier"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <% } %> <% if(isStat && !isConsLogis){%> <fl:access name="Enterprise" operation="edit"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:printStatQuest();"> <p class="actions_tabletext"><fl:getMessage code="LF341" alt="Imprimer questionnaire statistique"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%} %> <%} %> <fl:access name="Enterprise" operation="edit"> </fl:access> <%-- Correspondance --%> <fl:access name="Interaction" operation="create"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="/create_interaction.fl?" />&initIntEntID=<%= id %>&IntType_=<%= corrID %>&initIntTiersConc_=<%= id %>"> <p class="actions_tabletext"><fl:getMessage code="" alt="Correspondance"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%-- TODO --%> <fl:access name="Interaction" operation="create"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="/create_interaction.fl?" />&IntType_=<%= todoID %>&initIntTiersConc_=<%= id %>"> <p class="actions_tabletext"><fl:getMessage code="" alt="Todo"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> </fl:access> <% if(!isRestaurant){ %> <fl:access operation="create" name="Dossier_"> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/create_dossier_.fl\" + ( id != null ? \"?initDs_HotelID=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="LF11A" alt="Dossier/Mission"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> </fl:access> <% } %> <% }else{ if(!isConsLogis) { %> <%-- Devis + Commande --%> <fl:access operation="create" name="Opportunity"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/create_opportunity.fl\" + ( id != null ? \"?initOppCmdTypo_=OTHER&initOpp=DEV&initOppEntPerID=\" + id + \"&initOppEntID=\" + id : \"\") + ( ctrPrincipalID != null ? \"&initOppAffiliationCtID_=\" + ctrPrincipalID : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="L653F" alt="Devis"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <%-- <a href="<fl:link url="<%= \"/create_opportunity.fl\" + ( id != null ? \"?initOppCmdTypo_=OTHER&initOpp=DEV&initOppEntID=\" + id : \"\") %>"/>"> --%> <a href="<fl:link url="<%= \"/create_opportunity.fl\" + ( id != null ? \"?initOppCmdTypo_=OTHER&initOpp=ORD&initOppEntPerID=\" + id + \"&initOppEntID=\" + id : \"\") + ( ctrPrincipalID != null ? \"&initOppAffiliationCtID_=\" + ctrPrincipalID : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="LF035" alt="Commande"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%} }%> <% if(isPartenaire || isCabaudit || isJournaliste || isPresta) { %> <fl:access operation="create" name="Contrat_"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/create_contrat_tiers_.fl\" + ( id != null ? \"?initSgTiers=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="LF015" alt="Contrat"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <fl:access name="Interaction" operation="create"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="/create_interaction.fl?" />&initIntEntID=<%= id %>&IntType_=<%= corrID %>&initIntTiersConc_=<%= id %>"> <p class="actions_tabletext"><fl:getMessage code="" alt="Correspondance"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <fl:access name="Interaction" operation="create"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="/create_interaction.fl?" />&IntType_=<%= todoID %>&initIntTiersConc_=<%= id %>"> <p class="actions_tabletext"><fl:getMessage code="" alt="Todo"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> </fl:access> <%} %> <% if (isAssociation ) {%> <fl:access operation="create" name="Event"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/create_event.fl\" + ( id != null ? \"?initEvtTiers_=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="LF085" alt="Instance"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <fl:access name="Interaction" operation="create"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="/create_interaction.fl?" />&initIntEntID=<%= id %>&IntType_=<%= corrID %>&initIntTiersConc_=<%= id %>"> <p class="actions_tabletext"><fl:getMessage code="" alt="Correspondance"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%-- TODO --%> <fl:access name="Interaction" operation="create"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="/create_interaction.fl?" />&IntType_=<%= todoID %>&initIntTiersConc_=<%= id %>"> <p class="actions_tabletext"><fl:getMessage code="" alt="Todo"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%if(!isConsLogis){ %> <fl:access operation="edit" name="Enterprise"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:genererEtiquette('<%=id%>','Enterprise','PDF' , '<%=etiqMasseDocTyp%>', '<%=clientCase%>');"> <img src="<fl:webapp/>/icons/ico_word.gif" style="width: 15; height: 15;" alt="<fl:getMessage code="LF167" alt="Imprimer l'étiquette"/>" title="<fl:getMessage code="LF167" alt="Imprimer l'étiquette"/>"> <p class="actions_tabletext"><fl:getMessage code="LF167" alt="Imprimer l'étiquette"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> </fl:access> <%} } if(!isConsLogis){%> <fl:access name="Enterprise" operation="edit"> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/quicklook.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="L7009" alt="Quicklook"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> </fl:access> <fl:access operation="edit" name="Enterprise"> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:fichier()"> <p class="actions_tabletext"><fl:getMessage code="FF0BE" alt="Fichier +"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <!-- <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> --> </fl:access> <%} }else{ /*les droits de Modification est d'Activation/Désactivation de la fiche*/ if(fHasRightModif) { %> <fl:access name="Enterprise" operation="edit"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/edit_enterprise.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="A0008" alt="Modifier"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <% if( (entStatusID.equalsIgnoreCase(activID))) { %> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:doDisable()"> <p class="actions_tabletext"><fl:getMessage code="AF001" alt="Désactiver"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <%} else if (entStatusID.equalsIgnoreCase(desactivID)){ %> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/activer_entreprise.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="AF002" alt="Activer"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <%} %> <%} %> <% if(isEtab || isHotel || isRestaurant){ %> <% if(isStat){ %> <fl:access name="Enterprise" operation="edit"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:printStatQuest();"> <p class="actions_tabletext"><fl:getMessage code="LF341" alt="Imprimer questionnaire statistique"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <% } %> <% } %> <fl:access name="Interaction" operation="create"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="/create_interaction.fl?" />&initIntEntID=<%= id %>&IntType_=<%= corrID %>&initIntTiersConc_=<%= id %>"> <p class="actions_tabletext"><fl:getMessage code="" alt="Correspondance"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <fl:access name="Interaction" operation="create"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="/create_interaction.fl?" />&IntType_=<%= todoID %>&initIntTiersConc_=<%= id %>"> <p class="actions_tabletext"><fl:getMessage code="" alt="Todo"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> </fl:access> <fl:access name="Enterprise" operation="edit"> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/quicklook.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="L7009" alt="Quicklook"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> </fl:access> <fl:access operation="edit" name="Enterprise"> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:fichier()"> <p class="actions_tabletext"><fl:getMessage code="FF0BE" alt="Fichier +"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> </fl:access> <%if(isPartenaire || isPresta){ %> <fl:access operation="create" name="Contrat_"> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/create_contrat_tiers_.fl\" + ( id != null ? \"?initSgTiers=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="LF015" alt="Contrat"/> +</p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <% } %> <% } %> <% if(isEtab || isHotel){ %> <fl:access name="Enterprise" operation="read"> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:printQuestGuide();"> <p class="actions_tabletext"><fl:getMessage code="FF2B5" alt="Visualiser le questionnaire en ligne"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> </fl:access> <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de