<% /****************************************************************************** * Copyright (c) 2000-2006 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" %> <%@ 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 id = null; String pdfID = null; String pdfFileName = null; String logo = null; String sfwID = flRequest.getRequestParameterOrAttribute("SfwID"); try { id = Product.getID(); } catch (FieldNotInitializedException fnie) { } boolean isGroup = false; try { String prdType = Product.getPrdTypID(); isGroup = prdType != null && prdType.equals(dico.getRefIdByCode("PrdTypID","GROUPE")); } catch (FieldNotInitializedException fnie) { } boolean isCalcul = false; if (isGroup){ try{ String idPriceType = Product.getPrdTprID(); isCalcul = idPriceType !=null && idPriceType.equals(dico.getRefIdByCode("PrdTprID", "CAL")); }catch(FieldNotInitializedException fnie){} } try{ pdfID = Product.getPrdPdfID(); pdfFileName = Product.getPrdPdfFileName(); } catch (FieldNotInitializedException fnie) { } try{ logo = Product.getPrdPicID(); } catch (FieldNotInitializedException fnie) { } String tailleTab1 = "50%"; String tailleTab2 = "50%"; if (logo!=null){ tailleTab1 = "45%"; tailleTab2 = "35%"; } boolean isGesStocks = false; try { isGesStocks = new Boolean(Product.getCustomProperty("PrdGestionStocks_").toString()); } catch (FieldNotInitializedException ex) { } String productFamilyID = null; String productFamilyVal = null; try { productFamilyID = (String)Product.getCustomProperty("PrdFamilleProduit_"); productFamilyVal = dico.getRefCode("PrdFamilleProduit_", productFamilyID); } catch (FieldNotInitializedException fnie) { } boolean isIncludedInCot = false; try { isIncludedInCot = (Boolean)Product.getCustomProperty("PrdIncludedInCot_"); } catch (FieldNotInitializedException fnie) { } //PrdDontApplyTVArules_ boolean PrdDontApplyTVArules_ = false; try { PrdDontApplyTVArules_ = (Boolean)Product.getCustomProperty("PrdDontApplyTVArules_"); } catch (FieldNotInitializedException fnie) { } /* String label = null; try { label = (String)Product.getCustomProperty("PrdLabel_"); label = Utils.getMessage(session, label, Utils.getMessage(session, "L60E0", "")); } catch (FieldNotInitializedException fnie) { } */ %> " ou="<%= \"/read_product.fl\" + (id != null ? \"?id=\" + id : \"\")%>"> <% if (id != null) { %> <% } %>

<%-- --%> "/> <% if(!(productFamilyVal.startsWith("COT"))){ %> <% if(isGesStocks) { %> <% } else { %> <% }}else{%> <% } %> <%-- " href="true"/> " href="true"/> <% if(isGroup) { %> <% } %> class="dataValue"> --%>
 
 
 
 
<% if(isIncludedInCot) { %> <% } else { %> <% } %> <% try { String picID = Product.getPrdPicID(); %> <% } catch (Exception e) { } %> "/> <%-- <% if (pdfID != null) { %> <% } %> "/> --%>
 
 
 
 
checked="checked" <% } %>/>
 
">
">
" onselect="refreshHisto();" visible="<%= isGesStocks %>"> "/> ">
">
">