%
/******************************************************************************
* Copyright (c) 2000-2008 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" import="com.edeal.frontline.*,java.util.*,com.edeal.frontline.custom.*"%>
<%@ page import="com.edeal.frontline.navigation.FlRequest" %>
<%@page import="com.edeal.frontline.navigation.WebUtils"%>
<%@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 operationID = dico.getRefIdByCode("Cr2Ope","exist");
// Selection Pattern ID
String id = flRequest.getRequestParameterOrAttribute("id");
String type = flRequest.getRequestParameterOrAttribute("type");
boolean isMultival = false;
boolean isControledByRef = false;
boolean isControledByFob = false;
boolean isMultipleValues = false;
boolean isBoolean = false;
boolean isDate = false;
boolean isDecimal = false;
boolean isInteger = false;
boolean isNumeric = false;
boolean isText = false;
boolean isFirstLoad= true;
boolean _date= false;
Vector vectChx = new Vector();
Vector listPID = new Vector();
// for node agraggate clonning
Vector listPAID = new Vector();
String[] fieldS = {"Cr2ID", "Cr2FobID", "Cr2FldID", "Cr2Ope", "Cr2TempName", "Cr2Chx"};
String[][] queryS = {{"Cr2Se2ID = "+Utils.formatToSQL(context, id), "Cr2Ope <> null","Cr2IsTemplate=1", "Cr2Ope <> "+Utils.formatToSQL(context, operationID) }};
String[] fieldA={"Cr2ID", "Cr2TempName", "Cr2CardOpe", "Cr2Card"};
String[][] queryA={{"Cr2Se2ID = "+Utils.formatToSQL(context, id), "Cr2CardOpe <> null", "Cr2Card = null"}};
Vector listA = new Vector();
listA = Criteria2Bean.listSummary(session, fieldA, queryA);
Vector list = new Vector();
list = Criteria2Bean.listSummary(session, fieldS, queryS);
int h = list.size();
int m=listA.size();
boolean isVisible= false;
if(h==0 && m==0) {
isVisible = true;
}
String falseH ="0";
Selection2Bean selBean = null;
try {
selBean= new Selection2Bean(id,context);
} catch(FrontlineException e){}
catch(AccessDeniedException e){}
String selName = null;
try {
selName = selBean.getSe2Name();
} catch (FieldNotInitializedException ex){}
%>