issue #8301
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@64420 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
3462180735
commit
4c4bd7e74b
Binary file not shown.
|
@ -50,11 +50,6 @@
|
|||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="ac518cbb-e6d1-4edb-b544-11e25b5a4c95" x="440" y="0" width="420" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{BASE_DIR}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</title>
|
||||
<pageHeader>
|
||||
|
@ -293,10 +288,6 @@
|
|||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.msgAviso}]]></textFieldExpression>
|
||||
</textField>
|
||||
<image onErrorType="Blank">
|
||||
<reportElement uuid="f0aa2830-eda6-4fbd-aa41-e53b17ae2193" x="0" y="15" width="217" height="29"/>
|
||||
<imageExpression><![CDATA[$P{BASE_DIR}+"/imagens/artesp.png"]]></imageExpression>
|
||||
</image>
|
||||
</band>
|
||||
</pageFooter>
|
||||
<noData>
|
||||
|
|
|
@ -19,7 +19,6 @@ import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
|||
public abstract class Relatorio {
|
||||
|
||||
private static Logger log = Logger.getLogger(Relatorio.class);
|
||||
private static final String DEFAULT_BASE_DIR = "/com/rjconsultores/ventaboletos/relatorios";
|
||||
|
||||
private Connection conexao;
|
||||
protected Map<String, Object> parametros;
|
||||
|
@ -29,7 +28,6 @@ public abstract class Relatorio {
|
|||
private Set<String> infoMsg;
|
||||
private JRBeanCollectionDataSource collectionDataSource;
|
||||
private String[] nomeSubReporte;
|
||||
private String baseDir;
|
||||
|
||||
protected Relatorio(Map<String, Object> parametros, Connection conexao) {
|
||||
this.parametros = parametros;
|
||||
|
@ -159,14 +157,4 @@ public abstract class Relatorio {
|
|||
log.error("Erro ao fechar a conexion", e);
|
||||
}
|
||||
}
|
||||
|
||||
public String getBaseDir() {
|
||||
//setado como parametro em RenderRelatorioJasper com a chave "BASE_DIR"
|
||||
return getClass().getResource(baseDir == null ? DEFAULT_BASE_DIR : baseDir).getPath();
|
||||
}
|
||||
|
||||
public void setBaseDir(String baseDir) {
|
||||
this.baseDir = baseDir;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue