fixes bug #9098
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@69311 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
551182df49
commit
52b9b0bf77
|
@ -1,6 +1,7 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -11,10 +12,12 @@ import org.zkoss.zk.ui.Component;
|
|||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.TarjetaCredito;
|
||||
import com.rjconsultores.ventaboletos.service.TarjetaCreditoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
@ -36,6 +39,8 @@ public class EditarTarjetaCreditoController extends MyGenericForwardComposer {
|
|||
private Intbox txtCanMaxConTasa;
|
||||
private MyTextboxDecimal txtTasa;
|
||||
private Button btnApagar;
|
||||
private Combobox cmbEmpresa;
|
||||
private List<Empresa> lsEmpresas;
|
||||
private TarjetaCredito tarjetaCredito;
|
||||
|
||||
public TarjetaCredito getTarjetaCredito() {
|
||||
|
@ -48,6 +53,9 @@ public class EditarTarjetaCreditoController extends MyGenericForwardComposer {
|
|||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
||||
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
tarjetaCredito = (TarjetaCredito) Executions.getCurrent().getArg().get("tarjetaCredito");
|
||||
|
@ -61,6 +69,7 @@ public class EditarTarjetaCreditoController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
cmbEmpresa.getValue();
|
||||
txtDescTarjetaCredito.getValue();
|
||||
txtCantMaxSinTasa.getValue();
|
||||
txtCanMaxConTasa.getValue();
|
||||
|
@ -118,4 +127,21 @@ public class EditarTarjetaCreditoController extends MyGenericForwardComposer {
|
|||
log.error(ex);
|
||||
}
|
||||
}
|
||||
|
||||
public Combobox getCmbEmpresa() {
|
||||
return cmbEmpresa;
|
||||
}
|
||||
|
||||
public void setCmbEmpresa(Combobox cmbEmpresa) {
|
||||
this.cmbEmpresa = cmbEmpresa;
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresas() {
|
||||
return lsEmpresas;
|
||||
}
|
||||
|
||||
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||
this.lsEmpresas = lsEmpresas;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -15,6 +15,9 @@ public class RenderTarjetaCredito implements ListitemRenderer {
|
|||
|
||||
Listcell lc = new Listcell(tarjetaCredito.getTarjetaCreditoId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(tarjetaCredito.getEmpresa() != null ? tarjetaCredito.getEmpresa().getNombempresa() : "");
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(tarjetaCredito.getDescTarjetaCredito());
|
||||
lc.setParent(lstm);
|
||||
|
|
|
@ -52,6 +52,9 @@
|
|||
<listheader width="50px" image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaTarjetaCreditoController.tarjetaCreditoId.label')}"
|
||||
sort="auto(tarjetaCreditoId)" />
|
||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}"
|
||||
sort="auto(empresa.nombempresa)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaTarjetaCreditoController.window.title')}"
|
||||
sort="auto(descTarjetaCredito)" />
|
||||
|
|
|
@ -30,6 +30,17 @@
|
|||
<column width="60%" />
|
||||
</columns>
|
||||
<rows>
|
||||
|
||||
<row>
|
||||
<!-- Empresa -->
|
||||
<label
|
||||
value="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresa"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||
width="70%" model="@{winEditarTarjetaCredito$composer.lsEmpresas}"
|
||||
selectedItem="@{winEditarTarjetaCredito$composer.tarjetaCredito.empresa}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaTarjetaCreditoController.window.title')}" />
|
||||
|
|
Loading…
Reference in New Issue