git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@20594 d1611594-4594-4d17-8e1d-87c2c4800839
parent
34ccd46f32
commit
d7810bfbf2
|
@ -44,7 +44,6 @@ public class BusquedaEmpresaController extends MyGenericForwardComposer {
|
|||
private Textbox txtNombre;
|
||||
private Textbox txtEquivalencia;
|
||||
private Textbox txtRFC;
|
||||
private Combobox cmbExterna;
|
||||
private Combobox cmbIndTipo;
|
||||
private Row rowEquivalencia;
|
||||
private Listheader headerEquivalencia;
|
||||
|
@ -91,18 +90,6 @@ public class BusquedaEmpresaController extends MyGenericForwardComposer {
|
|||
HibernateSearchObject<Empresa> empresaBusqueda =
|
||||
new HibernateSearchObject<Empresa>(Empresa.class, pagingEmpresa.getPageSize());
|
||||
|
||||
Comboitem ci = cmbExterna.getSelectedItem();
|
||||
String value;
|
||||
if (ci != null) {
|
||||
value = (String) ci.getValue();
|
||||
|
||||
if (value.equals("1")) {
|
||||
empresaBusqueda.addFilterEqual("indExterna", Boolean.TRUE);
|
||||
} else {
|
||||
empresaBusqueda.addFilterEqual("indExterna", Boolean.FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
Comboitem cbiTipo = cmbIndTipo.getSelectedItem();
|
||||
Short tipo = null;
|
||||
if (cbiTipo != null) {
|
||||
|
|
|
@ -34,6 +34,7 @@ import org.zkoss.zul.Textbox;
|
|||
@Scope("prototype")
|
||||
public class BusquedaFormaPagoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<FormaPago> plwFormaPago;
|
||||
private MyListbox formaPagoList;
|
||||
|
@ -43,54 +44,6 @@ public class BusquedaFormaPagoController extends MyGenericForwardComposer {
|
|||
private Row rowEquivalencia;
|
||||
private Listheader headerEquivalencia;
|
||||
|
||||
public MyListbox getFormaPagoList() {
|
||||
return formaPagoList;
|
||||
}
|
||||
|
||||
public void setFormaPagoList(MyListbox formaPagoList) {
|
||||
this.formaPagoList = formaPagoList;
|
||||
}
|
||||
|
||||
public Paging getPagingFormaPago() {
|
||||
return pagingFormaPago;
|
||||
}
|
||||
|
||||
public void setPagingFormaPago(Paging pagingFormaPago) {
|
||||
this.pagingFormaPago = pagingFormaPago;
|
||||
}
|
||||
|
||||
public Textbox getTxtNome() {
|
||||
return txtNome;
|
||||
}
|
||||
|
||||
public void setTxtNome(Textbox txtNome) {
|
||||
this.txtNome = txtNome;
|
||||
}
|
||||
|
||||
public Textbox getTxtEquivalencia() {
|
||||
return txtEquivalencia;
|
||||
}
|
||||
|
||||
public void setTxtEquivalencia(Textbox txtEquivalencia) {
|
||||
this.txtEquivalencia = txtEquivalencia;
|
||||
}
|
||||
|
||||
public Listheader getHeaderEquivalencia() {
|
||||
return headerEquivalencia;
|
||||
}
|
||||
|
||||
public void setHeaderEquivalencia(Listheader headerEquivalencia) {
|
||||
this.headerEquivalencia = headerEquivalencia;
|
||||
}
|
||||
|
||||
public Row getRowEquivalencia() {
|
||||
return rowEquivalencia;
|
||||
}
|
||||
|
||||
public void setRowEquivalencia(Row rowEquivalencia) {
|
||||
this.rowEquivalencia = rowEquivalencia;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
@ -115,6 +68,7 @@ public class BusquedaFormaPagoController extends MyGenericForwardComposer {
|
|||
txtNome.focus();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verFormaPago(FormaPago f) {
|
||||
if (f == null) {
|
||||
return;
|
||||
|
|
|
@ -31,56 +31,13 @@ import org.zkoss.zul.Textbox;
|
|||
@Scope("prototype")
|
||||
public class BusquedaTipoVentaController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<TipoVenta> plwTipoVenta;
|
||||
private MyListbox tipoVentaList;
|
||||
private Paging pagingTipoVenta;
|
||||
private Textbox txtNombre;
|
||||
|
||||
public Textbox getTxtNombre() {
|
||||
return txtNombre;
|
||||
}
|
||||
|
||||
public void setTxtNombre(Textbox txtNombre) {
|
||||
this.txtNombre = txtNombre;
|
||||
}
|
||||
|
||||
public Paging getPagingTipoVenta() {
|
||||
return pagingTipoVenta;
|
||||
}
|
||||
|
||||
public void setPagingTipoVenta(Paging pagingTipoVenta) {
|
||||
this.pagingTipoVenta = pagingTipoVenta;
|
||||
}
|
||||
|
||||
public MyListbox getTipoVentaList() {
|
||||
return tipoVentaList;
|
||||
}
|
||||
|
||||
public void setTipoVentaList(MyListbox tipoVentaList) {
|
||||
this.tipoVentaList = tipoVentaList;
|
||||
}
|
||||
|
||||
public PagedListWrapper<TipoVenta> getPlwTipoVenta() {
|
||||
return plwTipoVenta;
|
||||
}
|
||||
|
||||
public void setPlwTipoVenta(PagedListWrapper<TipoVenta> plwTipoVenta) {
|
||||
this.plwTipoVenta = plwTipoVenta;
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verPeriodo(new TipoVenta());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
@ -100,6 +57,7 @@ public class BusquedaTipoVentaController extends MyGenericForwardComposer {
|
|||
txtNombre.focus();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verPeriodo(TipoVenta ts) {
|
||||
if (ts == null) {
|
||||
return;
|
||||
|
@ -133,4 +91,16 @@ public class BusquedaTipoVentaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verPeriodo(new TipoVenta());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,6 @@ import org.zkoss.zk.ui.event.Event;
|
|||
import org.zkoss.zkplus.databind.BindingListModel;
|
||||
import org.zkoss.zkplus.databind.BindingListModelList;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
|
@ -59,7 +58,6 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
private MyTextbox txtCNPJ;
|
||||
private Button btnApagar;
|
||||
private Combobox cmbIndTipo;
|
||||
private Checkbox chkExterna;
|
||||
private Combobox cmbEstado;
|
||||
private Combobox cmbCidade;
|
||||
private Row rowEquivalencia;
|
||||
|
@ -104,10 +102,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
if (empresa.getEmpresaId() == null) {
|
||||
btnApagar.setVisible(Boolean.FALSE);
|
||||
chkExterna.setChecked(true);
|
||||
} else {
|
||||
chkExterna.setChecked(empresa.getIndExterna() == null ? false : empresa.getIndExterna());
|
||||
|
||||
Ciudad cidade = empresa.getCidade();
|
||||
if (cidade != null) {
|
||||
cmbCidade.setText(cidade.getNombciudad());
|
||||
|
@ -144,7 +139,6 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
empresa.setActivo(Boolean.TRUE);
|
||||
empresa.setFecmodif(Calendar.getInstance().getTime());
|
||||
empresa.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
empresa.setIndExterna(chkExterna.isChecked());
|
||||
|
||||
if (empresa.getEmpresaId() == null) {
|
||||
List<Empresa> lsEmpresa =
|
||||
|
@ -183,14 +177,6 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
public void onClick$chkExterna(Event ev) {
|
||||
if (!chkExterna.isChecked()) {
|
||||
chkExterna.setChecked(false);
|
||||
} else {
|
||||
chkExterna.setChecked(true);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) {
|
||||
try {
|
||||
int resp = Messagebox.show(
|
||||
|
|
|
@ -4,15 +4,9 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.FormaPago;
|
||||
import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
|
@ -23,10 +17,17 @@ 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.Comboitem;
|
||||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Row;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.FormaPago;
|
||||
import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
|
@ -35,6 +36,7 @@ import org.zkoss.zul.Row;
|
|||
@Scope("prototype")
|
||||
public class EditarFormaPagoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private FormaPagoService formaPagoService;
|
||||
private FormaPago formaPago;
|
||||
|
@ -58,38 +60,6 @@ public class EditarFormaPagoController extends MyGenericForwardComposer {
|
|||
this.formaPago = formaPago;
|
||||
}
|
||||
|
||||
public MyTextbox getTxtNome() {
|
||||
return txtNome;
|
||||
}
|
||||
|
||||
public void setTxtNome(MyTextbox txtNome) {
|
||||
this.txtNome = txtNome;
|
||||
}
|
||||
|
||||
public Button getBtnApagar() {
|
||||
return btnApagar;
|
||||
}
|
||||
|
||||
public void setBtnApagar(Button btnApagar) {
|
||||
this.btnApagar = btnApagar;
|
||||
}
|
||||
|
||||
public Button getBtnSalvar() {
|
||||
return btnSalvar;
|
||||
}
|
||||
|
||||
public void setBtnSalvar(Button btnSalvar) {
|
||||
this.btnSalvar = btnSalvar;
|
||||
}
|
||||
|
||||
public Row getRowEquivalencia() {
|
||||
return rowEquivalencia;
|
||||
}
|
||||
|
||||
public void setRowEquivalencia(Row rowEquivalencia) {
|
||||
this.rowEquivalencia = rowEquivalencia;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
@ -111,7 +81,6 @@ public class EditarFormaPagoController extends MyGenericForwardComposer {
|
|||
rd3.setChecked(true);
|
||||
}
|
||||
|
||||
|
||||
if (formaPago.getFormapagoId() <= 11 || (formaPago.getFormapagoId() >= 96 && formaPago.getFormapagoId() <= 99)) {
|
||||
btnApagar.setVisible(Boolean.FALSE);
|
||||
btnSalvar.setVisible(Boolean.FALSE);
|
||||
|
|
|
@ -4,25 +4,25 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoVenta;
|
||||
import com.rjconsultores.ventaboletos.service.TipoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
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.Messagebox;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -32,29 +32,20 @@ import org.zkoss.zul.Textbox;
|
|||
@Scope("prototype")
|
||||
public class EditarTipoVentaController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private TipoVentaService tipoVentaService;
|
||||
private TipoVenta tipoVenta;
|
||||
private MyListbox tipoVentaList;
|
||||
private static Logger log = Logger.getLogger(EditarTipoVentaController.class);
|
||||
private MyTextbox txtNome;
|
||||
private Button btnApagar;
|
||||
private Button btnSalvar;
|
||||
|
||||
public Button getBtnApagar() {
|
||||
return btnApagar;
|
||||
public TipoVenta getTipoVenta() {
|
||||
return tipoVenta;
|
||||
}
|
||||
|
||||
public void setBtnApagar(Button btnApagar) {
|
||||
this.btnApagar = btnApagar;
|
||||
}
|
||||
|
||||
public Textbox getTxtNome() {
|
||||
return txtNome;
|
||||
}
|
||||
|
||||
public void setTxtNome(MyTextbox txtNome) {
|
||||
this.txtNome = txtNome;
|
||||
public void setTipoVenta(TipoVenta tipoVenta) {
|
||||
this.tipoVenta = tipoVenta;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -68,12 +59,9 @@ public class EditarTipoVentaController extends MyGenericForwardComposer {
|
|||
if (tipoVenta.getDesctipoventa() != null) {
|
||||
txtNome.setValue(tipoVenta.getDesctipoventa());
|
||||
}
|
||||
if (tipoVenta.getTipoventaId() == null) {
|
||||
btnApagar.setVisible(Boolean.FALSE);
|
||||
} else {
|
||||
|
||||
if (tipoVenta.getTipoventaId() != null) {
|
||||
if (tipoVenta.getTipoventaId() <= 12) {
|
||||
btnApagar.setVisible(Boolean.FALSE);
|
||||
btnSalvar.setVisible(Boolean.FALSE);
|
||||
txtNome.setDisabled(Boolean.TRUE);
|
||||
|
||||
Messagebox.show(
|
||||
|
@ -162,28 +150,4 @@ public class EditarTipoVentaController extends MyGenericForwardComposer {
|
|||
log.error(ex);
|
||||
}
|
||||
}
|
||||
|
||||
public TipoVenta getTipoVenta() {
|
||||
return tipoVenta;
|
||||
}
|
||||
|
||||
public void setTipoVenta(TipoVenta tipoVenta) {
|
||||
this.tipoVenta = tipoVenta;
|
||||
}
|
||||
|
||||
public MyListbox getTipoVentaList() {
|
||||
return tipoVentaList;
|
||||
}
|
||||
|
||||
public void setTipoVentaList(MyListbox tipoVentaList) {
|
||||
this.tipoVentaList = tipoVentaList;
|
||||
}
|
||||
|
||||
public TipoVentaService getTipoVentaService() {
|
||||
return tipoVentaService;
|
||||
}
|
||||
|
||||
public void setTipoVentaService(TipoVentaService tipoVentaService) {
|
||||
this.tipoVentaService = tipoVentaService;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,36 +31,13 @@ import org.zkoss.zul.Textbox;
|
|||
@Scope("prototype")
|
||||
public class BusquedaConfiguracionFormaPagoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<FormaPagoDet> plwConfigFormaPago;
|
||||
private MyListbox configFormaPagoList;
|
||||
private Paging pagingConfigFormaPago;
|
||||
private Textbox txtNome;
|
||||
|
||||
public MyListbox getConfigFormaPagoList() {
|
||||
return configFormaPagoList;
|
||||
}
|
||||
|
||||
public void setConfigFormaPagoList(MyListbox configFormaPagoList) {
|
||||
this.configFormaPagoList = configFormaPagoList;
|
||||
}
|
||||
|
||||
public Paging getPagingConfigFormaPago() {
|
||||
return pagingConfigFormaPago;
|
||||
}
|
||||
|
||||
public void setPagingConfigFormaPago(Paging pagingConfigFormaPago) {
|
||||
this.pagingConfigFormaPago = pagingConfigFormaPago;
|
||||
}
|
||||
|
||||
public Textbox getTxtNome() {
|
||||
return txtNome;
|
||||
}
|
||||
|
||||
public void setTxtNome(Textbox txtNome) {
|
||||
this.txtNome = txtNome;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
@ -80,6 +57,7 @@ public class BusquedaConfiguracionFormaPagoController extends MyGenericForwardCo
|
|||
txtNome.focus();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verConfigFormaPago(FormaPagoDet fpd) {
|
||||
if (fpd == null) {
|
||||
return;
|
||||
|
@ -95,11 +73,9 @@ public class BusquedaConfiguracionFormaPagoController extends MyGenericForwardCo
|
|||
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<FormaPagoDet> configFormaPagoBusqueda =
|
||||
new HibernateSearchObject<FormaPagoDet>(FormaPagoDet.class,
|
||||
pagingConfigFormaPago.getPageSize());
|
||||
new HibernateSearchObject<FormaPagoDet>(FormaPagoDet.class, pagingConfigFormaPago.getPageSize());
|
||||
|
||||
configFormaPagoBusqueda.addFilterLike("formaPago.descpago",
|
||||
"%" + txtNome.getText().trim().concat("%"));
|
||||
configFormaPagoBusqueda.addFilterLike("formaPago.descpago", "%" + txtNome.getText().trim().concat("%"));
|
||||
|
||||
configFormaPagoBusqueda.addSortAsc("formaPago.descpago");
|
||||
configFormaPagoBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
|
|
@ -31,36 +31,13 @@ import org.zkoss.zul.Textbox;
|
|||
@Scope("prototype")
|
||||
public class BusquedaRestriccionFormaPagoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<ConfigRestriccionPago> plwRestriccionFormaPago;
|
||||
private MyListbox restriccionFormaPagoList;
|
||||
private Paging pagingrestriccionFormaPago;
|
||||
private Textbox txtNome;
|
||||
|
||||
public Paging getPagingrestriccionFormaPago() {
|
||||
return pagingrestriccionFormaPago;
|
||||
}
|
||||
|
||||
public void setPagingrestriccionFormaPago(Paging pagingrestriccionFormaPago) {
|
||||
this.pagingrestriccionFormaPago = pagingrestriccionFormaPago;
|
||||
}
|
||||
|
||||
public MyListbox getRestriccionFormaPagoList() {
|
||||
return restriccionFormaPagoList;
|
||||
}
|
||||
|
||||
public void setRestriccionFormaPagoList(MyListbox restriccionFormaPagoList) {
|
||||
this.restriccionFormaPagoList = restriccionFormaPagoList;
|
||||
}
|
||||
|
||||
public Textbox getTxtNome() {
|
||||
return txtNome;
|
||||
}
|
||||
|
||||
public void setTxtNome(Textbox txtNome) {
|
||||
this.txtNome = txtNome;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
@ -82,6 +59,7 @@ public class BusquedaRestriccionFormaPagoController extends MyGenericForwardComp
|
|||
txtNome.focus();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verConfigRestriccionPago(ConfigRestriccionPago c) {
|
||||
if (c == null) {
|
||||
return;
|
||||
|
|
|
@ -4,6 +4,20 @@
|
|||
*/
|
||||
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;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Combobox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ConfigRestriccionPago;
|
||||
import com.rjconsultores.ventaboletos.entidad.FormaPago;
|
||||
import com.rjconsultores.ventaboletos.entidad.RestriccionPago;
|
||||
|
@ -13,19 +27,6 @@ import com.rjconsultores.ventaboletos.service.RestriccionPagoService;
|
|||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
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;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -35,6 +36,7 @@ import org.zkoss.zul.Combobox;
|
|||
@Scope("prototype")
|
||||
public class EditarRestriccionFormaPagoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private FormaPagoService formaPagoService;
|
||||
@Autowired
|
||||
|
@ -47,25 +49,8 @@ public class EditarRestriccionFormaPagoController extends MyGenericForwardCompos
|
|||
private List<RestriccionPago> lsRestriccionPago;
|
||||
private Combobox cmbFormaPago;
|
||||
private Combobox cmbRestriccionFormaPago;
|
||||
private Button btnApagar;
|
||||
private static Logger log = Logger.getLogger(EditarRestriccionFormaPagoController.class);
|
||||
|
||||
public Button getBtnApagar() {
|
||||
return btnApagar;
|
||||
}
|
||||
|
||||
public void setBtnApagar(Button btnApagar) {
|
||||
this.btnApagar = btnApagar;
|
||||
}
|
||||
|
||||
public FormaPagoService getFormaPagoService() {
|
||||
return formaPagoService;
|
||||
}
|
||||
|
||||
public void setFormaPagoService(FormaPagoService formaPagoService) {
|
||||
this.formaPagoService = formaPagoService;
|
||||
}
|
||||
|
||||
public List<FormaPago> getLsFormaPago() {
|
||||
return lsFormaPago;
|
||||
}
|
||||
|
@ -90,22 +75,6 @@ public class EditarRestriccionFormaPagoController extends MyGenericForwardCompos
|
|||
this.configRestriccionPago = configRestriccionPago;
|
||||
}
|
||||
|
||||
public Combobox getCmbFormaPago() {
|
||||
return cmbFormaPago;
|
||||
}
|
||||
|
||||
public void setCmbFormaPago(Combobox cmbFormaPago) {
|
||||
this.cmbFormaPago = cmbFormaPago;
|
||||
}
|
||||
|
||||
public Combobox getCmbRestriccionFormaPago() {
|
||||
return cmbRestriccionFormaPago;
|
||||
}
|
||||
|
||||
public void setCmbRestriccionFormaPago(Combobox cmbRestriccionFormaPago) {
|
||||
this.cmbRestriccionFormaPago = cmbRestriccionFormaPago;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsFormaPago = formaPagoService.obtenerTodos();
|
||||
|
@ -116,10 +85,6 @@ public class EditarRestriccionFormaPagoController extends MyGenericForwardCompos
|
|||
configRestriccionPago = (ConfigRestriccionPago) Executions.getCurrent().getArg().get("configRestriccionPago");
|
||||
restriccionFormaPagoList = (MyListbox) Executions.getCurrent().getArg().get("configRestriccionFormaPagoList");
|
||||
|
||||
if (configRestriccionPago.getConfigrestriccionId() == null) {
|
||||
btnApagar.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
||||
cmbFormaPago.focus();
|
||||
}
|
||||
|
||||
|
@ -127,7 +92,6 @@ public class EditarRestriccionFormaPagoController extends MyGenericForwardCompos
|
|||
cmbFormaPago.getValue();
|
||||
cmbRestriccionFormaPago.getValue();
|
||||
|
||||
|
||||
try {
|
||||
boolean puedoDarDeAlta = configRestriccionPagoService.puedoDarDeAlta(configRestriccionPago);
|
||||
|
||||
|
|
|
@ -26,17 +26,6 @@ public class RenderEmpresa implements ListitemRenderer {
|
|||
lc = new Listcell(empresa.getNombempresa());
|
||||
lc.setParent(lstm);
|
||||
|
||||
Boolean externa = empresa.getIndExterna();
|
||||
if (externa != null) {
|
||||
if (externa) {
|
||||
lc = new Listcell(Labels.getLabel("MSG.SI"));
|
||||
lc.setParent(lstm);
|
||||
} else {
|
||||
lc = new Listcell(Labels.getLabel("MSG.NO"));
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
}
|
||||
|
||||
Short tipo = empresa.getIndTipo();
|
||||
Short short1 = 1;
|
||||
Short short2 = 2;
|
||||
|
|
|
@ -286,19 +286,19 @@
|
|||
class="com.rjconsultores.ventaboletos.web.utilerias.spring.ApplicationContextProvider">
|
||||
</bean>
|
||||
|
||||
<!-- <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> -->
|
||||
<!-- <property name="resourceRef" value="true" /> -->
|
||||
<!-- <property name="jndiName" value="${database.jndi.name}" /> -->
|
||||
<!-- </bean> -->
|
||||
|
||||
<bean id="dataSource"
|
||||
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
||||
<property name="driverClassName" value="${database.driver}" />
|
||||
<property name="url" value="${database.url}" />
|
||||
<property name="username" value="${database.username}" />
|
||||
<property name="password" value="${database.password}" />
|
||||
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
|
||||
<property name="resourceRef" value="true" />
|
||||
<property name="jndiName" value="${database.jndi.name}" />
|
||||
</bean>
|
||||
|
||||
<!-- <bean id="dataSource" -->
|
||||
<!-- class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
|
||||
<!-- <property name="driverClassName" value="${database.driver}" /> -->
|
||||
<!-- <property name="url" value="${database.url}" /> -->
|
||||
<!-- <property name="username" value="${database.username}" /> -->
|
||||
<!-- <property name="password" value="${database.password}" /> -->
|
||||
<!-- </bean> -->
|
||||
|
||||
<!-- ====================================================== -->
|
||||
<!-- Search class from Hibernate-Generic-DAO framework -->
|
||||
<!-- ====================================================== -->
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# <controler>. <id>. <propiedade> = XXX
|
||||
|
||||
#Versao do VentaBoleto:
|
||||
versao = ADM_20120817_1RC47
|
||||
versao = ADM_20120820_1RC48
|
||||
|
||||
# MSG Defaut:
|
||||
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
||||
|
|
|
@ -5,17 +5,20 @@
|
|||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaEmpresa" title="${c:l('busquedaEmpresaController.window.title')}"
|
||||
<window id="winBusquedaEmpresa"
|
||||
title="${c:l('busquedaEmpresaController.window.title')}"
|
||||
apply="${busquedaEmpresaController}" contentStyle="overflow:auto"
|
||||
height="450px" width="850px" border="normal">
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png"
|
||||
width="35px"
|
||||
tooltiptext="${c:l('busquedaEmpresaController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaEmpresaController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaEmpresa.detach()" image="/gui/img/exit.png" width="35px"
|
||||
<button id="btnCerrar" onClick="winBusquedaEmpresa.detach()"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaEmpresaController.btnCerrar.tooltiptext')}" />
|
||||
</toolbar>
|
||||
|
||||
|
@ -26,32 +29,35 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('busquedaEmpresaController.txtNombre.label')}"/>
|
||||
<textbox id="txtNombre" width="300px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
<label
|
||||
value="${c:l('busquedaEmpresaController.txtNombre.label')}" />
|
||||
<textbox id="txtNombre" width="300px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.IndTipo.label')}"/>
|
||||
<combobox id="cmbIndTipo" width="90%" mold="rounded" buttonVisible="true" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar">
|
||||
<comboitem value="1" label="${c:l('editarEmpresaController.IndTipo.1')}" />
|
||||
<comboitem value="2" label="${c:l('editarEmpresaController.IndTipo.2')}" />
|
||||
<comboitem value="3" label="${c:l('editarEmpresaController.IndTipo.3')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.IndTipo.label')}" />
|
||||
<combobox id="cmbIndTipo" width="90%" mold="rounded"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar">
|
||||
<comboitem value="1"
|
||||
label="${c:l('editarEmpresaController.IndTipo.1')}" />
|
||||
<comboitem value="2"
|
||||
label="${c:l('editarEmpresaController.IndTipo.2')}" />
|
||||
<comboitem value="3"
|
||||
label="${c:l('editarEmpresaController.IndTipo.3')}" />
|
||||
</combobox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.externa.label')}"/>
|
||||
<combobox id="cmbExterna" width="90%" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" mold="rounded" buttonVisible="true">
|
||||
<comboitem value="1" label="${c:l('MSG.SI')}" />
|
||||
<comboitem value="0" label="${c:l('MSG.NO')}" />
|
||||
</combobox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.rfc.label')}"/>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.rfc.label')}" />
|
||||
<textbox id="txtRFC" width="100px" maxlength="13"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row id="rowEquivalencia">
|
||||
<label value="${c:l('lb.Equivalencia')}" />
|
||||
<textbox id="txtEquivalencia" width="100px" maxlength="10"
|
||||
<textbox id="txtEquivalencia" width="100px"
|
||||
maxlength="10"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
</rows>
|
||||
|
@ -63,18 +69,17 @@
|
|||
</toolbar>
|
||||
|
||||
<paging id="pagingEmpresa" pageSize="20" />
|
||||
<listbox id="empresaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
<listbox id="empresaList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader id="lhId" width="70px" image="/gui/img/builder.gif"
|
||||
<listheader id="lhId" width="70px"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaEmpresaController.lhId.label')}"
|
||||
sort="auto(empresaId)" />
|
||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaEmpresaController.lhDesc.label')}"
|
||||
sort="auto(nombempresa)" />
|
||||
<listheader image="/gui/img/create_doc.gif" width="100px"
|
||||
label="${c:l('editarEmpresaController.externa.label')}"
|
||||
sort="auto(indExterna)"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarEmpresaController.IndTipo.label')}"
|
||||
sort="auto(indTipo)" />
|
||||
|
@ -84,8 +89,8 @@
|
|||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarEmpresaController.cnpj.label')}"
|
||||
sort="auto(cnpj)" />
|
||||
<listheader id="headerEquivalencia" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('lb.Equivalencia')}"
|
||||
<listheader id="headerEquivalencia"
|
||||
image="/gui/img/create_doc.gif" label="${c:l('lb.Equivalencia')}"
|
||||
sort="auto(equivalenciaId)" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
|
|
|
@ -5,34 +5,40 @@
|
|||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaFormaPago" title="${c:l('busquedaFormaPagoController.window.title')}"
|
||||
<window id="winBusquedaFormaPago"
|
||||
title="${c:l('busquedaFormaPagoController.window.title')}"
|
||||
apply="${busquedaFormaPagoController}" contentStyle="overflow:auto"
|
||||
height="350px" width="600px" border="normal">
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png"
|
||||
width="35px"
|
||||
tooltiptext="${c:l('busquedaFormaPagoController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaFormaPagoController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaFormaPago.detach()" image="/gui/img/exit.png" width="35px"
|
||||
<button id="btnCerrar"
|
||||
onClick="winBusquedaFormaPago.detach()" image="/gui/img/exit.png"
|
||||
width="35px"
|
||||
tooltiptext="${c:l('busquedaFormaPagoController.btnCerrar.tooltiptext')}" />
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="80%" />
|
||||
<column width="30%" />
|
||||
<column width="70%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('busquedaFormaPagoController.txtNome.label')}"/>
|
||||
<label
|
||||
value="${c:l('busquedaFormaPagoController.txtNome.label')}" />
|
||||
<textbox id="txtNome" width="300px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row id="rowEquivalencia">
|
||||
<label value="${c:l('lb.Equivalencia')}" />
|
||||
<textbox id="txtEquivalencia" width="100px" maxlength="10"
|
||||
<textbox id="txtEquivalencia" width="100px"
|
||||
maxlength="10"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
</rows>
|
||||
|
@ -44,17 +50,18 @@
|
|||
</toolbar>
|
||||
|
||||
<paging id="pagingFormaPago" pageSize="15" />
|
||||
<listbox id="formaPagoList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
<listbox id="formaPagoList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaFormaPagoController.lhId.label')}" width="70px"
|
||||
sort="auto(formapagoId)"/>
|
||||
label="${c:l('busquedaFormaPagoController.lhId.label')}"
|
||||
width="70px" sort="auto(formapagoId)" />
|
||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaFormaPagoController.lhDesc.label')}"
|
||||
sort="auto(descpago)" />
|
||||
<listheader id="headerEquivalencia" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('lb.Equivalencia')}"
|
||||
<listheader id="headerEquivalencia"
|
||||
image="/gui/img/create_doc.gif" label="${c:l('lb.Equivalencia')}"
|
||||
sort="auto(equivalenciaId)" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
width="35px"
|
||||
tooltiptext="${c:l('busquedaTipoVentaController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaTipoVentaController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar"
|
||||
onClick="winBusquedaTipoVenta.detach()" image="/gui/img/exit.png"
|
||||
width="35px"
|
||||
|
|
|
@ -64,11 +64,6 @@
|
|||
label="${c:l('editarEmpresaController.IndTipo.3')}" />
|
||||
</combobox>
|
||||
</row>
|
||||
<row>
|
||||
<label id="lbExterna"
|
||||
value="${c:l('editarEmpresaController.externa.label')}" />
|
||||
<checkbox id="chkExterna" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.rfc.label')}" />
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarFormaPago" border="normal"
|
||||
apply="${editarFormaPagoController}"
|
||||
width="400px" height="457x" contentStyle="overflow:auto"
|
||||
apply="${editarFormaPagoController}" width="400px" height="457x"
|
||||
contentStyle="overflow:auto"
|
||||
title="${c:l('editarFormaPagoController.window.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
|
@ -31,25 +31,34 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lbNome" value="${c:l('editarFormaPagoController.lbNome.value')}"/>
|
||||
<textbox id="txtNome" constraint="no empty" width="90%" maxlength="30"
|
||||
<label id="lbNome"
|
||||
value="${c:l('editarFormaPagoController.lbNome.value')}" />
|
||||
<textbox id="txtNome" constraint="no empty"
|
||||
width="90%" maxlength="30"
|
||||
value="@{winEditarFormaPago$composer.formaPago.descpago}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row id="rowEquivalencia">
|
||||
<label value="${c:l('lb.Equivalencia')}" />
|
||||
<textbox id="txtEquivalencia" width="100px" maxlength="10"
|
||||
<textbox id="txtEquivalencia" width="100px"
|
||||
maxlength="10"
|
||||
value="@{winEditarFormaPago$composer.formaPago.equivalenciaId}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarFormaPagoController.lbOperacion.value')}"/>
|
||||
<row visible="false"><!-- Adaptacao Brasil -->
|
||||
<label
|
||||
value="${c:l('editarFormaPagoController.lbOperacion.value')}" />
|
||||
<radiogroup id="radioIndOperacion">
|
||||
<vbox>
|
||||
<radio value="1" id="rd1" label="${c:l('editarFormaPagoController.lbOperacion1.value')}" />
|
||||
<radio value="2" id="rd2" label="${c:l('editarFormaPagoController.lbOperacion2.value')}" />
|
||||
<radio value="3" id="rd3" label="${c:l('editarFormaPagoController.lbOperacion3.value')}" />
|
||||
<radio value="4" id="rd4" label="${c:l('editarFormaPagoController.lbOperacion4.value')}" checked="true"/>
|
||||
<radio value="1" id="rd1"
|
||||
label="${c:l('editarFormaPagoController.lbOperacion1.value')}" />
|
||||
<radio value="2" id="rd2"
|
||||
label="${c:l('editarFormaPagoController.lbOperacion2.value')}" />
|
||||
<radio value="3" id="rd3"
|
||||
label="${c:l('editarFormaPagoController.lbOperacion3.value')}" />
|
||||
<radio value="4" id="rd4"
|
||||
label="${c:l('editarFormaPagoController.lbOperacion4.value')}"
|
||||
checked="true" />
|
||||
</vbox>
|
||||
</radiogroup>
|
||||
</row>
|
||||
|
|
|
@ -7,22 +7,19 @@
|
|||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaRestriccionFormaPago" title="${c:l('busquedaRestriccionFormaPagoController.window.title')}"
|
||||
apply="${busquedaRestriccionFormaPagoController}" contentStyle="overflow:auto"
|
||||
height="500px" width="600px" border="normal" >
|
||||
height="450px" width="650px" border="normal" >
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaRestriccionFormaPagoController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaRestriccionFormaPagoController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaRestriccionFormaPago.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaRestriccionFormaPagoController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="80%" />
|
||||
<column width="30%" />
|
||||
<column width="70%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
|
|
|
@ -6,17 +6,11 @@
|
|||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarRestriccionFormaPago" border="normal"
|
||||
apply="${editarRestriccionFormaPagoController}"
|
||||
width="400px" height="400x" contentStyle="overflow:auto"
|
||||
apply="${editarRestriccionFormaPagoController}" width="400px"
|
||||
height="400x" contentStyle="overflow:auto"
|
||||
title="${c:l('editarRestriccionFormaPagoController.window.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarRestriccionFormaPagoController.btnApagar.tooltiptext')}"/>
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarRestriccionFormaPagoController.btnSalvar.tooltiptext')}"/>
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarRestriccionFormaPago.detach()"
|
||||
|
@ -31,16 +25,20 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lblFormaPago" value="${c:l('busquedaRestriccionFormaPagoController.FormaPago')}"/>
|
||||
<combobox id="cmbFormaPago" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
||||
mold="rounded" buttonVisible="true"
|
||||
<label id="lblFormaPago"
|
||||
value="${c:l('busquedaRestriccionFormaPagoController.FormaPago')}" />
|
||||
<combobox id="cmbFormaPago"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||
model="@{winEditarRestriccionFormaPago$composer.lsFormaPago}"
|
||||
selectedItem="@{winEditarRestriccionFormaPago$composer.configRestriccionPago.formaPago}" />
|
||||
</row>
|
||||
<row>
|
||||
<label id="lblRestricionFormaPago" value="${c:l('editarRestriccionFormaPagoController.lblRestricionFormaPago.value')}"/>
|
||||
<combobox id="cmbRestriccionFormaPago" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
||||
mold="rounded" buttonVisible="true"
|
||||
<label id="lblRestricionFormaPago"
|
||||
value="${c:l('editarRestriccionFormaPagoController.lblRestricionFormaPago.value')}" />
|
||||
<combobox id="cmbRestriccionFormaPago"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||
model="@{winEditarRestriccionFormaPago$composer.lsRestriccionPago}"
|
||||
selectedItem="@{winEditarRestriccionFormaPago$composer.configRestriccionPago.restriccion}" />
|
||||
</row>
|
||||
|
|
Loading…
Reference in New Issue