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")
|
||||
public class BusquedaCategoriaController extends MyGenericForwardComposer {
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<Categoria> plwCategoria;
|
||||
private MyListbox categoriaList;
|
||||
private Paging pagingCategoria;
|
||||
private Textbox txtNombre;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<Categoria> plwCategoria;
|
||||
private MyListbox categoriaList;
|
||||
private Paging pagingCategoria;
|
||||
private Textbox txtNombre;
|
||||
|
||||
public Paging getPagingCategoria() {
|
||||
return pagingCategoria;
|
||||
}
|
||||
public Paging getPagingCategoria() {
|
||||
return pagingCategoria;
|
||||
}
|
||||
|
||||
public void setPagingCategoria(Paging pagingCategoria) {
|
||||
this.pagingCategoria = pagingCategoria;
|
||||
}
|
||||
public void setPagingCategoria(Paging pagingCategoria) {
|
||||
this.pagingCategoria = pagingCategoria;
|
||||
}
|
||||
|
||||
public MyListbox getCategoriaList() {
|
||||
return categoriaList;
|
||||
}
|
||||
public MyListbox getCategoriaList() {
|
||||
return categoriaList;
|
||||
}
|
||||
|
||||
public void setCategoriaList(MyListbox categoriaList) {
|
||||
this.categoriaList = categoriaList;
|
||||
}
|
||||
public void setCategoriaList(MyListbox categoriaList) {
|
||||
this.categoriaList = categoriaList;
|
||||
}
|
||||
|
||||
public PagedListWrapper<Categoria> getPlwCategoria() {
|
||||
return plwCategoria;
|
||||
}
|
||||
public PagedListWrapper<Categoria> getPlwCategoria() {
|
||||
return plwCategoria;
|
||||
}
|
||||
|
||||
public void setPlwCategoria(PagedListWrapper<Categoria> plwCategoria) {
|
||||
this.plwCategoria = plwCategoria;
|
||||
}
|
||||
public void setPlwCategoria(PagedListWrapper<Categoria> plwCategoria) {
|
||||
this.plwCategoria = plwCategoria;
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verPeriodo(new Categoria());
|
||||
}
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verPeriodo(new Categoria());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
categoriaList.setItemRenderer(new RenderCategoria());
|
||||
categoriaList.addEventListener("onDoubleClick", new EventListener() {
|
||||
categoriaList.setItemRenderer(new RenderCategoria());
|
||||
categoriaList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
Categoria c = (Categoria) categoriaList.getSelected();
|
||||
verPeriodo(c);
|
||||
}
|
||||
});
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
Categoria c = (Categoria) categoriaList.getSelected();
|
||||
verPeriodo(c);
|
||||
}
|
||||
});
|
||||
|
||||
refreshLista();
|
||||
refreshLista();
|
||||
|
||||
txtNombre.focus();
|
||||
}
|
||||
txtNombre.focus();
|
||||
}
|
||||
|
||||
private void verPeriodo(Categoria c) {
|
||||
if (c == null) {
|
||||
return;
|
||||
}
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verPeriodo(Categoria c) {
|
||||
if (c == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("categoria", c);
|
||||
args.put("categoriaList", categoriaList);
|
||||
Map args = new HashMap();
|
||||
args.put("categoria", c);
|
||||
args.put("categoriaList", categoriaList);
|
||||
|
||||
openWindow("/gui/catalogos/editarCategoria.zul",
|
||||
Labels.getLabel("editarCategoriaController.window.title"), args, MODAL);
|
||||
}
|
||||
openWindow("/gui/catalogos/editarCategoria.zul",
|
||||
Labels.getLabel("editarCategoriaController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<Categoria> claseServicioBusqueda =
|
||||
new HibernateSearchObject<Categoria>(Categoria.class, pagingCategoria.getPageSize());
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<Categoria> claseServicioBusqueda =
|
||||
new HibernateSearchObject<Categoria>(Categoria.class, pagingCategoria.getPageSize());
|
||||
|
||||
claseServicioBusqueda.addFilterLike("desccategoria", "%" + txtNombre.getText().trim().concat("%"));
|
||||
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
claseServicioBusqueda.addFilterNotEqual("categoriaId", -1);
|
||||
claseServicioBusqueda.addSortAsc("desccategoria");
|
||||
claseServicioBusqueda.addFilterLike("desccategoria", "%" + txtNombre.getText().trim().concat("%"));
|
||||
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
claseServicioBusqueda.addFilterNotEqual("categoriaId", -1);
|
||||
claseServicioBusqueda.addSortAsc("desccategoria");
|
||||
|
||||
plwCategoria.init(claseServicioBusqueda, categoriaList, pagingCategoria);
|
||||
if (categoriaList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("busquedaCategoriaController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
plwCategoria.init(claseServicioBusqueda, categoriaList, pagingCategoria);
|
||||
if (categoriaList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("busquedaCategoriaController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,102 +31,104 @@ import org.zkoss.zul.Textbox;
|
|||
@Scope("prototype")
|
||||
public class BusquedaConfiguracionCategoriaController extends MyGenericForwardComposer {
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<CategoriaCtrl> plwpagingcategoriaCtrl;
|
||||
private MyListbox categoriaCtrlList;
|
||||
private Paging pagingCategoriaCtrl;
|
||||
private Textbox txtNome;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<CategoriaCtrl> plwpagingcategoriaCtrl;
|
||||
private MyListbox categoriaCtrlList;
|
||||
private Paging pagingCategoriaCtrl;
|
||||
private Textbox txtNome;
|
||||
|
||||
public MyListbox getConfigCategoriaList() {
|
||||
return categoriaCtrlList;
|
||||
}
|
||||
public MyListbox getConfigCategoriaList() {
|
||||
return categoriaCtrlList;
|
||||
}
|
||||
|
||||
public void setConfigCategoriaList(MyListbox configCategoriaList) {
|
||||
this.categoriaCtrlList = configCategoriaList;
|
||||
}
|
||||
public void setConfigCategoriaList(MyListbox configCategoriaList) {
|
||||
this.categoriaCtrlList = configCategoriaList;
|
||||
}
|
||||
|
||||
public Paging getPagingConfigCategoria() {
|
||||
return pagingCategoriaCtrl;
|
||||
}
|
||||
public Paging getPagingConfigCategoria() {
|
||||
return pagingCategoriaCtrl;
|
||||
}
|
||||
|
||||
public void setPagingConfigCategoria(Paging pagingConfigCategoria) {
|
||||
this.pagingCategoriaCtrl = pagingConfigCategoria;
|
||||
}
|
||||
public void setPagingConfigCategoria(Paging pagingConfigCategoria) {
|
||||
this.pagingCategoriaCtrl = pagingConfigCategoria;
|
||||
}
|
||||
|
||||
public Textbox getTxtNome() {
|
||||
return txtNome;
|
||||
}
|
||||
public Textbox getTxtNome() {
|
||||
return txtNome;
|
||||
}
|
||||
|
||||
public void setTxtNome(Textbox txtNome) {
|
||||
this.txtNome = txtNome;
|
||||
}
|
||||
public void setTxtNome(Textbox txtNome) {
|
||||
this.txtNome = txtNome;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
categoriaCtrlList.setItemRenderer(new RenderCategoriaDescuento());
|
||||
categoriaCtrlList.addEventListener("onDoubleClick", new EventListener() {
|
||||
categoriaCtrlList.setItemRenderer(new RenderCategoriaDescuento());
|
||||
categoriaCtrlList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
CategoriaCtrl cc = (CategoriaCtrl) categoriaCtrlList.getSelected();
|
||||
verConfigCategoria(cc);
|
||||
}
|
||||
});
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
CategoriaCtrl cc = (CategoriaCtrl) categoriaCtrlList.getSelected();
|
||||
verConfigCategoria(cc);
|
||||
}
|
||||
});
|
||||
|
||||
refreshLista();
|
||||
refreshLista();
|
||||
|
||||
txtNome.focus();
|
||||
}
|
||||
txtNome.focus();
|
||||
}
|
||||
|
||||
private void verConfigCategoria(CategoriaCtrl cc) {
|
||||
if (cc == null) {
|
||||
return;
|
||||
}
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verConfigCategoria(CategoriaCtrl cc) {
|
||||
if (cc == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("categoriaCtrl", cc);
|
||||
args.put("categoriaCtrlList", categoriaCtrlList);
|
||||
Map args = new HashMap();
|
||||
args.put("categoriaCtrl", cc);
|
||||
args.put("categoriaCtrlList", categoriaCtrlList);
|
||||
|
||||
openWindow("/gui/configuraciones_comerciales/editarConfiguracionCategorias.zul",
|
||||
Labels.getLabel("editarConfiguracionCategoriaController.window.title"), args, MODAL);
|
||||
}
|
||||
openWindow("/gui/configuraciones_comerciales/editarConfiguracionCategorias.zul",
|
||||
Labels.getLabel("editarConfiguracionCategoriaController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<CategoriaCtrl> configCategoriaBusqueda =
|
||||
new HibernateSearchObject<CategoriaCtrl>(CategoriaCtrl.class,
|
||||
pagingCategoriaCtrl.getPageSize());
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<CategoriaCtrl> configCategoriaBusqueda =
|
||||
new HibernateSearchObject<CategoriaCtrl>(CategoriaCtrl.class,
|
||||
pagingCategoriaCtrl.getPageSize());
|
||||
|
||||
if (!txtNome.getText().equals("")) {
|
||||
configCategoriaBusqueda.addFilterLike("empresa.nombempresa", "%" + txtNome.getText().trim().concat("%"));
|
||||
}
|
||||
if (!txtNome.getText().equals("")) {
|
||||
configCategoriaBusqueda.addFilterLike("empresa.nombempresa", "%" + txtNome.getText().trim().concat("%"));
|
||||
}
|
||||
|
||||
configCategoriaBusqueda.addFilterEqual("empresa.activo", Boolean.TRUE);
|
||||
configCategoriaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
configCategoriaBusqueda.addSortAsc("empresa.nombempresa");
|
||||
configCategoriaBusqueda.addFilterEqual("empresa.activo", Boolean.TRUE);
|
||||
configCategoriaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
configCategoriaBusqueda.addSortAsc("empresa.nombempresa");
|
||||
|
||||
plwpagingcategoriaCtrl.init(configCategoriaBusqueda, categoriaCtrlList, pagingCategoriaCtrl);
|
||||
plwpagingcategoriaCtrl.init(configCategoriaBusqueda, categoriaCtrlList, pagingCategoriaCtrl);
|
||||
|
||||
if (categoriaCtrlList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("busquedaConfiguracionCategoriaController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (categoriaCtrlList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("busquedaConfiguracionCategoriaController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
public void onClick$btnPesquisa(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verConfigCategoria(new CategoriaCtrl());
|
||||
}
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
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;
|
||||
|
||||
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 org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
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.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.CategoriaDescuento;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author rodrigo
|
||||
|
@ -26,62 +26,76 @@ import org.zkoss.zul.Textbox;
|
|||
@Scope("prototype")
|
||||
public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGenericForwardComposer {
|
||||
|
||||
private static Logger log = LoggerFactory.getLogger(EditarConfiguracionCategoriaDatosCategoriaController.class);
|
||||
private CategoriaDescuento categoriaDescuento;
|
||||
private MyListbox categoriaDescuentoList;
|
||||
private Radio radioImp;
|
||||
private Radio radioPor;
|
||||
private Textbox descuentoPorc;
|
||||
private Textbox descuentoImporte;
|
||||
private static final long serialVersionUID = 1L;
|
||||
private CategoriaDescuento categoriaDescuento;
|
||||
private MyListbox categoriaDescuentoList;
|
||||
private Radio radioImp;
|
||||
private Radio radioPor;
|
||||
private Radio radioImprimePassagem;
|
||||
private Radio radioNaoImprimePassagem;
|
||||
private Textbox descuentoPorc;
|
||||
private Textbox descuentoImporte;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
categoriaDescuentoList = (MyListbox) Executions.getCurrent().getArg().get("categoriaDescuentoList");
|
||||
categoriaDescuento = (CategoriaDescuento) Executions.getCurrent().getArg().get("categoriaDescuento");
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
categoriaDescuentoList = (MyListbox) Executions.getCurrent().getArg().get("categoriaDescuentoList");
|
||||
categoriaDescuento = (CategoriaDescuento) Executions.getCurrent().getArg().get("categoriaDescuento");
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
if ((categoriaDescuento.getDescuentoimporte() != null) && (!categoriaDescuento.getDescuentoimporte().equals(BigDecimal.ZERO))) {
|
||||
radioImp.setSelected(true);
|
||||
descuentoPorc.setDisabled(true);
|
||||
}
|
||||
if ((categoriaDescuento.getDescuentoporc() != null) && (!categoriaDescuento.getDescuentoporc().equals(BigDecimal.ZERO))) {
|
||||
radioPor.setSelected(true);
|
||||
descuentoImporte.setDisabled(true);
|
||||
}
|
||||
if ((categoriaDescuento.getDescuentoimporte() != null) && (!categoriaDescuento.getDescuentoimporte().equals(BigDecimal.ZERO))) {
|
||||
radioImp.setSelected(true);
|
||||
descuentoPorc.setDisabled(true);
|
||||
}
|
||||
|
||||
}
|
||||
if ((categoriaDescuento.getDescuentoporc() != null) && (!categoriaDescuento.getDescuentoporc().equals(BigDecimal.ZERO))) {
|
||||
radioPor.setSelected(true);
|
||||
descuentoImporte.setDisabled(true);
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) {
|
||||
categoriaDescuentoList.updateItem(categoriaDescuento);
|
||||
this.closeWindow();
|
||||
}
|
||||
if ((categoriaDescuento.getIndImprimeBoleto() != null) && (categoriaDescuento.getIndImprimeBoleto())) {
|
||||
radioImprimePassagem.setSelected(Boolean.TRUE);
|
||||
} else if ((categoriaDescuento.getIndImprimeBoleto() != null) && (!categoriaDescuento.getIndImprimeBoleto())) {
|
||||
radioNaoImprimePassagem.setSelected(Boolean.TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
public CategoriaDescuento getCategoriaDescuento() {
|
||||
return categoriaDescuento;
|
||||
}
|
||||
public void onClick$btnSalvar(Event ev) {
|
||||
if (radioImprimePassagem.isSelected()) {
|
||||
categoriaDescuento.setIndImprimeBoleto(Boolean.TRUE);
|
||||
} else if (radioNaoImprimePassagem.isSelected()) {
|
||||
categoriaDescuento.setIndImprimeBoleto(Boolean.FALSE);
|
||||
}
|
||||
|
||||
public void setCategoriaDescuento(CategoriaDescuento categoriaDescuento) {
|
||||
this.categoriaDescuento = categoriaDescuento;
|
||||
}
|
||||
categoriaDescuentoList.updateItem(categoriaDescuento);
|
||||
this.closeWindow();
|
||||
}
|
||||
|
||||
public void onClick$radioImp(Event ev) {
|
||||
descuentoPorc.setDisabled(true);
|
||||
descuentoImporte.setDisabled(false);
|
||||
public CategoriaDescuento getCategoriaDescuento() {
|
||||
return categoriaDescuento;
|
||||
}
|
||||
|
||||
descuentoPorc.setConstraint("");
|
||||
descuentoPorc.setValue("0");
|
||||
categoriaDescuento.setDescuentoporc(BigDecimal.ZERO);
|
||||
descuentoImporte.setConstraint("no empty, no negative");
|
||||
}
|
||||
public void setCategoriaDescuento(CategoriaDescuento categoriaDescuento) {
|
||||
this.categoriaDescuento = categoriaDescuento;
|
||||
}
|
||||
|
||||
public void onClick$radioPor(Event ev) {
|
||||
descuentoImporte.setDisabled(true);
|
||||
descuentoPorc.setDisabled(false);
|
||||
public void onClick$radioImp(Event ev) {
|
||||
descuentoPorc.setDisabled(true);
|
||||
descuentoImporte.setDisabled(false);
|
||||
|
||||
descuentoImporte.setConstraint("");
|
||||
descuentoImporte.setValue("0");
|
||||
categoriaDescuento.setDescuentoimporte(BigDecimal.ZERO);
|
||||
descuentoPorc.setConstraint("no empty, no zero, no negative");
|
||||
}
|
||||
descuentoPorc.setConstraint("");
|
||||
descuentoPorc.setValue("0");
|
||||
categoriaDescuento.setDescuentoporc(BigDecimal.ZERO);
|
||||
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.ParamArticulo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EventoExtra</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoEventoExtra</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AjusteEventoExtra</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoEventoExtra
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AjusteEventoExtra
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarjetaViaje</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Cliente</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ClienteDireccion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ClienteDireccion
|
||||
</value>
|
||||
</list>
|
||||
</property>
|
||||
|
||||
|
@ -315,13 +318,13 @@
|
|||
<property name="jndiName" value="${database.jndi.name}" />
|
||||
</bean>
|
||||
|
||||
<!-- <bean id="dataSource" -->
|
||||
<!-- class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
|
||||
<!-- <property name="driverClassName" value="${database.driver}" /> -->
|
||||
<!-- <property name="url" value="${database.url}" /> -->
|
||||
<!-- <property name="username" value="${database.username}" /> -->
|
||||
<!-- <property name="password" value="${database.password}" /> -->
|
||||
<!-- </bean> -->
|
||||
<!-- <bean id="dataSource" -->
|
||||
<!-- class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
|
||||
<!-- <property name="driverClassName" value="${database.driver}" /> -->
|
||||
<!-- <property name="url" value="${database.url}" /> -->
|
||||
<!-- <property name="username" value="${database.username}" /> -->
|
||||
<!-- <property name="password" value="${database.password}" /> -->
|
||||
<!-- </bean> -->
|
||||
|
||||
<!-- ====================================================== -->
|
||||
<!-- Search class from Hibernate-Generic-DAO framework -->
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# <controler>. <id>. <propiedade> = XXX
|
||||
|
||||
#Versao do VentaBoleto:
|
||||
versao = ADM_20121212_1RC88
|
||||
versao = ADM_20121214_1RC89
|
||||
|
||||
# MSG Defaut:
|
||||
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.necesitaMercado = Necessita informar um trecho.
|
||||
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
|
||||
busquedaCatalogoDeParadaController.window.title = Localidade
|
||||
|
|
|
@ -6,267 +6,332 @@
|
|||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
|
||||
<window id="winEditarConfiguracionCategoria" border="normal"
|
||||
apply="${editarConfiguracionCategoriaController}"
|
||||
height="540px" width="750px" contentStyle="overflow:auto"
|
||||
title="${c:l('editarConfiguracionCategoriaController.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('editarConfiguracionCategoriaController.btnApagar.tooltiptext')}"/>
|
||||
<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="winEditarConfiguracionCategoria.detach()"
|
||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnFechar.tooltiptext')}"/>
|
||||
</hbox>
|
||||
</toolbar>
|
||||
<window id="winEditarConfiguracionCategoria" border="normal"
|
||||
apply="${editarConfiguracionCategoriaController}" height="540px"
|
||||
width="750px" contentStyle="overflow:auto"
|
||||
title="${c:l('editarConfiguracionCategoriaController.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('editarConfiguracionCategoriaController.btnApagar.tooltiptext')}" />
|
||||
<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="winEditarConfiguracionCategoria.detach()"
|
||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnFechar.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<tabbox>
|
||||
<tabs>
|
||||
<tab id="tabEmpresa" label="${c:l('editarConfiguracionCategoriaController.tabConfiguracoes.label')}"/>
|
||||
<tab id="tabDesconto" label="${c:l('editarConfiguracionCategoriaController.tabDesconto.label')}"/>
|
||||
<tab id="tabMarca" label="${c:l('editarConfiguracionCategoriaController.tabMarca.label')}"/>
|
||||
<tab id="tabMercado" label="${c:l('editarConfiguracionCategoriaController.tabMercado.label')}"/>
|
||||
<tab id="tabClasse" label="${c:l('editarConfiguracionCategoriaController.tabClase.label')}"/>
|
||||
<tab id="tabCorrida" label="${c:l('editarConfiguracionCategoriaController.tabCorrida.label')}"/>
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
<tabpanel>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="25%" />
|
||||
<column width="75%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lblEmpresa" value="${c:l('editarConfiguracionCategoriaController.lblEmpresa.value')}"/>
|
||||
<combobox id="cmbEmpresas" constraint="no empty" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarConfiguracionCategoria$composer.lsEmpresas}"
|
||||
selectedItem="@{winEditarConfiguracionCategoria$composer.categoriaCTRL.empresa}"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
<tabpanel height="420px">
|
||||
<!-- Desconto -->
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="80%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lblCategorias" value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}"/>
|
||||
<combobox id="cmbCategorias" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="70%"
|
||||
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>
|
||||
<tabbox>
|
||||
<tabs>
|
||||
<tab id="tabEmpresa"
|
||||
label="${c:l('editarConfiguracionCategoriaController.tabConfiguracoes.label')}" />
|
||||
<tab id="tabDesconto"
|
||||
label="${c:l('editarConfiguracionCategoriaController.tabDesconto.label')}" />
|
||||
<tab id="tabMarca"
|
||||
label="${c:l('editarConfiguracionCategoriaController.tabMarca.label')}" />
|
||||
<tab id="tabMercado"
|
||||
label="${c:l('editarConfiguracionCategoriaController.tabMercado.label')}" />
|
||||
<tab id="tabClasse"
|
||||
label="${c:l('editarConfiguracionCategoriaController.tabClase.label')}" />
|
||||
<tab id="tabCorrida"
|
||||
label="${c:l('editarConfiguracionCategoriaController.tabCorrida.label')}" />
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
<tabpanel>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="25%" />
|
||||
<column width="75%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lblEmpresa"
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresas"
|
||||
constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarConfiguracionCategoria$composer.lsEmpresas}"
|
||||
selectedItem="@{winEditarConfiguracionCategoria$composer.categoriaCTRL.empresa}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
<tabpanel height="420px">
|
||||
<!-- Desconto -->
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="30%" />
|
||||
<column width="70%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lblCategorias"
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}" />
|
||||
<combobox id="cmbCategorias"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="70%"
|
||||
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>
|
||||
<label id="lblDescuentoImporte" value="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}"/>
|
||||
<decimalbox id="descuentoImporte" constraint="no empty" width="50%" maxlength="9" />
|
||||
</row>
|
||||
<row>
|
||||
<label id="lblDescuentoPorc" value="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}"/>
|
||||
<decimalbox id="descuentoPorc" constraint="no empty" width="50%" maxlength="9" />
|
||||
</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')}"/>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblImprimirPassagem.value')}" />
|
||||
<radiogroup Id="rdgImpressao">
|
||||
<radio id="radioImprimePassagem"
|
||||
selected="true"
|
||||
label="${c:l('editarConfiguracionCategoriaController.lblImprimePassagem.value')}" />
|
||||
<radio id="radioNaoImprimePassagem"
|
||||
label="${c:l('editarConfiguracionCategoriaController.lblNaoImprimePassagem.value')}" />
|
||||
</radiogroup>
|
||||
</row>
|
||||
<row>
|
||||
<label id="lblDescuentoImporte"
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}" />
|
||||
<decimalbox id="descuentoImporte"
|
||||
constraint="no empty" width="50%" maxlength="9" />
|
||||
</row>
|
||||
<row>
|
||||
<label id="lblDescuentoPorc"
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}" />
|
||||
<decimalbox id="descuentoPorc"
|
||||
constraint="no empty" width="50%" maxlength="9" />
|
||||
</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>
|
||||
</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>
|
||||
<intbox id="idCorrida"
|
||||
constraint="no empty, no negative, no zero" maxlength="8" />
|
||||
<button id="btnAdicionarCorrida"
|
||||
height="20" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddCorrida.tooltiptext')}" />
|
||||
<button id="btnRemoverCorrida"
|
||||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnBorrarCorrida.tooltiptext')}" />
|
||||
</hbox>
|
||||
</row>
|
||||
</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>
|
||||
|
||||
<intbox id="idCorrida" constraint="no empty, no negative, no zero" maxlength="8"/>
|
||||
<button id="btnAdicionarCorrida" height="20"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddCorrida.tooltiptext')}"/>
|
||||
<button id="btnRemoverCorrida" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnBorrarCorrida.tooltiptext')}"/>
|
||||
</hbox>
|
||||
</row>
|
||||
</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>
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
<popup id="mail" width="300px">
|
||||
<html>
|
||||
"Haga Double Click en Grid para agregar el período del
|
||||
descuento."
|
||||
</html>
|
||||
</popup>
|
||||
</window>
|
||||
</zk>
|
||||
|
|
|
@ -5,55 +5,82 @@
|
|||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarConfiguracionCategoriasDatosCategoria" border="normal"
|
||||
title="${c:l('editarConfiguracionCategoriaController.window.title')}"
|
||||
apply="${editarConfiguracionCategoriaDatosCategoriaController}"
|
||||
width="350px" height="215px" contentStyle="overflow:auto">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
<window id="winEditarConfiguracionCategoriasDatosCategoria"
|
||||
border="normal"
|
||||
title="${c:l('editarConfiguracionCategoriaController.window.title')}"
|
||||
apply="${editarConfiguracionCategoriaDatosCategoriaController}"
|
||||
width="400px" contentStyle="overflow:auto">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<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')}"/>
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarConfiguracionCategoriasDatosCategoria.detach()"
|
||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnFechar.tooltiptext')}"/>
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<!--Periodo-->
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="40%" />
|
||||
<column width="60%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lblCategorias" value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}"/>
|
||||
<textbox id="txtCategoria" width="90%" value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.categoria.desccategoria}" disabled="true" />
|
||||
</row>
|
||||
<row>
|
||||
<label id="lblCantAutorizada" value="${c:l('editarConfiguracionCategoriaController.lblCantAutorizada.value')}"/>
|
||||
<intbox id="cantAutorizada" constraint="no empty, no zero" width="50%" maxlength="3" value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.cantautorizada}" />
|
||||
</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>
|
||||
<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>
|
||||
<!--Periodo-->
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="45%" />
|
||||
<column width="55%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lblCategorias"
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}" />
|
||||
<textbox id="txtCategoria" width="90%"
|
||||
value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.categoria.desccategoria}"
|
||||
disabled="true" />
|
||||
</row>
|
||||
<row>
|
||||
<label id="lblCantAutorizada"
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblCantAutorizada.value')}" />
|
||||
<intbox id="cantAutorizada"
|
||||
constraint="no empty, no zero" width="50%" maxlength="3"
|
||||
value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.cantautorizada}" />
|
||||
</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>
|
||||
<label
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblImprimirPassagem.value')}" />
|
||||
<radiogroup Id="rdgImpressao">
|
||||
<radio id="radioImprimePassagem"
|
||||
label="${c:l('editarConfiguracionCategoriaController.lblImprimePassagem.value')}" />
|
||||
<radio id="radioNaoImprimePassagem"
|
||||
label="${c:l('editarConfiguracionCategoriaController.lblNaoImprimePassagem.value')}" />
|
||||
</radiogroup>
|
||||
</row>
|
||||
<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>
|
||||
|
|
Loading…
Reference in New Issue