<% /****************************************************************************** * 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" contentType="text/html; charset=UTF-8"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="java.util.Vector" %> <%@ page import="java.util.Hashtable" %> <%@ page import="java.text.DecimalFormat" %> <%@ page import="java.util.Date" %> <%@ page import="java.util.GregorianCalendar" %> <%@ page import="com.edeal.frontline.RefValuesBean" %> <%@ page import="com.edeal.frontline.FlLocale" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.TablesBean" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.FieldBean" %> <%@ 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(); Vector values = Objects.getFieldsData(); int defaultRead = 0; try { defaultRead = Objects.getObjDefaultRead(); } catch (FieldNotInitializedException e) {} int defaultEdit = 0; try { defaultEdit = Objects.getObjDefaultEdit(); } catch (FieldNotInitializedException e) {} int defaultCreate = 0; try { defaultCreate = Objects.getObjDefaultCreate(); } catch (FieldNotInitializedException e) {} int defaultDelete = 0; try { defaultDelete = Objects.getObjDefaultDelete(); } catch (FieldNotInitializedException e) {} int ownerRead = 2; try { ownerRead = Objects.getObjOwnerRead(); } catch (FieldNotInitializedException e) {} int ownerEdit = 2; try { ownerEdit = Objects.getObjOwnerEdit(); } catch (FieldNotInitializedException e) {} int ownerCreate = 2; try { ownerCreate = Objects.getObjOwnerCreate(); } catch (FieldNotInitializedException e) {} int ownerDelete = 2; try { ownerDelete = Objects.getObjOwnerDelete(); } catch (FieldNotInitializedException e) {} Vector roles = null; try { roles = Objects.getObjRoles(); } catch (FieldNotInitializedException e) {} Vector rolesRead = null; try { rolesRead = Objects.getObjRolesRead(); } catch (FieldNotInitializedException e) {} Vector rolesEdit = null; try { rolesEdit = Objects.getObjRolesEdit(); } catch (FieldNotInitializedException e) {} Vector rolesCreate = null; try { rolesCreate = Objects.getObjRolesCreate(); } catch (FieldNotInitializedException e) {} Vector rolesDelete = null; try { rolesDelete = Objects.getObjRolesDelete(); } catch (FieldNotInitializedException e) {} Vector rolesCode = dico.getRefCodeList("ActRoles"); Vector rolesDisplay = dico.getRefList(session, "ActRoles"); boolean colorBlue = true; %>
<% String displayLabel = null; String objDisplay = null; try { displayLabel = Objects.getObjDisplayLabel(); } catch (FieldNotInitializedException fnie) { } try { objDisplay = Objects.getObjDisplay(); } catch (FieldNotInitializedException fnie) { } %> <%= displayLabel != null ? Utils.getMessage(session, displayLabel, null) : Utils.formatToWeb(objDisplay,false) %>
" style="text-align: center"> <% colorBlue = !colorBlue; %> " style="text-align: center"> <% String rolesID = ""; if (rolesCode != null && rolesDisplay != null) { for (int i = 0; i < rolesDisplay.size(); i++) { String currID = (String)((Vector)rolesDisplay.elementAt(i)).elementAt(0); rolesID += (i > 0 ? "|" : "") + currID; String currDisplay = (String)((Vector)rolesDisplay.elementAt(i)).elementAt(1); String currCode = (String)((Vector)rolesCode.elementAt(i)).elementAt(1); int index = -1; int currRoleRead = 2; int currRoleEdit = 2; int currRoleCreate = 2; int currRoleDelete = 2; if (roles != null) { index = roles.indexOf(currID); if (index != -1) { if (rolesRead!= null) { currRoleRead = ((Integer)rolesRead.elementAt(index)).intValue(); } if (rolesEdit!= null) { currRoleEdit = ((Integer)rolesEdit.elementAt(index)).intValue(); } if (rolesCreate!= null) { currRoleCreate = ((Integer)rolesCreate.elementAt(index)).intValue(); } if (rolesDelete!= null) { currRoleDelete = ((Integer)rolesDelete.elementAt(index)).intValue(); } } } colorBlue = !colorBlue; %> " style="text-align: center"> <% } %> <% } %>
 
" style="width: 1%; white-space: nowrap;"> dataValue" style="width: auto; "> dataValue" style="width: auto; "> dataValue" style="width: auto; "> dataValue" style="width: auto; ">
" style="width: 1%; white-space: nowrap;"> dataValue" style="width: auto; "> dataValue" style="width: auto; "> dataValue" style="width: auto; "> dataValue" style="width: auto; ">
" style="width: 1%; white-space: nowrap;"> <%= currDisplay %> dataValue" style="width: auto; "> dataValue" style="width: auto; "> dataValue" style="width: auto; "> dataValue" style="width: auto; ">