fixed bug #7337 - alterações relatório gratuidade
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@54925 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
42a1100dfc
commit
98c272b32c
|
@ -133,8 +133,7 @@ public class RelatorioGratuidade extends Relatorio {
|
||||||
sql.append(" AND tar.destino_id = b.destino_id) ");
|
sql.append(" AND tar.destino_id = b.destino_id) ");
|
||||||
sql.append("JOIN empresa e ON e.empresa_id = b.empresacorrida_id ");
|
sql.append("JOIN empresa e ON e.empresa_id = b.empresacorrida_id ");
|
||||||
sql.append("WHERE ");
|
sql.append("WHERE ");
|
||||||
sql.append(" gc.grupocategoria_id IN (1,2,3,4) ");
|
sql.append(" b.feccorrida BETWEEN :fecInicio AND :fecFinal ");
|
||||||
sql.append("AND b.feccorrida BETWEEN :fecInicio AND :fecFinal ");
|
|
||||||
sql.append("AND b.motivocancelacion_id IS NULL ");
|
sql.append("AND b.motivocancelacion_id IS NULL ");
|
||||||
if (!empresa.isEmpty()){
|
if (!empresa.isEmpty()){
|
||||||
sql.append("AND b.empresacorrida_id = :empresa_id ");
|
sql.append("AND b.empresacorrida_id = :empresa_id ");
|
||||||
|
|
|
@ -10,6 +10,7 @@ header.filtro=Filtro\:
|
||||||
header.filtro.servico=Servicio\:
|
header.filtro.servico=Servicio\:
|
||||||
header.filtro.linha=Línea\:
|
header.filtro.linha=Línea\:
|
||||||
header.filtro.grupo=Grupo de líneas\:
|
header.filtro.grupo=Grupo de líneas\:
|
||||||
|
header.empresa=Empresa\:
|
||||||
|
|
||||||
#Labels detail
|
#Labels detail
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ header.filtro=Filtro\:
|
||||||
header.filtro.servico=Serviço\:
|
header.filtro.servico=Serviço\:
|
||||||
header.filtro.linha=Linha\:
|
header.filtro.linha=Linha\:
|
||||||
header.filtro.grupo=Grupo de Linhas\:
|
header.filtro.grupo=Grupo de Linhas\:
|
||||||
|
header.empresa=Empresa\:
|
||||||
|
|
||||||
#Labels detail
|
#Labels detail
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioEmpresaCorrida" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="RelatorioEmpresaCorrida" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioEmpresaCorrida" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="RelatorioEmpresaCorrida" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
||||||
<property name="ireport.zoom" value="1.5"/>
|
<property name="ireport.zoom" value="1.5"/>
|
||||||
<property name="ireport.x" value="0"/>
|
<property name="ireport.x" value="0"/>
|
||||||
<property name="ireport.y" value="61"/>
|
<property name="ireport.y" value="47"/>
|
||||||
<parameter name="fecInicio" class="java.lang.String">
|
<parameter name="fecInicio" class="java.lang.String">
|
||||||
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
<groupHeader>
|
<groupHeader>
|
||||||
<band height="67">
|
<band height="67">
|
||||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||||
<reportElement uuid="d15af518-c902-4903-bf8a-d4cf3ff6c05e" x="1" y="11" width="144" height="16"/>
|
<reportElement uuid="d15af518-c902-4903-bf8a-d4cf3ff6c05e" x="50" y="10" width="144" height="16"/>
|
||||||
<textElement textAlignment="Left">
|
<textElement textAlignment="Left">
|
||||||
<font size="10"/>
|
<font size="10"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
|
@ -129,6 +129,11 @@
|
||||||
<line>
|
<line>
|
||||||
<reportElement uuid="8e2d6686-e4d7-43d5-b3a9-46adc3e58350" x="1" y="66" width="802" height="1"/>
|
<reportElement uuid="8e2d6686-e4d7-43d5-b3a9-46adc3e58350" x="1" y="66" width="802" height="1"/>
|
||||||
</line>
|
</line>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="8fb67bb3-6ff2-40d1-b338-714f199ea7f0" x="1" y="10" width="48" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
</band>
|
</band>
|
||||||
</groupHeader>
|
</groupHeader>
|
||||||
</group>
|
</group>
|
||||||
|
|
|
@ -10,8 +10,11 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCategoria;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCategoria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCategoriaTipoPassagem;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
@ -78,7 +81,7 @@ public class BusquedaCategoriaController extends MyGenericForwardComposer {
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
categoriaList.setItemRenderer(new RenderCategoria());
|
categoriaList.setItemRenderer(new RenderCategoriaTipoPassagem());
|
||||||
categoriaList.addEventListener("onDoubleClick", new EventListener() {
|
categoriaList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -77,7 +77,10 @@ public class EditarCategoriaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
chkIndemitetermorecusa.setChecked((categoria.getIndemitetermorecusa() == null) ? false : categoria.getIndemitetermorecusa());
|
chkIndemitetermorecusa.setChecked((categoria.getIndemitetermorecusa() == null) ? false : categoria.getIndemitetermorecusa());
|
||||||
|
|
||||||
|
if (categoria.getGrupoCategoria() != null) {
|
||||||
|
cmbGrupoCategoria.setValue(categoria.getGrupoCategoria().getDescGrupo());
|
||||||
|
}
|
||||||
txtNome.focus();
|
txtNome.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ public class EditarClaseServicioController extends MyGenericForwardComposer {
|
||||||
claseServicio.setActivo(Boolean.TRUE);
|
claseServicio.setActivo(Boolean.TRUE);
|
||||||
claseServicio.setFecmodif(Calendar.getInstance().getTime());
|
claseServicio.setFecmodif(Calendar.getInstance().getTime());
|
||||||
claseServicio.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
claseServicio.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
|
||||||
if (claseServicio.getClaseservicioId() == null) {
|
if (claseServicio.getClaseservicioId() == null) {
|
||||||
claseServicioService.suscribir(claseServicio);
|
claseServicioService.suscribir(claseServicio);
|
||||||
claseServicioList.addItem(claseServicio);
|
claseServicioList.addItem(claseServicio);
|
||||||
|
|
|
@ -723,6 +723,17 @@ busquedaCategoriaController.btnPesquisa.label = Búsqueda
|
||||||
busquedaCategoriaController.lhId.label = ID
|
busquedaCategoriaController.lhId.label = ID
|
||||||
busquedaCategoriaController.lhDesc.label = Descripción
|
busquedaCategoriaController.lhDesc.label = Descripción
|
||||||
busquedaCategoriaController.txtNombre.label = Tipo pasajero
|
busquedaCategoriaController.txtNombre.label = Tipo pasajero
|
||||||
|
busquedaCategoriaController.lhGrupo.label = Grupo de Categoria
|
||||||
|
|
||||||
|
# Grupo de Gategoria
|
||||||
|
indexController.mniGrupoCategoria.label = Grupo de Categoria
|
||||||
|
busquedaGrupoCategoriaController.window.title = Grupo de Categoria
|
||||||
|
busquedaGrupoCategoriaController.txtDesc.label = Descrição
|
||||||
|
busquedaGrupoCategoriaController.lhId.label = ID
|
||||||
|
|
||||||
|
editarGrupoCategoriaController.window.title = Grupo de Categoria
|
||||||
|
editarGrupoCategoriaController.lbDesc.value = Descrição
|
||||||
|
|
||||||
|
|
||||||
# Pantalla Editar CategorÃÂÂa
|
# Pantalla Editar CategorÃÂÂa
|
||||||
editarCategoriaController.window.title = Tipo de pasaje
|
editarCategoriaController.window.title = Tipo de pasaje
|
||||||
|
|
|
@ -752,6 +752,16 @@ busquedaCategoriaController.btnPesquisa.label = Pesquisa
|
||||||
busquedaCategoriaController.lhId.label = ID
|
busquedaCategoriaController.lhId.label = ID
|
||||||
busquedaCategoriaController.lhDesc.label = Descrição
|
busquedaCategoriaController.lhDesc.label = Descrição
|
||||||
busquedaCategoriaController.txtNombre.label = Tipo Passageiro
|
busquedaCategoriaController.txtNombre.label = Tipo Passageiro
|
||||||
|
busquedaCategoriaController.lhGrupo.label = Grupo de Categoria
|
||||||
|
|
||||||
|
# Grupo de Gategoria
|
||||||
|
indexController.mniGrupoCategoria.label = Grupo de Categoria
|
||||||
|
busquedaGrupoCategoriaController.window.title = Grupo de Categoria
|
||||||
|
busquedaGrupoCategoriaController.txtDesc.label = Descrição
|
||||||
|
busquedaGrupoCategoriaController.lhId.label = ID
|
||||||
|
|
||||||
|
editarGrupoCategoriaController.window.title = Grupo de Categoria
|
||||||
|
editarGrupoCategoriaController.lbDesc.value = Descrição
|
||||||
|
|
||||||
# Pantalla Editar CategorÃa
|
# Pantalla Editar CategorÃa
|
||||||
editarCategoriaController.window.title = Tipo de Passagem
|
editarCategoriaController.window.title = Tipo de Passagem
|
||||||
|
|
|
@ -48,6 +48,9 @@
|
||||||
<listheader id="lhDesc" image="/gui/img/builder.gif"
|
<listheader id="lhDesc" image="/gui/img/builder.gif"
|
||||||
label="${c:l('busquedaCategoriaController.lhDesc.label')}"
|
label="${c:l('busquedaCategoriaController.lhDesc.label')}"
|
||||||
sort="auto(desccategoria)"/>
|
sort="auto(desccategoria)"/>
|
||||||
|
<listheader id="lhGrupo" image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaCategoriaController.lhGrupo.label')}"
|
||||||
|
sort="auto(grupoCategoria.descGrupo)"/>
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</window>
|
</window>
|
||||||
|
|
Loading…
Reference in New Issue