Edit C:\Users\Administrator\Desktop\Back\Livraison EVQG22\sales\interaction\realize_action.jsp
<%@page import="com.edeal.frontline.FlContext"%> <%@page import="com.edeal.frontline.navigation.FlRequest"%> <%@page import="com.edeal.frontline.DataDictionary"%> <%@page import="com.edeal.frontline.FieldNotInitializedException"%> <%@ taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.InteractionBean" id="Interaction" scope="request" /> <% FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); String id = null; try { id = Interaction.getID(); } catch (FieldNotInitializedException fnie) {} String categoryCode = null; try { categoryCode = dico.getRefCode("Acv", null, Interaction.getIntAtvID()); } catch (FieldNotInitializedException fnie) {} String taskDoneRefID = dico.getRefIdByCode("Sti", null, "DONE"); %> <script type="text/javascript"> <!-- 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_interaction.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>'; } } function comparerDate(){ var f = document.forms[0]; if (f.IntTimeBeg.value != '' && f.IntTimeEnd.value != '') { if (compareDate('', f.IntTimeBeg.value, '', f.IntTimeEnd.value) > 0) { window.alert("<fl:getMessage code="M300A" alt="L'heure de fin doit être supérieure à l'heure de début" js="true"/>"); f.IntTimeBeg.focus(); }else{ submit(); } } } function updateEndDateWithNowDate (){ var finishTime = new Date(); finishTimeStr = ""; if (finishTime.getHours()<10) { finishTimeStr+="0"; } finishTimeStr+=finishTime.getHours()+":"; if (finishTime.getMinutes()<10) { finishTimeStr+="0"; } finishTimeStr+=finishTime.getMinutes(); $("[name='IntTimeEnd']").val(finishTimeStr); //http://u-project2.umanis.com/view.php?id=30488 //0030488: Correspondances : heures de début et de fin incohérentes if(parseInt($('#IntTimeEnd').val().replace(':','')) < parseInt($('#IntTimeBeg').val().replace(':','')) ){ var bd = new Date(); var bh = bd.getHours(); var bm = bd.getMinutes(); bm = (bm.length == 1 ? "0"+bm : bm) ; var timebeg = (bh == 0 ? 23 : bh-1) + ":" + bm; timebeg = timebeg.length == 4 ? "0" + timebeg : timebeg; $("[name='IntTimeBeg']").val(timebeg); } } //--> </script> <% if("CORROUT".equals(categoryCode)) { %> <%@include file="realize_letter_dialogbox.jsp" %> <% } %> <% if("OUTEMAIL".equals(categoryCode)) { %> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <%-- Mantis 30488 <a href="javascript:updateEndDateWithNowDate();$(document.forms[0].IntStiID).val('<%= taskDoneRefID %>');document.forms[0].action='<fl:link url="/send_email_interaction_custom.fl"/>';submit()"> --%> <a href="javascript:$(document.forms[0].IntStiID).val('<%= taskDoneRefID %>');document.forms[0].action='<fl:link url="/send_email_interaction_custom.fl"/>';comparerDate()"> <p class="actions_tabletext"><fl:getMessage code="L60CC" alt="Envoyer"/></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"> <% //Mantis 30488 //String action = "javascript:submit()"; String action = "javascript:comparerDate()"; if("CORROUT".equals(categoryCode)) { action = "javascript:updateEndDateWithNowDate();openMailProposal()"; } if("OUTPHONE".equals(categoryCode)) { //Mantis 30488 //action = "javascript:updateEndDateWithNowDate();submit();"; action = "javascript:comparerDate()"; } %> <a href="<%= action %>"> <p class="actions_tabletext"><fl:getMessage code="A0003" alt="Enregistrer"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <% if (id!= null) { %> <% if (Boolean.valueOf(request.getParameter("saveoninit"))) { %> <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: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> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/read_interaction.fl?id=\" + id %>"/>"> <p class="actions_tabletext"><fl:getMessage code="A2002" alt="Annuler"/></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