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