Clase:
Código:
import net.sf.jasperreports.engine.*;
import net.sf.jasperreports.engine.fill.*;
import net.sf.jasperreports.engine.data.*;
import java.util.*;
import java.math.*;
import java.text.*;
import java.io.*;
import java.net.*;
public class ZReporte_Ej extends JREvaluator
{
private JRFillParameter parameter_REPORT_LOCALE = null;
private JRFillParameter parameter_REPORT_TIME_ZONE = null;
private JRFillParameter parameter_REPORT_VIRTUALIZER = null;
private JRFillParameter parameter_REPORT_SCRIPTLET = null;
private JRFillParameter parameter_REPORT_PARAMETERS_MAP = null;
private JRFillParameter parameter_REPORT_CONNECTION = null;
private JRFillParameter parameter_REPORT_CLASS_LOADER = null;
private JRFillParameter parameter_REPORT_DATA_SOURCE = null;
private JRFillParameter parameter_REPORT_URL_HANDLER_FACTORY = null;
private JRFillParameter parameter_IS_IGNORE_PAGINATION = null;
private JRFillParameter parameter_REPORT_FORMAT_FACTORY = null;
private JRFillParameter parameter_REPORT_MAX_COUNT = null;
private JRFillParameter parameter_REPORT_RESOURCE_BUNDLE = null;
private JRFillField field_Tfno = null;
private JRFillField field_FAlta = null;
private JRFillField field_NIFProveedor = null;
private JRFillField field_Razon = null;
private JRFillField field_Direccion = null;
private JRFillVariable variable_PAGE_NUMBER = null;
private JRFillVariable variable_COLUMN_NUMBER = null;
private JRFillVariable variable_REPORT_COUNT = null;
private JRFillVariable variable_PAGE_COUNT = null;
private JRFillVariable variable_COLUMN_COUNT = null;
public void customizedInit(
Map pm,
Map fm,
Map vm
)
{
initParams(pm);
initFields(fm);
initVars(vm);
}
private void initParams(Map pm)
{
parameter_REPORT_LOCALE = (JRFillParameter)pm.get("REPORT_LOCALE");
parameter_REPORT_TIME_ZONE = (JRFillParameter)pm.get("REPORT_TIME_ZONE");
parameter_REPORT_VIRTUALIZER = (JRFillParameter)pm.get("REPORT_VIRTUALIZER");
parameter_REPORT_SCRIPTLET = (JRFillParameter)pm.get("REPORT_SCRIPTLET");
parameter_REPORT_PARAMETERS_MAP = (JRFillParameter)pm.get("REPORT_PARAMETERS_MAP");
parameter_REPORT_CONNECTION = (JRFillParameter)pm.get("REPORT_CONNECTION");
parameter_REPORT_CLASS_LOADER = (JRFillParameter)pm.get("REPORT_CLASS_LOADER");
parameter_REPORT_DATA_SOURCE = (JRFillParameter)pm.get("REPORT_DATA_SOURCE");
parameter_REPORT_URL_HANDLER_FACTORY = (JRFillParameter)pm.get("REPORT_URL_HANDLER_FACTORY");
parameter_IS_IGNORE_PAGINATION = (JRFillParameter)pm.get("IS_IGNORE_PAGINATION");
parameter_REPORT_FORMAT_FACTORY = (JRFillParameter)pm.get("REPORT_FORMAT_FACTORY");
parameter_REPORT_MAX_COUNT = (JRFillParameter)pm.get("REPORT_MAX_COUNT");
parameter_REPORT_RESOURCE_BUNDLE = (JRFillParameter)pm.get("REPORT_RESOURCE_BUNDLE");
}
private void initFields(Map fm)
{
field_Tfno = (JRFillField)fm.get("Tfno");
field_FAlta = (JRFillField)fm.get("FAlta");
field_NIFProveedor = (JRFillField)fm.get("NIFProveedor");
field_Razon = (JRFillField)fm.get("Razon");
field_Direccion = (JRFillField)fm.get("Direccion");
}
private void initVars(Map vm)
{
variable_PAGE_NUMBER = (JRFillVariable)vm.get("PAGE_NUMBER");
variable_COLUMN_NUMBER = (JRFillVariable)vm.get("COLUMN_NUMBER");
variable_REPORT_COUNT = (JRFillVariable)vm.get("REPORT_COUNT");
variable_PAGE_COUNT = (JRFillVariable)vm.get("PAGE_COUNT");
variable_COLUMN_COUNT = (JRFillVariable)vm.get("COLUMN_COUNT");
}
public Object evaluate(int id) throws Throwable
{
Object value = null;
switch (id)
{
case 0 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 1 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 2 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 3 :
{
value = (java.lang.Integer)(new Integer(0));
break;
}
case 4 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 5 :
{
value = (java.lang.Integer)(new Integer(0));
break;
}
case 6 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 7 :
{
value = (java.lang.Integer)(new Integer(0));
break;
}
case 8 :
{
value = (java.lang.String)(((java.lang.String)field_NIFProveedor.getValue()));
break;
}
case 9 :
{
value = (java.lang.String)(((java.lang.String)field_Razon.getValue()));
break;
}
case 10 :
{
value = (java.lang.String)(((java.lang.String)field_Direccion.getValue()));
break;
}
case 11 :
{
value = (java.lang.Integer)(((java.lang.Integer)field_Tfno.getValue()));
break;
}
default :
{
}
}
return value;
}
public Object evaluateOld(int id) throws Throwable
{
Object value = null;
switch (id)
{
case 0 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 1 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 2 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 3 :
{
value = (java.lang.Integer)(new Integer(0));
break;
}
case 4 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 5 :
{
value = (java.lang.Integer)(new Integer(0));
break;
}
case 6 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 7 :
{
value = (java.lang.Integer)(new Integer(0));
break;
}
case 8 :
{
value = (java.lang.String)(((java.lang.String)field_NIFProveedor.getOldValue()));
break;
}
case 9 :
{
value = (java.lang.String)(((java.lang.String)field_Razon.getOldValue()));
break;
}
case 10 :
{
value = (java.lang.String)(((java.lang.String)field_Direccion.getOldValue()));
break;
}
case 11 :
{
value = (java.lang.Integer)(((java.lang.Integer)field_Tfno.getOldValue()));
break;
}
default :
{
}
}
return value;
}
public Object evaluateEstimated(int id) throws Throwable
{
Object value = null;
switch (id)
{
case 0 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 1 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 2 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 3 :
{
value = (java.lang.Integer)(new Integer(0));
break;
}
case 4 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 5 :
{
value = (java.lang.Integer)(new Integer(0));
break;
}
case 6 :
{
value = (java.lang.Integer)(new Integer(1));
break;
}
case 7 :
{
value = (java.lang.Integer)(new Integer(0));
break;
}
case 8 :
{
value = (java.lang.String)(((java.lang.String)field_NIFProveedor.getValue()));
break;
}
case 9 :
{
value = (java.lang.String)(((java.lang.String)field_Razon.getValue()));
break;
}
case 10 :
{
value = (java.lang.String)(((java.lang.String)field_Direccion.getValue()));
break;
}
case 11 :
{
value = (java.lang.Integer)(((java.lang.Integer)field_Tfno.getValue()));
break;
}
default :
{
}
}
return value;
}
}
Manifiesto:
Código:
Main-Class: ZReporte_Ej extends JREvaluator
Muchas gracias por adelantado de nuevo.