Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\sales\contrat_\select_enseigne.jsp
<%@page import="org.apache.lucene.search.FieldCache.IntParser"%> <%@page import="java.lang.invoke.MethodHandles.Lookup"%> <%@page import="com.edeal.frontline.custom.ContratProduit_Bean"%> <%@page import="com.edeal.frontline.ProductOpportunityBean"%> <%@page import="com.edeal.frontline.ProductBean"%> <%@page import="com.edeal.frontline.helper.ContratProduit_BaseHelper"%> <%@page import="com.edeal.frontline.custom.Contrat_Bean"%> <%@page import="com.edeal.frontline.helper.custom.EnterpriseHelper"%> <%@ page language="java"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.PersonBean" %> <%@ page import="java.util.Vector" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% 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 listContratValPrin =""; String listContratProduitID =""; String contratId = flRequest.getParameter("id"); String Sg_Tiers = flRequest.getParameter("EntID"); if(Sg_Tiers != null){ listContratValPrin= EnterpriseHelper.getCtrPrincipalValide(context,Sg_Tiers); System.out.println("listContratValPrin= "+listContratValPrin); } String[] tabCtrValPrin = listContratValPrin.split("-"); if(Sg_Tiers != null && contratId != null){ listContratProduitID= ContratProduit_BaseHelper.getContratProduit(context, Sg_Tiers, contratId); System.out.println("listContratProduitID= "+listContratProduitID); } String[] tabContratProduitID = listContratProduitID.split("-"); %> <html> <head> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/master_css.jsp"> <link rel="stylesheet" type="text/css" href="<fl:link url="/common/select/select_css.jsp"/>"> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp" type="text/css"> <script type="text/javascript" src="<fl:link url="/js/edeal/libraries/jquery/jquery.js"/>"></script > <script type="text/javascript" src="<fl:link url="/js/ajax/ajax.js"/>"></script> <script type="text/javascript" src="<fl:link url="/js/utils.js"/>"></script> <script type="text/javascript" language="javascript" src="./js/edeal/tools/utils.js"></script> <title><fl:getMessage code="MF133" alt="Transfert d'opportunités"/></title> <script type="text/javascript" language="javascript"> function closeWindow() { setTimeout(finalCloseWindow, 10); } function finalCloseWindow() { window.top.close(); } //0041959: transfert d'enseigne pour un changement d'exploitant (SA) var clickedOnSubmit = false; function doSubmit() { if(clickedOnSubmit) return; clickedOnSubmit = true; var selects = document.getElementsByTagName('select'); var voidSelects = false; for(var z=0; z<selects.length; z++){ sel = selects[z]; if(sel.selectedIndex != 0){ voidSelects = true; break; } } if(!voidSelects){ alert('<fl:getMessage code="MF14C" alt="aucun produit à transférer !" js="true"/>'); return; } var f = document.forms[0]; f.submit(); return true; } </script> </head> <body> <form method="post" action="<fl:webapp/>/select_opportunity_valid.fl"> <table class="global" cellpadding="0" cellspacing="0"> <tr> <td class="header_top_left"></td> <td class="header_top_middle"></td> <td class="header_top_right"></td> <td class="header_top_left"></td> <td class="header_top_middle"></td> <td class="header_top_right"></td> </tr> <tr> <td class="header_center_left"></td> <td class="header_center_middle title" valign="top" nowrap> <fl:getMessage code="MF135" alt="Liste des contrats cibles"/> </td> <td class="header_center_right"></td> <td class="header_center_left"></td> <td class="header_center_middle title" valign="top" nowrap> <fl:getMessage code="MF136" alt="Liste des opportunités à transférer du contrat"/> </td> <td class="header_center_right"></td> </tr> <tr> <td class="header_bottom_left"></td> <td class="header_bottom_middle"></td> <td class="header_bottom_right"></td> <td class="header_bottom_left"></td> <td class="header_bottom_middle"></td> <td class="header_bottom_right"></td> </tr> <tr style="height: 300px"> <td class="body_left"></td> <td class="body_middle"> <div class="edealGrid"> <%for(int i=0;i<tabCtrValPrin.length;i++){ String Ct_ID=null; try{ Ct_ID=tabCtrValPrin[i]; }catch(Exception e){ Ct_ID=null; } if(Ct_ID != null && !Ct_ID.equals("")){ if(!contratId.equals(Ct_ID)){ Contrat_Bean crt = new Contrat_Bean(Ct_ID,context); String Ct_NumContrat = crt.getCt_NumContrat(); %> <input class="dataLabel" type= "radio" name="contrat" value="<%=Ct_ID%>" checked=<%=(i==0?"checked":"") %> ><%=Ct_NumContrat%> </br> <%} } }%> </div> </td> <td class="body_right"></td> <td class="body_left"></td> <td class="body_middle"> <div class="edealGrid"> <table> <tr> <th style="width:60%;"><fl:getMessage code="LF114" alt="Enseigne"/></th> <th style="width:20%;"><fl:getMessage code="F60DB" alt="Quantité"/></th> <th style="width:20%;"><fl:getMessage code="MF145" alt="Quantité souhaitée"/></th> </tr> <% for(int i=0;i<tabContratProduitID.length;i++){ String OppID=""; String PrdID=""; String Cr_ID=""; Cr_ID=tabContratProduitID[i]; try{ ContratProduit_Bean cr_ = new ContratProduit_Bean(Cr_ID,context); String PrdName = (String)ContratProduit_Bean.lookup(context, "Cr_Produit:PrdName", Cr_ID); String FactureDesc = (String)ContratProduit_Bean.lookup(context, "Cr_commande_:OppNumFact_", Cr_ID); int Cr_Quantity = (Integer)ContratProduit_Bean.lookup(context, "Cr_Quantity", Cr_ID); OppID = cr_.getCr_Commande_(); PrdID =cr_.getCr_Produit(); String listEnseigne=""; %> <tr> <td><%=PrdName%> (<%=FactureDesc %>)</td> <td><%=Cr_Quantity%></td> <td> <select class="input select" name="<%=Cr_ID%>"> <%if(Cr_Quantity > 0){ for(int k=0; k<=Cr_Quantity; k++){ %> <option value="<%=k%>"><%=k%></option> <% } }else{ for(int k=0; k <= ((-1) * Cr_Quantity); k++){ %> <option value="<%=(-1) * k%>" ><%=(-1) * k%></option> <% } } %> </select> </td> </tr> <% }catch(Exception e){} }%> </table> </div> </td> <td class="body_right"></td> </tr> <tr> <td class="body_bottom_left"></td> <td class="body_bottom_middle"><img src="<fl:link url="/icons/popup/pop14.gif"/>" width="9" height="18"></td> <td class="body_bottom_right"></td> <td class="body_bottom_left"></td> <td class="body_bottom_middle"><img src="<fl:link url="/icons/popup/pop14.gif"/>" width="9" height="18"></td> <td class="body_bottom_right"></td> </tr> </table> </form> <div class="validation"> <%-- <% if (tabCtrValPrin != null && tabCtrValPrin.length > 1){ %> --%> <a href="javascript:doSubmit();"><img src="<fl:link url="/icons/ico/valid_green_long.gif"/>" class="valid_button_new" style="margin-right: 20px;"></a> <%-- <% } %> --%> <a href="javascript:closeWindow();"><img src="<fl:link url="/icons/ico/fermer_red_long.gif"/>" class="cancel_button_new"></a> </div> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de