fixes bug#24515
qua: dev: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@112844 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
6665daf325
commit
4422fb34a8
|
@ -33,6 +33,8 @@ public class RelatorioFormaPagamentoAgencia extends RelatorioDemandas {
|
|||
Integer empresa = (Integer) parametros.get("EMPRESA");
|
||||
|
||||
Integer agencia = (Integer) parametros.get("AGENCIA");
|
||||
|
||||
Short formaPagoId = (Short) parametros.get("FORMA_PAGO");
|
||||
|
||||
StringBuilder where = new StringBuilder();
|
||||
where.append(" WHERE 1 = 1 ");
|
||||
|
@ -52,6 +54,9 @@ public class RelatorioFormaPagamentoAgencia extends RelatorioDemandas {
|
|||
if (agencia != null) {
|
||||
where.append(" AND pv.PUNTOVENTA_ID = " + agencia + " ");
|
||||
}
|
||||
if (formaPagoId != null) {
|
||||
where.append(" AND cfp.FORMAPAGO_ID = " + formaPagoId + " ");
|
||||
}
|
||||
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append(" SELECT to_char(c.fechorventa, 'dd/MM/yyyy') AS data, ");
|
||||
|
|
|
@ -22,12 +22,14 @@ import org.zkoss.zk.ui.event.Event;
|
|||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Datebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.FormaPago;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFormaPagamentoAgencia;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFormaPagamentoAgenciaRutaTramo;
|
||||
import com.rjconsultores.ventaboletos.service.FormaPagamentoAgenciaService;
|
||||
import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
|
@ -43,11 +45,16 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
|||
@Scope("prototype")
|
||||
public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private FormaPagamentoAgenciaService financeiroService;
|
||||
@Autowired
|
||||
private RutaService rutaService;
|
||||
|
||||
@Autowired
|
||||
private FormaPagoService formaPagoService;
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
|
||||
|
@ -61,10 +68,12 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
private Checkbox considerarRuta;
|
||||
|
||||
private MyComboboxEstandar cmbRuta;
|
||||
private MyComboboxEstandar cmbFormaPago;
|
||||
private List<Ruta> lsRuta;
|
||||
|
||||
private List<Ruta> listSelectedRutas;
|
||||
private MyListbox selectedRutasList;
|
||||
private List<FormaPago> lsFormaPago;
|
||||
|
||||
|
||||
|
||||
|
@ -74,6 +83,7 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||
lsRuta = rutaService.obtenerTodos();
|
||||
listSelectedRutas = new ArrayList<Ruta>();
|
||||
lsFormaPago = formaPagoService.obtenerTodos();
|
||||
super.doAfterCompose(comp);
|
||||
}
|
||||
|
||||
|
@ -136,6 +146,7 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
this.fecInicio = fecInicio;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void onClick$btnInforme(Event e) throws Exception {
|
||||
Date dataInicio = fecInicio.getValue();
|
||||
Date dataFinal = fecFinal.getValue();
|
||||
|
@ -174,6 +185,11 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
argsInforme.put("RUTAS_IDS", idsRutas.substring(0, idsRutas.length()-1));
|
||||
}
|
||||
|
||||
if (cmbFormaPago.getSelectedItem() != null) {
|
||||
Short formaPagoId = ((FormaPago) cmbFormaPago.getSelectedItem().getValue()).getFormapagoId();
|
||||
argsInforme.put("FORMA_PAGO", formaPagoId);
|
||||
}
|
||||
|
||||
RelatorioFormaPagamentoAgencia relatorio =null;
|
||||
RelatorioFormaPagamentoAgenciaRutaTramo relatorioRutaTramo =null;
|
||||
if(!considerarRuta.isChecked()){
|
||||
|
@ -237,4 +253,13 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
public void setSelectedRutasList(MyListbox selectedRutasList) {
|
||||
this.selectedRutasList = selectedRutasList;
|
||||
}
|
||||
|
||||
public List<FormaPago> getLsFormaPago() {
|
||||
return lsFormaPago;
|
||||
}
|
||||
public void setLsFormaPago(List<FormaPago> lsFormaPago) {
|
||||
this.lsFormaPago = lsFormaPago;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -9475,6 +9475,16 @@ relatorioEstornoCartaoController.datainicial.value = Data Inicial
|
|||
relatorioEstornoCartaoController.dataFinal.value = Data Final
|
||||
relatorioEstornoCartaoController.lbPuntoVenta.value = Agência
|
||||
relatorioEstornoCartaoController.lbEmpresa.value = Empresa
|
||||
|
||||
# Relatório de Forma de Pagamento por Agência
|
||||
formaPagamentoAgenciaController.mniRelatorioFinanceiro.label = Forma de Pagamento por Agência
|
||||
formaPagamentoAgenciaController.window.title = Forma de Pagamento por Agência
|
||||
formaPagamentoAgenciaController.lbAgencia.value = Agência
|
||||
formaPagamentoAgenciaController.lbDataIni.value = Data Início
|
||||
formaPagamentoAgenciaController.lbDataFin.value = Data Fim
|
||||
formaPagamentoAgenciaController.lbEmpresa.value = Empresa
|
||||
formaPagamentoAgenciaController.lbConsideraRuta.value = Considerar Ruta
|
||||
formaPagamentoAgenciaController.lbFormaPagamento.value = Forma de Pagamento
|
||||
relatorioEstornoCartaoController.btnPesquisa.label = Buscar
|
||||
relatorioEstornoCartaoController.btnLimpar.label = Limpar
|
||||
relatorioEstornoCartaoController.lbNumero.value = Número Agência
|
||||
|
|
|
@ -508,6 +508,7 @@ formaPagamentoAgenciaController.lbDataIni.value = Data Início
|
|||
formaPagamentoAgenciaController.lbDataFin.value = Data Fim
|
||||
formaPagamentoAgenciaController.lbEmpresa.value = Empresa
|
||||
formaPagamentoAgenciaController.lbConsideraRuta.value = Considerar Ruta
|
||||
formaPagamentoAgenciaController.lbFormaPagamento.value = Forma de Pagamento
|
||||
|
||||
# Relatório Financeiro por Grupo de Linhas
|
||||
financeiroGrupoLinhasController.mniRelatorioFinanceiro.label = Financeiro por Grupo de Linhas
|
||||
|
@ -6691,6 +6692,8 @@ editarOrgaoConcedenteController.tempoTrocaMesmoDia.label=Tempo obrigatorio para
|
|||
editarOrgaoConcedenteController.ajudaTrocaMesmoDia.label=Será limitado para o mesmo dia a troca quando ela ocorrer dentro do horário configurado antes e após a saída do serviço.
|
||||
editarOrgaoConcedenteController.tiempoLimiteTrocaDePoltrona.label=Tempo Limite para troca de Poltrona (HH:mm)
|
||||
editarOrgaoConcedenteController.ajudaLimiteTrocaPoltrona.label=Só será possível realizar a troca de poltrona até o tempo configurado antes da saída do Serviço.
|
||||
editarOrgaoConcedenteController.indImprimirComprovanteTransferencia.label=Imprimir Comprovante transferência.
|
||||
|
||||
|
||||
# Busqueda Coeficiente Tarifa
|
||||
busquedaCoeficienteTarifaController.window.title = Coeficiente Tarifario
|
||||
|
|
|
@ -8,30 +8,30 @@
|
|||
<window id="winFormaPagamentoAgencia"
|
||||
title="${c:l('formaPagamentoAgenciaController.window.title')}"
|
||||
apply="${formaPagamentoAgenciaController}"
|
||||
contentStyle="overflow:auto" width="660px" border="normal">
|
||||
contentStyle="overflow:auto" width="560px" border="normal">
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="50%" />
|
||||
<column width="50%" />
|
||||
<column width="30%" />
|
||||
<column width="80%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('formaPagamentoAgenciaController.lbAgencia.value')}" />
|
||||
<combobox id="cmbAgencia" width="100%" maxlength="60" mold="rounded" buttonVisible="true"
|
||||
<combobox id="cmbAgencia" width="50%" maxlength="60" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"/>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('formaPagamentoAgenciaController.lbDataIni.value')}" />
|
||||
<datebox id="fecInicio" width="90%"
|
||||
<datebox id="fecInicio" width="50%"
|
||||
format="dd/MM/yyyy" constraint="no empty"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('formaPagamentoAgenciaController.lbDataFin.value')}" />
|
||||
<datebox id="fecFinal" width="90%"
|
||||
<datebox id="fecFinal" width="50%"
|
||||
format="dd/MM/yyyy" constraint="no empty"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<combobox id="cmbEmpresa"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" constraint="no empty"
|
||||
width="70%"
|
||||
width="50%"
|
||||
model="@{winFormaPagamentoAgencia$composer.lsEmpresas}"/>
|
||||
</row>
|
||||
|
||||
|
@ -65,13 +65,21 @@
|
|||
</checkbox>
|
||||
<combobox id="cmbRuta" visible="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
mold="rounded" buttonVisible="true" width="50%"
|
||||
model="@{winFormaPagamentoAgencia$composer.lsRuta}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label id="lblFormaPago"
|
||||
value="${c:l('formaPagamentoAgenciaController.lbFormaPagamento.value')}" />
|
||||
<combobox id="cmbFormaPago"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
width="50%" mold="rounded" buttonVisible="true"
|
||||
model="@{winFormaPagamentoAgencia$composer.lsFormaPago}" />
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar id="toolbar" visible="false">
|
||||
|
|
Loading…
Reference in New Issue