Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\sales\enterprise\divers.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import="com.edeal.frontline.navigation.FlRequest"%> <%@ page import="com.edeal.frontline.helper.ContextHelper"%> <%@page import="com.edeal.frontline.helper.custom.EnterpriseHelper"%> <%@ page import="com.edeal.frontline.*"%> <%@ page import="java.util.*"%> <%@ page import="com.edeal.frontline.grid.GridData"%> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl"%> <% FlRequest flRequest=new FlRequest(request); FlContext context = flRequest.getContext(); DataDictionary dico=flRequest.getContext().getDataDictionary(); String id = flRequest.getParameter("id"); %> <fl:access name="Foozitoo_" operation="create"> <form name="fozitoo" class="fieldTable"> <table class="container" cellpadding="0"> <tr> <td> <table> <tr> <td class="titreInterneSmalltabs"><fl:getMessage code="FF306" alt="Critère 1" /> : <% try { Vector<Vector<String>> values = (Vector<Vector<String>>)dico.getRefList(session, "D1_", "Te1"); %> <select name="Fo_div1ID" id="Fo_div1ID" 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) { } %></td> <td colspan="2" class="titreInterneSmalltabs"><fl:getMessage code="FF307" alt="Critère 2" /> : <% try { Vector<Vector<String>> values = (Vector<Vector<String>>)dico.getRefList(session, "D2_", "Te1"); %> <select name="Fo_div2ID" id="Fo_div2ID"> <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) { } %></td> <td colspan="2" class="titreInterneSmalltabs"><fl:getMessage code="FF308" alt="Critère 3" /> : <% try { Vector<Vector<String>> values = (Vector<Vector<String>>)dico.getRefList(session, "D3_", "Te1"); %> <select name="Fo_div3ID" id="Fo_div3ID"> <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) { } %></td> </tr> <tr><td class="dataLabel"> </td></tr> <tr><td class="dataLabel"> </td></tr> <tr> <td class="titreInterneSmalltabs" style="width: 30%" > <table> <tr><td><fl:getMessage code="FF315" alt="Texte 1"/> :</td></tr> <tr><td><input name="Fo_Texte1" type="text" id="Fo_Texte1" size="60px"></td></tr> </table> </td> <td class="titreInterneSmalltabs" style="width: 20%"> <table> <tr><td><fl:getMessage code="FF30C" alt="Nombre 1"/> :</td></tr> <tr><td><input name="Fo_Nb1" type="text" id="Fo_Nb1" size="20px" onchange="isNumber(this)"></td></tr> </table> </td> <td class="titreInterneSmalltabs" style="width: 20%"> <table> <tr><td><fl:getMessage code="FF30F" alt="Date 1"/> :</td></tr> <tr><td><input name="Fo_Dt1" type="text" onfocus="this.select();" onblur="ctrlDateField(this, '<fl:getMessage code="M202B" alt="Format de date incorrect. Veuillez corriger." js="true"/>');" tabindex="10" size="20px" maxlength="10"> <a href="javascript:openCalendar(document.fozitoo.Fo_Dt1)" 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> </table> </td> <td class="titreInterneSmalltabs" style="width: 20%"> <table> <tr><td><fl:getMessage code="FF312" alt="Téléphone 1"/> :</td></tr> <tr><td><input name="Fo_Phone1" type="text" id="Fo_Phone1" size="20px" maxlength="20"></td></tr> </table> </td> <td class="titreInterneSmalltabs" style="width: 10%"> <table> <tr><td><fl:getMessage code="FF309" alt="Condition 1"/> :</td></tr> <tr><td><input name="Fo_isDiv1" type="checkbox" id="Fo_isDiv1" ></td></tr> </table> </td> <td class="smallFieldPart"> </td> </tr> <tr><td class="dataLabel"> </td></tr> <tr> <td class="titreInterneSmalltabs" style="width: 30%"> <table> <tr><td><fl:getMessage code="FF316" alt="Texte 2"/> :</td></tr> <tr><td><input name="Fo_Texte2" type="text" id="Fo_Texte2" size="60px"></td></tr> </table> </td> <td class="titreInterneSmalltabs" style="width: 20%"> <table> <tr><td><fl:getMessage code="FF30D" alt="Nombre 2"/> :</td></tr> <tr><td><input name="Fo_Nb2" type="text" id="Fo_Nb2" size="20px" onchange="isNumber(this)"></td></tr> </table> </td> <td class="titreInterneSmalltabs" style="width: 20%"> <table> <tr><td><fl:getMessage code="FF310" alt="Date 2"/> :</td></tr> <tr><td><input name="Fo_Dt2" type="text" onfocus="this.select();" onblur="ctrlDateField(this, '<fl:getMessage code="M202B" alt="Format de date incorrect. Veuillez corriger." js="true"/>');" tabindex="10" size="20px" maxlength="10"> <a href="javascript:openCalendar(document.fozitoo.Fo_Dt2)" 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> </table> </td> <td class="titreInterneSmalltabs" style="width: 20%"> <table> <tr><td><fl:getMessage code="FF313" alt="Téléphone 2"/> :</td></tr> <tr><td><input name="Fo_Phone2" type="text" id="Fo_Phone2" size="20px" maxlength="20"></td></tr> </table> </td> <td class="titreInterneSmalltabs" style="width: 10%"> <table> <tr><td><fl:getMessage code="FF30A" alt="Condition 2"/> :</td></tr> <tr><td><input name="Fo_isDiv2" type="checkbox" id="Fo_isDiv2"></td></tr> </table> </td> </tr> <tr><td class="dataLabel"> </td></tr> <tr> <td class="titreInterneSmalltabs" style="width: 30%" > <table> <tr><td><fl:getMessage code="FF317" alt="Texte 3"/> :</td></tr> <tr><td><input name="Fo_Texte3" type="text" id="Fo_Texte3" size="60px"></td></tr> </table> </td> <td class="titreInterneSmalltabs" style="width: 20%"> <table> <tr><td><fl:getMessage code="FF30E" alt="Nombre 3"/> :</td></tr> <tr><td><input name="Fo_Nb3" type="text" id="Fo_Nb3" size="20px" onchange="isNumber(this)"></td></tr> </table> </td> <td class="titreInterneSmalltabs" style="width: 20%" > <table> <tr><td><fl:getMessage code="FF311" alt="Date 3"/> :</td></tr> <tr><td><input name="Fo_Dt3" type="text" onfocus="this.select();" onblur="ctrlDateField(this, '<fl:getMessage code="M202B" alt="Format de date incorrect. Veuillez corriger." js="true"/>');" tabindex="10" size="20px" maxlength="10"> <a href="javascript:openCalendar(document.fozitoo.Fo_Dt3)" 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> </table> </td> <td class="titreInterneSmalltabs" style="width: 20%"> <table> <tr><td><fl:getMessage code="FF314" alt="Téléphone 3"/> :</td></tr> <tr><td><input name="Fo_Phone3" type="text" id="Fo_Phone3" size="20px" maxlength="20"></td></tr> </table> </td> <td class="titreInterneSmalltabs" style="width: 10%"> <table> <tr><td><fl:getMessage code="FF30B" alt="est Critère 3"/> :</td></tr> <tr><td><input name="Fo_isDiv3" type="checkbox" id="Fo_isDiv3"></td></tr> </table> </td> </tr> <tr><td class="dataLabel"> </td></tr> <tr> <td colspan="5" class="dataLabel"> </td> <td class="smallFieldPart"><a href="javascript:addFoozitoo()"> <img src="<fl:webapp/>/icons/ico/save_all_long.gif" id="bt_add" title="<fl:getMessage code="A000F" alt="Ajouter"/>"></a></td> </tr> </table> </td> </tr> <tr> <td class="dataLabel"> </td> </tr> <tr> <td class="ligne_separation_couleur" /> </tr> <tr> <td class="dataLabel"> </td> </tr> </table> </form> </fl:access> <fl:grid name="FOOZITOO" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=FOOZITOO&Fo_EntID=\" + id %>" /> <script type="text/javascript"> function isNumber(elt){ if(Number.isNaN(Number.parseFloat(elt.value))){ elt.value = '' var name = elt.name alert('<fl:getMessage code="MF1DC" alt="Veuillez Saisir un nombre dans le champ : Nombre" js="true"/>' + ' ' + name.substring(name.length - 1)); } } function refreshFoozitoo(){ _grid__FOOZITOO_js_.render(); } function addFoozitoo() { var f = window.document.fozitoo; if(f.Fo_div1ID.value == '') { alert('<fl:getMessage code="MF1DB" alt="Le Critère 1 est obligatoire" js="true"/>'); f.Fo_div1ID.focus(); return; } var args = '&Fo_EntID=<%=id%>'; args += '&Fo_div1ID=' + encodeURIComponent(f.Fo_div1ID.value); args += '&Fo_isDiv1 =' + encodeURIComponent(f.Fo_isDiv1.checked); if (f.Fo_Texte1.value != '') { args += '&Fo_Texte1=' + encodeURIComponent(f.Fo_Texte1.value); } if (f.Fo_Nb1.value != '') { args += '&Fo_Nb1=' + encodeURIComponent(f.Fo_Nb1.value); } if (f.Fo_Dt1.value != '') { args += '&Fo_Dt1=' + encodeURIComponent(f.Fo_Dt1.value); } if (f.Fo_Phone1.value != '') { args += '&Fo_Phone1=' + encodeURIComponent(f.Fo_Phone1.value); } if(f.Fo_div2ID.value != ''){ args += '&Fo_div2ID=' + encodeURIComponent(f.Fo_div2ID.value); } args += '&Fo_isDiv2 =' + encodeURIComponent(f.Fo_isDiv2.checked); if (f.Fo_Texte2.value != '') { args += '&Fo_Texte2=' + encodeURIComponent(f.Fo_Texte2.value); } if (f.Fo_Nb2.value != '') { args += '&Fo_Nb2=' + encodeURIComponent(f.Fo_Nb2.value); } if (f.Fo_Dt2.value != '') { args += '&Fo_Dt2=' + encodeURIComponent(f.Fo_Dt2.value); } if (f.Fo_Phone2.value != '') { args += '&Fo_Phone2=' + encodeURIComponent(f.Fo_Phone2.value); } if(f.Fo_div3ID.value != ''){ args += '&Fo_div3ID=' + encodeURIComponent(f.Fo_div3ID.value); } args += '&Fo_isDiv3 =' + encodeURIComponent(f.Fo_isDiv3.checked); if (f.Fo_Texte3.value != '') { args += '&Fo_Texte3=' + encodeURIComponent(f.Fo_Texte3.value); } if (f.Fo_Nb3.value != '') { args += '&Fo_Nb3=' + encodeURIComponent(f.Fo_Nb3.value); } if (f.Fo_Dt3.value != '') { args += '&Fo_Dt3=' + encodeURIComponent(f.Fo_Dt3.value); } if (f.Fo_Phone3.value != '') { args += '&Fo_Phone3=' + encodeURIComponent(f.Fo_Phone3.value); } var url = "<fl:webapp/>/check_foozitoo_.fl?" + args; $.getJSON(url, function(data) { if(data.Status == "KO"){ alert('<fl:getMessage code="MF1DD" alt="Le Critère existe déjà pour ce tiers" js="true"/>'); return; }else{ f.Fo_div1ID.value = ''; f.Fo_isDiv1.checked = false; f.Fo_Texte1.value = ''; f.Fo_Nb1.value = ''; f.Fo_Dt1.value = ''; f.Fo_Phone1.value = ''; f.Fo_div2ID.value = ''; f.Fo_isDiv2.checked = false; f.Fo_Texte2.value = ''; f.Fo_Nb2.value = ''; f.Fo_Dt2.value = ''; f.Fo_Phone2.value = ''; f.Fo_div3ID.value = ''; f.Fo_isDiv3.checked = false; f.Fo_Texte3.value = ''; f.Fo_Nb3.value = ''; f.Fo_Dt3.value = ''; f.Fo_Phone3.value = ''; var ajaxURL = '<fl:link url="/save_foozitoo_ajax.fl?"/>' + args; doAjax(ajaxURL, waitNrefreshSLFoo); } }); } function waitNrefreshSLFoo(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { refreshFoozitoo(); window.scrollTo(0,1000); // hideWaiting(); } else { hideWaiting(); } } } function deleteMarkedFoozitoo(fo_ID) { if (confirm('<fl:getMessage code="MF1DE" alt="Etes-vous sûr de vouloir supprimer cet enregistrement ?" js="true"/>')) { doAjax('<fl:webapp/>/delete_object_ajax.fl?type=Foozitoo_&id=' + fo_ID , waitNrefreshSLFoo); } } function doValidePhoneNumber(elt) { var re = /^[\+]?[(]?[0-9]{2, 4}[)]?[-\s\.]?[0-9]{2, 4}[-\s\.]?[0-9]{2,6}$/im; if(!re.test(elt.value)){ alert('<fl:getMessage code="L30B8" alt="Saisie du téléphone" js="true"/> : '); elt.value = ''; } } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de