desenvolvimento (fixes bug #5251)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@35213 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
ae612c674e
commit
7b8c8b795d
|
@ -0,0 +1,146 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zhtml.Messagebox;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SegVKM;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderSegVKM;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author RJ
|
||||||
|
*/
|
||||||
|
@Controller("busquedaSegVKMController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class BusquedaSegVKmController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<SegVKM> plwSerie;
|
||||||
|
private MyListbox segVKmList;
|
||||||
|
private Paging pagingSegVKm;
|
||||||
|
private Textbox txtSerie;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
segVKmList.setItemRenderer(new RenderSegVKM());
|
||||||
|
segVKmList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
SegVKM s = (SegVKM) segVKmList.getSelected();
|
||||||
|
verSegVKm(s);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
|
||||||
|
txtSerie.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void verSegVKm(SegVKM s) {
|
||||||
|
if (s == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("segVKM", s);
|
||||||
|
args.put("segVKmList", segVKmList);
|
||||||
|
|
||||||
|
openWindow("/gui/tarifas/editarSegVKm.zul",
|
||||||
|
Labels.getLabel("busquedaSegVKmController.window.title"),
|
||||||
|
args, MODAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
|
||||||
|
HibernateSearchObject<SegVKM> seguroKmBusqueda =
|
||||||
|
new HibernateSearchObject<SegVKM>(SegVKM.class,
|
||||||
|
pagingSegVKm.getPageSize());
|
||||||
|
|
||||||
|
seguroKmBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
|
if (!txtSerie.getValue().equals("")) {
|
||||||
|
seguroKmBusqueda.addFilterLike("serie",
|
||||||
|
"%" + txtSerie.getText().trim().concat("%"));
|
||||||
|
}
|
||||||
|
|
||||||
|
seguroKmBusqueda.addSortAsc("serie");
|
||||||
|
|
||||||
|
plwSerie.init(seguroKmBusqueda, segVKmList, pagingSegVKm);
|
||||||
|
|
||||||
|
if (segVKmList.getData().length == 0) {
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("busquedaSegVKmController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) {
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRefresh(Event ev) {
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnNovo(Event ev) {
|
||||||
|
verSegVKm(new SegVKM());
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedListWrapper<SegVKM> getPlwSerie() {
|
||||||
|
return plwSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlwSerie(PagedListWrapper<SegVKM> plwSerie) {
|
||||||
|
this.plwSerie = plwSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getSegVKmList() {
|
||||||
|
return segVKmList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSegVKmList(MyListbox segVKmList) {
|
||||||
|
this.segVKmList = segVKmList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paging getPagingSegVKm() {
|
||||||
|
return pagingSegVKm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagingSegVKm(Paging pagingSegVKm) {
|
||||||
|
this.pagingSegVKm = pagingSegVKm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtSerie() {
|
||||||
|
return txtSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtSerie(Textbox txtSerie) {
|
||||||
|
this.txtSerie = txtSerie;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,172 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas;
|
||||||
|
|
||||||
|
import java.util.Calendar;
|
||||||
|
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zhtml.Messagebox;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.Executions;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zul.Button;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SegVKM;
|
||||||
|
import com.rjconsultores.ventaboletos.service.SegVKMService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author RJ
|
||||||
|
*/
|
||||||
|
@Controller("editarSegVKmController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class EditarSegVKmController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Autowired
|
||||||
|
private SegVKMService segVKMService;
|
||||||
|
private SegVKM segVKM;
|
||||||
|
private MyListbox segVKMList;
|
||||||
|
private Button btnApagar;
|
||||||
|
private MyTextbox txtSerie;
|
||||||
|
private MyTextbox txtKm;
|
||||||
|
private MyTextbox txtValor;
|
||||||
|
private static Logger log = Logger.getLogger(EditarSegVKmController.class);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
segVKM = (SegVKM) Executions.getCurrent().getArg().get("segVKM");
|
||||||
|
segVKMList = (MyListbox) Executions.getCurrent().getArg().get("segVKmList");
|
||||||
|
|
||||||
|
if (segVKM.getSegVKMId() == null) {
|
||||||
|
btnApagar.setVisible(Boolean.FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
|
txtSerie.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
txtSerie.getValue();
|
||||||
|
|
||||||
|
try {
|
||||||
|
segVKM.setActivo(Boolean.TRUE);
|
||||||
|
segVKM.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
segVKM.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
|
||||||
|
if (segVKM.getSegVKMId() == null) {
|
||||||
|
segVKMService.suscribir(segVKM);
|
||||||
|
segVKMList.addItemNovo(segVKM);
|
||||||
|
} else {
|
||||||
|
segVKMService.actualizacion(segVKM);
|
||||||
|
segVKMList.updateItem(segVKM);
|
||||||
|
}
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarSegVKmController.MSG.suscribirOK"),
|
||||||
|
Labels.getLabel("editarSegVKmController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
|
|
||||||
|
} catch (Exception ex) {
|
||||||
|
log.error("editarSegVKmController: " + ex);
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Error"),
|
||||||
|
Labels.getLabel("editarSegVKmController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnApagar(Event ev) {
|
||||||
|
try {
|
||||||
|
int resp = Messagebox.show(
|
||||||
|
Labels.getLabel("editarSegVKmController.MSG.borrarPergunta"),
|
||||||
|
Labels.getLabel("editarSegVKmController.window.title"),
|
||||||
|
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||||
|
|
||||||
|
if (resp == Messagebox.YES) {
|
||||||
|
|
||||||
|
segVKMService.borrar(segVKM);
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarSegVKmController.MSG.borrarOK"),
|
||||||
|
Labels.getLabel("editarSegVKmController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
|
segVKMList.removeItem(segVKM);
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
|
}
|
||||||
|
} catch (Exception ex) {
|
||||||
|
log.error(ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public SegVKMService getSegVKMService() {
|
||||||
|
return segVKMService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSegVKMService(SegVKMService segVKMService) {
|
||||||
|
this.segVKMService = segVKMService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public SegVKM getSegVKM() {
|
||||||
|
return segVKM;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSegVKM(SegVKM segVKM) {
|
||||||
|
this.segVKM = segVKM;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getSegVKMList() {
|
||||||
|
return segVKMList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSegVKMList(MyListbox segVKMList) {
|
||||||
|
this.segVKMList = segVKMList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Button getBtnApagar() {
|
||||||
|
return btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBtnApagar(Button btnApagar) {
|
||||||
|
this.btnApagar = btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextbox getTxtSerie() {
|
||||||
|
return txtSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtSerie(MyTextbox txtSerie) {
|
||||||
|
this.txtSerie = txtSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextbox getTxtKm() {
|
||||||
|
return txtKm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtKm(MyTextbox txtKm) {
|
||||||
|
this.txtKm = txtKm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextbox getTxtValor() {
|
||||||
|
return txtValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtValor(MyTextbox txtValor) {
|
||||||
|
this.txtValor = txtValor;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,33 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author RJ
|
||||||
|
*/
|
||||||
|
public class ItemMenuSegVKM extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuSegVKM() {
|
||||||
|
super("busquedaSegVKmController.window.title");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.TARIFAS.MENU.SEGVKM";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/tarifas/busquedaSegVKm.zul",
|
||||||
|
Labels.getLabel("busquedaSegVKmController.window.title"), null, desktop);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SegVKM;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author RJ
|
||||||
|
*/
|
||||||
|
public class RenderSegVKM implements ListitemRenderer {
|
||||||
|
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
SegVKM seg = (SegVKM) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(seg.getSegVKMId() == null ? "-" : seg.getSegVKMId().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(seg.getSerie() == null ? "-" : seg.getSerie());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(seg.getKm() == null ? "-" : seg.getKm().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(seg.getValor() == null ? "-" : seg.getValor().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", seg);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -258,6 +258,7 @@
|
||||||
</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Secretaria</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Secretaria</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.SeguroKm</value>
|
<value>com.rjconsultores.ventaboletos.entidad.SeguroKm</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.SegVKM</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.SeguroTarifa</value>
|
<value>com.rjconsultores.ventaboletos.entidad.SeguroTarifa</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Sistema</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Sistema</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueKm</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueKm</value>
|
||||||
|
|
|
@ -4182,6 +4182,27 @@ editarSeguroKmController.MSG.borrarPergunta=Deseas elminar seguro por KM?
|
||||||
editarSeguroKmController.MSG.borrarOK=Seguro por KM se eliminó existosamente
|
editarSeguroKmController.MSG.borrarOK=Seguro por KM se eliminó existosamente
|
||||||
editarSeguroKmController.MSG.existe= Ya existe un registro con esse Km
|
editarSeguroKmController.MSG.existe= Ya existe un registro con esse Km
|
||||||
|
|
||||||
|
# Pesquisa SegVKM
|
||||||
|
busquedaSegVKmController.window.title = Seguro VKM
|
||||||
|
busquedaSegVKmController.btnRefresh.tooltiptext = Atualizar
|
||||||
|
busquedaSegVKmController.btnNovo.tooltiptext = Incluir
|
||||||
|
busquedaSegVKmController.btnCerrar.tooltiptext = Fechar
|
||||||
|
busquedaSegVKmController.serie.label = Série
|
||||||
|
busquedaSegVKmController.km.label = KM
|
||||||
|
busquedaSegVKmController.valor.label = Valor
|
||||||
|
|
||||||
|
# Editar SegVKM
|
||||||
|
editarSegVKmController.window.title = Seguro VKM
|
||||||
|
editarSegVKmController.btnApagar.tooltiptext = Eliminar
|
||||||
|
editarSegVKmController.btnSalvar.tooltiptext = Salvar
|
||||||
|
editarSegVKmController.btnFechar.tooltiptext = Fechar
|
||||||
|
editarSegVKmController.serie = Série
|
||||||
|
editarSegVKmController.km = KM
|
||||||
|
editarSegVKmController.valor = Valor
|
||||||
|
editarSegVKmController.MSG.suscribirOK = Seguro por KM registrado com sucesso.
|
||||||
|
editarSegVKmController.MSG.borrarPergunta=Deseja eliminar Seguro por KM?
|
||||||
|
editarSegVKmController.MSG.borrarOK=Seguro por KM eliminado com sucesso.
|
||||||
|
|
||||||
# Búsqueda SeguroTarifa
|
# Búsqueda SeguroTarifa
|
||||||
busquedaSeguroTarifaController.window.title = Seguro por tarifa
|
busquedaSeguroTarifaController.window.title = Seguro por tarifa
|
||||||
busquedaSeguroTarifaController.btnRefresh.tooltiptext = Actualizar
|
busquedaSeguroTarifaController.btnRefresh.tooltiptext = Actualizar
|
||||||
|
|
|
@ -4231,6 +4231,27 @@ editarSeguroKmController.MSG.borrarPergunta=Deseja elminar Seguro por KM?
|
||||||
editarSeguroKmController.MSG.borrarOK=Seguro por KM eliminado com sucesso.
|
editarSeguroKmController.MSG.borrarOK=Seguro por KM eliminado com sucesso.
|
||||||
editarSeguroKmController.MSG.existe= Já existe um registro com esse Km.
|
editarSeguroKmController.MSG.existe= Já existe um registro com esse Km.
|
||||||
|
|
||||||
|
# Pesquisa SegVKM
|
||||||
|
busquedaSegVKmController.window.title = Seguro VKM
|
||||||
|
busquedaSegVKmController.btnRefresh.tooltiptext = Atualizar
|
||||||
|
busquedaSegVKmController.btnNovo.tooltiptext = Incluir
|
||||||
|
busquedaSegVKmController.btnCerrar.tooltiptext = Fechar
|
||||||
|
busquedaSegVKmController.serie.label = Série
|
||||||
|
busquedaSegVKmController.km.label = KM
|
||||||
|
busquedaSegVKmController.valor.label = Valor
|
||||||
|
|
||||||
|
# Editar SegVKM
|
||||||
|
editarSegVKmController.window.title = Seguro VKM
|
||||||
|
editarSegVKmController.btnApagar.tooltiptext = Eliminar
|
||||||
|
editarSegVKmController.btnSalvar.tooltiptext = Salvar
|
||||||
|
editarSegVKmController.btnFechar.tooltiptext = Fechar
|
||||||
|
editarSegVKmController.serie = Série
|
||||||
|
editarSegVKmController.km = KM
|
||||||
|
editarSegVKmController.valor = Valor
|
||||||
|
editarSegVKmController.MSG.suscribirOK = Seguro por KM registrado com sucesso.
|
||||||
|
editarSegVKmController.MSG.borrarPergunta=Deseja eliminar Seguro por KM?
|
||||||
|
editarSegVKmController.MSG.borrarOK=Seguro por KM eliminado com sucesso.
|
||||||
|
|
||||||
# Pesquisa SeguroTarifa
|
# Pesquisa SeguroTarifa
|
||||||
busquedaSeguroTarifaController.window.title = Seguro por Tarifa
|
busquedaSeguroTarifaController.window.title = Seguro por Tarifa
|
||||||
busquedaSeguroTarifaController.btnRefresh.tooltiptext = Atualizar
|
busquedaSeguroTarifaController.btnRefresh.tooltiptext = Atualizar
|
||||||
|
|
|
@ -0,0 +1,59 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaSegVKm"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winBusquedaSegVKm" title="${c:l('busquedaSegVKmController.window.title')}"
|
||||||
|
apply="${busquedaSegVKMController}" contentStyle="overflow:auto"
|
||||||
|
height="450px" width="500px" border="normal" >
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaSegVKmController.btnRefresh.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaSegVKmController.btnNovo.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winBusquedaSegVKm.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaSegVKmController.btnCerrar.tooltiptext')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="70%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaSegVKmController.serie.label')}"/>
|
||||||
|
<textbox id="txtSerie" width="200px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
|
label="${c:l('tooltiptext.btnPesquisa')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<paging id="pagingSegVKm" pageSize="15"/>
|
||||||
|
<listbox id="segVKmList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="50px" image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('lb.id')}"
|
||||||
|
sort="auto(segVKMId)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaSegVKmController.serie.label')}"
|
||||||
|
sort="auto(serie)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaSegVKmController.km.label')}"
|
||||||
|
sort="auto(km)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaSegVKmController.valor.label')}"
|
||||||
|
sort="auto(valor)"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,57 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarSegVKM"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winEditarSegVKM" border="normal"
|
||||||
|
apply="${editarSegVKmController}"
|
||||||
|
width="400px" height="457x" contentStyle="overflow:auto"
|
||||||
|
title="${c:l('editarSegVKmController.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('editarSegVKmController.btnApagar.tooltiptext')}"/>
|
||||||
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarSegVKmController.btnSalvar.tooltiptext')}"/>
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winEditarSegVKM.detach()"
|
||||||
|
tooltiptext="${c:l('editarSegVKmController.btnFechar.tooltiptext')}"/>
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label id="lbNome" value="${c:l('editarSegVKmController.serie')}"/>
|
||||||
|
<textbox id="txtSerie" constraint="no empty" maxlength="3"
|
||||||
|
value="@{winEditarSegVKM$composer.segVKM.serie}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarSegVKmController.km')}"/>
|
||||||
|
<textbox id="txtKm"
|
||||||
|
constraint="no empty, no zero, no negative"
|
||||||
|
value="@{winEditarSegVKM$composer.segVKM.km}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarSegVKmController.valor')}"/>
|
||||||
|
<textbox id="txtValor"
|
||||||
|
constraint="no empty, no zero, no negative"
|
||||||
|
value="@{winEditarSegVKM$composer.segVKM.valor}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2"/>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
</window>
|
||||||
|
</zk>
|
||||||
|
|
Loading…
Reference in New Issue