rodrigo 2012-08-21 21:50:16 +00:00
parent d170bb3989
commit ab332da6a3
5 changed files with 584 additions and 728 deletions

View File

@ -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,15 +80,17 @@ 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);
@ -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());
}
} }

View File

@ -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();
}
} }

View File

@ -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

View File

@ -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>

View File

@ -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" /> <radiogroup id="sv1"
<grid fixedLayout="true"> onCheck="choice1.value = self.selectedItem.label" />
<columns> <radiogroup id="sv2"
<column width="40%" /> onCheck="choice1.value = self.selectedItem.label" />
<column width="60%" />
</columns> <grid fixedLayout="true">
<rows> <columns>
<column width="40%" />
<row> <column width="60%" />
<label id="lbNome" value="${c:l('editarTipoEventoExtraController.lbNome.value')}"/> </columns>
<textbox id="txtNome" constraint="no empty" width="80%" maxlength="30" <rows>
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.descTipoEvento}" <row>
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/> <label id="lbNome"
</row> value="${c:l('editarTipoEventoExtraController.lbNome.value')}" />
<!--row> <textbox id="txtNome" constraint="no empty"
<label value="${c:l('editarTipoEventoExtraController.tipoIngreso.label')}"/> width="80%" maxlength="30"
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.descTipoEvento}"
</row--> use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
<!--row> </row>
<label value="${c:l('editarTipoEventoExtraController.cuenta.label')}"/> <row>
<label
</row--> value="${c:l('editarTipoEventoExtraController.importeMaximo.label')}" />
<row> <textbox id="impMax"
<label value="${c:l('editarTipoEventoExtraController.importeMaximo.label')}"/> use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
<textbox id="impMax" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2" constraint="no empty" precision="7" scale="2" constraint="no empty"
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.impmax,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}"/> value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.impmax,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
</row> </row>
<row> <row>
<label value="${c:l('editarTipoEventoExtraController.Operacion.label')}"/> <label
<!--radiogroup Id="radioOperacion" > value="${c:l('editarTipoEventoExtraController.Operacion.label')}" />
<hbox align="center" > <combobox id="cmbIndOperacion" constraint="no empty"
<radio Id="rdOp1" value="1" label="${c:l('editarTipoEventoExtraController.rd1.label')}" checked="true"/> width="90%" mold="rounded" buttonVisible="true"
<radio Id="rdOp2" value="2" label="${c:l('editarTipoEventoExtraController.rd2.label')}" /> use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
<radio Id="rdOp3" value="3" label="${c:l('editarTipoEventoExtraController.rd3.label')}" /> selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.indoperacion, converter='com.rjconsultores.ventaboletos.web.utilerias.StringToShortConverter'}">
</hbox> <comboitem value="1"
</radiogroup--> label="${c:l('editarTipoEventoExtraController.rd1.label')}" />
<comboitem value="2"
<combobox id="cmbIndOperacion" constraint="no empty" width="90%" mold="rounded" buttonVisible="true" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" label="${c:l('editarTipoEventoExtraController.rd2.label')}" />
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.indoperacion, converter='com.rjconsultores.ventaboletos.web.utilerias.StringToShortConverter'}"> <comboitem value="3"
<comboitem value="1" label="${c:l('editarTipoEventoExtraController.rd1.label')}" /> label="${c:l('editarTipoEventoExtraController.rd3.label')}" />
<comboitem value="2" label="${c:l('editarTipoEventoExtraController.rd2.label')}" /> </combobox>
<comboitem value="3" label="${c:l('editarTipoEventoExtraController.rd3.label')}" /> </row>
</combobox> <row>
</row> <label
value="${c:l('editarTipoEventoExtraController.validaCorte.label')}" />
<row> <checkbox id="cbValidaCorte" checked="false"
<label value="${c:l('editarTipoEventoExtraController.validaCorte.label')}"/> disabled="true" />
<checkbox id="cbValidaCorte" checked="false" disabled="true"/> </row>
</row> <row>
<row> <label
<label value="${c:l('editarTipoEventoExtraController.validaDocumento.label')}"/> value="${c:l('editarTipoEventoExtraController.validaDocumento.label')}" />
<checkbox id="cbValidaDocumento" checked="false" disabled="true"/> <checkbox id="cbValidaDocumento" checked="false"
</row> disabled="true" />
<row> </row>
<label value="${c:l('editarTipoEventoExtraController.contrapartida.label')}"/> <row>
<checkbox id="cbContrapartida" checked="false" disabled="true"/> <label
</row> value="${c:l('editarTipoEventoExtraController.contrapartida.label')}" />
<row> <checkbox id="cbContrapartida" 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.ordem.label')}" />
<checkbox id="cbBoleto" checked="false" disabled="true"/> <checkbox id="cbOrdenServicio" checked="false"
</row> disabled="true" />
</row>
<!--row> <row>
<label value="${c:l('editarTipoEventoExtraController.ajuste.label')}"/> <label
<radiogroup Id="radioAjuste" > value="${c:l('editarTipoEventoExtraController.boleto.label')}" />
<hbox align="center" > <checkbox id="cbBoleto" 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.tipoOperacion.value')}" />
<hbox>
<row> <radio id="raTipo11" label="(+)"
<label value="${c:l('editarTipoEventoExtraController.tipoOperacion.value')}"/> radiogroup="sv1" />
<hbox> <radio id="raTipo22" label="(-)"
<radio id="raTipo11" label="(+)" radiogroup="sv1" /> radiogroup="sv1" />
<radio id="raTipo22" label="(-)" radiogroup="sv1" /> </hbox>
</hbox> </row>
</row> <row id="rowParamArticulo">
<label
<row id="rowParamArticulo"> value="${c:l('editarTipoEventoExtraController.cuentaContable.label')}" />
<label value="${c:l('editarTipoEventoExtraController.cuentaContable.label')}"/> <combobox id="cmbParamArticulo"
<combobox id="cmbParamArticulo" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
mold="rounded" buttonVisible="true" width="80%" constraint="no empty" mold="rounded" buttonVisible="true"
model="@{winEditarTipoEventoExtra$composer.lsParamArticulo}" width="80%"
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.paramArticulo}" /> model="@{winEditarTipoEventoExtra$composer.lsParamArticulo}"
</row> selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.paramArticulo}" />
</row>
<row> <row>
<label value="${c:l('editarTipoEventoExtraController.formaPago.label')}"/> <label
<combobox id="cmbFormaPago" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty" value="${c:l('editarTipoEventoExtraController.formaPago.label')}" />
mold="rounded" buttonVisible="true" width="80%" <combobox id="cmbFormaPago"
model="@{winEditarTipoEventoExtra$composer.lsFormaPago}" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.formaPago}" /> constraint="no empty" mold="rounded" buttonVisible="true"
</row> width="80%"
<row> model="@{winEditarTipoEventoExtra$composer.lsFormaPago}"
<label value="${c:l('editarTipoEventoExtraController.iva.label')}"/> selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.formaPago}" />
<textbox id="porcIva" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2" </row>
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.porciva,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}"/> <row>
</row> <label
<!--row> value="${c:l('editarTipoEventoExtraController.iva.label')}" />
<label value="${c:l('editarTipoEventoExtraController.movimiento.label')}"/> <textbox id="porcIva"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
</row--> precision="7" scale="2"
<row> value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.porciva,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
<label value="${c:l('editarTipoEventoExtraController.proveedor.label')}"/> </row>
<textbox id="proveedor" width="80%" maxlength="20" <row>
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.proveedor}" <label
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/> value="${c:l('editarTipoEventoExtraController.proveedor.label')}" />
</row> <textbox id="proveedor" width="80%" maxlength="20"
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.proveedor}"
<row spans="2"> use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
<label value="${c:l('editarTipoEventoExtraController.contrapartida.label')}"/> </row>
</row> <row spans="2">
<!--row> <label
<label value="${c:l('editarTipoEventoExtraController.lbNome.value')}"/> value="${c:l('editarTipoEventoExtraController.contrapartida.label')}" />
<textbox id="txtNome2" constraint="no empty" width="80%" maxlength="30" </row>
value="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.descingreso2}" <row>
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/> <label
</row--> value="${c:l('editarTipoEventoExtraController.tipoOperacion.value')}" />
<row> <hbox>
<label value="${c:l('editarTipoEventoExtraController.tipoOperacion.value')}"/> <radio id="raTipo1" label="(+)" radiogroup="sv2"
<hbox> disabled="true" />
<radio id="raTipo1" label="(+)" radiogroup="sv2" disabled="true" /> <radio id="raTipo2" label="(-)" radiogroup="sv2"
<radio id="raTipo2" label="(-)" radiogroup="sv2" disabled="true" /> disabled="true" />
</hbox> </hbox>
</row> </row>
<row id="rowParamArticulo2"> <row id="rowParamArticulo2">
<label value="${c:l('editarTipoEventoExtraController.cuentaContable.label')}"/> <label
<combobox id="cmbParamArticulo2" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" value="${c:l('editarTipoEventoExtraController.cuentaContable.label')}" />
mold="rounded" buttonVisible="true" width="80%" <combobox id="cmbParamArticulo2"
model="@{winEditarTipoEventoExtra$composer.lsParamArticulo}" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.paramArticulo2}" /> mold="rounded" buttonVisible="true" width="80%"
</row> model="@{winEditarTipoEventoExtra$composer.lsParamArticulo}"
<row> selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.paramArticulo2}" />
<label value="${c:l('editarTipoEventoExtraController.formaPago.label')}"/> </row>
<combobox id="cmbFormaPago2" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" <row>
mold="rounded" buttonVisible="true" width="80%" <label
model="@{winEditarTipoEventoExtra$composer.lsFormaPago}" value="${c:l('editarTipoEventoExtraController.formaPago.label')}" />
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.formaPago2}" /> <combobox id="cmbFormaPago2"
</row> use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
</rows> mold="rounded" buttonVisible="true" width="80%"
</grid> model="@{winEditarTipoEventoExtra$composer.lsFormaPago}"
</window> selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.formaPago2}" />
</row>
</rows>
</grid>
</window>
</zk> </zk>