Edit C:\galaxie\Back\galaxie\sales\interaction\read_action.jsp
<%@page import="com.edeal.frontline.helper.custom.InteractionHelper"%> <%@page import="com.edeal.frontline.Utils"%> <%@page session="true"%><%@ page import="com.edeal.frontline.navigation.FlRequest" %><%@ page import="com.edeal.frontline.FlContext" %><%@ page import="com.edeal.frontline.DataDictionary" %><%@ page import="com.edeal.frontline.FieldNotInitializedException" %><%@ page import="com.edeal.frontline.FrontlineException" %><%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean id="Interaction" class="com.edeal.frontline.InteractionBean" 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 id = Interaction.getID(); boolean isDone = false; try { isDone = "DONE".equals(dico.getRefCode("IntStiID", Interaction.getIntStiID())); } catch (FieldNotInitializedException fnie) { } catch (FrontlineException fe) { } String intAtvID = null; try { intAtvID = Interaction.getIntAtvID(); } catch (FieldNotInitializedException e) { } String almID = (String)flRequest.getAttribute("AlmID"); boolean existsAlert = almID != null; String inboundMailIntAtvID = null; try { inboundMailIntAtvID = dico.getRefIdByCode("IntAtvID", "INEMAIL"); } catch (FrontlineException e) { } String outboundMailIntAtvID = null; try { outboundMailIntAtvID = dico.getRefIdByCode("IntAtvID", "OUTEMAIL"); } catch (FrontlineException e) { } InteractionHelper interactionHelper = new InteractionHelper(Interaction); String corrID = null; try { corrID = dico.getRefIdByCode("IntType_", "COR"); } catch (FrontlineException e) { corrID = ""; } String todoID = null; try { todoID = dico.getRefIdByCode("IntType_", "ACT"); } catch (FrontlineException e) { todoID = ""; } // Détecter le type de l'intéraction String typeIntID = null; try { typeIntID = (String)Interaction.getCustomProperty("IntType_"); } catch (FieldNotInitializedException e) { typeIntID = ""; } // tiers concerne String tiersConc = null; try { tiersConc = (String)Interaction.getCustomProperty("IntTiersConc_"); } catch (FieldNotInitializedException e) { tiersConc = ""; } String intCatID = null; try { intCatID = (String)Interaction.getIntCatID(); } catch (FieldNotInitializedException e) { intCatID = ""; } String intCatEnvoiMail = null; try { intCatEnvoiMail = dico.getRefIdByCode("IntCatID", "OUE"); } catch (FrontlineException e) { intCatEnvoiMail = ""; } boolean isCorrespondance = typeIntID.equalsIgnoreCase(corrID); boolean isCanalEnvoiMail = (intCatEnvoiMail!=null) && (intCatID!=null) && (intCatEnvoiMail.equalsIgnoreCase(intCatID)); %> <script type="text/javascript" language="javascript"> function createAlarm() { window.open('<fl:webapp/>/create_alarm_popup.fl?popup=1&initIntID=<fl:getProperty name="Interaction" property="IntID" alt=""/>', 'create_alarm', 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=775,height=450'); } function modifyAlarm() { window.open('<fl:webapp/>/edit_alarm_popup.fl?popup=1&id=<%= almID %>', 'create_alarm', 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=690,height=450'); } function doPrint() { window.open('<fl:link url="<%= \"/print_interaction.fl?id=\" + id %>"/>', 'RDVPRINT', 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=700,height=600'); } function isBusy() { window.open('<fl:link url="<%= \"/busy_interaction.fl?id=\" + id %>" list="false"/>', 'BusyWindow', 'menubar=no,status=no,toolbar=no,scrollbars=no,resizable=yes,width=400,height=150,screenX=80,screenY=10'); } function doRepeat() { window.open('<fl:link url="<%= \"/repeat_interaction.fl?id=\" + id %>"/>', 'repeat', 'menubar=no,status=no,toolbar=no,scrollbars=no,resizable=yes,width=800,height=360'); } function doDelete() { if (window.confirm('<fl:getMessage code="M2004" alt="Etes-vous sûr de vouloir supprimer?" js="true"/>') == true) { <% if( typeIntID.equalsIgnoreCase(corrID) ) {%> window.location = '<fl:link url="<%= \"/delete_correspondance.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>'; <%} else if( typeIntID.equalsIgnoreCase(todoID) ) {%> window.location = '<fl:link url="<%= \"/delete_todo.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>'; <%} %> } } function fichier() { window.open('<fl:link list="false" url="<%= \"/addfile_interaction.fl?$$presentFields=&id=\" + id %>"/>','Fichier', 'width=450,height=200,scrollbars=yes,resizable=no,toolbar=no'); } 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'); } $(document).ready(function() { checkC3TCTI(); }); </script> <fl:access name="Interaction" operation="READ"> <tr C3TItemNowLoading="true" style="display:none;"> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <img src="<fl:webapp/>/icons/dico-loader.gif"/> Connexion I-Reflet... </div> </td> <td class="actions_cell_right"></td> </tr> <tr C3TItemNowLoading="true" style="display:none;"> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr C3TItem="true" style="display:none;"> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:selectToTransfert('<%=id%>', 'interaction');"> <p class="actions_tabletext"><fl:getMessage code="L6431" alt="Transférer"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr C3TItem="true" style="display:none;"> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr C3TItem="true" style="display:none;"> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:openCallWindow();"> <p class="actions_tabletext"><fl:getMessage code="L831E" alt="Fenêtre d'appel"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr C3TItem="true" style="display:none;"> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <% if (!isDone) { %> <fl:access name="Interaction" operation="EDIT"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/realize_interaction.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="L6107" alt="Réaliser"/></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="EDIT"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/edit_interaction.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> <%-- <fl:access name="Interaction" operation="EDIT"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:doWord('<%=id%>','Interaction','PDF');"/> <!-- <a href="javascript:doWordOpportunity('<fl:getProperty name="Opportunity" property="OppID" alt=""/>','Opportunity', 'PDF', '');"/> --> <img src="<fl:webapp/>/icons/ico_acrobat_inv.gif" style="width: 15; height: 15;" alt="<fl:getMessage code="FF228" alt="Visualiser le PDF"/>" title="<fl:getMessage code="FF228" alt="Visualiser le PDF"/>"> <p class="actions_tabletext"><fl:getMessage code="FF228" alt="Jusitificatif de paiement"/></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="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> <fl:access name="Interaction" operation="CREATE"> <tr> <td class="actions_cell_left"></td> <td> <% if (typeIntID.equalsIgnoreCase(corrID)) { %> <div class="actions_tablecell_1"> <%-- <a href="<fl:link url="<%= \"/create_interaction.fl\" + ( id != null ? \"?&IntType_=\" + todoID + \"&initIntOrigID=\" + id : \"\") %>"/>"> --%> <a href="<fl:link url="<%= \"/create_interaction.fl\" + ( id != null ? \"?&IntType_=\" + todoID + \"&initIntCorr_=\" + id : \"\") + ( tiersConc != null ? \"&initIntTiersConc_=\" + tiersConc : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="FF072" alt="Todo"/> +</p> </a> </div> <%} else if(typeIntID.equalsIgnoreCase(todoID)) {%> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/create_interaction.fl\" + ( id != null ? \"?&IntType_=\" + corrID + \"&initIntTodo_=\" + id : \"\") + ( tiersConc != null ? \"&initIntTiersConc_=\" + tiersConc : \"\") %>"/>"> <init_param name="initIntCorr_" method="initIntCorrespondents_" /> <init_param name="initIntTodo_" method="initIntTodos_" /> <p class="actions_tabletext"><fl:getMessage code="LF034" 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> <% if (!existsAlert) { %> <fl:access name="Alarm" operation="CREATE"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:createAlarm()"> <p class="actions_tabletext"><fl:getMessage code="L62E7" alt="Créer alerte"/></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 { %> <fl:access name="Alarm" operation="CREATE"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:modifyAlarm()"> <p class="actions_tabletext"><fl:getMessage code="L62F3" alt="Modifier alerte"/></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 (!isDone && Interaction.hasAbsentDisplay()) { %> <fl:access name="Interaction" operation="EDIT"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:isBusy();"> <p class="actions_tabletext"><fl:getMessage code="L3031" alt="Occupé / Absent"/></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 (Interaction.hasPrintDisplay()) { %> <fl:access name="Interaction" operation="READ"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:doPrint()"> <p class="actions_tabletext"><fl:getMessage code="L6127" alt="Imprimer"/></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="javascript:doRepeat()"> <p class="actions_tabletext"><fl:getMessage code="L612F" alt="Répéter"/></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> <% /* 0041739: Relance de correspondance http://u-project2.umanis.com/view.php?id=41739 */ if(id!=null && isCorrespondance && isDone && isCanalEnvoiMail){ %> <fl:access name="Interaction" operation="CREATE"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link url="<%= \"/renvoyer_correspondance.fl\" + ( id != null ? \"?&IntParentID=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="MF190" alt="Renvoyer la 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 operation="edit" name="Interaction"> <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> <!-- <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:sendInvitation()"> <p class="actions_tabletext"><fl:getMessage code="L826A" alt="Inviter"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> -->
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de