git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@20649 d1611594-4594-4d17-8e1d-87c2c4800839
parent
d170bb3989
commit
ab332da6a3
|
@ -5,7 +5,6 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.ingreso;
|
||||||
* and open the template in the editor.
|
* and open the template in the editor.
|
||||||
*/
|
*/
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -20,9 +19,7 @@ import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Paging;
|
import org.zkoss.zul.Paging;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||||
|
@ -37,91 +34,16 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTipoEventoExtra
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class BusquedaTipoEventoExtraController extends MyGenericForwardComposer {
|
public class BusquedaTipoEventoExtraController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
@Autowired
|
@Autowired
|
||||||
private transient PagedListWrapper<TipoEventoExtra> plwTipoEventoExtra;
|
private transient PagedListWrapper<TipoEventoExtra> plwTipoEventoExtra;
|
||||||
@Autowired
|
|
||||||
private EmpresaService empresaService;
|
|
||||||
private List<Empresa> lsEmpresa;
|
|
||||||
private MyListbox tipoEventoExtraList;
|
private MyListbox tipoEventoExtraList;
|
||||||
private Paging pagingTipoEventoExtra;
|
private Paging pagingTipoEventoExtra;
|
||||||
// private Intbox idTipoEventoExtra;
|
|
||||||
private Textbox txtNombre;
|
private Textbox txtNombre;
|
||||||
private Combobox cmbIndOperacion;
|
private Combobox cmbIndOperacion;
|
||||||
|
|
||||||
public Combobox getCmbIndOperacion() {
|
|
||||||
return cmbIndOperacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCmbIndOperacion(Combobox cmbIndOperacion) {
|
|
||||||
this.cmbIndOperacion = cmbIndOperacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MyListbox getTipoEventoExtraList() {
|
|
||||||
return tipoEventoExtraList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTipoEventoExtraList(MyListbox tipoEventoExtraList) {
|
|
||||||
this.tipoEventoExtraList = tipoEventoExtraList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Paging getPagingTipoEventoExtra() {
|
|
||||||
return pagingTipoEventoExtra;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPagingTipoEventoExtra(Paging pagingTipoEventoExtra) {
|
|
||||||
this.pagingTipoEventoExtra = pagingTipoEventoExtra;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PagedListWrapper<TipoEventoExtra> getPlwTipoEventoExtra() {
|
|
||||||
return plwTipoEventoExtra;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPlwTipoEventoExtra(
|
|
||||||
PagedListWrapper<TipoEventoExtra> plwTipoEventoExtra) {
|
|
||||||
this.plwTipoEventoExtra = plwTipoEventoExtra;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Textbox getTxtNombre() {
|
|
||||||
return txtNombre;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTxtNombre(Textbox txtNombre) {
|
|
||||||
this.txtNombre = txtNombre;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
|
||||||
refreshLista();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnRefresh(Event ev) {
|
|
||||||
refreshLista();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnNovo(Event ev) {
|
|
||||||
verPeriodo(new TipoEventoExtra());
|
|
||||||
}
|
|
||||||
|
|
||||||
public EmpresaService getEmpresaService() {
|
|
||||||
return empresaService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEmpresaService(EmpresaService empresaService) {
|
|
||||||
this.empresaService = empresaService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<Empresa> getLsEmpresa() {
|
|
||||||
return lsEmpresa;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
|
||||||
this.lsEmpresa = lsEmpresa;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
lsEmpresa = empresaService.buscarTodosExceto(-1);
|
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
tipoEventoExtraList.setItemRenderer(new RenderTipoEventoExtra());
|
tipoEventoExtraList.setItemRenderer(new RenderTipoEventoExtra());
|
||||||
|
@ -141,6 +63,7 @@ public class BusquedaTipoEventoExtraController extends MyGenericForwardComposer
|
||||||
txtNombre.focus();
|
txtNombre.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
private void verPeriodo(TipoEventoExtra emp) {
|
private void verPeriodo(TipoEventoExtra emp) {
|
||||||
if (emp == null) {
|
if (emp == null) {
|
||||||
return;
|
return;
|
||||||
|
@ -157,16 +80,18 @@ public class BusquedaTipoEventoExtraController extends MyGenericForwardComposer
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refreshLista() {
|
private void refreshLista() {
|
||||||
HibernateSearchObject<TipoEventoExtra> tipoEventoExtraBusqueda = new HibernateSearchObject<TipoEventoExtra>(TipoEventoExtra.class, pagingTipoEventoExtra.getPageSize());
|
HibernateSearchObject<TipoEventoExtra> tipoEventoExtraBusqueda =
|
||||||
|
new HibernateSearchObject<TipoEventoExtra>(TipoEventoExtra.class,
|
||||||
|
pagingTipoEventoExtra.getPageSize());
|
||||||
|
|
||||||
tipoEventoExtraBusqueda.addFilterLike("descTipoEvento", "%" + txtNombre.getText().trim().concat("%"));
|
tipoEventoExtraBusqueda.addFilterLike("descTipoEvento", "%" + txtNombre.getText().trim().concat("%"));
|
||||||
if (cmbIndOperacion.getSelectedItem() != null) {
|
if (cmbIndOperacion.getSelectedItem() != null) {
|
||||||
tipoEventoExtraBusqueda.addFilterEqual("indoperacion", Short.parseShort(cmbIndOperacion.getSelectedItem().getValue().toString()));
|
tipoEventoExtraBusqueda.addFilterEqual("indoperacion",
|
||||||
|
Short.parseShort(cmbIndOperacion.getSelectedItem().getValue().toString()));
|
||||||
}
|
}
|
||||||
tipoEventoExtraBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
tipoEventoExtraBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
tipoEventoExtraBusqueda.addSortAsc("descTipoEvento");
|
tipoEventoExtraBusqueda.addSortAsc("descTipoEvento");
|
||||||
|
|
||||||
|
|
||||||
plwTipoEventoExtra.init(tipoEventoExtraBusqueda, tipoEventoExtraList, pagingTipoEventoExtra);
|
plwTipoEventoExtra.init(tipoEventoExtraBusqueda, tipoEventoExtraList, pagingTipoEventoExtra);
|
||||||
|
|
||||||
if (tipoEventoExtraList.getData().length == 0) {
|
if (tipoEventoExtraList.getData().length == 0) {
|
||||||
|
@ -179,4 +104,16 @@ public class BusquedaTipoEventoExtraController 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 TipoEventoExtra());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,6 @@ import org.zkoss.zul.Button;
|
||||||
import org.zkoss.zul.Checkbox;
|
import org.zkoss.zul.Checkbox;
|
||||||
import org.zkoss.zul.Combobox;
|
import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Messagebox;
|
import org.zkoss.zul.Messagebox;
|
||||||
import org.zkoss.zul.Radio;
|
|
||||||
import org.zkoss.zul.Radiogroup;
|
import org.zkoss.zul.Radiogroup;
|
||||||
import org.zkoss.zul.Row;
|
import org.zkoss.zul.Row;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
@ -33,7 +32,6 @@ import com.rjconsultores.ventaboletos.entidad.ParamArticulo;
|
||||||
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
||||||
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||||
import com.rjconsultores.ventaboletos.service.ArticuloService;
|
import com.rjconsultores.ventaboletos.service.ArticuloService;
|
||||||
import com.rjconsultores.ventaboletos.service.EventoExtraService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
||||||
import com.rjconsultores.ventaboletos.service.ParamArticuloService;
|
import com.rjconsultores.ventaboletos.service.ParamArticuloService;
|
||||||
import com.rjconsultores.ventaboletos.service.TipoEventoExtraService;
|
import com.rjconsultores.ventaboletos.service.TipoEventoExtraService;
|
||||||
|
@ -51,459 +49,366 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class EditarTipoEventoExtraController extends MyGenericForwardComposer {
|
public class EditarTipoEventoExtraController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
@Autowired
|
private static final long serialVersionUID = 1L;
|
||||||
private TipoEventoExtraService tipoEventoExtraService;
|
@Autowired
|
||||||
@Autowired
|
private TipoEventoExtraService tipoEventoExtraService;
|
||||||
private ArticuloService articuloService;
|
@Autowired
|
||||||
@Autowired
|
private ArticuloService articuloService;
|
||||||
private FormaPagoService formaPagoService;
|
@Autowired
|
||||||
@Autowired
|
private FormaPagoService formaPagoService;
|
||||||
private ParamArticuloService paramArticuloService;
|
@Autowired
|
||||||
@Autowired
|
private ParamArticuloService paramArticuloService;
|
||||||
private EventoExtraService eventoExtraService;
|
private List<Articulo> lsArticulo;
|
||||||
private List<Articulo> lsArticulo;
|
private List<FormaPago> lsFormaPago;
|
||||||
private List<FormaPago> lsFormaPago;
|
private List<ParamArticulo> lsParamArticulo;
|
||||||
private List<ParamArticulo> lsParamArticulo;
|
private TipoEventoExtra tipoEventoExtra;
|
||||||
private TipoEventoExtra tipoEventoExtra;
|
private MyListbox tipoEventoExtraList;
|
||||||
private MyListbox tipoEventoExtraList;
|
private MyTextbox txtNome;
|
||||||
private static Logger log = Logger.getLogger(EditarTipoEventoExtraController.class);
|
private Button btnApagar;
|
||||||
private MyTextbox txtNome;
|
private Textbox impMax;
|
||||||
private Button btnApagar;
|
private Textbox porcIva;
|
||||||
private Textbox impMax;
|
private Checkbox cbValidaCorte;
|
||||||
private Textbox porcIva;
|
private Checkbox cbValidaDocumento;
|
||||||
private Radio boletoSi;
|
private Checkbox cbContrapartida;
|
||||||
private Radio ajusteSi;
|
private Checkbox cbOrdenServicio;
|
||||||
private Radio boletoNo;
|
private Checkbox cbBoleto;
|
||||||
private Radio ajusteNo;
|
private Combobox cmbIndOperacion;
|
||||||
private Checkbox cbValidaCorte;
|
private Combobox cmbFormaPago2;
|
||||||
private Checkbox cbValidaDocumento;
|
private Combobox cmbParamArticulo;
|
||||||
private Checkbox cbContrapartida;
|
private Combobox cmbParamArticulo2;
|
||||||
private Checkbox cbOrdenServicio;
|
private Combobox cmbFormaPago;
|
||||||
private Checkbox cbBoleto;
|
private Radiogroup sv1;
|
||||||
private Combobox cmbIndOperacion;
|
private Radiogroup sv2;
|
||||||
private Combobox cmbFormaPago2;
|
private Row rowParamArticulo;
|
||||||
private Combobox cmbParamArticulo;
|
private Row rowParamArticulo2;
|
||||||
private Combobox cmbParamArticulo2;
|
private static Logger log = Logger.getLogger(EditarTipoEventoExtraController.class);
|
||||||
private Radiogroup sv1;
|
|
||||||
private Radiogroup sv2;
|
public List<ParamArticulo> getLsParamArticulo() {
|
||||||
private Row rowParamArticulo;
|
return lsParamArticulo;
|
||||||
private Row rowParamArticulo2;
|
}
|
||||||
|
|
||||||
public Radiogroup getSv1() {
|
public void setLsParamArticulo(List<ParamArticulo> lsParamArticulo) {
|
||||||
return sv1;
|
this.lsParamArticulo = lsParamArticulo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSv1(Radiogroup sv1) {
|
public TipoEventoExtra getTipoEventoExtra() {
|
||||||
this.sv1 = sv1;
|
return tipoEventoExtra;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Radiogroup getSv2() {
|
public void setTipoEventoExtra(TipoEventoExtra tipoEventoExtra) {
|
||||||
return sv2;
|
this.tipoEventoExtra = tipoEventoExtra;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSv2(Radiogroup sv2) {
|
public List<Articulo> getLsArticulo() {
|
||||||
this.sv2 = sv2;
|
return lsArticulo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ParamArticulo> getLsParamArticulo() {
|
public void setLsArticulo(List<Articulo> lsArticulo) {
|
||||||
return lsParamArticulo;
|
this.lsArticulo = lsArticulo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLsParamArticulo(List<ParamArticulo> lsParamArticulo) {
|
public List<FormaPago> getLsFormaPago() {
|
||||||
this.lsParamArticulo = lsParamArticulo;
|
return lsFormaPago;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Combobox getCmbParamArticulo() {
|
public void setLsFormaPago(List<FormaPago> lsFormaPago) {
|
||||||
return cmbParamArticulo;
|
this.lsFormaPago = lsFormaPago;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCmbParamArticulo(Combobox cmbParamArticulo) {
|
@Override
|
||||||
this.cmbParamArticulo = cmbParamArticulo;
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
}
|
lsArticulo = articuloService.obtenerTodos();
|
||||||
|
lsFormaPago = formaPagoService.obtenerTodos();
|
||||||
public Combobox getCmbParamArticulo2() {
|
lsParamArticulo = paramArticuloService.obtenerTodos();
|
||||||
return cmbParamArticulo2;
|
|
||||||
}
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
public void setCmbParamArticulo2(Combobox cmbParamArticulo2) {
|
tipoEventoExtra = (TipoEventoExtra) Executions.getCurrent().getArg().get("tipoEventoExtra");
|
||||||
this.cmbParamArticulo2 = cmbParamArticulo2;
|
tipoEventoExtraList = (MyListbox) Executions.getCurrent().getArg().get("tipoEventoExtraList");
|
||||||
}
|
|
||||||
|
if (tipoEventoExtra.getTipoeventoextraId() != null) {
|
||||||
public Combobox getCmbFormaPago2() {
|
cbContrapartida.setChecked(tipoEventoExtra.getIndcontrapartida());
|
||||||
return cmbFormaPago2;
|
cbOrdenServicio.setChecked(tipoEventoExtra.getIndordenservicio());
|
||||||
}
|
cbValidaCorte.setChecked(tipoEventoExtra.getIndvalidacorte());
|
||||||
|
cbValidaDocumento.setChecked(tipoEventoExtra.getIndvalidadocumento());
|
||||||
public void setCmbFormaPago2(Combobox cmbFormaPago2) {
|
if (tipoEventoExtra.getIndboleto() == Boolean.TRUE) {
|
||||||
this.cmbFormaPago2 = cmbFormaPago2;
|
cbBoleto.setChecked(true);
|
||||||
}
|
}
|
||||||
private Combobox cmbFormaPago;
|
|
||||||
|
onChange$cmbIndOperacion(null);
|
||||||
public TipoEventoExtra getTipoEventoExtra() {
|
|
||||||
return tipoEventoExtra;
|
if (tipoEventoExtra.getIndtipo() != null) {
|
||||||
}
|
if (tipoEventoExtra.getIndtipo().equals("0")) {
|
||||||
|
sv1.setSelectedIndex(1);
|
||||||
public void setTipoEventoExtra(TipoEventoExtra tipoEventoExtra) {
|
} else {
|
||||||
this.tipoEventoExtra = tipoEventoExtra;
|
sv1.setSelectedIndex(0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
public MyListbox getTipoEventoExtraList() {
|
|
||||||
return tipoEventoExtraList;
|
if (tipoEventoExtra.getIndtipo2() != null) {
|
||||||
}
|
if (tipoEventoExtra.getIndtipo2().equals("0")) {
|
||||||
|
sv2.setSelectedIndex(1);
|
||||||
public void setTipoEventoExtraList(MyListbox tipoEventoExtraList) {
|
} else {
|
||||||
this.tipoEventoExtraList = tipoEventoExtraList;
|
sv2.setSelectedIndex(0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
public TipoEventoExtraService getTipoEventoExtraService() {
|
} else {
|
||||||
return tipoEventoExtraService;
|
btnApagar.setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTipoEventoExtraService(TipoEventoExtraService tipoEventoExtraService) {
|
|
||||||
this.tipoEventoExtraService = tipoEventoExtraService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Button getBtnApagar() {
|
|
||||||
return btnApagar;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBtnApagar(Button btnApagar) {
|
|
||||||
this.btnApagar = btnApagar;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Logger getLog() {
|
|
||||||
return log;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void setLog(Logger log) {
|
|
||||||
EditarTipoEventoExtraController.log = log;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MyTextbox getTxtNome() {
|
|
||||||
return txtNome;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTxtNome(MyTextbox txtNome) {
|
|
||||||
this.txtNome = txtNome;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArticuloService getArticuloService() {
|
|
||||||
return articuloService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setArticuloService(ArticuloService articuloService) {
|
|
||||||
this.articuloService = articuloService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public FormaPagoService getFormaPagoService() {
|
|
||||||
return formaPagoService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFormaPagoService(FormaPagoService formaPagoService) {
|
// Sino es para exhibir la cuenta contable, no dejo las lines visibles.
|
||||||
this.formaPagoService = formaPagoService;
|
if (!exhibirCuentaContable()) {
|
||||||
}
|
rowParamArticulo.setVisible(false);
|
||||||
|
rowParamArticulo2.setVisible(false);
|
||||||
|
|
||||||
public List<Articulo> getLsArticulo() {
|
cmbParamArticulo.setConstraint("");
|
||||||
return lsArticulo;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsArticulo(List<Articulo> lsArticulo) {
|
txtNome.focus();
|
||||||
this.lsArticulo = lsArticulo;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public List<FormaPago> getLsFormaPago() {
|
public void onChange$cmbIndOperacion(Event ev) throws InterruptedException {
|
||||||
return lsFormaPago;
|
if (tipoEventoExtra.getIndoperacion() != null) {
|
||||||
}
|
sv1.setSelectedIndex(-1);
|
||||||
|
sv2.setSelectedIndex(-1);
|
||||||
|
if (tipoEventoExtra.getIndoperacion().equals(Short.parseShort("1"))) {
|
||||||
|
cbValidaCorte.setDisabled(true);
|
||||||
|
cbValidaCorte.setChecked(false);
|
||||||
|
|
||||||
public void setLsFormaPago(List<FormaPago> lsFormaPago) {
|
cbValidaDocumento.setDisabled(false);
|
||||||
this.lsFormaPago = lsFormaPago;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
cbContrapartida.setDisabled(true);
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
cbContrapartida.setChecked(false);
|
||||||
|
|
||||||
lsArticulo = articuloService.obtenerTodos();
|
cbBoleto.setDisabled(false);
|
||||||
lsFormaPago = formaPagoService.obtenerTodos();
|
|
||||||
lsParamArticulo = paramArticuloService.obtenerTodos();
|
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
cbOrdenServicio.setDisabled(true);
|
||||||
|
cbOrdenServicio.setChecked(false);
|
||||||
|
|
||||||
tipoEventoExtra = (TipoEventoExtra) Executions.getCurrent().getArg().get("tipoEventoExtra");
|
BindingListModel listModelCiudad = new BindingListModelList(new ArrayList<FormaPago>(), true);
|
||||||
tipoEventoExtraList = (MyListbox) Executions.getCurrent().getArg().get("tipoEventoExtraList");
|
cmbFormaPago2.setModel(listModelCiudad);
|
||||||
|
|
||||||
if (tipoEventoExtra.getTipoeventoextraId() != null) {
|
cmbFormaPago2.setDisabled(true);
|
||||||
cbContrapartida.setChecked(tipoEventoExtra.getIndcontrapartida());
|
|
||||||
cbOrdenServicio.setChecked(tipoEventoExtra.getIndordenservicio());
|
|
||||||
cbValidaCorte.setChecked(tipoEventoExtra.getIndvalidacorte());
|
|
||||||
cbValidaDocumento.setChecked(tipoEventoExtra.getIndvalidadocumento());
|
|
||||||
if (tipoEventoExtra.getIndboleto() == Boolean.TRUE) {
|
|
||||||
cbBoleto.setChecked(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
onChange$cmbIndOperacion(null);
|
cmbFormaPago2.setSelectedItem(null);
|
||||||
|
|
||||||
if (tipoEventoExtra.getIndtipo() != null) {
|
BindingListModel listModelParmArticulo = new BindingListModelList(new ArrayList<ParamArticulo>(), true);
|
||||||
if (tipoEventoExtra.getIndtipo().equals("0")) {
|
cmbParamArticulo2.setModel(listModelParmArticulo);
|
||||||
sv1.setSelectedIndex(1);
|
|
||||||
} else {
|
|
||||||
sv1.setSelectedIndex(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tipoEventoExtra.getIndtipo2() != null) {
|
cmbParamArticulo2.setDisabled(true);
|
||||||
if (tipoEventoExtra.getIndtipo2().equals("0")) {
|
|
||||||
sv2.setSelectedIndex(1);
|
|
||||||
} else {
|
|
||||||
sv2.setSelectedIndex(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
btnApagar.setVisible(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Sino es para exhibir la cuenta contable, no dejo las lines visibles.
|
cmbParamArticulo2.setSelectedItem(null);
|
||||||
if (!exhibirCuentaContable()) {
|
|
||||||
rowParamArticulo.setVisible(false);
|
|
||||||
rowParamArticulo2.setVisible(false);
|
|
||||||
|
|
||||||
cmbParamArticulo.setConstraint("");
|
} else if (tipoEventoExtra.getIndoperacion().equals(Short.parseShort("2"))) {
|
||||||
}
|
|
||||||
|
|
||||||
txtNome.focus();
|
cbValidaCorte.setDisabled(true);
|
||||||
|
cbValidaCorte.setChecked(true);
|
||||||
|
|
||||||
}
|
cbValidaDocumento.setDisabled(false);
|
||||||
|
|
||||||
public void onChange$cmbIndOperacion(Event ev) throws InterruptedException {
|
cbContrapartida.setDisabled(true);
|
||||||
if (tipoEventoExtra.getIndoperacion() != null) {
|
cbContrapartida.setChecked(true);
|
||||||
sv1.setSelectedIndex(-1);
|
|
||||||
sv2.setSelectedIndex(-1);
|
|
||||||
if (tipoEventoExtra.getIndoperacion().equals(Short.parseShort("1"))) {
|
|
||||||
cbValidaCorte.setDisabled(true);
|
|
||||||
cbValidaCorte.setChecked(false);
|
|
||||||
|
|
||||||
cbValidaDocumento.setDisabled(false);
|
cbBoleto.setDisabled(true);
|
||||||
|
cbBoleto.setChecked(false);
|
||||||
|
|
||||||
cbContrapartida.setDisabled(true);
|
cbOrdenServicio.setDisabled(false);
|
||||||
cbContrapartida.setChecked(false);
|
|
||||||
|
|
||||||
cbBoleto.setDisabled(false);
|
BindingListModel listModelCiudad = new BindingListModelList(lsFormaPago, true);
|
||||||
|
cmbFormaPago2.setModel(listModelCiudad);
|
||||||
|
cmbFormaPago2.setDisabled(false);
|
||||||
|
|
||||||
cbOrdenServicio.setDisabled(true);
|
BindingListModel listModelParmArticulo = new BindingListModelList(lsParamArticulo, true);
|
||||||
cbOrdenServicio.setChecked(false);
|
cmbParamArticulo2.setModel(listModelParmArticulo);
|
||||||
|
|
||||||
BindingListModel listModelCiudad = new BindingListModelList(new ArrayList<FormaPago>(), true);
|
cmbParamArticulo2.setDisabled(false);
|
||||||
cmbFormaPago2.setModel(listModelCiudad);
|
|
||||||
|
|
||||||
cmbFormaPago2.setDisabled(true);
|
cmbParamArticulo2.setSelectedItem(null);
|
||||||
|
|
||||||
cmbFormaPago2.setSelectedItem(null);
|
} else if (tipoEventoExtra.getIndoperacion().equals(Short.parseShort("3"))) {
|
||||||
|
|
||||||
|
cbValidaCorte.setDisabled(true);
|
||||||
|
cbValidaCorte.setChecked(false);
|
||||||
|
|
||||||
|
cbValidaDocumento.setChecked(true);
|
||||||
|
cbValidaDocumento.setDisabled(true);
|
||||||
|
|
||||||
BindingListModel listModelParmArticulo = new BindingListModelList(new ArrayList<ParamArticulo>(), true);
|
cbContrapartida.setDisabled(true);
|
||||||
cmbParamArticulo2.setModel(listModelParmArticulo);
|
cbContrapartida.setChecked(true);
|
||||||
|
|
||||||
cmbParamArticulo2.setDisabled(true);
|
cbBoleto.setDisabled(true);
|
||||||
|
cbBoleto.setChecked(false);
|
||||||
|
|
||||||
|
cbOrdenServicio.setDisabled(true);
|
||||||
|
cbOrdenServicio.setChecked(false);
|
||||||
|
|
||||||
cmbParamArticulo2.setSelectedItem(null);
|
BindingListModel listModelCiudad = new BindingListModelList(lsFormaPago, true);
|
||||||
|
cmbFormaPago2.setModel(listModelCiudad);
|
||||||
|
|
||||||
} else if (tipoEventoExtra.getIndoperacion().equals(Short.parseShort("2"))) {
|
cmbFormaPago2.setDisabled(false);
|
||||||
|
|
||||||
cbValidaCorte.setDisabled(true);
|
BindingListModel listModelParmArticulo = new BindingListModelList(lsParamArticulo, true);
|
||||||
cbValidaCorte.setChecked(true);
|
cmbParamArticulo2.setModel(listModelParmArticulo);
|
||||||
|
|
||||||
cbValidaDocumento.setDisabled(false);
|
cmbParamArticulo2.setDisabled(false);
|
||||||
|
|
||||||
cbContrapartida.setDisabled(true);
|
cmbParamArticulo2.setSelectedItem(null);
|
||||||
cbContrapartida.setChecked(true);
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cbBoleto.setDisabled(true);
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
cbBoleto.setChecked(false);
|
|
||||||
|
|
||||||
cbOrdenServicio.setDisabled(false);
|
txtNome.getValue();
|
||||||
|
impMax.getValue();
|
||||||
|
cmbIndOperacion.getValue();
|
||||||
|
porcIva.getValue();
|
||||||
|
cmbFormaPago.getValue();
|
||||||
|
cmbParamArticulo.getValue();
|
||||||
|
|
||||||
BindingListModel listModelCiudad = new BindingListModelList(lsFormaPago, true);
|
if (sv1.getSelectedIndex() == -1) {
|
||||||
cmbFormaPago2.setModel(listModelCiudad);
|
Messagebox.show(Labels.getLabel("MSG.necesita.tipoEvento"),
|
||||||
cmbFormaPago2.setDisabled(false);
|
Labels.getLabel("editarTipoEventoExtraController.MSG.tipoObligatolia"),
|
||||||
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
BindingListModel listModelParmArticulo = new BindingListModelList(lsParamArticulo, true);
|
try {
|
||||||
cmbParamArticulo2.setModel(listModelParmArticulo);
|
|
||||||
|
|
||||||
cmbParamArticulo2.setDisabled(false);
|
if (!cmbFormaPago2.isDisabled() && cmbFormaPago2.getSelectedItem() == null) {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.necesita.formaPago"),
|
||||||
cmbParamArticulo2.setSelectedItem(null);
|
Labels.getLabel("editarTipoEventoExtraController.MSG.formaPagoObligatolia"),
|
||||||
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
} else if (tipoEventoExtra.getIndoperacion().equals(Short.parseShort("3"))) {
|
return;
|
||||||
|
}
|
||||||
cbValidaCorte.setDisabled(true);
|
|
||||||
cbValidaCorte.setChecked(false);
|
if (exhibirCuentaContable()) {
|
||||||
|
if (cmbIndOperacion.getSelectedItem() != null) {
|
||||||
cbValidaDocumento.setChecked(true);
|
String indOp = (String) cmbIndOperacion.getSelectedItem().getValue();
|
||||||
cbValidaDocumento.setDisabled(true);
|
if (!cmbParamArticulo2.isDisabled() && indOp.equals("3")) {
|
||||||
|
if (cmbParamArticulo2.getSelectedItem() == null) {
|
||||||
cbContrapartida.setDisabled(true);
|
Messagebox.show(Labels.getLabel("MSG.necesita.contaContable"),
|
||||||
cbContrapartida.setChecked(true);
|
Labels.getLabel("editarTarjetaViajeController.MSG.cuentaContableObligatorio"),
|
||||||
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
cbBoleto.setDisabled(true);
|
return;
|
||||||
cbBoleto.setChecked(false);
|
}
|
||||||
|
}
|
||||||
cbOrdenServicio.setDisabled(true);
|
}
|
||||||
cbOrdenServicio.setChecked(false);
|
}
|
||||||
|
|
||||||
BindingListModel listModelCiudad = new BindingListModelList(lsFormaPago, true);
|
tipoEventoExtra.setActivo(Boolean.TRUE);
|
||||||
cmbFormaPago2.setModel(listModelCiudad);
|
tipoEventoExtra.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
tipoEventoExtra.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
cmbFormaPago2.setDisabled(false);
|
|
||||||
|
List<TipoEventoExtra> lsTipoEventoExtra = tipoEventoExtraService.buscar(tipoEventoExtra.getDescTipoEvento());
|
||||||
BindingListModel listModelParmArticulo = new BindingListModelList(lsParamArticulo, true);
|
boolean podeSalvar = false;
|
||||||
cmbParamArticulo2.setModel(listModelParmArticulo);
|
if (lsTipoEventoExtra.isEmpty()) {
|
||||||
|
podeSalvar = true;
|
||||||
cmbParamArticulo2.setDisabled(false);
|
} else {
|
||||||
|
for (TipoEventoExtra b : lsTipoEventoExtra) {
|
||||||
cmbParamArticulo2.setSelectedItem(null);
|
if (b.getTipoeventoextraId().equals(tipoEventoExtra.getTipoeventoextraId())) {
|
||||||
}
|
podeSalvar = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
if (!podeSalvar) {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.Registro.Existe"),
|
||||||
txtNome.getValue();
|
Labels.getLabel("editarTipoEventoExtraController.window.title"),
|
||||||
impMax.getValue();
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
cmbIndOperacion.getValue();
|
|
||||||
porcIva.getValue();
|
return;
|
||||||
cmbFormaPago.getValue();
|
} else {
|
||||||
cmbParamArticulo.getValue();
|
|
||||||
|
if (sv1.getSelectedIndex() == 0) {
|
||||||
if (sv1.getSelectedIndex() == -1) {
|
tipoEventoExtra.setIndtipo("1");
|
||||||
Messagebox.show(Labels.getLabel("MSG.necesita.tipoEvento"), Labels.getLabel("editarTipoEventoExtraController.MSG.tipoObligatolia"), Messagebox.OK,
|
} else {
|
||||||
Messagebox.EXCLAMATION);
|
tipoEventoExtra.setIndtipo("0");
|
||||||
return;
|
}
|
||||||
}
|
|
||||||
|
if (sv2.getSelectedIndex() == -1) {
|
||||||
try {
|
tipoEventoExtra.setIndtipo2(null);
|
||||||
|
} else if (sv2.getSelectedIndex() == 0) {
|
||||||
if (!cmbFormaPago2.isDisabled() && cmbFormaPago2.getSelectedItem() == null) {
|
tipoEventoExtra.setIndtipo2("1");
|
||||||
Messagebox.show(Labels.getLabel("MSG.necesita.formaPago"), Labels.getLabel("editarTipoEventoExtraController.MSG.formaPagoObligatolia"), Messagebox.OK,
|
} else {
|
||||||
Messagebox.EXCLAMATION);
|
tipoEventoExtra.setIndtipo2("0");
|
||||||
return;
|
}
|
||||||
}
|
|
||||||
|
tipoEventoExtra.setFormaPago((FormaPago) cmbFormaPago.getSelectedItem().getValue());
|
||||||
if (exhibirCuentaContable()) {
|
|
||||||
if (cmbIndOperacion.getSelectedItem() != null) {
|
tipoEventoExtra.setIndvalidacorte(cbValidaCorte.isChecked());
|
||||||
String indOp = (String) cmbIndOperacion.getSelectedItem().getValue();
|
tipoEventoExtra.setIndvalidadocumento(cbValidaDocumento.isChecked());
|
||||||
if (!cmbParamArticulo2.isDisabled() && indOp.equals("3")) {
|
tipoEventoExtra.setIndcontrapartida(cbContrapartida.isChecked());
|
||||||
if (cmbParamArticulo2.getSelectedItem() == null) {
|
tipoEventoExtra.setIndordenservicio(cbOrdenServicio.isChecked());
|
||||||
Messagebox.show(Labels.getLabel("MSG.necesita.contaContable"), Labels.getLabel("editarTarjetaViajeController.MSG.cuentaContableObligatorio"),
|
tipoEventoExtra.setIndboleto(cbBoleto.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
||||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
|
||||||
return;
|
tipoEventoExtra.setParamArticulo(cmbParamArticulo.getSelectedItem() == null ? null : (ParamArticulo) cmbParamArticulo.getSelectedItem().getValue());
|
||||||
}
|
tipoEventoExtra.setParamArticulo2(cmbParamArticulo2.getSelectedItem() == null ? null : (ParamArticulo) cmbParamArticulo2.getSelectedItem().getValue());
|
||||||
}
|
|
||||||
}
|
if (tipoEventoExtra.getTipoeventoextraId() == null) {
|
||||||
}
|
tipoEventoExtraService.suscribir(tipoEventoExtra);
|
||||||
|
tipoEventoExtraList.addItem(tipoEventoExtra);
|
||||||
tipoEventoExtra.setActivo(Boolean.TRUE);
|
} else {
|
||||||
tipoEventoExtra.setFecmodif(Calendar.getInstance().getTime());
|
tipoEventoExtraService.actualizacion(tipoEventoExtra);
|
||||||
tipoEventoExtra.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
tipoEventoExtraList.updateItem(tipoEventoExtra);
|
||||||
|
}
|
||||||
List<TipoEventoExtra> lsTipoEventoExtra = tipoEventoExtraService.buscar(tipoEventoExtra.getDescTipoEvento());
|
}
|
||||||
boolean podeSalvar = false;
|
|
||||||
if (lsTipoEventoExtra.isEmpty()) {
|
Messagebox.show(Labels.getLabel("editarTipoEventoExtraController.MSG.suscribirOK"),
|
||||||
podeSalvar = true;
|
Labels.getLabel("editarTipoEventoExtraController.window.title"),
|
||||||
} else {
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
for (TipoEventoExtra b : lsTipoEventoExtra) {
|
|
||||||
if (b.getTipoeventoextraId().equals(tipoEventoExtra.getTipoeventoextraId())) {
|
closeWindow();
|
||||||
podeSalvar = true;
|
|
||||||
}
|
} catch (Exception ex) {
|
||||||
}
|
log.error("editarTipoEventoExtraController: " + ex);
|
||||||
}
|
Messagebox.show(Labels.getLabel("MSG.Error"),
|
||||||
if (!podeSalvar) {
|
Labels.getLabel("editarTipoEventoExtraController.window.title"),
|
||||||
Messagebox.show(Labels.getLabel("MSG.Registro.Existe"), Labels.getLabel("editarTipoEventoExtraController.window.title"), Messagebox.OK, Messagebox.EXCLAMATION);
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
return;
|
}
|
||||||
} else {
|
}
|
||||||
|
|
||||||
if (sv1.getSelectedIndex() == 0) {
|
public void onCheck$sv1(Event ev) {
|
||||||
tipoEventoExtra.setIndtipo("1");
|
String indOperacion = null;
|
||||||
} else {
|
if (cmbIndOperacion.getSelectedItem() != null) {
|
||||||
tipoEventoExtra.setIndtipo("0");
|
indOperacion = (String) cmbIndOperacion.getSelectedItem().getValue();
|
||||||
}
|
} else {
|
||||||
|
return;
|
||||||
if (sv2.getSelectedIndex() == -1) {
|
}
|
||||||
tipoEventoExtra.setIndtipo2(null);
|
if (!indOperacion.equals("1")) {
|
||||||
} else if (sv2.getSelectedIndex() == 0) {
|
if (sv1.getSelectedIndex() == 0) {
|
||||||
tipoEventoExtra.setIndtipo2("1");
|
sv2.setSelectedIndex(1);
|
||||||
} else {
|
} else {
|
||||||
tipoEventoExtra.setIndtipo2("0");
|
sv2.setSelectedIndex(0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
tipoEventoExtra.setFormaPago((FormaPago) cmbFormaPago.getSelectedItem().getValue());
|
}
|
||||||
|
|
||||||
tipoEventoExtra.setIndvalidacorte(cbValidaCorte.isChecked());
|
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
||||||
tipoEventoExtra.setIndvalidadocumento(cbValidaDocumento.isChecked());
|
try {
|
||||||
tipoEventoExtra.setIndcontrapartida(cbContrapartida.isChecked());
|
int resp = Messagebox.show(Labels.getLabel("editarTipoEventoExtraController.MSG.borrarPergunta"),
|
||||||
tipoEventoExtra.setIndordenservicio(cbOrdenServicio.isChecked());
|
Labels.getLabel("editarTipoEventoExtraController.window.title"),
|
||||||
tipoEventoExtra.setIndboleto(cbBoleto.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||||
|
|
||||||
tipoEventoExtra.setParamArticulo(cmbParamArticulo.getSelectedItem() == null ? null : (ParamArticulo) cmbParamArticulo.getSelectedItem().getValue());
|
if (resp == Messagebox.YES) {
|
||||||
tipoEventoExtra.setParamArticulo2(cmbParamArticulo2.getSelectedItem() == null ? null : (ParamArticulo) cmbParamArticulo2.getSelectedItem().getValue());
|
tipoEventoExtraService.borrar(tipoEventoExtra);
|
||||||
|
|
||||||
if (tipoEventoExtra.getTipoeventoextraId() == null) {
|
Messagebox.show(Labels.getLabel("editarTipoEventoExtraController.MSG.borrarOK"),
|
||||||
tipoEventoExtraService.suscribir(tipoEventoExtra);
|
Labels.getLabel("editarTipoEventoExtraController.window.title"), Messagebox.OK,
|
||||||
tipoEventoExtraList.addItem(tipoEventoExtra);
|
Messagebox.INFORMATION);
|
||||||
} else {
|
|
||||||
tipoEventoExtraService.actualizacion(tipoEventoExtra);
|
tipoEventoExtraList.removeItem(tipoEventoExtra);
|
||||||
tipoEventoExtraList.updateItem(tipoEventoExtra);
|
|
||||||
}
|
closeWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
Messagebox.show(Labels.getLabel("editarTipoEventoExtraController.MSG.suscribirOK"), Labels.getLabel("editarTipoEventoExtraController.window.title"), Messagebox.OK,
|
} catch (BusinessException ex) {
|
||||||
Messagebox.INFORMATION);
|
Messagebox.show(ex.getLocalizedMessage(),
|
||||||
|
Labels.getLabel("editarTipoEventoExtraController.window.title"),
|
||||||
closeWindow();
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
}
|
||||||
} catch (Exception ex) {
|
}
|
||||||
log.error("editarTipoEventoExtraController: " + ex);
|
|
||||||
Messagebox.show(Labels.getLabel("MSG.Error"), Labels.getLabel("editarTipoEventoExtraController.window.title"), Messagebox.OK, Messagebox.ERROR);
|
private boolean exhibirCuentaContable() {
|
||||||
}
|
return ApplicationProperties.getInstance().exhibirCuentaContableTiposEventos();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onCheck$sv1(Event ev) {
|
|
||||||
String indOperacion = null;
|
|
||||||
if (cmbIndOperacion.getSelectedItem() != null) {
|
|
||||||
indOperacion = (String) cmbIndOperacion.getSelectedItem().getValue();
|
|
||||||
} else {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!indOperacion.equals("1")) {
|
|
||||||
if (sv1.getSelectedIndex() == 0) {
|
|
||||||
sv2.setSelectedIndex(1);
|
|
||||||
} else {
|
|
||||||
sv2.setSelectedIndex(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
|
||||||
try {
|
|
||||||
int resp = Messagebox.show(Labels.getLabel("editarTipoEventoExtraController.MSG.borrarPergunta"),
|
|
||||||
Labels.getLabel("editarTipoEventoExtraController.window.title"),
|
|
||||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
|
||||||
|
|
||||||
if (resp == Messagebox.YES) {
|
|
||||||
tipoEventoExtraService.borrar(tipoEventoExtra);
|
|
||||||
|
|
||||||
Messagebox.show(Labels.getLabel("editarTipoEventoExtraController.MSG.borrarOK"),
|
|
||||||
Labels.getLabel("editarTipoEventoExtraController.window.title"), Messagebox.OK,
|
|
||||||
Messagebox.INFORMATION);
|
|
||||||
|
|
||||||
tipoEventoExtraList.removeItem(tipoEventoExtra);
|
|
||||||
|
|
||||||
closeWindow();
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (BusinessException ex) {
|
|
||||||
Messagebox.show(ex.getLocalizedMessage(), Labels.getLabel("editarTipoEventoExtraController.window.title"), Messagebox.OK,
|
|
||||||
Messagebox.INFORMATION);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean exhibirCuentaContable() {
|
|
||||||
return ApplicationProperties.getInstance().exhibirCuentaContableTiposEventos();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -511,7 +511,7 @@ editarPuntoVentaController.MSG.Achou.FormaPago = Forma de Pagamento já está re
|
||||||
editarPuntoVentaController.MSG.Achou.ParamRecoleccion = Parametro para sangria já está registrada.
|
editarPuntoVentaController.MSG.Achou.ParamRecoleccion = Parametro para sangria já está registrada.
|
||||||
editarPuntoVentaController.MSG.Achou.PtovtaEmpresa = Empresas para Venda já está registrada.
|
editarPuntoVentaController.MSG.Achou.PtovtaEmpresa = Empresas para Venda já está registrada.
|
||||||
editarPuntoVentaController.MSG.Achou.PtovtaUsuario = Empresa já está registrado.
|
editarPuntoVentaController.MSG.Achou.PtovtaUsuario = Empresa já está registrado.
|
||||||
editarPuntoVentaController.tab.label.endereco = Dirección
|
editarPuntoVentaController.tab.label.endereco = Endereço
|
||||||
editarPuntoVentaController.tab.label.recoleccion = Sangria
|
editarPuntoVentaController.tab.label.recoleccion = Sangria
|
||||||
editarPuntoVentaController.tab.label.empVenta = Empresas para Venda
|
editarPuntoVentaController.tab.label.empVenta = Empresas para Venda
|
||||||
editarPuntoVentaController.tab.label.usuBancario = Usuarios bancários
|
editarPuntoVentaController.tab.label.usuBancario = Usuarios bancários
|
||||||
|
|
|
@ -5,65 +5,75 @@
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winBusquedaTipoEventoExtra" title="${c:l('busquedaTipoEventoExtraController.window.title')}"
|
<window id="winBusquedaTipoEventoExtra"
|
||||||
apply="${busquedaTipoEventoExtraController}" contentStyle="overflow:auto"
|
title="${c:l('busquedaTipoEventoExtraController.window.title')}"
|
||||||
height="450px" width="850px" border="normal" >
|
apply="${busquedaTipoEventoExtraController}"
|
||||||
<toolbar>
|
contentStyle="overflow:auto" height="450px" width="850px"
|
||||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
border="normal">
|
||||||
tooltiptext="${c:l('busquedaTipoEventoExtraController.btnRefresh.tooltiptext')}" />
|
<toolbar>
|
||||||
<separator orient="vertical" />
|
<button id="btnRefresh" image="/gui/img/refresh.png"
|
||||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
width="35px"
|
||||||
tooltiptext="${c:l('busquedaTipoEventoExtraController.btnNovo.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaTipoEventoExtraController.btnRefresh.tooltiptext')}" />
|
||||||
<separator orient="vertical" />
|
<separator orient="vertical" />
|
||||||
<button id="btnCerrar" onClick="winBusquedaTipoEventoExtra.detach()" image="/gui/img/exit.png" width="35px"
|
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||||
tooltiptext="${c:l('busquedaTipoEventoExtraController.btnCerrar.tooltiptext')}"/>
|
tooltiptext="${c:l('busquedaTipoEventoExtraController.btnNovo.tooltiptext')}" />
|
||||||
</toolbar>
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar"
|
||||||
|
onClick="winBusquedaTipoEventoExtra.detach()"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaTipoEventoExtraController.btnCerrar.tooltiptext')}" />
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="20%" />
|
<column width="20%" />
|
||||||
<column width="80%" />
|
<column width="80%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<!--row>
|
<row>
|
||||||
<label value="${c:l('busquedaTipoEventoExtraController.idTipoEventoExtra.label')}"/>
|
<label
|
||||||
<intbox id="idTipoEventoExtra" width="100px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
value="${c:l('busquedaTipoEventoExtraController.nombre.label')}" />
|
||||||
</row-->
|
<textbox id="txtNombre" width="282px"
|
||||||
<row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
<label value="${c:l('busquedaTipoEventoExtraController.nombre.label')}"/>
|
</row>
|
||||||
<textbox id="txtNombre" width="282px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
<row>
|
||||||
</row>
|
<label
|
||||||
<row>
|
value="${c:l('editarTipoEventoExtraController.Operacion.label')}" />
|
||||||
<label value="${c:l('editarTipoEventoExtraController.Operacion.label')}"/>
|
<combobox id="cmbIndOperacion" width="45%"
|
||||||
<combobox id="cmbIndOperacion" width="45%" mold="rounded" buttonVisible="true" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
mold="rounded" buttonVisible="true"
|
||||||
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.indoperacion, converter='com.rjconsultores.ventaboletos.web.utilerias.StringToShortConverter'}">
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<comboitem value="1" label="${c:l('editarTipoEventoExtraController.rd1.label')}" />
|
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.indoperacion, converter='com.rjconsultores.ventaboletos.web.utilerias.StringToShortConverter'}">
|
||||||
<comboitem value="2" label="${c:l('editarTipoEventoExtraController.rd2.label')}" />
|
<comboitem value="1"
|
||||||
<comboitem value="3" label="${c:l('editarTipoEventoExtraController.rd3.label')}" />
|
label="${c:l('editarTipoEventoExtraController.rd1.label')}" />
|
||||||
</combobox>
|
<comboitem value="2"
|
||||||
</row>
|
label="${c:l('editarTipoEventoExtraController.rd2.label')}" />
|
||||||
</rows>
|
<comboitem value="3"
|
||||||
</grid>
|
label="${c:l('editarTipoEventoExtraController.rd3.label')}" />
|
||||||
|
</combobox>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
label="${c:l('busquedaTipoEventoExtraController.btnPesquisa.label')}"/>
|
label="${c:l('busquedaTipoEventoExtraController.btnPesquisa.label')}" />
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<paging id="pagingTipoEventoExtra" pageSize="15"/>
|
<paging id="pagingTipoEventoExtra" pageSize="15" />
|
||||||
<listbox id="tipoEventoExtraList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
<listbox id="tipoEventoExtraList"
|
||||||
vflex="true" multiple="false">
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
<listhead sizable="true">
|
vflex="true" multiple="false">
|
||||||
<listheader id="lhId" width="70px" image="/gui/img/builder.gif" sort="auto(tipoeventoextraId)"
|
<listhead sizable="true">
|
||||||
label="${c:l('busquedaTipoEventoExtraController.lhId.label')}"
|
<listheader id="lhId" width="70px"
|
||||||
/>
|
image="/gui/img/builder.gif" sort="auto(tipoeventoextraId)"
|
||||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif" sort="auto(descTipoEvento)"
|
label="${c:l('busquedaTipoEventoExtraController.lhId.label')}" />
|
||||||
label="${c:l('busquedaTipoEventoExtraController.lhDesc.label')}"
|
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||||
/>
|
sort="auto(descTipoEvento)"
|
||||||
<listheader image="/gui/img/create_doc.gif" width="100px" sort="auto(indoperacion)"
|
label="${c:l('busquedaTipoEventoExtraController.lhDesc.label')}" />
|
||||||
label="${c:l('editarTipoEventoExtraController.Operacion.label')}"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
/>
|
width="100px" sort="auto(indoperacion)"
|
||||||
</listhead>
|
label="${c:l('editarTipoEventoExtraController.Operacion.label')}" />
|
||||||
</listbox>
|
</listhead>
|
||||||
</window>
|
</listbox>
|
||||||
|
</window>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
|
@ -5,172 +5,176 @@
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winEditarTipoEventoExtra" border="normal"
|
<window id="winEditarTipoEventoExtra" border="normal"
|
||||||
apply="${editarTipoEventoExtraController}"
|
apply="${editarTipoEventoExtraController}" height="550px"
|
||||||
height="550px" width="600px" contentStyle="overflow:auto"
|
width="600px" contentStyle="overflow:auto"
|
||||||
title="${c:l('editarTipoEventoExtraController.window.title')}">
|
title="${c:l('editarTipoEventoExtraController.window.title')}">
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
<button id="btnApagar" height="20"
|
<button id="btnApagar" height="20"
|
||||||
image="/gui/img/remove.png" width="35px"
|
image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('editarTipoEventoExtraController.btnApagar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarTipoEventoExtraController.btnApagar.tooltiptext')}" />
|
||||||
<button id="btnSalvar" height="20"
|
<button id="btnSalvar" height="20"
|
||||||
image="/gui/img/save.png" width="35px"
|
image="/gui/img/save.png" width="35px"
|
||||||
tooltiptext="${c:l('editarTipoEventoExtraController.btnSalvar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarTipoEventoExtraController.btnSalvar.tooltiptext')}" />
|
||||||
<button id="btnFechar" height="20"
|
<button id="btnFechar" height="20"
|
||||||
image="/gui/img/exit.png" width="35px"
|
image="/gui/img/exit.png" width="35px"
|
||||||
onClick="winEditarTipoEventoExtra.detach()"
|
onClick="winEditarTipoEventoExtra.detach()"
|
||||||
tooltiptext="${c:l('editarTipoEventoExtraController.btnFechar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarTipoEventoExtraController.btnFechar.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
<radiogroup id="sv1" onCheck="choice1.value = self.selectedItem.label" />
|
|
||||||
<radiogroup id="sv2" onCheck="choice1.value = self.selectedItem.label" />
|
|
||||||
<grid fixedLayout="true">
|
|
||||||
<columns>
|
|
||||||
<column width="40%" />
|
|
||||||
<column width="60%" />
|
|
||||||
</columns>
|
|
||||||
<rows>
|
|
||||||
|
|
||||||
<row>
|
<radiogroup id="sv1"
|
||||||
<label id="lbNome" value="${c:l('editarTipoEventoExtraController.lbNome.value')}"/>
|
onCheck="choice1.value = self.selectedItem.label" />
|
||||||
<textbox id="txtNome" constraint="no empty" width="80%" maxlength="30"
|
<radiogroup id="sv2"
|
||||||
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.descTipoEvento}"
|
onCheck="choice1.value = self.selectedItem.label" />
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
|
||||||
</row>
|
|
||||||
<!--row>
|
|
||||||
<label value="${c:l('editarTipoEventoExtraController.tipoIngreso.label')}"/>
|
|
||||||
|
|
||||||
</row-->
|
<grid fixedLayout="true">
|
||||||
<!--row>
|
<columns>
|
||||||
<label value="${c:l('editarTipoEventoExtraController.cuenta.label')}"/>
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
</row-->
|
</columns>
|
||||||
<row>
|
<rows>
|
||||||
<label value="${c:l('editarTipoEventoExtraController.importeMaximo.label')}"/>
|
<row>
|
||||||
<textbox id="impMax" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2" constraint="no empty"
|
<label id="lbNome"
|
||||||
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.impmax,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}"/>
|
value="${c:l('editarTipoEventoExtraController.lbNome.value')}" />
|
||||||
</row>
|
<textbox id="txtNome" constraint="no empty"
|
||||||
<row>
|
width="80%" maxlength="30"
|
||||||
<label value="${c:l('editarTipoEventoExtraController.Operacion.label')}"/>
|
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.descTipoEvento}"
|
||||||
<!--radiogroup Id="radioOperacion" >
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
<hbox align="center" >
|
</row>
|
||||||
<radio Id="rdOp1" value="1" label="${c:l('editarTipoEventoExtraController.rd1.label')}" checked="true"/>
|
<row>
|
||||||
<radio Id="rdOp2" value="2" label="${c:l('editarTipoEventoExtraController.rd2.label')}" />
|
<label
|
||||||
<radio Id="rdOp3" value="3" label="${c:l('editarTipoEventoExtraController.rd3.label')}" />
|
value="${c:l('editarTipoEventoExtraController.importeMaximo.label')}" />
|
||||||
</hbox>
|
<textbox id="impMax"
|
||||||
</radiogroup-->
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||||
|
precision="7" scale="2" constraint="no empty"
|
||||||
<combobox id="cmbIndOperacion" constraint="no empty" width="90%" mold="rounded" buttonVisible="true" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.impmax,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
||||||
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.indoperacion, converter='com.rjconsultores.ventaboletos.web.utilerias.StringToShortConverter'}">
|
</row>
|
||||||
<comboitem value="1" label="${c:l('editarTipoEventoExtraController.rd1.label')}" />
|
<row>
|
||||||
<comboitem value="2" label="${c:l('editarTipoEventoExtraController.rd2.label')}" />
|
<label
|
||||||
<comboitem value="3" label="${c:l('editarTipoEventoExtraController.rd3.label')}" />
|
value="${c:l('editarTipoEventoExtraController.Operacion.label')}" />
|
||||||
</combobox>
|
<combobox id="cmbIndOperacion" constraint="no empty"
|
||||||
</row>
|
width="90%" mold="rounded" buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<row>
|
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.indoperacion, converter='com.rjconsultores.ventaboletos.web.utilerias.StringToShortConverter'}">
|
||||||
<label value="${c:l('editarTipoEventoExtraController.validaCorte.label')}"/>
|
<comboitem value="1"
|
||||||
<checkbox id="cbValidaCorte" checked="false" disabled="true"/>
|
label="${c:l('editarTipoEventoExtraController.rd1.label')}" />
|
||||||
</row>
|
<comboitem value="2"
|
||||||
<row>
|
label="${c:l('editarTipoEventoExtraController.rd2.label')}" />
|
||||||
<label value="${c:l('editarTipoEventoExtraController.validaDocumento.label')}"/>
|
<comboitem value="3"
|
||||||
<checkbox id="cbValidaDocumento" checked="false" disabled="true"/>
|
label="${c:l('editarTipoEventoExtraController.rd3.label')}" />
|
||||||
</row>
|
</combobox>
|
||||||
<row>
|
</row>
|
||||||
<label value="${c:l('editarTipoEventoExtraController.contrapartida.label')}"/>
|
<row>
|
||||||
<checkbox id="cbContrapartida" checked="false" disabled="true"/>
|
<label
|
||||||
</row>
|
value="${c:l('editarTipoEventoExtraController.validaCorte.label')}" />
|
||||||
<row>
|
<checkbox id="cbValidaCorte" checked="false"
|
||||||
<label value="${c:l('editarTipoEventoExtraController.ordem.label')}"/>
|
disabled="true" />
|
||||||
<checkbox id="cbOrdenServicio" checked="false" disabled="true"/>
|
</row>
|
||||||
</row>
|
<row>
|
||||||
<row>
|
<label
|
||||||
<label value="${c:l('editarTipoEventoExtraController.boleto.label')}"/>
|
value="${c:l('editarTipoEventoExtraController.validaDocumento.label')}" />
|
||||||
<checkbox id="cbBoleto" checked="false" disabled="true"/>
|
<checkbox id="cbValidaDocumento" checked="false"
|
||||||
</row>
|
disabled="true" />
|
||||||
|
</row>
|
||||||
<!--row>
|
<row>
|
||||||
<label value="${c:l('editarTipoEventoExtraController.ajuste.label')}"/>
|
<label
|
||||||
<radiogroup Id="radioAjuste" >
|
value="${c:l('editarTipoEventoExtraController.contrapartida.label')}" />
|
||||||
<hbox align="center" >
|
<checkbox id="cbContrapartida" checked="false"
|
||||||
<radio Id="ajusteSi" label="${c:l('editarTipoEventoExtraController.si.label')}" checked="true"/>
|
disabled="true" />
|
||||||
<radio Id="ajusteNo" label="${c:l('editarTipoEventoExtraController.no.label')}" />
|
</row>
|
||||||
</hbox>
|
<row>
|
||||||
</radiogroup>
|
<label
|
||||||
</row-->
|
value="${c:l('editarTipoEventoExtraController.ordem.label')}" />
|
||||||
|
<checkbox id="cbOrdenServicio" checked="false"
|
||||||
<row>
|
disabled="true" />
|
||||||
<label value="${c:l('editarTipoEventoExtraController.tipoOperacion.value')}"/>
|
</row>
|
||||||
<hbox>
|
<row>
|
||||||
<radio id="raTipo11" label="(+)" radiogroup="sv1" />
|
<label
|
||||||
<radio id="raTipo22" label="(-)" radiogroup="sv1" />
|
value="${c:l('editarTipoEventoExtraController.boleto.label')}" />
|
||||||
</hbox>
|
<checkbox id="cbBoleto" checked="false"
|
||||||
</row>
|
disabled="true" />
|
||||||
|
</row>
|
||||||
<row id="rowParamArticulo">
|
<row>
|
||||||
<label value="${c:l('editarTipoEventoExtraController.cuentaContable.label')}"/>
|
<label
|
||||||
<combobox id="cmbParamArticulo" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
value="${c:l('editarTipoEventoExtraController.tipoOperacion.value')}" />
|
||||||
mold="rounded" buttonVisible="true" width="80%"
|
<hbox>
|
||||||
model="@{winEditarTipoEventoExtra$composer.lsParamArticulo}"
|
<radio id="raTipo11" label="(+)"
|
||||||
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.paramArticulo}" />
|
radiogroup="sv1" />
|
||||||
</row>
|
<radio id="raTipo22" label="(-)"
|
||||||
|
radiogroup="sv1" />
|
||||||
<row>
|
</hbox>
|
||||||
<label value="${c:l('editarTipoEventoExtraController.formaPago.label')}"/>
|
</row>
|
||||||
<combobox id="cmbFormaPago" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
<row id="rowParamArticulo">
|
||||||
mold="rounded" buttonVisible="true" width="80%"
|
<label
|
||||||
model="@{winEditarTipoEventoExtra$composer.lsFormaPago}"
|
value="${c:l('editarTipoEventoExtraController.cuentaContable.label')}" />
|
||||||
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.formaPago}" />
|
<combobox id="cmbParamArticulo"
|
||||||
</row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<row>
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
<label value="${c:l('editarTipoEventoExtraController.iva.label')}"/>
|
width="80%"
|
||||||
<textbox id="porcIva" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2"
|
model="@{winEditarTipoEventoExtra$composer.lsParamArticulo}"
|
||||||
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.porciva,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}"/>
|
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.paramArticulo}" />
|
||||||
</row>
|
</row>
|
||||||
<!--row>
|
<row>
|
||||||
<label value="${c:l('editarTipoEventoExtraController.movimiento.label')}"/>
|
<label
|
||||||
|
value="${c:l('editarTipoEventoExtraController.formaPago.label')}" />
|
||||||
</row-->
|
<combobox id="cmbFormaPago"
|
||||||
<row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<label value="${c:l('editarTipoEventoExtraController.proveedor.label')}"/>
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
<textbox id="proveedor" width="80%" maxlength="20"
|
width="80%"
|
||||||
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.proveedor}"
|
model="@{winEditarTipoEventoExtra$composer.lsFormaPago}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.formaPago}" />
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
<row spans="2">
|
<label
|
||||||
<label value="${c:l('editarTipoEventoExtraController.contrapartida.label')}"/>
|
value="${c:l('editarTipoEventoExtraController.iva.label')}" />
|
||||||
</row>
|
<textbox id="porcIva"
|
||||||
<!--row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||||
<label value="${c:l('editarTipoEventoExtraController.lbNome.value')}"/>
|
precision="7" scale="2"
|
||||||
<textbox id="txtNome2" constraint="no empty" width="80%" maxlength="30"
|
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.porciva,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
||||||
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.descingreso2}"
|
</row>
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
<row>
|
||||||
</row-->
|
<label
|
||||||
<row>
|
value="${c:l('editarTipoEventoExtraController.proveedor.label')}" />
|
||||||
<label value="${c:l('editarTipoEventoExtraController.tipoOperacion.value')}"/>
|
<textbox id="proveedor" width="80%" maxlength="20"
|
||||||
<hbox>
|
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.proveedor}"
|
||||||
<radio id="raTipo1" label="(+)" radiogroup="sv2" disabled="true" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
<radio id="raTipo2" label="(-)" radiogroup="sv2" disabled="true" />
|
</row>
|
||||||
</hbox>
|
<row spans="2">
|
||||||
</row>
|
<label
|
||||||
<row id="rowParamArticulo2">
|
value="${c:l('editarTipoEventoExtraController.contrapartida.label')}" />
|
||||||
<label value="${c:l('editarTipoEventoExtraController.cuentaContable.label')}"/>
|
</row>
|
||||||
<combobox id="cmbParamArticulo2" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
<row>
|
||||||
mold="rounded" buttonVisible="true" width="80%"
|
<label
|
||||||
model="@{winEditarTipoEventoExtra$composer.lsParamArticulo}"
|
value="${c:l('editarTipoEventoExtraController.tipoOperacion.value')}" />
|
||||||
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.paramArticulo2}" />
|
<hbox>
|
||||||
</row>
|
<radio id="raTipo1" label="(+)" radiogroup="sv2"
|
||||||
<row>
|
disabled="true" />
|
||||||
<label value="${c:l('editarTipoEventoExtraController.formaPago.label')}"/>
|
<radio id="raTipo2" label="(-)" radiogroup="sv2"
|
||||||
<combobox id="cmbFormaPago2" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
disabled="true" />
|
||||||
mold="rounded" buttonVisible="true" width="80%"
|
</hbox>
|
||||||
model="@{winEditarTipoEventoExtra$composer.lsFormaPago}"
|
</row>
|
||||||
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.formaPago2}" />
|
<row id="rowParamArticulo2">
|
||||||
</row>
|
<label
|
||||||
</rows>
|
value="${c:l('editarTipoEventoExtraController.cuentaContable.label')}" />
|
||||||
</grid>
|
<combobox id="cmbParamArticulo2"
|
||||||
</window>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="80%"
|
||||||
|
model="@{winEditarTipoEventoExtra$composer.lsParamArticulo}"
|
||||||
|
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.paramArticulo2}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarTipoEventoExtraController.formaPago.label')}" />
|
||||||
|
<combobox id="cmbFormaPago2"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="80%"
|
||||||
|
model="@{winEditarTipoEventoExtra$composer.lsFormaPago}"
|
||||||
|
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.formaPago2}" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
</window>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
Loading…
Reference in New Issue