From 67fed4acdab6f66e84ce89d942a5b48042485a6c Mon Sep 17 00:00:00 2001 From: gleimar Date: Wed, 28 Oct 2015 02:01:37 +0000 Subject: [PATCH] fixes bug#6777 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@49514 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../relatorios/utilitarios/DataSource.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/DataSource.java b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/DataSource.java index d41c0c98c..d19b6cbe9 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/DataSource.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/DataSource.java @@ -32,11 +32,13 @@ public class DataSource implements IDataSource { @Override public Object getFieldValue(JRField field) throws JRException { try { - return this.resultSet.getObject(field.getName()); - } catch (Exception e) { - log.error("", e); - throw new JRException(e); + Object valueCustomField = this.valueCustomFields(field.getName()); + return (valueCustomField != null) ? valueCustomField : this.resultSet.getObject(field.getName()); + } catch (Exception e) { + e.printStackTrace(); + throw new JRException(e); + } } @@ -60,5 +62,10 @@ public class DataSource implements IDataSource { public void initDados() throws Exception { } + + public Object valueCustomFields(String fieldName) throws Exception { + // TODO Auto-generated method stub + return null; + } }