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;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
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.Executions;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zul.Button;
|
import org.zkoss.zul.Button;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Intbox;
|
import org.zkoss.zul.Intbox;
|
||||||
import org.zkoss.zul.Messagebox;
|
import org.zkoss.zul.Messagebox;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.TarjetaCredito;
|
import com.rjconsultores.ventaboletos.entidad.TarjetaCredito;
|
||||||
import com.rjconsultores.ventaboletos.service.TarjetaCreditoService;
|
import com.rjconsultores.ventaboletos.service.TarjetaCreditoService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
@ -36,6 +39,8 @@ public class EditarTarjetaCreditoController extends MyGenericForwardComposer {
|
||||||
private Intbox txtCanMaxConTasa;
|
private Intbox txtCanMaxConTasa;
|
||||||
private MyTextboxDecimal txtTasa;
|
private MyTextboxDecimal txtTasa;
|
||||||
private Button btnApagar;
|
private Button btnApagar;
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
private TarjetaCredito tarjetaCredito;
|
private TarjetaCredito tarjetaCredito;
|
||||||
|
|
||||||
public TarjetaCredito getTarjetaCredito() {
|
public TarjetaCredito getTarjetaCredito() {
|
||||||
|
@ -48,6 +53,9 @@ public class EditarTarjetaCreditoController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
tarjetaCredito = (TarjetaCredito) Executions.getCurrent().getArg().get("tarjetaCredito");
|
tarjetaCredito = (TarjetaCredito) Executions.getCurrent().getArg().get("tarjetaCredito");
|
||||||
|
@ -61,6 +69,7 @@ public class EditarTarjetaCreditoController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
cmbEmpresa.getValue();
|
||||||
txtDescTarjetaCredito.getValue();
|
txtDescTarjetaCredito.getValue();
|
||||||
txtCantMaxSinTasa.getValue();
|
txtCantMaxSinTasa.getValue();
|
||||||
txtCanMaxConTasa.getValue();
|
txtCanMaxConTasa.getValue();
|
||||||
|
@ -118,4 +127,21 @@ public class EditarTarjetaCreditoController extends MyGenericForwardComposer {
|
||||||
log.error(ex);
|
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());
|
Listcell lc = new Listcell(tarjetaCredito.getTarjetaCreditoId().toString());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(tarjetaCredito.getEmpresa() != null ? tarjetaCredito.getEmpresa().getNombempresa() : "");
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(tarjetaCredito.getDescTarjetaCredito());
|
lc = new Listcell(tarjetaCredito.getDescTarjetaCredito());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
|
@ -52,6 +52,9 @@
|
||||||
<listheader width="50px" image="/gui/img/builder.gif"
|
<listheader width="50px" image="/gui/img/builder.gif"
|
||||||
label="${c:l('busquedaTarjetaCreditoController.tarjetaCreditoId.label')}"
|
label="${c:l('busquedaTarjetaCreditoController.tarjetaCreditoId.label')}"
|
||||||
sort="auto(tarjetaCreditoId)" />
|
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"
|
<listheader image="/gui/img/builder.gif"
|
||||||
label="${c:l('busquedaTarjetaCreditoController.window.title')}"
|
label="${c:l('busquedaTarjetaCreditoController.window.title')}"
|
||||||
sort="auto(descTarjetaCredito)" />
|
sort="auto(descTarjetaCredito)" />
|
||||||
|
|
|
@ -30,6 +30,17 @@
|
||||||
<column width="60%" />
|
<column width="60%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<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>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('busquedaTarjetaCreditoController.window.title')}" />
|
value="${c:l('busquedaTarjetaCreditoController.window.title')}" />
|
||||||
|
|
Loading…
Reference in New Issue