<%/****************************************************************************** * Copyright (c) 2000-2005 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * 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="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@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 id = null; try { id = Product.getID(); } catch (FieldNotInitializedException fnie) { } if(id==null){ Product.setCustomProperty("PrdMaxQt_", 50); } boolean isGroup = false; try { String prdType = Product.getPrdTypID(); isGroup = prdType != null && prdType.equals(dico.getRefIdByCode("PrdTypID","GROUPE")); } catch (FieldNotInitializedException fnie) { } boolean toCalculate = false; try { String prdTpr = Product.getPrdTprID(); toCalculate = isGroup && prdTpr != null && prdTpr.equals(dico.getRefIdByCode("PrdTprID","CAL")); } catch (FieldNotInitializedException fnie) { } boolean isGesStocks = false; try { isGesStocks = (Boolean)Product.getCustomProperty("PrdGestionStocks_"); } catch (FieldNotInitializedException fnie) { } String productFamilyID = null; String productFamilyVal = ""; try { productFamilyID = (String)Product.getCustomProperty("PrdFamilleProduit_"); productFamilyVal = dico.getRefCode("PrdFamilleProduit_", productFamilyID); } catch (FieldNotInitializedException fnie) { } String label = null; try { label = (String)Product.getCustomProperty("PrdLabel_"); } catch (FieldNotInitializedException fnie) { } //Evol 36185 String CotisationAnnulle = dico.getRefIdByCode("Pf_", "Te1", "COTANN"); String CotisationFixe = dico.getRefIdByCode("Pl_", "Te1", "COTFIX"); if(id!=null){ String regleCourante = null; try { regleCourante = (String)Product.getCustomProperty("PrdRegles_"); } catch (FieldNotInitializedException fnie) { } if(regleCourante!=null){ CotisationFixe = regleCourante; } } %> " ou="<%= \"/edit_product.fl\" + (id != null ? \"?id=\" + id : \"\")%>"> <% if(null == id) { %> <% } %>
<%-- --%> <%-- --%> <%-- <% if (isGroup) { %> <% } %> <% if (toCalculate) { %> <% } else { %> <% } %> --%>
")) %>"/> ">
 
 
 
 
<%-- --%>
 
 
 
 
<%-- " visible="<%= context.getAutoDisplayManager().hasEntry(\"Product\", \"Produit 1\") %>"> " visible="<%= context.getAutoDisplayManager().hasEntry(\"Product\", \"Produit 2\") %>"> " visible="<%= context.getAutoDisplayManager().hasEntry(\"Product\", \"Produit 3\") %>"> --%> "> "> "> "> ">