Telas de Taxa de Embarque
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@20932 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
6adac94630
commit
8411863e7e
|
@ -0,0 +1,155 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueKm;
|
||||||
|
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.RenderOrgaoConcedente;
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Administrador
|
||||||
|
*/
|
||||||
|
@Controller("busquedaTaxaEmbarqueKmController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class BusquedaTaxaEmbarqueKmController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<OrgaoConcedente> plwOrgao;
|
||||||
|
private MyListbox taxaEmbarqueKmList;
|
||||||
|
private Paging pagingTaxaEmbarqueKm;
|
||||||
|
private Textbox txtOrgao;
|
||||||
|
|
||||||
|
public Paging getPagingTaxaEmbarqueKm() {
|
||||||
|
return pagingTaxaEmbarqueKm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagingTaxaEmbarqueKm(Paging pagingTaxaEmbarqueKm) {
|
||||||
|
this.pagingTaxaEmbarqueKm = pagingTaxaEmbarqueKm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedListWrapper<OrgaoConcedente> getPlwOrgao() {
|
||||||
|
return plwOrgao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlwOrgao(PagedListWrapper<OrgaoConcedente> plwOrgao) {
|
||||||
|
this.plwOrgao = plwOrgao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getTaxaEmbarqueKmList() {
|
||||||
|
return taxaEmbarqueKmList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaxaEmbarqueKmList(MyListbox taxaEmbarqueKmList) {
|
||||||
|
this.taxaEmbarqueKmList = taxaEmbarqueKmList;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
taxaEmbarqueKmList.setItemRenderer(new RenderOrgaoConcedente());
|
||||||
|
taxaEmbarqueKmList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
OrgaoConcedente c = (OrgaoConcedente) taxaEmbarqueKmList.getSelected();
|
||||||
|
verTaxaEmbarqueKm(c);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
|
||||||
|
txtOrgao.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void verTaxaEmbarqueKm(OrgaoConcedente o) {
|
||||||
|
if (o == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("orgao", o);
|
||||||
|
args.put("taxaEmbarqueKm", null);
|
||||||
|
args.put("taxaEmbarqueKmList", taxaEmbarqueKmList);
|
||||||
|
|
||||||
|
openWindow("/gui/tarifas/editarTaxaEmbarqueKm.zul",
|
||||||
|
Labels.getLabel("busquedaTaxaEmbarqueKmController.window.title"),
|
||||||
|
args, MODAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
|
||||||
|
HibernateSearchObject<OrgaoConcedente> taxaEmbarqueKmBusqueda =
|
||||||
|
new HibernateSearchObject<OrgaoConcedente>(OrgaoConcedente.class,
|
||||||
|
pagingTaxaEmbarqueKm.getPageSize());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
taxaEmbarqueKmBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
|
if (!txtOrgao.getValue().equals("")) {
|
||||||
|
taxaEmbarqueKmBusqueda.addFilterLike("descOrgao",
|
||||||
|
"%" + txtOrgao.getText().trim().concat("%"));
|
||||||
|
}
|
||||||
|
|
||||||
|
taxaEmbarqueKmBusqueda.addSortAsc("descOrgao");
|
||||||
|
|
||||||
|
|
||||||
|
plwOrgao.init(taxaEmbarqueKmBusqueda, taxaEmbarqueKmList, pagingTaxaEmbarqueKm);
|
||||||
|
|
||||||
|
if (taxaEmbarqueKmList.getData().length == 0) {
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("busquedaTaxaEmbarqueKmController.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) {
|
||||||
|
verTaxaEmbarqueKm(new TaxaEmbarqueKm());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void verTaxaEmbarqueKm(TaxaEmbarqueKm tx) {
|
||||||
|
if (tx == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("orgao", null);
|
||||||
|
args.put("taxaEmbarqueKm", tx);
|
||||||
|
args.put("taxaEmbarqueKmList", taxaEmbarqueKmList);
|
||||||
|
|
||||||
|
openWindow("/gui/tarifas/editarTaxaEmbarqueKm.zul",
|
||||||
|
Labels.getLabel("busquedaTaxaEmbarqueKmController.window.title"),
|
||||||
|
args, MODAL);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,133 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueParada;
|
||||||
|
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.RenderTaxaEmbarqueParadaLocalidade;
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Administrador
|
||||||
|
*/
|
||||||
|
@Controller("busquedaTaxaEmbarqueParadaController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class BusquedaTaxaEmbarqueParadaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<Parada> plwParada;
|
||||||
|
private MyListbox paradaList;
|
||||||
|
private Paging pagingTaxaEmbarqueParada;
|
||||||
|
private Textbox txtParada;
|
||||||
|
|
||||||
|
public Paging getPagingTaxaEmbarqueParada() {
|
||||||
|
return pagingTaxaEmbarqueParada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagingTaxaEmbarqueParada(Paging pagingTaxaEmbarqueParada) {
|
||||||
|
this.pagingTaxaEmbarqueParada = pagingTaxaEmbarqueParada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedListWrapper<Parada> getPlwParada() {
|
||||||
|
return plwParada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlwParada(PagedListWrapper<Parada> plwParada) {
|
||||||
|
this.plwParada = plwParada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getParadaList() {
|
||||||
|
return paradaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParadaList(MyListbox paradaList) {
|
||||||
|
this.paradaList = paradaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
paradaList.setItemRenderer(new RenderTaxaEmbarqueParadaLocalidade());
|
||||||
|
paradaList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Parada c = (Parada) paradaList.getSelected();
|
||||||
|
verTaxaEmbarqueParada(c);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
|
||||||
|
txtParada.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void verTaxaEmbarqueParada(Parada s) {
|
||||||
|
if (s == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("parada", s);
|
||||||
|
//args.put("taxaEmbarqueParadaList", taxaEmbarqueParadaList);
|
||||||
|
|
||||||
|
openWindow("/gui/tarifas/editarTaxaEmbarqueParada.zul",
|
||||||
|
Labels.getLabel("busquedaTaxaEmbarqueParadaController.window.title"),
|
||||||
|
args, MODAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
HibernateSearchObject<Parada> taxaEmbarqueParadaBusqueda =
|
||||||
|
new HibernateSearchObject<Parada>(Parada.class,
|
||||||
|
pagingTaxaEmbarqueParada.getPageSize());
|
||||||
|
|
||||||
|
taxaEmbarqueParadaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
|
taxaEmbarqueParadaBusqueda.addFilterLike("descparada",
|
||||||
|
"%" + txtParada.getText().trim().concat("%"));
|
||||||
|
|
||||||
|
taxaEmbarqueParadaBusqueda.addSortAsc("descparada");
|
||||||
|
|
||||||
|
plwParada.init(taxaEmbarqueParadaBusqueda, paradaList, pagingTaxaEmbarqueParada);
|
||||||
|
|
||||||
|
if (paradaList.getData().length == 0) {
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("busquedaTaxaEmbarqueParadaController.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) {
|
||||||
|
verTaxaEmbarqueParada(new Parada());
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,265 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Calendar;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.Comparator;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
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.TaxaEmbarqueKm;
|
||||||
|
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.TaxaEmbarqueKmService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTaxaEmbarqueKm;
|
||||||
|
import org.zkoss.zul.Intbox;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Administrador
|
||||||
|
*/
|
||||||
|
@Controller("editarTaxaEmbarqueKmController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class EditarTaxaEmbarqueKmController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private TaxaEmbarqueKmService taxaEmbarqueKmService;
|
||||||
|
@Autowired
|
||||||
|
private OrgaoConcedenteService orgaoConcedenteService;
|
||||||
|
private OrgaoConcedente orgao;
|
||||||
|
private TaxaEmbarqueKm taxaEmbarqueKm;
|
||||||
|
private List<TaxaEmbarqueKm> lsTaxaEmbarqueKm;
|
||||||
|
private List<OrgaoConcedente> lsOrgaoConcedente;
|
||||||
|
private MyListbox taxaEmbarqueKmList;
|
||||||
|
private MyComboboxEstandar cmbOrgao;
|
||||||
|
private Button btnApagar;
|
||||||
|
private Button btnAdicionarTaxaEmbarqueKm;
|
||||||
|
private Intbox txtKm;
|
||||||
|
private MyTextboxDecimal txtValor;
|
||||||
|
private static Logger log = Logger.getLogger(EditarTaxaEmbarqueKmController.class);
|
||||||
|
|
||||||
|
public Button getBtnApagar() {
|
||||||
|
return btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBtnApagar(Button btnApagar) {
|
||||||
|
this.btnApagar = btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaxaEmbarqueKm getTaxaEmbarqueKm() {
|
||||||
|
return taxaEmbarqueKm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaxaEmbarqueKm(TaxaEmbarqueKm taxaEmbarqueKm) {
|
||||||
|
this.taxaEmbarqueKm = taxaEmbarqueKm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Button getBtnAdicionarTaxaEmbarqueKm() {
|
||||||
|
return btnAdicionarTaxaEmbarqueKm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBtnAdicionarTaxaEmbarqueKm(Button btnAdicionarTaxaEmbarqueKm) {
|
||||||
|
this.btnAdicionarTaxaEmbarqueKm = btnAdicionarTaxaEmbarqueKm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<OrgaoConcedente> getLsOrgaoConcedente() {
|
||||||
|
return lsOrgaoConcedente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsOrgaoConcedente(List<OrgaoConcedente> lsOrgaoConcedente) {
|
||||||
|
this.lsOrgaoConcedente = lsOrgaoConcedente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<TaxaEmbarqueKm> getLsTaxaEmbarqueKm() {
|
||||||
|
return lsTaxaEmbarqueKm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsTaxaEmbarqueKm(List<TaxaEmbarqueKm> lsTaxaEmbarqueKm) {
|
||||||
|
this.lsTaxaEmbarqueKm = lsTaxaEmbarqueKm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getTaxaEmbarqueKmList() {
|
||||||
|
return taxaEmbarqueKmList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaxaEmbarqueKmList(MyListbox taxaEmbarqueKmList) {
|
||||||
|
this.taxaEmbarqueKmList = taxaEmbarqueKmList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrgaoConcedente getOrgao() {
|
||||||
|
return orgao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrgao(OrgaoConcedente orgao) {
|
||||||
|
this.orgao = orgao;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
lsOrgaoConcedente = orgaoConcedenteService.obtenerTodos();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
orgao = (OrgaoConcedente) Executions.getCurrent().getArg().get("orgao");
|
||||||
|
taxaEmbarqueKm = (TaxaEmbarqueKm) Executions.getCurrent().getArg().get("taxaEmbarqueKm");
|
||||||
|
|
||||||
|
taxaEmbarqueKmList.setItemRenderer(new RenderTaxaEmbarqueKm());
|
||||||
|
lsTaxaEmbarqueKm = new ArrayList<TaxaEmbarqueKm>();
|
||||||
|
|
||||||
|
if (orgao != null
|
||||||
|
&& orgao.getOrgaoConcedenteId() != null) {
|
||||||
|
lsTaxaEmbarqueKm = taxaEmbarqueKmService.buscarPorOrgao(orgao);
|
||||||
|
taxaEmbarqueKmList.setData(lsTaxaEmbarqueKm);
|
||||||
|
cmbOrgao.setDisabled(Boolean.TRUE);
|
||||||
|
cmbOrgao.setValue(orgao.getDescOrgao());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (lsTaxaEmbarqueKm.isEmpty()) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueKmController.MSG.necessaitaInfromar.value"),
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueKmController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (TaxaEmbarqueKm km : lsTaxaEmbarqueKm) {
|
||||||
|
if (km.getTaxaembarquekmId() == null) {
|
||||||
|
taxaEmbarqueKmService.suscribir(km);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueKmController.MSG.suscribirOK"),
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueKmController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
|
|
||||||
|
|
||||||
|
} catch (Exception ex) {
|
||||||
|
log.error(ex);
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Error"),
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueKmController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
||||||
|
try {
|
||||||
|
int resp = Messagebox.show(
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueKmController.MSG.borrarPergunta"),
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueKmController.window.title"),
|
||||||
|
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||||
|
|
||||||
|
if (resp == Messagebox.YES) {
|
||||||
|
|
||||||
|
taxaEmbarqueKmService.borrar(taxaEmbarqueKm);
|
||||||
|
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueKmController.MSG.borrarOK"),
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueKmController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
|
taxaEmbarqueKmList.removeItem(taxaEmbarqueKm);
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
|
}
|
||||||
|
} catch (Exception ex) {
|
||||||
|
log.error(ex);
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Error"),
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueKmController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnAdicionarTaxaEmbarqueKm(Event ev) throws InterruptedException {
|
||||||
|
cmbOrgao.getValue();
|
||||||
|
txtKm.getValue();
|
||||||
|
txtValor.getValue();
|
||||||
|
|
||||||
|
if (lsTaxaEmbarqueKm.isEmpty()) {
|
||||||
|
lsTaxaEmbarqueKm = taxaEmbarqueKmService.buscarPorOrgao(taxaEmbarqueKm.getOrgaoconcedenteId());
|
||||||
|
taxaEmbarqueKmList.setData(lsTaxaEmbarqueKm);
|
||||||
|
}
|
||||||
|
|
||||||
|
//ChecandoDuplicado
|
||||||
|
boolean existe = false;
|
||||||
|
for (TaxaEmbarqueKm km : lsTaxaEmbarqueKm) {
|
||||||
|
if (km.getKmate().equals(txtKm.getValue())) {
|
||||||
|
existe = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (existe) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueKmController.MSG.existe"),
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueKmController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
limparInput();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
TaxaEmbarqueKm km = new TaxaEmbarqueKm();
|
||||||
|
km.setOrgaoconcedenteId((OrgaoConcedente) cmbOrgao.getSelectedItem().getValue());
|
||||||
|
km.setKmate(txtKm.getValue());
|
||||||
|
km.setValortaxa(txtValor.getValueDecimal());
|
||||||
|
km.setActivo(true);
|
||||||
|
km.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
km.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
|
||||||
|
lsTaxaEmbarqueKm.add(km);
|
||||||
|
taxaEmbarqueKmList.setData(lsTaxaEmbarqueKm);
|
||||||
|
|
||||||
|
cmbOrgao.setDisabled(Boolean.TRUE);
|
||||||
|
limparInput();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void limparInput() {
|
||||||
|
txtKm.setConstraint("");
|
||||||
|
txtValor.setConstraint("");
|
||||||
|
txtKm.setText("");
|
||||||
|
txtValor.setText("");
|
||||||
|
txtKm.setConstraint("no empty, no zero, no negative");
|
||||||
|
txtValor.setConstraint("no empty, no zero, no negative");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRemoverTaxaEmbarqueKm(Event ev) {
|
||||||
|
TaxaEmbarqueKm cd = (TaxaEmbarqueKm) taxaEmbarqueKmList.getSelected();
|
||||||
|
if (cd != null) {
|
||||||
|
cd.setActivo(Boolean.FALSE);
|
||||||
|
cd.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
cd.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
taxaEmbarqueKmService.actualizacion(cd);
|
||||||
|
|
||||||
|
lsTaxaEmbarqueKm.remove(cd);
|
||||||
|
taxaEmbarqueKmList.setData(lsTaxaEmbarqueKm);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,326 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Calendar;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
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.TaxaEmbarqueParada;
|
||||||
|
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.TaxaEmbarqueParadaService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTaxaEmbarqueParada;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Intbox;
|
||||||
|
import org.zkoss.zul.Radio;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Administrador
|
||||||
|
*/
|
||||||
|
@Controller("editarTaxaEmbarqueParadaController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class EditarTaxaEmbarqueParadaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private TaxaEmbarqueParadaService taxaEmbarqueParadaService;
|
||||||
|
@Autowired
|
||||||
|
private OrgaoConcedenteService orgaoConcedenteService;
|
||||||
|
@Autowired
|
||||||
|
private ParadaService paradaService;
|
||||||
|
private Parada parada;
|
||||||
|
//private TaxaEmbarqueParada taxaEmbarqueParada;
|
||||||
|
private List<TaxaEmbarqueParada> lsTaxaEmbarqueParada;
|
||||||
|
private List<OrgaoConcedente> lsOrgaoConcedente;
|
||||||
|
private MyListbox taxaEmbarqueParadaList;
|
||||||
|
private MyComboboxEstandar cmbOrgao;
|
||||||
|
private Combobox cmbParada;
|
||||||
|
private Button btnApagar;
|
||||||
|
private Button btnAdicionarTaxaEmbarqueParada;
|
||||||
|
private Intbox txtKm;
|
||||||
|
private Radio rdSi;
|
||||||
|
private Radio rdNo;
|
||||||
|
private MyTextboxDecimal txtValor;
|
||||||
|
private static Logger log = Logger.getLogger(EditarTaxaEmbarqueParadaController.class);
|
||||||
|
|
||||||
|
public Button getBtnApagar() {
|
||||||
|
return btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBtnApagar(Button btnApagar) {
|
||||||
|
this.btnApagar = btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Button getBtnAdicionarTaxaEmbarqueParada() {
|
||||||
|
return btnAdicionarTaxaEmbarqueParada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBtnAdicionarTaxaEmbarqueParada(Button btnAdicionarTaxaEmbarqueParada) {
|
||||||
|
this.btnAdicionarTaxaEmbarqueParada = btnAdicionarTaxaEmbarqueParada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<OrgaoConcedente> getLsOrgaoConcedente() {
|
||||||
|
return lsOrgaoConcedente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsOrgaoConcedente(List<OrgaoConcedente> lsOrgaoConcedente) {
|
||||||
|
this.lsOrgaoConcedente = lsOrgaoConcedente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<TaxaEmbarqueParada> getLsTaxaEmbarqueParada() {
|
||||||
|
return lsTaxaEmbarqueParada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsTaxaEmbarqueParada(List<TaxaEmbarqueParada> lsTaxaEmbarqueParada) {
|
||||||
|
this.lsTaxaEmbarqueParada = lsTaxaEmbarqueParada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getTaxaEmbarqueParadaList() {
|
||||||
|
return taxaEmbarqueParadaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaxaEmbarqueParadaList(MyListbox taxaEmbarqueParadaList) {
|
||||||
|
this.taxaEmbarqueParadaList = taxaEmbarqueParadaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextboxDecimal getTxtValor() {
|
||||||
|
return txtValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtValor(MyTextboxDecimal txtValor) {
|
||||||
|
this.txtValor = txtValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
lsOrgaoConcedente = orgaoConcedenteService.obtenerTodos();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
parada = (Parada) Executions.getCurrent().getArg().get("parada");
|
||||||
|
//taxaEmbarqueParada = (TaxaEmbarqueParada) Executions.getCurrent().getArg().get("taxaEmbarqueParada");
|
||||||
|
|
||||||
|
taxaEmbarqueParadaList.setItemRenderer(new RenderTaxaEmbarqueParada());
|
||||||
|
lsTaxaEmbarqueParada = new ArrayList<TaxaEmbarqueParada>();
|
||||||
|
|
||||||
|
if (parada.getParadaId() != null) {
|
||||||
|
|
||||||
|
lsTaxaEmbarqueParada = taxaEmbarqueParadaService.buscarPorLocalidade(parada);
|
||||||
|
taxaEmbarqueParadaList.setData(lsTaxaEmbarqueParada);
|
||||||
|
|
||||||
|
cmbParada.setText(parada.getDescparada());
|
||||||
|
cmbParada.setDisabled(Boolean.TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
onClick$rdSi(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (lsTaxaEmbarqueParada.isEmpty()) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueParadaController.MSG.necessaitaInfromar.value"),
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueParadaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (TaxaEmbarqueParada kmParada : lsTaxaEmbarqueParada) {
|
||||||
|
if (kmParada.getTaxaembarqueparadaId() == null) {
|
||||||
|
taxaEmbarqueParadaService.suscribir(kmParada);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueParadaController.MSG.suscribirOK"),
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueParadaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
|
|
||||||
|
|
||||||
|
} catch (Exception ex) {
|
||||||
|
log.error(ex);
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Error"),
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueParadaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// public void onClick$btnApagar(Event ev) throws InterruptedException {
|
||||||
|
// try {
|
||||||
|
// int resp = Messagebox.show(
|
||||||
|
// Labels.getLabel("editarTaxaEmbarqueParadaController.MSG.borrarPergunta"),
|
||||||
|
// Labels.getLabel("editarTaxaEmbarqueParadaController.window.title"),
|
||||||
|
// Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||||
|
//
|
||||||
|
// if (resp == Messagebox.YES) {
|
||||||
|
//
|
||||||
|
// taxaEmbarqueParadaService.borrar(taxaEmbarqueParada);
|
||||||
|
//
|
||||||
|
// Messagebox.show(
|
||||||
|
// Labels.getLabel("editarTaxaEmbarqueParadaController.MSG.borrarOK"),
|
||||||
|
// Labels.getLabel("editarTaxaEmbarqueParadaController.window.title"),
|
||||||
|
// Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
//
|
||||||
|
// taxaEmbarqueParadaList.removeItem(taxaEmbarqueParada);
|
||||||
|
//
|
||||||
|
// closeWindow();
|
||||||
|
// }
|
||||||
|
// } catch (Exception ex) {
|
||||||
|
// log.error(ex);
|
||||||
|
// Messagebox.show(
|
||||||
|
// Labels.getLabel("MSG.Error"),
|
||||||
|
// Labels.getLabel("editarTaxaEmbarqueParadaController.window.title"),
|
||||||
|
// Messagebox.OK, Messagebox.ERROR);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
public void onClick$rdNo(Event ev) {
|
||||||
|
txtKm.setConstraint("");
|
||||||
|
txtKm.setText("");
|
||||||
|
txtKm.setDisabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$rdSi(Event ev) {
|
||||||
|
txtKm.setConstraint("no empty, no zero, no negative");
|
||||||
|
txtKm.setDisabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnAdicionarTaxaEmbarqueParada(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
|
cmbParada.getValue();
|
||||||
|
cmbOrgao.getValue();
|
||||||
|
txtKm.getValue();
|
||||||
|
txtValor.getValue();
|
||||||
|
|
||||||
|
|
||||||
|
if (lsTaxaEmbarqueParada.isEmpty()) {
|
||||||
|
if (parada == null) {
|
||||||
|
parada = (Parada) cmbParada.getSelectedItem().getValue();
|
||||||
|
}
|
||||||
|
lsTaxaEmbarqueParada = taxaEmbarqueParadaService.buscarPorLocalidade(parada);
|
||||||
|
taxaEmbarqueParadaList.setData(lsTaxaEmbarqueParada);
|
||||||
|
}
|
||||||
|
|
||||||
|
//ChecandoDuplicado
|
||||||
|
boolean existeKmOrgao = false;
|
||||||
|
boolean existeFixo = false;
|
||||||
|
for (TaxaEmbarqueParada kmParada : lsTaxaEmbarqueParada) {
|
||||||
|
if (rdSi.isChecked()) {
|
||||||
|
if (kmParada.getOrgaoconcedenteId().equals((OrgaoConcedente) cmbOrgao.getSelectedItem().getValue())
|
||||||
|
&& kmParada.getIndtipo() == 'F') {
|
||||||
|
existeFixo = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (txtKm.getValue() != null
|
||||||
|
&& kmParada.getKmate() != null
|
||||||
|
&& kmParada.getKmate().equals(txtKm.getValue())
|
||||||
|
&& kmParada.getOrgaoconcedenteId().equals((OrgaoConcedente) cmbOrgao.getSelectedItem().getValue())) {
|
||||||
|
existeKmOrgao = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (kmParada.getOrgaoconcedenteId().equals((OrgaoConcedente) cmbOrgao.getSelectedItem().getValue())) {
|
||||||
|
existeFixo = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (existeKmOrgao) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueParadaController.MSG.existeKm"),
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueParadaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
limparInput();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (existeFixo) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueParadaController.MSG.existeFixo"),
|
||||||
|
Labels.getLabel("editarTaxaEmbarqueParadaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
limparInput();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
TaxaEmbarqueParada txParada = new TaxaEmbarqueParada();
|
||||||
|
|
||||||
|
Parada pr = new Parada();
|
||||||
|
if (cmbParada.getSelectedItem() == null) {
|
||||||
|
pr = parada;
|
||||||
|
} else {
|
||||||
|
pr = (Parada) cmbParada.getSelectedItem().getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
txParada.setParadaId(pr);
|
||||||
|
txParada.setOrgaoconcedenteId((OrgaoConcedente) cmbOrgao.getSelectedItem().getValue());
|
||||||
|
txParada.setKmate(txtKm.getValue());
|
||||||
|
txParada.setValortaxa(txtValor.getValueDecimal());
|
||||||
|
txParada.setActivo(true);
|
||||||
|
txParada.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
txParada.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
txParada.setIndtipo(rdSi.isChecked() ? 'K' : 'F');
|
||||||
|
|
||||||
|
lsTaxaEmbarqueParada.add(txParada);
|
||||||
|
taxaEmbarqueParadaList.setData(lsTaxaEmbarqueParada);
|
||||||
|
|
||||||
|
cmbParada.setDisabled(Boolean.TRUE);
|
||||||
|
limparInput();
|
||||||
|
if (rdSi.isChecked()) {
|
||||||
|
onClick$rdSi(null);
|
||||||
|
} else {
|
||||||
|
onClick$rdNo(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void limparInput() {
|
||||||
|
txtKm.setConstraint("");
|
||||||
|
txtValor.setConstraint("");
|
||||||
|
txtKm.setText("");
|
||||||
|
txtValor.setText("");
|
||||||
|
txtKm.setConstraint("no empty, no zero, no negative");
|
||||||
|
txtValor.setConstraint("no empty, no zero, no negative");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRemoverTaxaEmbarqueParada(Event ev) {
|
||||||
|
TaxaEmbarqueParada txParada = (TaxaEmbarqueParada) taxaEmbarqueParadaList.getSelected();
|
||||||
|
if (txParada != null) {
|
||||||
|
txParada.setActivo(Boolean.FALSE);
|
||||||
|
txParada.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
txParada.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
|
||||||
|
taxaEmbarqueParadaService.actualizacion(txParada);
|
||||||
|
|
||||||
|
lsTaxaEmbarqueParada.remove(txParada);
|
||||||
|
taxaEmbarqueParadaList.setData(lsTaxaEmbarqueParada);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Desenvolvimento
|
||||||
|
*/
|
||||||
|
public class ItemMenuTarifasTaxaEmbarqueKm extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuTarifasTaxaEmbarqueKm() {
|
||||||
|
super("busquedaTaxaEmbarqueKmController.window.title");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.TARIFAS.MENU.TAXAEMBARQUEKM";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/tarifas/busquedaTaxaEmbarqueKm.zul",
|
||||||
|
Labels.getLabel("busquedaTaxaEmbarqueKmController.window.title"), null, desktop);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Desenvolvimento
|
||||||
|
*/
|
||||||
|
public class ItemMenuTarifasTaxaEmbarqueParada extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuTarifasTaxaEmbarqueParada() {
|
||||||
|
super("busquedaTaxaEmbarqueParadaController.window.title");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.TARIFAS.MENU.TAXAEMBARQUELOCALIDADE";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/tarifas/busquedaTaxaEmbarqueParada.zul",
|
||||||
|
Labels.getLabel("busquedaTaxaEmbarqueParadaController.window.title"), null,desktop);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -68,6 +68,8 @@ tarifas.cambioVigencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ta
|
||||||
tarifas.modificacionMasiva=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuModificacionMasiva
|
tarifas.modificacionMasiva=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuModificacionMasiva
|
||||||
tarifas.tarifas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuTarifas
|
tarifas.tarifas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuTarifas
|
||||||
tarifas.tarifaEscala=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuTarifaEscala
|
tarifas.tarifaEscala=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuTarifaEscala
|
||||||
|
tarifas.taxaEmbarqueKm=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuTarifasTaxaEmbarqueKm
|
||||||
|
tarifas.taxaEmbarqueParada=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuTarifasTaxaEmbarqueParada
|
||||||
pasajeroFrecuente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.MenuPasajeroFrecuente
|
pasajeroFrecuente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.MenuPasajeroFrecuente
|
||||||
pasajeroFrecuente.tipoDomicilio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuTipoDomicilio
|
pasajeroFrecuente.tipoDomicilio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuTipoDomicilio
|
||||||
pasajeroFrecuente.tipoOcupacion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuTipoOcupacion
|
pasajeroFrecuente.tipoOcupacion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuTipoOcupacion
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueKm;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Desenvolvimento
|
||||||
|
*/
|
||||||
|
public class RenderTaxaEmbarqueKm implements ListitemRenderer {
|
||||||
|
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
TaxaEmbarqueKm taxaKm = (TaxaEmbarqueKm) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(taxaKm.getTaxaembarquekmId()==null?"-":taxaKm.getTaxaembarquekmId().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(taxaKm.getOrgaoconcedenteId().getDescOrgao());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(taxaKm.getKmate().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(taxaKm.getValortaxa().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", taxaKm);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Desenvolvimento
|
||||||
|
*/
|
||||||
|
public class RenderTaxaEmbarqueOrgao implements ListitemRenderer {
|
||||||
|
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
OrgaoConcedente orgao = (OrgaoConcedente) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(orgao.getOrgaoConcedenteId()==null?"-":orgao.getOrgaoConcedenteId().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(orgao.getDescOrgao());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", orgao);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueParada;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Desenvolvimento
|
||||||
|
*/
|
||||||
|
public class RenderTaxaEmbarqueParada implements ListitemRenderer {
|
||||||
|
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
TaxaEmbarqueParada taxaParada = (TaxaEmbarqueParada) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(taxaParada.getTaxaembarqueparadaId() == null ? " - " : taxaParada.getTaxaembarqueparadaId().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(taxaParada.getParadaId() == null ? " - " : taxaParada.getParadaId().getDescparada());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(taxaParada.getOrgaoconcedenteId() == null ? " - " : taxaParada.getOrgaoconcedenteId().getDescOrgao());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
lc = new Listcell(taxaParada.getKmate() == null ? " - " : taxaParada.getKmate().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(taxaParada.getIndtipo() == 'K' ? "Não" : "Sim");
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(taxaParada.getValortaxa() == null ? " - " : taxaParada.getValortaxa().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", taxaParada);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Desenvolvimento
|
||||||
|
*/
|
||||||
|
public class RenderTaxaEmbarqueParadaLocalidade implements ListitemRenderer {
|
||||||
|
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
Parada parada = (Parada) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(parada.getParadaId()==null?"-":parada.getParadaId().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(parada.getDescparada());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", parada);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -56,12 +56,14 @@ lb.id = ID
|
||||||
lb.dec = Descrição
|
lb.dec = Descrição
|
||||||
lb.Equivalencia = Equivalencia
|
lb.Equivalencia = Equivalencia
|
||||||
|
|
||||||
|
|
||||||
# tooltip botões
|
# tooltip botões
|
||||||
tooltiptext.btnFechar = Fechar
|
tooltiptext.btnFechar = Fechar
|
||||||
tooltiptext.btnEliminar = Eliminar
|
tooltiptext.btnEliminar = Eliminar
|
||||||
tooltiptext.btnActualizar = Atualizar
|
tooltiptext.btnActualizar = Atualizar
|
||||||
tooltiptext.btnAgregar = Incluir
|
tooltiptext.btnAgregar = Incluir
|
||||||
tooltiptext.btnGuardar = Salvar
|
tooltiptext.btnGuardar = Salvar
|
||||||
|
tooltiptext.btnPesquisa = Pesquisa
|
||||||
|
|
||||||
# Pantalla de início de sesión:
|
# Pantalla de início de sesión:
|
||||||
winLogin.title = Conectar
|
winLogin.title = Conectar
|
||||||
|
@ -3623,5 +3625,52 @@ copiarTarifaOficialController.window.title=Copiar Tarifa Oficial
|
||||||
copiarTarifaOficialController.btnGenerarVigencia.Label=Copiar Tarifa
|
copiarTarifaOficialController.btnGenerarVigencia.Label=Copiar Tarifa
|
||||||
copiarTarifaOficialController.vigencia.label=Vigência Tarifa
|
copiarTarifaOficialController.vigencia.label=Vigência Tarifa
|
||||||
|
|
||||||
|
# Pesquisa TaxaEmbarqueKm
|
||||||
|
busquedaTaxaEmbarqueKmController.window.title = Taxa Embarque por Intervalo de Km
|
||||||
|
busquedaTaxaEmbarqueKmController.btnRefresh.tooltiptext = Atualizar
|
||||||
|
busquedaTaxaEmbarqueKmController.btnNovo.tooltiptext = Incluir
|
||||||
|
busquedaTaxaEmbarqueKmController.btnCerrar.tooltiptext = Fechar
|
||||||
|
busquedaTaxaEmbarqueKmController.DescTaxaEmbarqueKm.label = Descrição
|
||||||
|
busquedaTaxaEmbarqueKmController.orgao = Orgão
|
||||||
|
|
||||||
|
|
||||||
|
# Editar TaxaEmbarqueKm
|
||||||
|
editarTaxaEmbarqueKmController.window.title = Taxa Embarque Km
|
||||||
|
editarTaxaEmbarqueKmController.btnApagar.tooltiptext = Eliminar
|
||||||
|
editarTaxaEmbarqueKmController.btnSalvar.tooltiptext = Salvar
|
||||||
|
editarTaxaEmbarqueKmController.btnFechar.tooltiptext = Fechar
|
||||||
|
editarTaxaEmbarqueKmController.km = KM
|
||||||
|
editarTaxaEmbarqueKmController.valor = Valor
|
||||||
|
editarTaxaEmbarqueKmController.MSG.necessaitaInfromar.value = Necessita informar um configuração de taxa de embarque
|
||||||
|
editarTaxaEmbarqueKmController.MSG.suscribirOK = Taxa de Embarque por KM registrado com sucesso.
|
||||||
|
editarTaxaEmbarqueKmController.MSG.borrarPergunta=Deseja elminar Taxa de Embarque por KM?
|
||||||
|
editarTaxaEmbarqueKmController.MSG.borrarOK=Taxa de Embarque por KM eliminado com sucesso.
|
||||||
|
editarTaxaEmbarqueKmController.MSG.existe= Já existe um registro com esse Km.
|
||||||
|
|
||||||
|
# Pesquisa TaxaEmbarqueParada
|
||||||
|
busquedaTaxaEmbarqueParadaController.window.title = Taxa Embarque por Parada
|
||||||
|
busquedaTaxaEmbarqueParadaController.btnRefresh.tooltiptext = Atualizar
|
||||||
|
busquedaTaxaEmbarqueParadaController.btnNovo.tooltiptext = Incluir
|
||||||
|
busquedaTaxaEmbarqueParadaController.btnCerrar.tooltiptext = Fechar
|
||||||
|
busquedaTaxaEmbarqueParadaController.DescTaxaEmbarqueParada.label = Descrição
|
||||||
|
busquedaTaxaEmbarqueParadaController.orgao = Orgão
|
||||||
|
busquedaTaxaEmbarqueParadaController.localidade = Localidade
|
||||||
|
busquedaTaxaEmbarqueParadaController.km = Km
|
||||||
|
busquedaTaxaEmbarqueParadaController.fixo = É fixo
|
||||||
|
busquedaTaxaEmbarqueParadaController.valor = Valor
|
||||||
|
|
||||||
|
# Editar TaxaEmbarqueParada
|
||||||
|
editarTaxaEmbarqueParadaController.window.title = Taxa Embarque Parada
|
||||||
|
editarTaxaEmbarqueParadaController.btnApagar.tooltiptext = Eliminar
|
||||||
|
editarTaxaEmbarqueParadaController.btnSalvar.tooltiptext = Salvar
|
||||||
|
editarTaxaEmbarqueParadaController.btnFechar.tooltiptext = Fechar
|
||||||
|
editarTaxaEmbarqueParadaController.Parada = Parada
|
||||||
|
editarTaxaEmbarqueParadaController.valor = Valor
|
||||||
|
editarTaxaEmbarqueParadaController.MSG.necessaitaInfromar.value = Necessita informar um configuração de taxa de embarque
|
||||||
|
editarTaxaEmbarqueParadaController.MSG.suscribirOK = Taxa de Embarque por Parada registrado com sucesso.
|
||||||
|
editarTaxaEmbarqueParadaController.MSG.borrarPergunta=Deseja elminar Taxa de Embarque por Parada?
|
||||||
|
editarTaxaEmbarqueParadaController.MSG.borrarOK=Taxa de Embarque por Parada eliminado com sucesso.
|
||||||
|
editarTaxaEmbarqueParadaController.MSG.existeFixo= Já existe um registro para esse orgão
|
||||||
|
editarTaxaEmbarqueParadaController.MSG.existeKm=Já existe um registro com esse Km.
|
||||||
#SeguroServiceImpl
|
#SeguroServiceImpl
|
||||||
TarifaOficialServiceImpl.msg.validacion.orgaoObligatorio=Informe o Órgão Concedente
|
TarifaOficialServiceImpl.msg.validacion.orgaoObligatorio=Informe o Órgão Concedente
|
|
@ -0,0 +1,53 @@
|
||||||
|
<?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="winBusquedaTaxaEmbarqueKm"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winBusquedaTaxaEmbarqueKm" title="${c:l('busquedaTaxaEmbarqueKmController.window.title')}"
|
||||||
|
apply="${busquedaTaxaEmbarqueKmController}" contentStyle="overflow:auto"
|
||||||
|
height="500px" width="750px" border="normal" >
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaTaxaEmbarqueKmController.btnRefresh.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaTaxaEmbarqueKmController.btnNovo.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winBusquedaTaxaEmbarqueKm.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaTaxaEmbarqueKmController.btnCerrar.tooltiptext')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="70%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTaxaEmbarqueKmController.orgao')}"/>
|
||||||
|
<textbox id="txtOrgao" 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="pagingTaxaEmbarqueKm" pageSize="15"/>
|
||||||
|
<listbox id="taxaEmbarqueKmList" 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(taxaembarquekmId)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaTaxaEmbarqueKmController.orgao')}"
|
||||||
|
sort="auto(descOrgao)"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,53 @@
|
||||||
|
<?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="winBusquedaTaxaEmbarqueParada"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winBusquedaTaxaEmbarqueParada" title="${c:l('busquedaTaxaEmbarqueParadaController.window.title')}"
|
||||||
|
apply="${busquedaTaxaEmbarqueParadaController}" contentStyle="overflow:auto"
|
||||||
|
height="500px" width="750px" border="normal" >
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaTaxaEmbarqueParadaController.btnRefresh.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaTaxaEmbarqueParadaController.btnNovo.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winBusquedaTaxaEmbarqueParada.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaTaxaEmbarqueParadaController.btnCerrar.tooltiptext')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="70%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTaxaEmbarqueParadaController.localidade')}"/>
|
||||||
|
<textbox id="txtParada" 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="pagingTaxaEmbarqueParada" pageSize="15"/>
|
||||||
|
<listbox id="paradaList" 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(taxaEmbarqueParadaId)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaTaxaEmbarqueParadaController.localidade')}"
|
||||||
|
sort="auto(paradaId.descparada)"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,96 @@
|
||||||
|
<?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="winEditarTaxaEmbarqueKm"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winEditarTaxaEmbarqueKm" border="normal"
|
||||||
|
apply="${editarTaxaEmbarqueKmController}"
|
||||||
|
width="550px" height="500px" contentStyle="overflow:auto"
|
||||||
|
title="${c:l('editarTaxaEmbarqueKmController.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('editarTaxaEmbarqueKmController.btnApagar.tooltiptext')}"/-->
|
||||||
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarTaxaEmbarqueKmController.btnSalvar.tooltiptext')}"/>
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winEditarTaxaEmbarqueKm.detach()"
|
||||||
|
tooltiptext="${c:l('editarTaxaEmbarqueKmController.btnFechar.tooltiptext')}"/>
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTaxaEmbarqueKmController.orgao')}"/>
|
||||||
|
<combobox id="cmbOrgao" constraint="no empty"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
model="@{winEditarTaxaEmbarqueKm$composer.lsOrgaoConcedente}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
selectedItem="@{winEditarTaxaEmbarqueKm$composer.orgao}"/>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<separator bar="true"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarTaxaEmbarqueKmController.km')}"/>
|
||||||
|
<intbox id="txtKm" maxlength="5"
|
||||||
|
constraint="no empty, no zero, no negative"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarTaxaEmbarqueKmController.valor')}"/>
|
||||||
|
<textbox id="txtValor"
|
||||||
|
constraint="no empty, no zero, no negative"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="5" scale="2"/>
|
||||||
|
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnAdicionarTaxaEmbarqueKm" height="20" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarTaxaEmbarqueKmController.btnAddCuponTaxaEmbarqueKm.tooltiptext')}"/>
|
||||||
|
<button id="btnRemoverTaxaEmbarqueKm" height="20" image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarTaxaEmbarqueKmController.btnBorrarCuponTaxaEmbarqueKm.tooltiptext')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<listbox id="taxaEmbarqueKmList" 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(taxaembarquekmId)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaTaxaEmbarqueKmController.orgao')}"
|
||||||
|
sort="auto(orgaoconcedenteId.descOrgao)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarTaxaEmbarqueKmController.km')}"
|
||||||
|
sort="auto(kmate)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarTaxaEmbarqueKmController.valor')}"
|
||||||
|
sort="auto(valortaxa)"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,109 @@
|
||||||
|
<?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="winEditarTaxaEmbarqueParada"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winEditarTaxaEmbarqueParada" border="normal"
|
||||||
|
apply="${editarTaxaEmbarqueParadaController}"
|
||||||
|
width="550px" height="500px" contentStyle="overflow:auto"
|
||||||
|
title="${c:l('editarTaxaEmbarqueParadaController.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('editarTaxaEmbarqueParadaController.btnApagar.tooltiptext')}"/-->
|
||||||
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarTaxaEmbarqueParadaController.btnSalvar.tooltiptext')}"/>
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winEditarTaxaEmbarqueParada.detach()"
|
||||||
|
tooltiptext="${c:l('editarTaxaEmbarqueParadaController.btnFechar.tooltiptext')}"/>
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTaxaEmbarqueParadaController.localidade')}"/>
|
||||||
|
<combobox id="cmbParada"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
|
mold="rounded" buttonVisible="true" width="70%" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<separator bar="true"/>
|
||||||
|
</toolbar>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTaxaEmbarqueParadaController.orgao')}"/>
|
||||||
|
<combobox id="cmbOrgao" constraint="no empty"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
model="@{winEditarTaxaEmbarqueParada$composer.lsOrgaoConcedente}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTaxaEmbarqueParadaController.fixo')}"/>
|
||||||
|
<radiogroup>
|
||||||
|
<radio label="KM" id="rdSi" checked="true"/>
|
||||||
|
<radio label="Fixo" id="rdNo"/>
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTaxaEmbarqueParadaController.km')}"/>
|
||||||
|
<intbox id="txtKm" maxlength="5"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTaxaEmbarqueParadaController.valor')}"/>
|
||||||
|
<textbox id="txtValor"
|
||||||
|
constraint="no empty, no zero, no negative"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="5" scale="2"/>
|
||||||
|
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnAdicionarTaxaEmbarqueParada" height="20" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarTaxaEmbarqueParadaController.btnAddCuponTaxaEmbarqueParada.tooltiptext')}"/>
|
||||||
|
<button id="btnRemoverTaxaEmbarqueParada" height="20" image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarTaxaEmbarqueParadaController.btnBorrarCuponTaxaEmbarqueParada.tooltiptext')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<listbox id="taxaEmbarqueParadaList" 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(taxaEmbarqueParadaId)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif" width="200px"
|
||||||
|
label="${c:l('busquedaTaxaEmbarqueParadaController.localidade')}"
|
||||||
|
sort="auto(paradaId.descparada)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaTaxaEmbarqueParadaController.orgao')}"
|
||||||
|
sort="auto(orgaoconcedenteId.descOrgao)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaTaxaEmbarqueParadaController.km')}"
|
||||||
|
sort="auto(kmate)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaTaxaEmbarqueParadaController.fixo')}"
|
||||||
|
sort="auto(indtipo)"/>
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaTaxaEmbarqueParadaController.valor')}"
|
||||||
|
sort="auto(valortaxa)"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue