Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\mobile_api\list\listAjax.jsp
<%@ page language="java" contentType="text/json;charset=UTF-8"%><% /****************************************************************************** * Copyright (c) 2000-2011 E-DEAL * * E-DEAL S.A. * 41, rue Périer * 92120 Montrouge * France * * T: +33 (0)1 73 03 29 80 * 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. ******************************************************************************/ // Please note! If you change this file in any way, please make the same changes to any // JSP file containing the following string: //**listAjax.jsp**// %><%@ page import="com.edeal.frontline.navigation.FlRequest" %><%@ page import="com.edeal.frontline.grid.*" %><%@ page import="com.edeal.frontline.*" %><%@ page import="com.edeal.frontline.grid.EdealGrid" %> <%@ page import="java.util.*" %><%@ page import="com.edeal.frontline.FrontlineException" %><%@ page import="com.edeal.frontline.navigation.EdealBigTabsNavigation" %><%@ page import="com.edeal.frontline.navigation.EdealBigTabsNavigation.BigTabsParams" %> <%@page import="java.util.Enumeration"%><%@page import="com.edeal.frontline.helper.ActorBaseHelper"%><%@page import="com.edeal.frontline.helper.custom.ActorHelper"%><%@page import="org.apache.commons.lang.StringUtils"%><%@page import="com.edeal.frontline.helper.custom.ListHelper"%> <%@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 code = flRequest.getRequestParameterOrAttribute("gridName"); if (code == null) { String paramCode = flRequest.getRequestParameterOrAttribute("code"); String gn=((paramCode==null?"":paramCode) + "_gridname"); code = flRequest.getRequestParameterOrAttribute(gn); if (code == null) { code = paramCode; } } GridData grid = (GridData)flRequest.getAttribute(code); boolean isEmbedded = flRequest.getAttribute(code + "_Embedded") != null; boolean isEmbedded2 = grid.isEmbedded(); String type = (String)flRequest.getAttribute("objSql"); if (type==null) { type=(String)flRequest.getAttribute(code+"_objSql"); } FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); EdealGrid edealGrid=new EdealGrid(); edealGrid.setName(code); edealGrid.buildColumns(session, context, grid); //boolean fAllowUpdate=true; //boolean fUpdateMode=false; int totalNbOfRecs=grid.getTotalNbOfRecords(); boolean fDisplayCounter=(totalNbOfRecs!=0); int pageNumber=grid.getPageNumber()+1; %>{"data": [<% ArrayList<String> rowsId = grid.getRowsId(); //ArrayList<String> previewValue = new ArrayList(); int nbOfRows=grid.getData().length; Object[][] gridRows=grid.getData(); for(int rowidx = 0; rowidx < nbOfRows; rowidx++) { String objectID=""; if (rowsId != null && rowsId.size()>0 && rowsId.get(rowidx) != null) { objectID=rowsId.get(rowidx); } %>{ "id":"<%=Utils.formatToJavascript(objectID)%>", "name:"<% Object[] row = gridRows[rowidx]; GridData.GridCellContent value=(GridData.GridCellContent)row[0]; EdealGridColumn eGCol = edealGrid.getColumn(0); %><%= eGCol.formatToJson(value) %>"},<% } %> { "id":"0","name":"last" } ] }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de