<%/****************************************************************************** * 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.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.FrontlineException" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="java.util.*" %> <%@ page import="java.text.*" %> <%@ page import="com.edeal.frontline.*" %> <%@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); String id; String UCAmountTotal = (String) flRequest.getRequestParameterOrAttribute("ExfUCAmountTotal"); String KM = (String) flRequest.getRequestParameterOrAttribute("ExkKM"); String UCAmount = (String) flRequest.getRequestParameterOrAttribute("ExkUCAmount"); String UCAmountPayement = (String) flRequest.getRequestParameterOrAttribute("ExfUCAmountPayement"); try { id = ExpenseFile.getID(); } catch (FieldNotInitializedException fnie) { id = null; } Date begDate; try { begDate = ExpenseFile.getExfBegDate(); } catch (Exception e) { begDate = new Date(); } boolean isAccountant; try { isAccountant = ((Boolean)flRequest.getAttribute("isAccountant")).booleanValue(); } catch (Exception e) { isAccountant = false; } boolean isCreate; try { isCreate = ((Boolean)flRequest.getAttribute("isCreate")).booleanValue(); } catch (Exception e) { isCreate = false; } float cotValue; try { cotValue = ((Float)flRequest.getAttribute("cotValue")).floatValue(); } catch (Exception e) { cotValue = 0; } Date exkDate; try { exkDate = ExpenseKM.getExkDate(); } catch (FieldNotInitializedException e) { exkDate = new Date(); } float exkUCAmount = 0; try { exkUCAmount = ExpenseKM.getExkUCAmount(); } catch (FieldNotInitializedException fnie) { } float exkKM = 0; try { exkKM = ExpenseKM.getExkKM(); } catch (FieldNotInitializedException fnie) { } String exkID; try { exkID = ExpenseKM.getID(); } catch (FieldNotInitializedException e) { exkID = ""; } String route = (String)flRequest.getAttribute("route"); SimpleDateFormat sdf = FlLocale.getInstance(session).getDateFormat(); %> " ou="<%= \"/edit_expenseFile.fl\" + (id != null ? \"?id=\" + id : \"\")%>">
" readOnly/>
<% if (isAccountant) { String errMsg = Utils.getMessage(session,"M302F", true, "Format de nombre incorrect. Veuillez corriger."); String onBlurText = "ctrlNumField(this, 'float', '" + errMsg + "');"; %> <% } else { %> <% } %> <% if (isAccountant) { %> <% } else { %> <% } %>
" onselect="changeDay(0);">
"/>
" onselect="changeDay(1);">
"/>
" onselect="changeDay(2);">
"/>
" onselect="changeDay(3);">
"/>
" onselect="changeDay(4);">
"/>
" onselect="changeDay(5);">
"/>
" onselect="changeDay(6);">
"/>