fixes bug #6669
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@50620 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
bc1ebc05da
commit
105731bc5a
|
@ -1,10 +1,10 @@
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.comissao;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.comissao;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.zkoss.util.resource.Labels;
|
import org.zkoss.util.resource.Labels;
|
||||||
|
@ -14,6 +14,7 @@ import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
|
@ -21,16 +22,21 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
public class BusquedaConferenciaComissaoController extends MyGenericForwardComposer {
|
public class BusquedaConferenciaComissaoController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
// private static final Logger log = LoggerFactory.getLogger(BusquedaConferenciaComissaoController.class);
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(BusquedaConferenciaComissaoController.class);
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
|
||||||
private Textbox txtCompetencia;
|
private Textbox txtCompetencia;
|
||||||
private PuntoVenta puntoVenta;
|
private PuntoVenta puntoVenta;
|
||||||
private Empresa empresa;
|
private Empresa empresa;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
lsEmpresas = empresaService.obtenerTodos();
|
||||||
txtCompetencia.focus();
|
txtCompetencia.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,4 +66,12 @@ public class BusquedaConferenciaComissaoController extends MyGenericForwardCompo
|
||||||
this.empresa = empresa;
|
this.empresa = empresa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresas() {
|
||||||
|
return lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||||
|
this.lsEmpresas = lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,15 +8,12 @@
|
||||||
<window id="winBusquedaConferenciaComissao"
|
<window id="winBusquedaConferenciaComissao"
|
||||||
title="${c:l('busquedaConferenciaComissaoController.window.title')}"
|
title="${c:l('busquedaConferenciaComissaoController.window.title')}"
|
||||||
apply="${busquedaConferenciaComissaoController}"
|
apply="${busquedaConferenciaComissaoController}"
|
||||||
contentStyle="overflow:auto"
|
contentStyle="overflow:auto" height="190px" width="380px"
|
||||||
height="190px"
|
|
||||||
width="380px"
|
|
||||||
border="normal">
|
border="normal">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnCerrar"
|
<button id="btnCerrar"
|
||||||
onClick="winBusquedaConferenciaComissao.detach()"
|
onClick="winBusquedaConferenciaComissao.detach()"
|
||||||
image="/gui/img/exit.png"
|
image="/gui/img/exit.png" width="35px"
|
||||||
width="35px"
|
|
||||||
tooltiptext="${c:l('busquedaConferenciaComissaoController.btnCerrar.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaConferenciaComissaoController.btnCerrar.tooltiptext')}" />
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
|
@ -27,39 +24,37 @@
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('busquedaConferenciaComissaoController.lbCompetencia.label')}"/>
|
<label
|
||||||
|
value="${c:l('busquedaConferenciaComissaoController.lbCompetencia.label')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
<textbox id="txtCompetencia"
|
<textbox id="txtCompetencia" width="100px"
|
||||||
width="100px"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
<label value="${c:l('busquedaConferenciaComissaoController.lbCompetenciaLayout.label')}"/>
|
<label
|
||||||
|
value="${c:l('busquedaConferenciaComissaoController.lbCompetenciaLayout.label')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('busquedaConferenciaComissaoController.lbEmpresa.value')}" />
|
<label
|
||||||
<combobox id="cmbEmpresa"
|
value="${c:l('busquedaConferenciaComissaoController.lbEmpresa.value')}" />
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa"
|
<combobox id="cmbEmpresa" constraint="no empty"
|
||||||
constraint="no empty"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
mold="rounded"
|
width="100%" mold="rounded" buttonVisible="true"
|
||||||
buttonVisible="true"
|
model="@{winBusquedaConferenciaComissao$composer.lsEmpresas}"
|
||||||
width="90%"
|
|
||||||
selectedItem="@{winBusquedaConferenciaComissao$composer.empresa}" />
|
selectedItem="@{winBusquedaConferenciaComissao$composer.empresa}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('busquedaConferenciaComissaoController.lbPuntoVenta.value')}" />
|
<label
|
||||||
|
value="${c:l('busquedaConferenciaComissaoController.lbPuntoVenta.value')}" />
|
||||||
<combobox id="cmbPuntoVenta"
|
<combobox id="cmbPuntoVenta"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||||
mold="rounded"
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
buttonVisible="true"
|
|
||||||
width="90%"
|
|
||||||
selectedItem="@{winBusquedaConferenciaComissao$composer.puntoVenta}" />
|
selectedItem="@{winBusquedaConferenciaComissao$composer.puntoVenta}" />
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnPesquisa"
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
image="/gui/img/find.png"
|
|
||||||
label="${c:l('busquedaConferenciaComissaoController.btnPesquisa.label')}" />
|
label="${c:l('busquedaConferenciaComissaoController.btnPesquisa.label')}" />
|
||||||
</toolbar>
|
</toolbar>
|
||||||
</window>
|
</window>
|
||||||
|
|
Loading…
Reference in New Issue