git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@23153 d1611594-4594-4d17-8e1d-87c2c4800839
parent
62cf96b901
commit
1b7c2bc81e
|
@ -31,97 +31,99 @@ import org.zkoss.zul.Textbox;
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class BusquedaCategoriaController extends MyGenericForwardComposer {
|
public class BusquedaCategoriaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
@Autowired
|
private static final long serialVersionUID = 1L;
|
||||||
private transient PagedListWrapper<Categoria> plwCategoria;
|
@Autowired
|
||||||
private MyListbox categoriaList;
|
private transient PagedListWrapper<Categoria> plwCategoria;
|
||||||
private Paging pagingCategoria;
|
private MyListbox categoriaList;
|
||||||
private Textbox txtNombre;
|
private Paging pagingCategoria;
|
||||||
|
private Textbox txtNombre;
|
||||||
|
|
||||||
public Paging getPagingCategoria() {
|
public Paging getPagingCategoria() {
|
||||||
return pagingCategoria;
|
return pagingCategoria;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPagingCategoria(Paging pagingCategoria) {
|
public void setPagingCategoria(Paging pagingCategoria) {
|
||||||
this.pagingCategoria = pagingCategoria;
|
this.pagingCategoria = pagingCategoria;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MyListbox getCategoriaList() {
|
public MyListbox getCategoriaList() {
|
||||||
return categoriaList;
|
return categoriaList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategoriaList(MyListbox categoriaList) {
|
public void setCategoriaList(MyListbox categoriaList) {
|
||||||
this.categoriaList = categoriaList;
|
this.categoriaList = categoriaList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PagedListWrapper<Categoria> getPlwCategoria() {
|
public PagedListWrapper<Categoria> getPlwCategoria() {
|
||||||
return plwCategoria;
|
return plwCategoria;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPlwCategoria(PagedListWrapper<Categoria> plwCategoria) {
|
public void setPlwCategoria(PagedListWrapper<Categoria> plwCategoria) {
|
||||||
this.plwCategoria = plwCategoria;
|
this.plwCategoria = plwCategoria;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||||
refreshLista();
|
refreshLista();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnRefresh(Event ev) {
|
public void onClick$btnRefresh(Event ev) {
|
||||||
refreshLista();
|
refreshLista();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnNovo(Event ev) {
|
public void onClick$btnNovo(Event ev) {
|
||||||
verPeriodo(new Categoria());
|
verPeriodo(new Categoria());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
categoriaList.setItemRenderer(new RenderCategoria());
|
categoriaList.setItemRenderer(new RenderCategoria());
|
||||||
categoriaList.addEventListener("onDoubleClick", new EventListener() {
|
categoriaList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(Event event) throws Exception {
|
public void onEvent(Event event) throws Exception {
|
||||||
Categoria c = (Categoria) categoriaList.getSelected();
|
Categoria c = (Categoria) categoriaList.getSelected();
|
||||||
verPeriodo(c);
|
verPeriodo(c);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
refreshLista();
|
refreshLista();
|
||||||
|
|
||||||
txtNombre.focus();
|
txtNombre.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void verPeriodo(Categoria c) {
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
if (c == null) {
|
private void verPeriodo(Categoria c) {
|
||||||
return;
|
if (c == null) {
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Map args = new HashMap();
|
Map args = new HashMap();
|
||||||
args.put("categoria", c);
|
args.put("categoria", c);
|
||||||
args.put("categoriaList", categoriaList);
|
args.put("categoriaList", categoriaList);
|
||||||
|
|
||||||
openWindow("/gui/catalogos/editarCategoria.zul",
|
openWindow("/gui/catalogos/editarCategoria.zul",
|
||||||
Labels.getLabel("editarCategoriaController.window.title"), args, MODAL);
|
Labels.getLabel("editarCategoriaController.window.title"), args, MODAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refreshLista() {
|
private void refreshLista() {
|
||||||
HibernateSearchObject<Categoria> claseServicioBusqueda =
|
HibernateSearchObject<Categoria> claseServicioBusqueda =
|
||||||
new HibernateSearchObject<Categoria>(Categoria.class, pagingCategoria.getPageSize());
|
new HibernateSearchObject<Categoria>(Categoria.class, pagingCategoria.getPageSize());
|
||||||
|
|
||||||
claseServicioBusqueda.addFilterLike("desccategoria", "%" + txtNombre.getText().trim().concat("%"));
|
claseServicioBusqueda.addFilterLike("desccategoria", "%" + txtNombre.getText().trim().concat("%"));
|
||||||
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
claseServicioBusqueda.addFilterNotEqual("categoriaId", -1);
|
claseServicioBusqueda.addFilterNotEqual("categoriaId", -1);
|
||||||
claseServicioBusqueda.addSortAsc("desccategoria");
|
claseServicioBusqueda.addSortAsc("desccategoria");
|
||||||
|
|
||||||
plwCategoria.init(claseServicioBusqueda, categoriaList, pagingCategoria);
|
plwCategoria.init(claseServicioBusqueda, categoriaList, pagingCategoria);
|
||||||
if (categoriaList.getData().length == 0) {
|
if (categoriaList.getData().length == 0) {
|
||||||
try {
|
try {
|
||||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
Labels.getLabel("busquedaCategoriaController.window.title"),
|
Labels.getLabel("busquedaCategoriaController.window.title"),
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
} catch (InterruptedException ex) {
|
} catch (InterruptedException ex) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,102 +31,104 @@ import org.zkoss.zul.Textbox;
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class BusquedaConfiguracionCategoriaController extends MyGenericForwardComposer {
|
public class BusquedaConfiguracionCategoriaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
@Autowired
|
private static final long serialVersionUID = 1L;
|
||||||
private transient PagedListWrapper<CategoriaCtrl> plwpagingcategoriaCtrl;
|
@Autowired
|
||||||
private MyListbox categoriaCtrlList;
|
private transient PagedListWrapper<CategoriaCtrl> plwpagingcategoriaCtrl;
|
||||||
private Paging pagingCategoriaCtrl;
|
private MyListbox categoriaCtrlList;
|
||||||
private Textbox txtNome;
|
private Paging pagingCategoriaCtrl;
|
||||||
|
private Textbox txtNome;
|
||||||
|
|
||||||
public MyListbox getConfigCategoriaList() {
|
public MyListbox getConfigCategoriaList() {
|
||||||
return categoriaCtrlList;
|
return categoriaCtrlList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setConfigCategoriaList(MyListbox configCategoriaList) {
|
public void setConfigCategoriaList(MyListbox configCategoriaList) {
|
||||||
this.categoriaCtrlList = configCategoriaList;
|
this.categoriaCtrlList = configCategoriaList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Paging getPagingConfigCategoria() {
|
public Paging getPagingConfigCategoria() {
|
||||||
return pagingCategoriaCtrl;
|
return pagingCategoriaCtrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPagingConfigCategoria(Paging pagingConfigCategoria) {
|
public void setPagingConfigCategoria(Paging pagingConfigCategoria) {
|
||||||
this.pagingCategoriaCtrl = pagingConfigCategoria;
|
this.pagingCategoriaCtrl = pagingConfigCategoria;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Textbox getTxtNome() {
|
public Textbox getTxtNome() {
|
||||||
return txtNome;
|
return txtNome;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTxtNome(Textbox txtNome) {
|
public void setTxtNome(Textbox txtNome) {
|
||||||
this.txtNome = txtNome;
|
this.txtNome = txtNome;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
categoriaCtrlList.setItemRenderer(new RenderCategoriaDescuento());
|
categoriaCtrlList.setItemRenderer(new RenderCategoriaDescuento());
|
||||||
categoriaCtrlList.addEventListener("onDoubleClick", new EventListener() {
|
categoriaCtrlList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(Event event) throws Exception {
|
public void onEvent(Event event) throws Exception {
|
||||||
CategoriaCtrl cc = (CategoriaCtrl) categoriaCtrlList.getSelected();
|
CategoriaCtrl cc = (CategoriaCtrl) categoriaCtrlList.getSelected();
|
||||||
verConfigCategoria(cc);
|
verConfigCategoria(cc);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
refreshLista();
|
refreshLista();
|
||||||
|
|
||||||
txtNome.focus();
|
txtNome.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void verConfigCategoria(CategoriaCtrl cc) {
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
if (cc == null) {
|
private void verConfigCategoria(CategoriaCtrl cc) {
|
||||||
return;
|
if (cc == null) {
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Map args = new HashMap();
|
Map args = new HashMap();
|
||||||
args.put("categoriaCtrl", cc);
|
args.put("categoriaCtrl", cc);
|
||||||
args.put("categoriaCtrlList", categoriaCtrlList);
|
args.put("categoriaCtrlList", categoriaCtrlList);
|
||||||
|
|
||||||
openWindow("/gui/configuraciones_comerciales/editarConfiguracionCategorias.zul",
|
openWindow("/gui/configuraciones_comerciales/editarConfiguracionCategorias.zul",
|
||||||
Labels.getLabel("editarConfiguracionCategoriaController.window.title"), args, MODAL);
|
Labels.getLabel("editarConfiguracionCategoriaController.window.title"), args, MODAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refreshLista() {
|
private void refreshLista() {
|
||||||
HibernateSearchObject<CategoriaCtrl> configCategoriaBusqueda =
|
HibernateSearchObject<CategoriaCtrl> configCategoriaBusqueda =
|
||||||
new HibernateSearchObject<CategoriaCtrl>(CategoriaCtrl.class,
|
new HibernateSearchObject<CategoriaCtrl>(CategoriaCtrl.class,
|
||||||
pagingCategoriaCtrl.getPageSize());
|
pagingCategoriaCtrl.getPageSize());
|
||||||
|
|
||||||
if (!txtNome.getText().equals("")) {
|
if (!txtNome.getText().equals("")) {
|
||||||
configCategoriaBusqueda.addFilterLike("empresa.nombempresa", "%" + txtNome.getText().trim().concat("%"));
|
configCategoriaBusqueda.addFilterLike("empresa.nombempresa", "%" + txtNome.getText().trim().concat("%"));
|
||||||
}
|
}
|
||||||
|
|
||||||
configCategoriaBusqueda.addFilterEqual("empresa.activo", Boolean.TRUE);
|
configCategoriaBusqueda.addFilterEqual("empresa.activo", Boolean.TRUE);
|
||||||
configCategoriaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
configCategoriaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
configCategoriaBusqueda.addSortAsc("empresa.nombempresa");
|
configCategoriaBusqueda.addSortAsc("empresa.nombempresa");
|
||||||
|
|
||||||
plwpagingcategoriaCtrl.init(configCategoriaBusqueda, categoriaCtrlList, pagingCategoriaCtrl);
|
plwpagingcategoriaCtrl.init(configCategoriaBusqueda, categoriaCtrlList, pagingCategoriaCtrl);
|
||||||
|
|
||||||
if (categoriaCtrlList.getData().length == 0) {
|
if (categoriaCtrlList.getData().length == 0) {
|
||||||
try {
|
try {
|
||||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
Labels.getLabel("busquedaConfiguracionCategoriaController.window.title"),
|
Labels.getLabel("busquedaConfiguracionCategoriaController.window.title"),
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
} catch (InterruptedException ex) {
|
} catch (InterruptedException ex) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnPesquisa(Event ev) {
|
public void onClick$btnPesquisa(Event ev) {
|
||||||
refreshLista();
|
refreshLista();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnRefresh(Event ev) {
|
public void onClick$btnRefresh(Event ev) {
|
||||||
refreshLista();
|
refreshLista();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnNovo(Event ev) {
|
public void onClick$btnNovo(Event ev) {
|
||||||
verConfigCategoria(new CategoriaCtrl());
|
verConfigCategoria(new CategoriaCtrl());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -4,12 +4,8 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.CategoriaDescuento;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.zkoss.zk.ui.Component;
|
import org.zkoss.zk.ui.Component;
|
||||||
|
@ -18,6 +14,10 @@ import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zul.Radio;
|
import org.zkoss.zul.Radio;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.CategoriaDescuento;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author rodrigo
|
* @author rodrigo
|
||||||
|
@ -26,62 +26,76 @@ import org.zkoss.zul.Textbox;
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGenericForwardComposer {
|
public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
private static Logger log = LoggerFactory.getLogger(EditarConfiguracionCategoriaDatosCategoriaController.class);
|
private static final long serialVersionUID = 1L;
|
||||||
private CategoriaDescuento categoriaDescuento;
|
private CategoriaDescuento categoriaDescuento;
|
||||||
private MyListbox categoriaDescuentoList;
|
private MyListbox categoriaDescuentoList;
|
||||||
private Radio radioImp;
|
private Radio radioImp;
|
||||||
private Radio radioPor;
|
private Radio radioPor;
|
||||||
private Textbox descuentoPorc;
|
private Radio radioImprimePassagem;
|
||||||
private Textbox descuentoImporte;
|
private Radio radioNaoImprimePassagem;
|
||||||
|
private Textbox descuentoPorc;
|
||||||
|
private Textbox descuentoImporte;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
categoriaDescuentoList = (MyListbox) Executions.getCurrent().getArg().get("categoriaDescuentoList");
|
categoriaDescuentoList = (MyListbox) Executions.getCurrent().getArg().get("categoriaDescuentoList");
|
||||||
categoriaDescuento = (CategoriaDescuento) Executions.getCurrent().getArg().get("categoriaDescuento");
|
categoriaDescuento = (CategoriaDescuento) Executions.getCurrent().getArg().get("categoriaDescuento");
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
if ((categoriaDescuento.getDescuentoimporte() != null) && (!categoriaDescuento.getDescuentoimporte().equals(BigDecimal.ZERO))) {
|
if ((categoriaDescuento.getDescuentoimporte() != null) && (!categoriaDescuento.getDescuentoimporte().equals(BigDecimal.ZERO))) {
|
||||||
radioImp.setSelected(true);
|
radioImp.setSelected(true);
|
||||||
descuentoPorc.setDisabled(true);
|
descuentoPorc.setDisabled(true);
|
||||||
}
|
}
|
||||||
if ((categoriaDescuento.getDescuentoporc() != null) && (!categoriaDescuento.getDescuentoporc().equals(BigDecimal.ZERO))) {
|
|
||||||
radioPor.setSelected(true);
|
|
||||||
descuentoImporte.setDisabled(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
if ((categoriaDescuento.getDescuentoporc() != null) && (!categoriaDescuento.getDescuentoporc().equals(BigDecimal.ZERO))) {
|
||||||
|
radioPor.setSelected(true);
|
||||||
|
descuentoImporte.setDisabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) {
|
if ((categoriaDescuento.getIndImprimeBoleto() != null) && (categoriaDescuento.getIndImprimeBoleto())) {
|
||||||
categoriaDescuentoList.updateItem(categoriaDescuento);
|
radioImprimePassagem.setSelected(Boolean.TRUE);
|
||||||
this.closeWindow();
|
} else if ((categoriaDescuento.getIndImprimeBoleto() != null) && (!categoriaDescuento.getIndImprimeBoleto())) {
|
||||||
}
|
radioNaoImprimePassagem.setSelected(Boolean.TRUE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public CategoriaDescuento getCategoriaDescuento() {
|
public void onClick$btnSalvar(Event ev) {
|
||||||
return categoriaDescuento;
|
if (radioImprimePassagem.isSelected()) {
|
||||||
}
|
categoriaDescuento.setIndImprimeBoleto(Boolean.TRUE);
|
||||||
|
} else if (radioNaoImprimePassagem.isSelected()) {
|
||||||
|
categoriaDescuento.setIndImprimeBoleto(Boolean.FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
public void setCategoriaDescuento(CategoriaDescuento categoriaDescuento) {
|
categoriaDescuentoList.updateItem(categoriaDescuento);
|
||||||
this.categoriaDescuento = categoriaDescuento;
|
this.closeWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$radioImp(Event ev) {
|
public CategoriaDescuento getCategoriaDescuento() {
|
||||||
descuentoPorc.setDisabled(true);
|
return categoriaDescuento;
|
||||||
descuentoImporte.setDisabled(false);
|
}
|
||||||
|
|
||||||
descuentoPorc.setConstraint("");
|
public void setCategoriaDescuento(CategoriaDescuento categoriaDescuento) {
|
||||||
descuentoPorc.setValue("0");
|
this.categoriaDescuento = categoriaDescuento;
|
||||||
categoriaDescuento.setDescuentoporc(BigDecimal.ZERO);
|
}
|
||||||
descuentoImporte.setConstraint("no empty, no negative");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$radioPor(Event ev) {
|
public void onClick$radioImp(Event ev) {
|
||||||
descuentoImporte.setDisabled(true);
|
descuentoPorc.setDisabled(true);
|
||||||
descuentoPorc.setDisabled(false);
|
descuentoImporte.setDisabled(false);
|
||||||
|
|
||||||
descuentoImporte.setConstraint("");
|
descuentoPorc.setConstraint("");
|
||||||
descuentoImporte.setValue("0");
|
descuentoPorc.setValue("0");
|
||||||
categoriaDescuento.setDescuentoimporte(BigDecimal.ZERO);
|
categoriaDescuento.setDescuentoporc(BigDecimal.ZERO);
|
||||||
descuentoPorc.setConstraint("no empty, no zero, no negative");
|
descuentoImporte.setConstraint("no empty, no negative");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onClick$radioPor(Event ev) {
|
||||||
|
descuentoImporte.setDisabled(true);
|
||||||
|
descuentoPorc.setDisabled(false);
|
||||||
|
|
||||||
|
descuentoImporte.setConstraint("");
|
||||||
|
descuentoImporte.setValue("0");
|
||||||
|
categoriaDescuento.setDescuentoimporte(BigDecimal.ZERO);
|
||||||
|
descuentoPorc.setConstraint("no empty, no zero, no negative");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -283,11 +283,14 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Zona</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Zona</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ParamArticulo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ParamArticulo</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EventoExtra</value>
|
<value>com.rjconsultores.ventaboletos.entidad.EventoExtra</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TipoEventoExtra</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TipoEventoExtra
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.AjusteEventoExtra</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.AjusteEventoExtra
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TarjetaViaje</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TarjetaViaje</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Cliente</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Cliente</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ClienteDireccion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ClienteDireccion
|
||||||
|
</value>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
@ -315,13 +318,13 @@
|
||||||
<property name="jndiName" value="${database.jndi.name}" />
|
<property name="jndiName" value="${database.jndi.name}" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- <bean id="dataSource" -->
|
<!-- <bean id="dataSource" -->
|
||||||
<!-- class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
|
<!-- class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
|
||||||
<!-- <property name="driverClassName" value="${database.driver}" /> -->
|
<!-- <property name="driverClassName" value="${database.driver}" /> -->
|
||||||
<!-- <property name="url" value="${database.url}" /> -->
|
<!-- <property name="url" value="${database.url}" /> -->
|
||||||
<!-- <property name="username" value="${database.username}" /> -->
|
<!-- <property name="username" value="${database.username}" /> -->
|
||||||
<!-- <property name="password" value="${database.password}" /> -->
|
<!-- <property name="password" value="${database.password}" /> -->
|
||||||
<!-- </bean> -->
|
<!-- </bean> -->
|
||||||
|
|
||||||
<!-- ====================================================== -->
|
<!-- ====================================================== -->
|
||||||
<!-- Search class from Hibernate-Generic-DAO framework -->
|
<!-- Search class from Hibernate-Generic-DAO framework -->
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# <controler>. <id>. <propiedade> = XXX
|
# <controler>. <id>. <propiedade> = XXX
|
||||||
|
|
||||||
#Versao do VentaBoleto:
|
#Versao do VentaBoleto:
|
||||||
versao = ADM_20121212_1RC88
|
versao = ADM_20121214_1RC89
|
||||||
|
|
||||||
# MSG Defaut:
|
# MSG Defaut:
|
||||||
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
||||||
|
@ -952,7 +952,9 @@ editarConfiguracionCategoriaController.MSG.necesitaDescuento = Necessita inform
|
||||||
editarConfiguracionCategoriaController.MSG.necesitaMarca = Necessita informar uma marca.
|
editarConfiguracionCategoriaController.MSG.necesitaMarca = Necessita informar uma marca.
|
||||||
editarConfiguracionCategoriaController.MSG.necesitaMercado = Necessita informar um trecho.
|
editarConfiguracionCategoriaController.MSG.necesitaMercado = Necessita informar um trecho.
|
||||||
editarConfiguracionCategoriaController.MSG.necesitaClase = Necessita informar um tipo de classe.
|
editarConfiguracionCategoriaController.MSG.necesitaClase = Necessita informar um tipo de classe.
|
||||||
|
editarConfiguracionCategoriaController.lblImprimirPassagem.value = Impressão de Passagem
|
||||||
|
editarConfiguracionCategoriaController.lblImprimePassagem.value = Imprimir
|
||||||
|
editarConfiguracionCategoriaController.lblNaoImprimePassagem.value = Não Imprimir
|
||||||
|
|
||||||
# Detener a pantalla de Pesquisa
|
# Detener a pantalla de Pesquisa
|
||||||
busquedaCatalogoDeParadaController.window.title = Localidade
|
busquedaCatalogoDeParadaController.window.title = Localidade
|
||||||
|
|
|
@ -6,267 +6,332 @@
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
|
||||||
<window id="winEditarConfiguracionCategoria" border="normal"
|
<window id="winEditarConfiguracionCategoria" border="normal"
|
||||||
apply="${editarConfiguracionCategoriaController}"
|
apply="${editarConfiguracionCategoriaController}" height="540px"
|
||||||
height="540px" width="750px" contentStyle="overflow:auto"
|
width="750px" contentStyle="overflow:auto"
|
||||||
title="${c:l('editarConfiguracionCategoriaController.window.title')}">
|
title="${c:l('editarConfiguracionCategoriaController.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('editarConfiguracionCategoriaController.btnApagar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.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('editarConfiguracionCategoriaController.btnSalvar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.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="winEditarConfiguracionCategoria.detach()"
|
onClick="winEditarConfiguracionCategoria.detach()"
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnFechar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnFechar.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<tabbox>
|
<tabbox>
|
||||||
<tabs>
|
<tabs>
|
||||||
<tab id="tabEmpresa" label="${c:l('editarConfiguracionCategoriaController.tabConfiguracoes.label')}"/>
|
<tab id="tabEmpresa"
|
||||||
<tab id="tabDesconto" label="${c:l('editarConfiguracionCategoriaController.tabDesconto.label')}"/>
|
label="${c:l('editarConfiguracionCategoriaController.tabConfiguracoes.label')}" />
|
||||||
<tab id="tabMarca" label="${c:l('editarConfiguracionCategoriaController.tabMarca.label')}"/>
|
<tab id="tabDesconto"
|
||||||
<tab id="tabMercado" label="${c:l('editarConfiguracionCategoriaController.tabMercado.label')}"/>
|
label="${c:l('editarConfiguracionCategoriaController.tabDesconto.label')}" />
|
||||||
<tab id="tabClasse" label="${c:l('editarConfiguracionCategoriaController.tabClase.label')}"/>
|
<tab id="tabMarca"
|
||||||
<tab id="tabCorrida" label="${c:l('editarConfiguracionCategoriaController.tabCorrida.label')}"/>
|
label="${c:l('editarConfiguracionCategoriaController.tabMarca.label')}" />
|
||||||
</tabs>
|
<tab id="tabMercado"
|
||||||
<tabpanels>
|
label="${c:l('editarConfiguracionCategoriaController.tabMercado.label')}" />
|
||||||
<tabpanel>
|
<tab id="tabClasse"
|
||||||
<grid fixedLayout="true">
|
label="${c:l('editarConfiguracionCategoriaController.tabClase.label')}" />
|
||||||
<columns>
|
<tab id="tabCorrida"
|
||||||
<column width="25%" />
|
label="${c:l('editarConfiguracionCategoriaController.tabCorrida.label')}" />
|
||||||
<column width="75%" />
|
</tabs>
|
||||||
</columns>
|
<tabpanels>
|
||||||
<rows>
|
<tabpanel>
|
||||||
<row>
|
<grid fixedLayout="true">
|
||||||
<label id="lblEmpresa" value="${c:l('editarConfiguracionCategoriaController.lblEmpresa.value')}"/>
|
<columns>
|
||||||
<combobox id="cmbEmpresas" constraint="no empty" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
<column width="25%" />
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
<column width="75%" />
|
||||||
model="@{winEditarConfiguracionCategoria$composer.lsEmpresas}"
|
</columns>
|
||||||
selectedItem="@{winEditarConfiguracionCategoria$composer.categoriaCTRL.empresa}"/>
|
<rows>
|
||||||
</row>
|
<row>
|
||||||
</rows>
|
<label id="lblEmpresa"
|
||||||
</grid>
|
value="${c:l('editarConfiguracionCategoriaController.lblEmpresa.value')}" />
|
||||||
</tabpanel>
|
<combobox id="cmbEmpresas"
|
||||||
<tabpanel height="420px">
|
constraint="no empty"
|
||||||
<!-- Desconto -->
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<grid fixedLayout="true">
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
<columns>
|
model="@{winEditarConfiguracionCategoria$composer.lsEmpresas}"
|
||||||
<column width="20%" />
|
selectedItem="@{winEditarConfiguracionCategoria$composer.categoriaCTRL.empresa}" />
|
||||||
<column width="80%" />
|
</row>
|
||||||
</columns>
|
</rows>
|
||||||
<rows>
|
</grid>
|
||||||
<row>
|
</tabpanel>
|
||||||
<label id="lblCategorias" value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}"/>
|
<tabpanel height="420px">
|
||||||
<combobox id="cmbCategorias" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
<!-- Desconto -->
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
<grid fixedLayout="true">
|
||||||
model="@{winEditarConfiguracionCategoria$composer.lsCategorias}"/>
|
<columns>
|
||||||
</row>
|
<column width="30%" />
|
||||||
<row>
|
<column width="70%" />
|
||||||
<label id="lblCantAutorizada" value="${c:l('editarConfiguracionCategoriaController.lblCantAutorizada.value')}"/>
|
</columns>
|
||||||
<intbox id="cantAutorizada" constraint="no empty, no zero" width="50%" maxlength="3"/>
|
<rows>
|
||||||
</row>
|
<row>
|
||||||
<row>
|
<label id="lblCategorias"
|
||||||
<label value="${c:l('editarConfiguracionCategoriaController.lblDescuento.value')}"/>
|
value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}" />
|
||||||
<radiogroup Id="descuento" >
|
<combobox id="cmbCategorias"
|
||||||
<radio id="radioImp" label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}"/>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<radio id="radioPor" label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}"/>
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
</radiogroup>
|
model="@{winEditarConfiguracionCategoria$composer.lsCategorias}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label id="lblCantAutorizada"
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.lblCantAutorizada.value')}" />
|
||||||
|
<intbox id="cantAutorizada"
|
||||||
|
constraint="no empty, no zero" width="50%" maxlength="3" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.lblDescuento.value')}" />
|
||||||
|
<radiogroup Id="descuento">
|
||||||
|
<radio id="radioImp"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}" />
|
||||||
|
<radio id="radioPor"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}" />
|
||||||
|
</radiogroup>
|
||||||
|
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label id="lblDescuentoImporte" value="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}"/>
|
<label
|
||||||
<decimalbox id="descuentoImporte" constraint="no empty" width="50%" maxlength="9" />
|
value="${c:l('editarConfiguracionCategoriaController.lblImprimirPassagem.value')}" />
|
||||||
</row>
|
<radiogroup Id="rdgImpressao">
|
||||||
<row>
|
<radio id="radioImprimePassagem"
|
||||||
<label id="lblDescuentoPorc" value="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}"/>
|
selected="true"
|
||||||
<decimalbox id="descuentoPorc" constraint="no empty" width="50%" maxlength="9" />
|
label="${c:l('editarConfiguracionCategoriaController.lblImprimePassagem.value')}" />
|
||||||
</row>
|
<radio id="radioNaoImprimePassagem"
|
||||||
<row>
|
label="${c:l('editarConfiguracionCategoriaController.lblNaoImprimePassagem.value')}" />
|
||||||
<label value=" " />
|
</radiogroup>
|
||||||
<hbox>
|
</row>
|
||||||
<button id="btnAdicionarDesconto" height="20"
|
<row>
|
||||||
image="/gui/img/add.png" width="35px"
|
<label id="lblDescuentoImporte"
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddCorrida.tooltiptext')}"/>
|
value="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}" />
|
||||||
<button id="btnRemoverDesconto" height="20"
|
<decimalbox id="descuentoImporte"
|
||||||
image="/gui/img/remove.png" width="35px"
|
constraint="no empty" width="50%" maxlength="9" />
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnBorrarCorrida.tooltiptext')}"/>
|
</row>
|
||||||
<button id="btnEditarDatosCategoria"
|
<row>
|
||||||
label="${c:l('editarConfiguracionCategoriaController.btnEditarDatosCategoria.value')}"
|
<label id="lblDescuentoPorc"
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnEditarDatosCategoria.tooltiptext')}"/>
|
value="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}" />
|
||||||
<button id="btnAdicionarPeriodo"
|
<decimalbox id="descuentoPorc"
|
||||||
label="${c:l('editarConfiguracionCategoriaController.btnAgregarPeriodo.value')}"
|
constraint="no empty" width="50%" maxlength="9" />
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAgregarPeriodo.tooltiptext')}"/>
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value=" " />
|
||||||
|
<hbox>
|
||||||
|
<button id="btnAdicionarDesconto"
|
||||||
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddCorrida.tooltiptext')}" />
|
||||||
|
<button id="btnRemoverDesconto"
|
||||||
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnBorrarCorrida.tooltiptext')}" />
|
||||||
|
<button id="btnEditarDatosCategoria"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.btnEditarDatosCategoria.value')}"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnEditarDatosCategoria.tooltiptext')}" />
|
||||||
|
<button id="btnAdicionarPeriodo"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.btnAgregarPeriodo.value')}"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAgregarPeriodo.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<listbox id="categoriaDescuentoList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
width="150px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}"
|
||||||
|
sort="auto(categoria.desccategoria)" />
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
width="150px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblCantAutorizada.value')}"
|
||||||
|
sort="auto(cantautorizada)" />
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
width="90px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}"
|
||||||
|
sort="auto(descuentoimporte)" />
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
width="100px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}"
|
||||||
|
sort="auto(descuentoporc)" />
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaControllerPeriodo.window.title')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</tabpanel>
|
||||||
|
<tabpanel height="420px">
|
||||||
|
<!-- Marca -->
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="80%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.tabMarca.label')}" />
|
||||||
|
<hbox>
|
||||||
|
<combobox id="cmbMarca"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
model="@{winEditarConfiguracionCategoria$composer.lsMarcas}" />
|
||||||
|
<button id="btnAdicionarMarca"
|
||||||
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddMarca.tooltiptext')}" />
|
||||||
|
<button id="btnRemoverMarca"
|
||||||
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnBorrarMarca.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<listbox id="categoriaMarcaList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader id="lhCategoriaMarca"
|
||||||
|
image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.tabMarca.label')}"
|
||||||
|
sort="auto(marca.descmarca)" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</tabpanel>
|
||||||
|
<tabpanel height="420px">
|
||||||
|
<!-- Mercado -->
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="80%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.lblOrigen.value')}" />
|
||||||
|
<combobox id="cmbParadaOrigem"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.lblDestino.value')}" />
|
||||||
|
<combobox id="cmbParadaDestino"
|
||||||
|
autodrop="false"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value=" " />
|
||||||
|
<hbox>
|
||||||
|
<button id="btnAdicionarMercado"
|
||||||
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddMercado.tooltiptext')}" />
|
||||||
|
<button id="btnRemoverMercado"
|
||||||
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnBorrarMercado.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<listbox id="categoriaMercadoList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblOrigen.value')}"
|
||||||
|
sort="auto(origem.descparada)" />
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblDestino.value')}"
|
||||||
|
sort="auto(destino.descparada)" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</tabpanel>
|
||||||
|
<tabpanel height="420px">
|
||||||
|
<!-- Clase -->
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="80%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.tabClase.label')}" />
|
||||||
|
<hbox>
|
||||||
|
<combobox id="cmbClase"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
model="@{winEditarConfiguracionCategoria$composer.lsClaseServicio}" />
|
||||||
|
<button id="btnAdicionarClase"
|
||||||
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddClase.tooltiptext')}" />
|
||||||
|
<button id="btnRemoverClase"
|
||||||
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnBorrarClase.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<listbox id="categoriaClaseList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader id="lhCategoriaClase"
|
||||||
|
image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.tabClase.label')}"
|
||||||
|
sort="auto(claseServicio.descclase)" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</tabpanel>
|
||||||
|
<tabpanel height="420px">
|
||||||
|
<!-- Corrida -->
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="80%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.tabCorrida.label')}" />
|
||||||
|
<hbox>
|
||||||
|
|
||||||
</hbox>
|
<intbox id="idCorrida"
|
||||||
</row>
|
constraint="no empty, no negative, no zero" maxlength="8" />
|
||||||
</rows>
|
<button id="btnAdicionarCorrida"
|
||||||
</grid>
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
<listbox id="categoriaDescuentoList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddCorrida.tooltiptext')}" />
|
||||||
vflex="true" multiple="false">
|
<button id="btnRemoverCorrida"
|
||||||
<listhead sizable="true">
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
<listheader image="/gui/img/create_doc.gif" width="150px"
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnBorrarCorrida.tooltiptext')}" />
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}" sort="auto(categoria.desccategoria)"/>
|
</hbox>
|
||||||
<listheader image="/gui/img/create_doc.gif" width="150px"
|
</row>
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblCantAutorizada.value')}" sort="auto(cantautorizada)"/>
|
</rows>
|
||||||
<listheader image="/gui/img/create_doc.gif" width="90px"
|
</grid>
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}" sort="auto(descuentoimporte)"/>
|
<listbox id="categoriaCorridaList"
|
||||||
<listheader image="/gui/img/create_doc.gif" width="100px"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}" sort="auto(descuentoporc)"/>
|
multiple="false">
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listhead sizable="true">
|
||||||
label="${c:l('editarConfiguracionCategoriaControllerPeriodo.window.title')}"/>
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
</listhead>
|
label="${c:l('editarConfiguracionCategoriaController.tabCorrida.label')}"
|
||||||
</listbox>
|
sort="auto(corridaCtrl.corridaId)" />
|
||||||
</tabpanel>
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
<tabpanel height="420px">
|
label="${c:l('editarConfiguracionCategoriaController.tabCorridaHorario.label')}"
|
||||||
<!-- Marca -->
|
sort="auto(corridaCtrl.horario)" />
|
||||||
<grid fixedLayout="true">
|
</listhead>
|
||||||
<columns>
|
</listbox>
|
||||||
<column width="20%" />
|
</tabpanel>
|
||||||
<column width="80%" />
|
|
||||||
</columns>
|
|
||||||
<rows>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('editarConfiguracionCategoriaController.tabMarca.label')}"/>
|
|
||||||
<hbox>
|
|
||||||
<combobox id="cmbMarca" constraint="no empty" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
|
||||||
model="@{winEditarConfiguracionCategoria$composer.lsMarcas}"/>
|
|
||||||
<button id="btnAdicionarMarca" height="20"
|
|
||||||
image="/gui/img/add.png" width="35px"
|
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddMarca.tooltiptext')}"/>
|
|
||||||
<button id="btnRemoverMarca" height="20"
|
|
||||||
image="/gui/img/remove.png" width="35px"
|
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnBorrarMarca.tooltiptext')}"/>
|
|
||||||
</hbox>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
<listbox id="categoriaMarcaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
||||||
vflex="true" multiple="false">
|
|
||||||
<listhead sizable="true">
|
|
||||||
<listheader id="lhCategoriaMarca" image="/gui/img/create_doc.gif"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.tabMarca.label')}" sort="auto(marca.descmarca)"/>
|
|
||||||
</listhead>
|
|
||||||
</listbox>
|
|
||||||
</tabpanel>
|
|
||||||
<tabpanel height="420px">
|
|
||||||
<!-- Mercado -->
|
|
||||||
<grid fixedLayout="true">
|
|
||||||
<columns>
|
|
||||||
<column width="20%" />
|
|
||||||
<column width="80%" />
|
|
||||||
</columns>
|
|
||||||
<rows>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('editarConfiguracionCategoriaController.lblOrigen.value')}"/>
|
|
||||||
<combobox id="cmbParadaOrigem" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
|
||||||
mold="rounded" buttonVisible="true" width="90%"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('editarConfiguracionCategoriaController.lblDestino.value')}"/>
|
|
||||||
<combobox id="cmbParadaDestino" autodrop="false" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
|
||||||
mold="rounded" buttonVisible="true" width="90%"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value=" "/>
|
|
||||||
<hbox>
|
|
||||||
<button id="btnAdicionarMercado" height="20"
|
|
||||||
image="/gui/img/add.png" width="35px"
|
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddMercado.tooltiptext')}"/>
|
|
||||||
<button id="btnRemoverMercado" height="20"
|
|
||||||
image="/gui/img/remove.png" width="35px"
|
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnBorrarMercado.tooltiptext')}"/>
|
|
||||||
</hbox>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
<listbox id="categoriaMercadoList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
||||||
vflex="true" multiple="false">
|
|
||||||
<listhead sizable="true">
|
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblOrigen.value')}" sort="auto(origem.descparada)"/>
|
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblDestino.value')}" sort="auto(destino.descparada)"/>
|
|
||||||
</listhead>
|
|
||||||
</listbox>
|
|
||||||
</tabpanel>
|
|
||||||
<tabpanel height="420px">
|
|
||||||
<!-- Clase -->
|
|
||||||
<grid fixedLayout="true">
|
|
||||||
<columns>
|
|
||||||
<column width="20%" />
|
|
||||||
<column width="80%" />
|
|
||||||
</columns>
|
|
||||||
<rows>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('editarConfiguracionCategoriaController.tabClase.label')}"/>
|
|
||||||
<hbox>
|
|
||||||
<combobox id="cmbClase" constraint="no empty" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
|
||||||
model="@{winEditarConfiguracionCategoria$composer.lsClaseServicio}"/>
|
|
||||||
<button id="btnAdicionarClase" height="20"
|
|
||||||
image="/gui/img/add.png" width="35px"
|
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddClase.tooltiptext')}"/>
|
|
||||||
<button id="btnRemoverClase" height="20"
|
|
||||||
image="/gui/img/remove.png" width="35px"
|
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnBorrarClase.tooltiptext')}"/>
|
|
||||||
</hbox>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
<listbox id="categoriaClaseList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
||||||
multiple="false">
|
|
||||||
<listhead sizable="true">
|
|
||||||
<listheader id="lhCategoriaClase" image="/gui/img/create_doc.gif"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.tabClase.label')}" sort="auto(claseServicio.descclase)"/>
|
|
||||||
</listhead>
|
|
||||||
</listbox>
|
|
||||||
</tabpanel>
|
|
||||||
<tabpanel height="420px">
|
|
||||||
<!-- Corrida -->
|
|
||||||
<grid fixedLayout="true">
|
|
||||||
<columns>
|
|
||||||
<column width="20%" />
|
|
||||||
<column width="80%" />
|
|
||||||
</columns>
|
|
||||||
<rows>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('editarConfiguracionCategoriaController.tabCorrida.label')}"/>
|
|
||||||
<hbox>
|
|
||||||
|
|
||||||
<intbox id="idCorrida" constraint="no empty, no negative, no zero" maxlength="8"/>
|
</tabpanels>
|
||||||
<button id="btnAdicionarCorrida" height="20"
|
</tabbox>
|
||||||
image="/gui/img/add.png" width="35px"
|
<popup id="mail" width="300px">
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddCorrida.tooltiptext')}"/>
|
<html>
|
||||||
<button id="btnRemoverCorrida" height="20"
|
"Haga Double Click en Grid para agregar el período del
|
||||||
image="/gui/img/remove.png" width="35px"
|
descuento."
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnBorrarCorrida.tooltiptext')}"/>
|
</html>
|
||||||
</hbox>
|
</popup>
|
||||||
</row>
|
</window>
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
<listbox id="categoriaCorridaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
||||||
multiple="false">
|
|
||||||
<listhead sizable="true">
|
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.tabCorrida.label')}" sort="auto(corridaCtrl.corridaId)"/>
|
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.tabCorridaHorario.label')}" sort="auto(corridaCtrl.horario)"/>
|
|
||||||
</listhead>
|
|
||||||
</listbox>
|
|
||||||
</tabpanel>
|
|
||||||
|
|
||||||
</tabpanels>
|
|
||||||
</tabbox>
|
|
||||||
<popup id="mail" width="300px">
|
|
||||||
<html>
|
|
||||||
"Haga Double Click en Grid para agregar el período del descuento."
|
|
||||||
</html>
|
|
||||||
</popup>
|
|
||||||
</window>
|
|
||||||
</zk>
|
</zk>
|
||||||
|
|
|
@ -5,55 +5,82 @@
|
||||||
<?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="winEditarConfiguracionCategoriasDatosCategoria" border="normal"
|
<window id="winEditarConfiguracionCategoriasDatosCategoria"
|
||||||
title="${c:l('editarConfiguracionCategoriaController.window.title')}"
|
border="normal"
|
||||||
apply="${editarConfiguracionCategoriaDatosCategoriaController}"
|
title="${c:l('editarConfiguracionCategoriaController.window.title')}"
|
||||||
width="350px" height="215px" contentStyle="overflow:auto">
|
apply="${editarConfiguracionCategoriaDatosCategoriaController}"
|
||||||
<toolbar>
|
width="400px" contentStyle="overflow:auto">
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<toolbar>
|
||||||
<button id="btnSalvar" height="20"
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
image="/gui/img/save.png" width="35px"
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnSalvar.tooltiptext')}" />
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winEditarConfiguracionCategoriasDatosCategoria.detach()"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnFechar.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnSalvar.tooltiptext')}"/>
|
<!--Periodo-->
|
||||||
<button id="btnFechar" height="20"
|
<grid fixedLayout="true">
|
||||||
image="/gui/img/exit.png" width="35px"
|
<columns>
|
||||||
onClick="winEditarConfiguracionCategoriasDatosCategoria.detach()"
|
<column width="45%" />
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnFechar.tooltiptext')}"/>
|
<column width="55%" />
|
||||||
</hbox>
|
</columns>
|
||||||
</toolbar>
|
<rows>
|
||||||
|
<row>
|
||||||
<!--Periodo-->
|
<label id="lblCategorias"
|
||||||
<grid fixedLayout="true">
|
value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}" />
|
||||||
<columns>
|
<textbox id="txtCategoria" width="90%"
|
||||||
<column width="40%" />
|
value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.categoria.desccategoria}"
|
||||||
<column width="60%" />
|
disabled="true" />
|
||||||
</columns>
|
</row>
|
||||||
<rows>
|
<row>
|
||||||
<row>
|
<label id="lblCantAutorizada"
|
||||||
<label id="lblCategorias" value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}"/>
|
value="${c:l('editarConfiguracionCategoriaController.lblCantAutorizada.value')}" />
|
||||||
<textbox id="txtCategoria" width="90%" value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.categoria.desccategoria}" disabled="true" />
|
<intbox id="cantAutorizada"
|
||||||
</row>
|
constraint="no empty, no zero" width="50%" maxlength="3"
|
||||||
<row>
|
value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.cantautorizada}" />
|
||||||
<label id="lblCantAutorizada" value="${c:l('editarConfiguracionCategoriaController.lblCantAutorizada.value')}"/>
|
</row>
|
||||||
<intbox id="cantAutorizada" constraint="no empty, no zero" width="50%" maxlength="3" value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.cantautorizada}" />
|
<row>
|
||||||
</row>
|
<label
|
||||||
<row>
|
value="${c:l('editarConfiguracionCategoriaController.lblDescuento.value')}" />
|
||||||
<label value="${c:l('editarConfiguracionCategoriaController.lblDescuento.value')}"/>
|
<radiogroup Id="descuento">
|
||||||
<radiogroup Id="descuento" >
|
<radio id="radioImp"
|
||||||
<radio id="radioImp" label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}"/>
|
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}" />
|
||||||
<radio id="radioPor" label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}"/>
|
<radio id="radioPor"
|
||||||
</radiogroup>
|
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}" />
|
||||||
|
</radiogroup>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label id="lblDescuentoImporte" value="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}"/>
|
<label
|
||||||
<textbox id="descuentoImporte" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2" constraint="no empty" width="50%" maxlength="9" value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.descuentoimporte,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
value="${c:l('editarConfiguracionCategoriaController.lblImprimirPassagem.value')}" />
|
||||||
</row>
|
<radiogroup Id="rdgImpressao">
|
||||||
<row>
|
<radio id="radioImprimePassagem"
|
||||||
<label id="lblDescuentoPorc" value="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}"/>
|
label="${c:l('editarConfiguracionCategoriaController.lblImprimePassagem.value')}" />
|
||||||
<textbox id="descuentoPorc" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" maxValue="100" constraint="no empty" width="50%" maxlength="9" value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.descuentoporc,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
<radio id="radioNaoImprimePassagem"
|
||||||
</row>
|
label="${c:l('editarConfiguracionCategoriaController.lblNaoImprimePassagem.value')}" />
|
||||||
</rows>
|
</radiogroup>
|
||||||
</grid>
|
</row>
|
||||||
</window>
|
<row>
|
||||||
|
<label id="lblDescuentoImporte"
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}" />
|
||||||
|
<textbox id="descuentoImporte"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||||
|
precision="7" scale="2" constraint="no empty" width="50%"
|
||||||
|
maxlength="9"
|
||||||
|
value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.descuentoimporte,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label id="lblDescuentoPorc"
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}" />
|
||||||
|
<textbox id="descuentoPorc"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||||
|
maxValue="100" constraint="no empty" width="50%" maxlength="9"
|
||||||
|
value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.descuentoporc,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
</window>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
Loading…
Reference in New Issue