bug#11796
dev: Lucas qua: Junia git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@84191 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
7d6f3c5e5f
commit
b810aca86e
|
@ -59,9 +59,10 @@ public class RelatorioCadastroClientesConsolidado extends Relatorio {
|
|||
Date dataCadastroFinal = (Date) parametros.get("DATA_CADASTRO_FINAL");
|
||||
Integer empresaId = (Integer) parametros.get("EMPRESA_ID");
|
||||
Integer puntoVentaId = (Integer) parametros.get("PUNTOVENTA_ID");
|
||||
String puntoVentas = (String) parametros.get("NUMPUNTOVENTA");
|
||||
|
||||
sql.append("SELECT empresa.NOMBEMPRESA AS \"empresa\", ");
|
||||
sql.append("puntoVenta.PUNTOVENTA_ID AS \"codigoPuntoVenta\", ");
|
||||
sql.append("puntoVenta.NUMPUNTOVENTA AS \"codigoPuntoVenta\", ");
|
||||
sql.append("puntoVenta.NOMBPUNTOVENTA AS \"puntoVenta\", ");
|
||||
sql.append("tipoPuntoVenta.DESCTIPO AS \"tipoPuntoVenta\", ");
|
||||
sql.append("COUNT(cliente.CLIENTE_ID) AS \"quantidadeCadastrada\" ");
|
||||
|
@ -77,12 +78,12 @@ public class RelatorioCadastroClientesConsolidado extends Relatorio {
|
|||
sql.append("AND usuarioUbicacion.ACTIVO = 1 ");
|
||||
sql.append("AND usuario.ACTIVO = 1 ");
|
||||
|
||||
if (puntoVentas != null && !puntoVentas.isEmpty()) {
|
||||
sql.append("AND puntoVenta.PUNTOVENTA_ID IN (" + puntoVentas + ") ");
|
||||
}
|
||||
if (empresaId != null && empresaId.intValue() != -1) {
|
||||
sql.append("AND empresa.EMPRESA_ID = " + empresaId + " ");
|
||||
}
|
||||
if (puntoVentaId != null && puntoVentaId.intValue() != -1) {
|
||||
sql.append("AND puntoVenta.PUNTOVENTA_ID = " + puntoVentaId + " ");
|
||||
}
|
||||
if (dataCadastroInicial != null && dataCadastroFinal != null) {
|
||||
sql.append("AND cliente.FECCADASTRO BETWEEN TO_DATE('" + formatSemHora.format(dataCadastroInicial) + " 00:00:00', " + formatToDate + ") "
|
||||
+ "AND TO_DATE('" + formatSemHora.format(dataCadastroFinal) + " 23:59:59', " + formatToDate + ") ");
|
||||
|
|
|
@ -33,17 +33,17 @@ public class RelatorioCadastroClientesDetalhado extends Relatorio {
|
|||
|
||||
dataResult.put("numFidelidade", rset.getString("numFidelidade"));
|
||||
dataResult.put("cliente", rset.getString("cliente"));
|
||||
dataResult.put("identificaUno", rset.getString("identificaUno"));
|
||||
dataResult.put("identificaDos", rset.getString("identificaDos"));
|
||||
dataResult.put("identificaUno", trataCampoNull(rset.getString("identificaUno")));
|
||||
dataResult.put("identificaDos", trataCampoNull(rset.getString("identificaDos")));
|
||||
dataResult.put("fecNascimento", rset.getDate("fecNascimento"));
|
||||
dataResult.put("celular", rset.getString("celular"));
|
||||
dataResult.put("telefone", rset.getString("telefone"));
|
||||
dataResult.put("fax", rset.getString("fax"));
|
||||
dataResult.put("celular", trataCampoNull(rset.getString("celular")));
|
||||
dataResult.put("telefone", trataCampoNull(rset.getString("telefone")));
|
||||
dataResult.put("fax", trataCampoNull(rset.getString("fax")));
|
||||
dataResult.put("email", rset.getString("email"));
|
||||
dataResult.put("sexo", rset.getString("sexo"));
|
||||
dataResult.put("fecCadastro", rset.getDate("fecCadastro"));
|
||||
dataResult.put("empresaId", rset.getInt("empresaId"));
|
||||
dataResult.put("codUsuario", rset.getInt("codUsuario"));
|
||||
dataResult.put("codUsuario", rset.getString("codUsuario"));
|
||||
dataResult.put("usuario", rset.getString("usuario"));
|
||||
dataResult.put("codigoPuntoVenta", rset.getString("codigoPuntoVenta"));
|
||||
dataResult.put("puntoVenta", rset.getString("puntoVenta"));
|
||||
|
@ -71,9 +71,9 @@ public class RelatorioCadastroClientesDetalhado extends Relatorio {
|
|||
Date dataCadastroFinal = (Date) parametros.get("DATA_CADASTRO_FINAL");
|
||||
Integer empresaId = (Integer) parametros.get("EMPRESA_ID");
|
||||
Integer puntoVentaId = (Integer) parametros.get("PUNTOVENTA_ID");
|
||||
String puntoVentas = (String) parametros.get("NUMPUNTOVENTA");
|
||||
|
||||
sql.append("SELECT ");
|
||||
// sql.append("(SELECT LISTAGG((tarjetaFidelidad.NUMTARJETA || '(' || empresaFidelidad.EMPRESA_ID || ')') , ', ') WITHIN GROUP (ORDER BY tarjetaFidelidad.NUMTARJETA DESC) ");
|
||||
sql.append("(SELECT tarjetaFidelidad.NUMTARJETA ");
|
||||
sql.append("FROM CLIENTE_FIDELIDAD clienteFidelidad ");
|
||||
sql.append("INNER JOIN TARJETA_FIDELIDAD tarjetaFidelidad ON tarjetaFidelidad.TARJETAFIDELIDAD_ID = clienteFidelidad.TARJETAFIDELIDAD_ID ");
|
||||
|
@ -84,18 +84,18 @@ public class RelatorioCadastroClientesDetalhado extends Relatorio {
|
|||
sql.append("AND clienteFidelidad.CLIENTE_ID = cliente.CLIENTE_ID) AS \"numFidelidade\", ");
|
||||
sql.append("cliente.NOMBCLIENTE AS \"cliente\", ");
|
||||
sql.append("cliente.NUMIDENTIFICAUNO AS \"identificaUno\", ");
|
||||
sql.append("cliente.NUMEXTENSIONDOS AS \"identificaDos\", ");
|
||||
sql.append("cliente.NUMIDENTIFICADOS AS \"identificaDos\", ");
|
||||
sql.append("cliente.FECNACIMIENTO AS \"fecNascimento\", ");
|
||||
sql.append("cliente.NUMTELEFONODOS AS \"celular\", ");
|
||||
sql.append("cliente.NUMIDENTIFICAUNO AS \"telefone\", ");
|
||||
sql.append("cliente.NUMTELEFONO AS \"telefone\", ");
|
||||
sql.append("cliente.NUMFAX AS \"fax\", ");
|
||||
sql.append("cliente.DESCCORREO AS \"email\", ");
|
||||
sql.append("cliente.INDSEXO AS \"sexo\", ");
|
||||
sql.append("cliente.FECCADASTRO AS \"fecCadastro\", ");
|
||||
sql.append("cliente.EMPRESA_ID AS \"empresaId\", ");
|
||||
sql.append("usuario.USUARIO_ID AS \"codUsuario\", ");
|
||||
sql.append("usuario.CVEUSUARIO AS \"codUsuario\", ");
|
||||
sql.append("usuario.NOMBUSUARIO AS \"usuario\", ");
|
||||
sql.append("puntoVenta.PUNTOVENTA_ID AS \"codigoPuntoVenta\", ");
|
||||
sql.append("puntoVenta.NUMPUNTOVENTA AS \"codigoPuntoVenta\", ");
|
||||
sql.append("puntoVenta.NOMBPUNTOVENTA AS \"puntoVenta\" ");
|
||||
|
||||
sql.append("FROM CLIENTE cliente ");
|
||||
|
@ -108,7 +108,10 @@ public class RelatorioCadastroClientesDetalhado extends Relatorio {
|
|||
sql.append("WHERE cliente.ACTIVO = 1 ");
|
||||
sql.append("AND usuarioUbicacion.ACTIVO = 1 ");
|
||||
sql.append("AND usuario.ACTIVO = 1 ");
|
||||
|
||||
|
||||
if (puntoVentas != null && !puntoVentas.isEmpty()) {
|
||||
sql.append("AND puntoVenta.PUNTOVENTA_ID IN (" + puntoVentas + ") ");
|
||||
}
|
||||
if (empresaId != null && empresaId.intValue() != -1) {
|
||||
sql.append("AND empresa.EMPRESA_ID = " + empresaId + " ");
|
||||
}
|
||||
|
@ -122,5 +125,11 @@ public class RelatorioCadastroClientesDetalhado extends Relatorio {
|
|||
|
||||
return sql.toString();
|
||||
}
|
||||
|
||||
|
||||
private String trataCampoNull(String campo) {
|
||||
if (campo != null && !campo.isEmpty() && campo.equalsIgnoreCase("null")) {
|
||||
return "";
|
||||
}
|
||||
return campo;
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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="RelatorioHistoricoClientes" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="832" leftMargin="5" rightMargin="5" topMargin="20" bottomMargin="20" uuid="2de20ee0-535e-49d2-a7be-c24a30351d9f">
|
||||
<property name="ireport.zoom" value="1.3310000000000064"/>
|
||||
<property name="ireport.x" value="341"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="title"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
|
||||
|
@ -23,7 +23,7 @@
|
|||
<field name="sexo" class="java.lang.String"/>
|
||||
<field name="fecCadastro" class="java.util.Date"/>
|
||||
<field name="empresaId" class="java.lang.Integer"/>
|
||||
<field name="codUsuario" class="java.lang.Integer"/>
|
||||
<field name="codUsuario" class="java.lang.String"/>
|
||||
<field name="usuario" class="java.lang.String"/>
|
||||
<field name="codigoPuntoVenta" class="java.lang.String"/>
|
||||
<field name="puntoVenta" class="java.lang.String"/>
|
||||
|
@ -274,7 +274,7 @@
|
|||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="7911217f-c670-41f4-ad8c-95a9ddbeae0a" stretchType="RelativeToTallestObject" x="462" y="0" width="25" height="15"/>
|
||||
<textElement>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{sexo}]]></textFieldExpression>
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -14,20 +16,28 @@ import org.zkoss.util.resource.Labels;
|
|||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Bandbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Radio;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioCadastroClientesDetalhado;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioCadastroClientesConsolidado;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioCadastroClientesDetalhado;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiro;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiroSelecionados;
|
||||
|
||||
@Controller("relatorioCadastroClienteController")
|
||||
@Scope("prototype")
|
||||
|
@ -43,6 +53,14 @@ public class RelatorioCadastroClienteController extends MyGenericForwardComposer
|
|||
|
||||
private List<Empresa> lsEmpresa;
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
||||
private MyTextbox txtNombrePuntoVenta;
|
||||
private Bandbox bbPesquisaPuntoVenta;
|
||||
private Paging pagingPuntoVenta;
|
||||
private MyListbox puntoVentaList;
|
||||
private MyListbox puntoVentaSelList;
|
||||
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
@Autowired
|
||||
|
@ -52,6 +70,9 @@ public class RelatorioCadastroClienteController extends MyGenericForwardComposer
|
|||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro());
|
||||
puntoVentaSelList.setItemRenderer(new RenderRelatorioVendasBilheteiroSelecionados());
|
||||
|
||||
}
|
||||
|
||||
|
@ -81,6 +102,26 @@ public class RelatorioCadastroClienteController extends MyGenericForwardComposer
|
|||
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||
parametros.put("USUARIO_NOME", UsuarioLogado.getUsuarioLogado().getNombusuario());
|
||||
|
||||
filtro.append("Agência: ");
|
||||
String puntoVentaIds = "";
|
||||
String puntoVentas = "";
|
||||
List<PuntoVenta> lsPuntoVentaSelecionados = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
|
||||
if (lsPuntoVentaSelecionados.size() > 0) {
|
||||
for (int i = 0; i < lsPuntoVentaSelecionados.size(); i++) {
|
||||
PuntoVenta puntoVenta = lsPuntoVentaSelecionados.get(i);
|
||||
puntoVentas = puntoVentas + puntoVenta.getNombpuntoventa() + ",";
|
||||
puntoVentaIds = puntoVentaIds + puntoVenta.getPuntoventaId() + ",";
|
||||
}
|
||||
|
||||
puntoVentaIds = puntoVentaIds.substring(0, puntoVentaIds.length() - 1);
|
||||
puntoVentas = puntoVentas.substring(0, puntoVentas.length() - 1);
|
||||
parametros.put("NUMPUNTOVENTA", puntoVentaIds);
|
||||
} else {
|
||||
filtro.append("Todas ");
|
||||
}
|
||||
|
||||
filtro.append(puntoVentas).append(";");
|
||||
|
||||
filtro.append("Empresa: ");
|
||||
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||
if (itemEmpresa != null) {
|
||||
|
@ -91,16 +132,6 @@ public class RelatorioCadastroClienteController extends MyGenericForwardComposer
|
|||
filtro.append(" Todas; ");
|
||||
}
|
||||
|
||||
filtro.append("Agência: ");
|
||||
Comboitem itemPuntoVenta = cmbPuntoVenta.getSelectedItem();
|
||||
if (itemPuntoVenta != null) {
|
||||
PuntoVenta puntoVenta = (PuntoVenta) itemPuntoVenta.getValue();
|
||||
parametros.put("PUNTOVENTA_ID", puntoVenta.getPuntoventaId());
|
||||
filtro.append(puntoVenta.getNombpuntoventa() + ";");
|
||||
} else {
|
||||
filtro.append(" Todas; ");
|
||||
}
|
||||
|
||||
parametros.put("FILTROS", filtro.toString());
|
||||
|
||||
if (rdbConsolidado.isSelected()) {
|
||||
|
@ -141,6 +172,46 @@ public class RelatorioCadastroClienteController extends MyGenericForwardComposer
|
|||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
executarRelatorio();
|
||||
}
|
||||
|
||||
private void executarPesquisa() {
|
||||
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda = new HibernateSearchObject<PuntoVenta>(PuntoVenta.class, pagingPuntoVenta.getPageSize());
|
||||
|
||||
puntoVentaBusqueda.addFilterILike("nombpuntoventa", "%" + txtNombrePuntoVenta.getValue() + "%");
|
||||
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
puntoVentaBusqueda.addFilterNotEqual("puntoventaId", -1);
|
||||
puntoVentaBusqueda.addSortAsc("nombpuntoventa");
|
||||
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
|
||||
|
||||
if (puntoVentaList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("relatorioVendasBilheteiroController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) {
|
||||
executarPesquisa();
|
||||
}
|
||||
|
||||
public void onDoubleClick$puntoVentaSelList(Event ev) {
|
||||
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaSelList.getSelected();
|
||||
puntoVentaSelList.removeItem(puntoVenta);
|
||||
}
|
||||
|
||||
public void onDoubleClick$puntoVentaList(Event ev) {
|
||||
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaList.getSelected();
|
||||
puntoVentaSelList.addItemNovo(puntoVenta);
|
||||
}
|
||||
|
||||
public void onClick$btnLimpar(Event ev) {
|
||||
puntoVentaList.setData(new ArrayList<PuntoVenta>());
|
||||
bbPesquisaPuntoVenta.setText("");
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresa() {
|
||||
return lsEmpresa;
|
||||
|
@ -158,4 +229,60 @@ public class RelatorioCadastroClienteController extends MyGenericForwardComposer
|
|||
this.cmbEmpresa = cmbEmpresa;
|
||||
}
|
||||
|
||||
public Combobox getCmbPuntoVenta() {
|
||||
return cmbPuntoVenta;
|
||||
}
|
||||
|
||||
public void setCmbPuntoVenta(Combobox cmbPuntoVenta) {
|
||||
this.cmbPuntoVenta = cmbPuntoVenta;
|
||||
}
|
||||
|
||||
public PagedListWrapper<PuntoVenta> getPlwPuntoVenta() {
|
||||
return plwPuntoVenta;
|
||||
}
|
||||
|
||||
public void setPlwPuntoVenta(PagedListWrapper<PuntoVenta> plwPuntoVenta) {
|
||||
this.plwPuntoVenta = plwPuntoVenta;
|
||||
}
|
||||
|
||||
public MyTextbox getTxtNombrePuntoVenta() {
|
||||
return txtNombrePuntoVenta;
|
||||
}
|
||||
|
||||
public void setTxtNombrePuntoVenta(MyTextbox txtNombrePuntoVenta) {
|
||||
this.txtNombrePuntoVenta = txtNombrePuntoVenta;
|
||||
}
|
||||
|
||||
public Bandbox getBbPesquisaPuntoVenta() {
|
||||
return bbPesquisaPuntoVenta;
|
||||
}
|
||||
|
||||
public void setBbPesquisaPuntoVenta(Bandbox bbPesquisaPuntoVenta) {
|
||||
this.bbPesquisaPuntoVenta = bbPesquisaPuntoVenta;
|
||||
}
|
||||
|
||||
public Paging getPagingPuntoVenta() {
|
||||
return pagingPuntoVenta;
|
||||
}
|
||||
|
||||
public void setPagingPuntoVenta(Paging pagingPuntoVenta) {
|
||||
this.pagingPuntoVenta = pagingPuntoVenta;
|
||||
}
|
||||
|
||||
public MyListbox getPuntoVentaList() {
|
||||
return puntoVentaList;
|
||||
}
|
||||
|
||||
public void setPuntoVentaList(MyListbox puntoVentaList) {
|
||||
this.puntoVentaList = puntoVentaList;
|
||||
}
|
||||
|
||||
public MyListbox getPuntoVentaSelList() {
|
||||
return puntoVentaSelList;
|
||||
}
|
||||
|
||||
public void setPuntoVentaSelList(MyListbox puntoVentaSelList) {
|
||||
this.puntoVentaSelList = puntoVentaSelList;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -125,6 +125,7 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
private Combobox cmbMotivacionViaje;
|
||||
private Combobox cmbEscola;
|
||||
private Combobox cmbEmpresa;
|
||||
private Combobox cmbEmpresaCadastro;
|
||||
|
||||
private List<MotivoViaje> lsMotivoViaje;
|
||||
private List<TipoOcupacion> lsTipoOcupacion;
|
||||
|
@ -806,6 +807,7 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
cmbMotivacionViaje.getValue();
|
||||
cmbOcupacion.getValue();
|
||||
|
||||
|
||||
List<Cliente> lsCliente = clienteService.buscarPorDocumento(txtNumRfc.getValue());
|
||||
if (lsCliente.size() > 1
|
||||
|| (lsCliente.size() == 1 && !lsCliente.get(0).getClienteId().equals(cliente.getClienteId()))) {
|
||||
|
@ -851,9 +853,13 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
|
||||
try {
|
||||
|
||||
if(cmbEmpresaCadastro.getSelectedItem() == null){
|
||||
cliente.setEmpresaCadastro(null);
|
||||
}
|
||||
|
||||
if (cliente.getClienteId() == null) {
|
||||
cliente.setFecCadastro(new Date());
|
||||
|
||||
|
||||
if (cmbMotivacionViaje.getSelectedItem() != null) {
|
||||
cliente.setMotivoviajeId(
|
||||
(MotivoViaje) cmbMotivacionViaje.getSelectedItem().getValue());
|
||||
|
@ -1666,7 +1672,6 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
this.cmbTipoIdentificacion2 = cmbTipoIdentificacion2;
|
||||
}
|
||||
|
||||
|
||||
public String getClienteEnderecoObrigatorio() {
|
||||
return clienteEnderecoObrigatorio;
|
||||
}
|
||||
|
@ -1675,4 +1680,12 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
this.clienteEnderecoObrigatorio = clienteEnderecoObrigatorio;
|
||||
}
|
||||
|
||||
public Combobox getCmbEmpresaCadastro() {
|
||||
return cmbEmpresaCadastro;
|
||||
}
|
||||
|
||||
public void setCmbEmpresaCadastro(Combobox cmbEmpresaCadastro) {
|
||||
this.cmbEmpresaCadastro = cmbEmpresaCadastro;
|
||||
}
|
||||
|
||||
}
|
|
@ -7,7 +7,7 @@
|
|||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winFiltroRelatorioHistoricoCliente" apply="${relatorioCadastroClienteController}"
|
||||
contentStyle="overflow:auto"
|
||||
height="190px" width="728px" border="normal">
|
||||
height="318px" width="728px" border="normal">
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="25%" />
|
||||
|
@ -36,13 +36,61 @@
|
|||
model="@{winFiltroRelatorioHistoricoCliente$composer.lsEmpresa}"
|
||||
width="100%" />
|
||||
</row>
|
||||
|
||||
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('editarUsuarioController.lhPuntoVenta.label')}" />
|
||||
<combobox id="cmbPuntoVenta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
value="Agencia" />
|
||||
<bandbox id="bbPesquisaPuntoVenta" width="100%"
|
||||
mold="rounded" readonly="true">
|
||||
<bandpopup>
|
||||
<vbox>
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('relatorioVendasBilheteiroController.lbPuntoVenta.value')}" />
|
||||
<textbox id="txtNombrePuntoVenta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||
width="300px" mold="rounded" />
|
||||
<button id="btnPesquisa"
|
||||
image="/gui/img/find.png"
|
||||
label="${c:l('relatorioLinhaOperacionalController.btnPesquisa.label')}" />
|
||||
<button id="btnLimpar"
|
||||
image="/gui/img/eraser.png"
|
||||
label="${c:l('relatorioLinhaOperacionalController.btnLimpar.label')}" />
|
||||
</hbox>
|
||||
<paging id="pagingPuntoVenta"
|
||||
pageSize="10" />
|
||||
<listbox id="puntoVentaList"
|
||||
mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" height="100%" width="700px">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('relatorioVendasBilheteiroController.lbPuntoVenta.value')}" />
|
||||
<listheader width="35%"
|
||||
label="${c:l('relatorioVendasBilheteiroController.lbEmpresa.value')}" />
|
||||
<listheader width="20%"
|
||||
label="${c:l('relatorioVendasBilheteiroController.lbNumero.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</vbox>
|
||||
</bandpopup>
|
||||
</bandbox>
|
||||
</row>
|
||||
<row spans="4">
|
||||
<listbox id="puntoVentaSelList" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" height="100px" width="100%">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('relatorioVendasBilheteiroController.lbPuntoVenta.value')}" />
|
||||
<listheader width="35%"
|
||||
label="${c:l('relatorioVendasBilheteiroController.lbEmpresa.value')}" />
|
||||
<listheader width="20%"
|
||||
label="${c:l('relatorioVendasBilheteiroController.lbNumero.value')}" />
|
||||
<listheader width="15%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<paging id="pagingSelPuntoVenta" pageSize="10" />
|
||||
</row>
|
||||
|
||||
<row >
|
||||
|
|
Loading…
Reference in New Issue