diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioSegundaVia.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioSegundaVia.java index acb493f81..9e7113ffb 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioSegundaVia.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioSegundaVia.java @@ -16,6 +16,7 @@ import org.apache.log4j.Logger; import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioSegundaViaBean; +import com.rjconsultores.ventaboletos.utilerias.DateUtil; import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource; @@ -84,6 +85,7 @@ public class RelatorioSegundaVia extends Relatorio { r.setDataViagem(rset.getDate("dataViagem")); r.setDataServico(rset.getDate("dataServico")); r.setDataSegundaVia(rset.getDate("dataSegundaVia")); + r.setHoraServico(DateUtil.getStringDate(rset.getDate("dataViagem"), "HH:mm")); r.setDestino(rset.getString("destino")); r.setOrigem(rset.getString("origem")); r.setDescDestino(rset.getString("descDestino")); diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jasper index 4fe12ac77..6cbc5ebcd 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jrxml index 38bb19c80..047eee4ec 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jrxml @@ -1,7 +1,7 @@ - + @@ -42,6 +42,7 @@ + <band height="109" splitType="Stretch"> <textField> @@ -396,7 +397,7 @@ <textElement> <font size="8"/> </textElement> - <textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression> + <textFieldExpression><![CDATA[$F{horaServico}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement stretchType="RelativeToTallestObject" x="525" y="0" width="64" height="29" uuid="a7c27960-ee5f-495c-9f26-40895de057d0"/> diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioSegundaViaBean.java b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioSegundaViaBean.java index a6588beb3..55104bda0 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioSegundaViaBean.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioSegundaViaBean.java @@ -37,6 +37,7 @@ public class RelatorioSegundaViaBean { private BigDecimal valorTotal; private String siglaTipoPassagem; private String tipoPassagem; + private String horaServico; public String getServico() { return servico; @@ -294,4 +295,12 @@ public class RelatorioSegundaViaBean { this.utr = utr; } + public String getHoraServico() { + return horaServico; + } + + public void setHoraServico(String horaServico) { + this.horaServico = horaServico; + } + }