AL-4545
parent
fcc7ef0e49
commit
0cbfaa06fc
6
pom.xml
6
pom.xml
|
@ -4,12 +4,12 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ventaboletosadm</artifactId>
|
<artifactId>ventaboletosadm</artifactId>
|
||||||
<version>1.163.3</version>
|
<version>1.164.0</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<modelWeb.version>1.121.3</modelWeb.version>
|
<modelWeb.version>1.122.0</modelWeb.version>
|
||||||
<flyway.version>1.103.1</flyway.version>
|
<flyway.version>1.104.0</flyway.version>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,250 @@
|
||||||
|
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
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.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.CodigoBarraTrecho;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Custom;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
import com.rjconsultores.ventaboletos.service.CustomService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCodigoBarraTrecho;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||||
|
|
||||||
|
@Controller("busquedaCodigoBarraTrechoController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class BusquedaCodigoBarraTrechoController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<CodigoBarraTrecho> plwCodigoBarraTrecho;
|
||||||
|
private MyListbox codigoBarraTrechoList;
|
||||||
|
private Paging pagingCodigoBarraTrecho;
|
||||||
|
private MyComboboxEmpresa comboEmpresa;
|
||||||
|
private MyComboboxParada cmbOrigen;
|
||||||
|
private MyComboboxParada cmbDestino;
|
||||||
|
private MyTextbox txtCodTerminal;
|
||||||
|
private MyTextbox txtCodEmpresa;
|
||||||
|
private MyTextbox txtCodRuta;
|
||||||
|
|
||||||
|
private List<Empresa> lsEmpresa;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
codigoBarraTrechoList.setItemRenderer(new RenderCodigoBarraTrecho());
|
||||||
|
codigoBarraTrechoList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
CodigoBarraTrecho codigoBarraTrecho = (CodigoBarraTrecho) codigoBarraTrechoList.getSelected();
|
||||||
|
verCodigoBarraTrecho(codigoBarraTrecho);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
|
private void verCodigoBarraTrecho(CodigoBarraTrecho codigoBarraTrecho) {
|
||||||
|
if (codigoBarraTrecho == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("codigoBarraTrecho", codigoBarraTrecho);
|
||||||
|
args.put("codigoBarraTrechoList", codigoBarraTrechoList);
|
||||||
|
|
||||||
|
openWindow("/gui/catalogos/editarCodigoBarraTrecho.zul", Labels.getLabel("editarConfiguracaoCodBarrasTrechoController.title"), args,
|
||||||
|
MODAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
HibernateSearchObject<CodigoBarraTrecho> codigoBarraTrechoBusqueda = new HibernateSearchObject<CodigoBarraTrecho>(
|
||||||
|
CodigoBarraTrecho.class, pagingCodigoBarraTrecho.getPageSize());
|
||||||
|
|
||||||
|
if (comboEmpresa.getSelectedItem() != null) {
|
||||||
|
Empresa empresa = (Empresa) comboEmpresa.getSelectedItem().getValue();
|
||||||
|
codigoBarraTrechoBusqueda.addFilterEqual("empresa.empresaId", empresa.getEmpresaId());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cmbOrigen.getSelectedItem() != null) {
|
||||||
|
Parada origen = (Parada) cmbOrigen.getSelectedItem().getValue();
|
||||||
|
codigoBarraTrechoBusqueda.addFilterEqual("origen.paradaId", origen.getParadaId());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cmbDestino.getSelectedItem() != null) {
|
||||||
|
Parada destino = (Parada) cmbDestino.getSelectedItem().getValue();
|
||||||
|
codigoBarraTrechoBusqueda.addFilterEqual("destino.paradaId", destino.getParadaId());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(txtCodTerminal.getText())) {
|
||||||
|
codigoBarraTrechoBusqueda.addFilterLike("codTerminal", txtCodTerminal.getText());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(txtCodEmpresa.getText())) {
|
||||||
|
codigoBarraTrechoBusqueda.addFilterLike("codEmpresa", txtCodEmpresa.getText());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(txtCodRuta.getText())) {
|
||||||
|
codigoBarraTrechoBusqueda.addFilterLike("codRuta", txtCodRuta.getText());
|
||||||
|
}
|
||||||
|
|
||||||
|
codigoBarraTrechoBusqueda.addFilterEqual(ACTIVO, Boolean.TRUE);
|
||||||
|
|
||||||
|
codigoBarraTrechoBusqueda.addSortAsc("empresa");
|
||||||
|
|
||||||
|
plwCodigoBarraTrecho.init(codigoBarraTrechoBusqueda, codigoBarraTrechoList, pagingCodigoBarraTrecho);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) {
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRefresh(Event ev) {
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnNovo(Event ev) {
|
||||||
|
verCodigoBarraTrecho(new CodigoBarraTrecho());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPadrao(Event ev) {
|
||||||
|
CustomService customService = (CustomService) AppContext.getApplicationContext().getBean("customService");
|
||||||
|
Custom custom = customService.buscar(CustomEnum.PADRAO_CODIGO_BARRA_TRECHO.getDescricao());
|
||||||
|
|
||||||
|
if (custom == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("custom", custom);
|
||||||
|
args.put("customList", new MyListbox());
|
||||||
|
|
||||||
|
openWindow("/gui/catalogos/editarCustom.zul",
|
||||||
|
Labels.getLabel("customController.window.title"), args, MODAL);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedListWrapper<CodigoBarraTrecho> getPlwCodigoBarraTrecho() {
|
||||||
|
return plwCodigoBarraTrecho;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlwCodigoBarraTrecho(PagedListWrapper<CodigoBarraTrecho> plwCodigoBarraTrecho) {
|
||||||
|
this.plwCodigoBarraTrecho = plwCodigoBarraTrecho;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getCodigoBarraTrechoList() {
|
||||||
|
return codigoBarraTrechoList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCodigoBarraTrechoList(MyListbox codigoBarraTrechoList) {
|
||||||
|
this.codigoBarraTrechoList = codigoBarraTrechoList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paging getPagingCodigoBarraTrecho() {
|
||||||
|
return pagingCodigoBarraTrecho;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagingCodigoBarraTrecho(Paging pagingCodigoBarraTrecho) {
|
||||||
|
this.pagingCodigoBarraTrecho = pagingCodigoBarraTrecho;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyComboboxEmpresa getComboEmpresa() {
|
||||||
|
return comboEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComboEmpresa(MyComboboxEmpresa comboEmpresa) {
|
||||||
|
this.comboEmpresa = comboEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyComboboxParada getCmbDestino() {
|
||||||
|
return cmbDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbDestino(MyComboboxParada cmbDestino) {
|
||||||
|
this.cmbDestino = cmbDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextbox getTxtCodTerminal() {
|
||||||
|
return txtCodTerminal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCodTerminal(MyTextbox txtCodTerminal) {
|
||||||
|
this.txtCodTerminal = txtCodTerminal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextbox getTxtCodEmpresa() {
|
||||||
|
return txtCodEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCodEmpresa(MyTextbox txtCodEmpresa) {
|
||||||
|
this.txtCodEmpresa = txtCodEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextbox getTxtCodRuta() {
|
||||||
|
return txtCodRuta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCodRuta(MyTextbox txtCodRuta) {
|
||||||
|
this.txtCodRuta = txtCodRuta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresa() {
|
||||||
|
return lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||||
|
this.lsEmpresa = lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EmpresaService getEmpresaService() {
|
||||||
|
return empresaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresaService(EmpresaService empresaService) {
|
||||||
|
this.empresaService = empresaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyComboboxParada getCmbOrigen() {
|
||||||
|
return cmbOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbOrigen(MyComboboxParada cmbOrigen) {
|
||||||
|
this.cmbOrigen = cmbOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,231 @@
|
||||||
|
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.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.CodigoBarraTrecho;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
import com.rjconsultores.ventaboletos.service.CodigoBarraTrechoService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||||
|
|
||||||
|
@Controller("editarCodigoBarraTrechoController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class EditarCodigoBarraTrechoController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private CodigoBarraTrechoService codigoBarraTrechoService;
|
||||||
|
|
||||||
|
private CodigoBarraTrecho codigoBarraTrecho;
|
||||||
|
|
||||||
|
private MyListbox codigoBarraTrechoList;
|
||||||
|
private List<Empresa> lsEmpresa;
|
||||||
|
private List<Parada> lsParada;
|
||||||
|
|
||||||
|
private MyComboboxEmpresa cmbEmpresa;
|
||||||
|
private MyComboboxParada cmbOrigen;
|
||||||
|
private MyComboboxParada cmbDestino;
|
||||||
|
private MyTextbox txtCodTerminal;
|
||||||
|
private MyTextbox txtCodEmpresa;
|
||||||
|
private MyTextbox txtCodRuta;
|
||||||
|
private Button btnApagar;
|
||||||
|
|
||||||
|
private static Logger log = LogManager.getLogger(EditarCodigoBarraTrechoController.class);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
codigoBarraTrecho = (CodigoBarraTrecho) Executions.getCurrent().getArg().get("codigoBarraTrecho");
|
||||||
|
codigoBarraTrechoList = (MyListbox) Executions.getCurrent().getArg().get("codigoBarraTrechoList");
|
||||||
|
|
||||||
|
if (codigoBarraTrecho != null && codigoBarraTrecho.getCodigoBarraId() != null) {
|
||||||
|
cmbEmpresa.setText(codigoBarraTrecho.getEmpresa().getNombempresa());
|
||||||
|
cmbOrigen.setComboItemByParada(codigoBarraTrecho.getOrigen());
|
||||||
|
cmbDestino.setComboItemByParada(codigoBarraTrecho.getDestino());
|
||||||
|
txtCodTerminal.setText(codigoBarraTrecho.getCodTerminal());
|
||||||
|
txtCodEmpresa.setText(codigoBarraTrecho.getCodEmpresa());
|
||||||
|
txtCodRuta.setText(codigoBarraTrecho.getCodRuta());
|
||||||
|
} else {
|
||||||
|
btnApagar.setVisible(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
try {
|
||||||
|
|
||||||
|
codigoBarraTrecho.setActivo(true);
|
||||||
|
codigoBarraTrecho.setEmpresa((Empresa) cmbEmpresa.getSelectedItem().getValue());
|
||||||
|
codigoBarraTrecho.setOrigen((Parada) cmbOrigen.getSelectedItem().getValue());
|
||||||
|
codigoBarraTrecho.setDestino((Parada) cmbDestino.getSelectedItem().getValue());
|
||||||
|
codigoBarraTrecho.setCodTerminal(txtCodTerminal.getText());
|
||||||
|
codigoBarraTrecho.setCodEmpresa(txtCodEmpresa.getText());
|
||||||
|
codigoBarraTrecho.setCodRuta(txtCodRuta.getText());
|
||||||
|
|
||||||
|
codigoBarraTrechoList.removeItem(codigoBarraTrecho);
|
||||||
|
|
||||||
|
if (codigoBarraTrecho.getCodigoBarraId() == null) {
|
||||||
|
codigoBarraTrechoList.addItemNovo(codigoBarraTrechoService.suscribir(codigoBarraTrecho));
|
||||||
|
} else {
|
||||||
|
codigoBarraTrechoList.addItemNovo(codigoBarraTrechoService.actualizacion(codigoBarraTrecho));
|
||||||
|
}
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error(e.getLocalizedMessage(), e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
||||||
|
try {
|
||||||
|
int resp = Messagebox.show(Labels.getLabel("editarConfiguracaoCodBarrasTrechoController.MSG.borrarPergunta"),
|
||||||
|
Labels.getLabel("editarConfiguracaoCodBarrasTrechoController.title"), Messagebox.YES | Messagebox.NO,
|
||||||
|
Messagebox.QUESTION);
|
||||||
|
|
||||||
|
if (resp == Messagebox.YES) {
|
||||||
|
|
||||||
|
codigoBarraTrechoService.borrar(codigoBarraTrecho);
|
||||||
|
|
||||||
|
Messagebox.show(Labels.getLabel("editarConfiguracaoCodBarrasTrechoController.MSG.borrarOK"),
|
||||||
|
Labels.getLabel("editarConfiguracaoCodBarrasTrechoController.title"), Messagebox.OK,
|
||||||
|
Messagebox.INFORMATION);
|
||||||
|
|
||||||
|
codigoBarraTrechoList.removeItem(codigoBarraTrecho);
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error(e.getLocalizedMessage(), e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public EmpresaService getEmpresaService() {
|
||||||
|
return empresaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresaService(EmpresaService empresaService) {
|
||||||
|
this.empresaService = empresaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CodigoBarraTrechoService getCodigoBarraTrechoService() {
|
||||||
|
return codigoBarraTrechoService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCodigoBarraTrechoService(CodigoBarraTrechoService codigoBarraTrechoService) {
|
||||||
|
this.codigoBarraTrechoService = codigoBarraTrechoService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CodigoBarraTrecho getCodigoBarraTrecho() {
|
||||||
|
return codigoBarraTrecho;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCodigoBarraTrecho(CodigoBarraTrecho codigoBarraTrecho) {
|
||||||
|
this.codigoBarraTrecho = codigoBarraTrecho;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getCodigoBarraTrechoList() {
|
||||||
|
return codigoBarraTrechoList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCodigoBarraTrechoList(MyListbox codigoBarraTrechoList) {
|
||||||
|
this.codigoBarraTrechoList = codigoBarraTrechoList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresa() {
|
||||||
|
return lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||||
|
this.lsEmpresa = lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Parada> getLsParada() {
|
||||||
|
return lsParada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsParada(List<Parada> lsParada) {
|
||||||
|
this.lsParada = lsParada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyComboboxEmpresa getCmbEmpresa() {
|
||||||
|
return cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEmpresa(MyComboboxEmpresa cmbEmpresa) {
|
||||||
|
this.cmbEmpresa = cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyComboboxParada getCmbOrigen() {
|
||||||
|
return cmbOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbOrigen(MyComboboxParada cmbOrigen) {
|
||||||
|
this.cmbOrigen = cmbOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyComboboxParada getCmbDestino() {
|
||||||
|
return cmbDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbDestino(MyComboboxParada cmbDestino) {
|
||||||
|
this.cmbDestino = cmbDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextbox getTxtCodTerminal() {
|
||||||
|
return txtCodTerminal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCodTerminal(MyTextbox txtCodTerminal) {
|
||||||
|
this.txtCodTerminal = txtCodTerminal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextbox getTxtCodEmpresa() {
|
||||||
|
return txtCodEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCodEmpresa(MyTextbox txtCodEmpresa) {
|
||||||
|
this.txtCodEmpresa = txtCodEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyTextbox getTxtCodRuta() {
|
||||||
|
return txtCodRuta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCodRuta(MyTextbox txtCodRuta) {
|
||||||
|
this.txtCodRuta = txtCodRuta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Button getBtnApagar() {
|
||||||
|
return btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBtnApagar(Button btnApagar) {
|
||||||
|
this.btnApagar = btnApagar;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuCodigoBarraTrecho extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuCodigoBarraTrecho() {
|
||||||
|
super("indexController.mniConfCodBarrasTrecho.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGOS.CODIGOBARRATRECHO";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/catalogos/busquedaCodigoBarraTrecho.zul",
|
||||||
|
Labels.getLabel("editarConfiguracaoCodBarrasTrechoController.title"), getArgs(), desktop);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -35,6 +35,7 @@ catalogos.tipoInformativoComissao=com.rjconsultores.ventaboletos.web.utilerias.m
|
||||||
catalogos.regionMetropolitana=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuRegionMetropolitana
|
catalogos.regionMetropolitana=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuRegionMetropolitana
|
||||||
catalogos.contasMD=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuBusquedaContasMD
|
catalogos.contasMD=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuBusquedaContasMD
|
||||||
catalogos.impresionLayout=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuImpresionLayoutConfig
|
catalogos.impresionLayout=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuImpresionLayoutConfig
|
||||||
|
catalogos.codigoBarraTrecho=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuCodigoBarraTrecho
|
||||||
gr=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.MenuGr
|
gr=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.MenuGr
|
||||||
gr.aidf=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.ItemMenuAidf
|
gr.aidf=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.ItemMenuAidf
|
||||||
gr.movimentacionBilhetes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.ItemMenuMovimentacionBilhetes
|
gr.movimentacionBilhetes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.ItemMenuMovimentacionBilhetes
|
||||||
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
|
||||||
|
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.CodigoBarraTrecho;
|
||||||
|
|
||||||
|
public class RenderCodigoBarraTrecho implements ListitemRenderer {
|
||||||
|
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
CodigoBarraTrecho codigoBarraTrecho = (CodigoBarraTrecho) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(codigoBarraTrecho.getCodigoBarraId().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(codigoBarraTrecho.getEmpresa().getNombempresa());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(codigoBarraTrecho.getOrigen().getDescparada());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(codigoBarraTrecho.getDestino().getDescparada());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(codigoBarraTrecho.getCodTerminal());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(codigoBarraTrecho.getCodEmpresa());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(codigoBarraTrecho.getCodRuta());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", codigoBarraTrecho);
|
||||||
|
}
|
||||||
|
}
|
|
@ -488,7 +488,7 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ConfiguracionProductoParada</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ConfiguracionProductoParada</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaNequiConfig</value>
|
<value>com.rjconsultores.ventaboletos.entidad.EmpresaNequiConfig</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.RevenueConfig</value>
|
<value>com.rjconsultores.ventaboletos.entidad.RevenueConfig</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.CodigoBarraTrecho</value>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
|
|
@ -10535,3 +10535,14 @@ winMovimentacionBilhetesPuntoVenta.numSerie.label = Series
|
||||||
winMovimentacionBilhetesPuntoVenta.origem.label = Origin
|
winMovimentacionBilhetesPuntoVenta.origem.label = Origin
|
||||||
winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag.
|
winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag.
|
||||||
winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Nature
|
winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Nature
|
||||||
|
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.title = Barcode Configuration Section
|
||||||
|
indexController.mniConfCodBarrasTrecho.label = Bar Code Configuration Section
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.MSG.borrarOK = Barcode configuration Section deleted successfully.
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.MSG.borrarPergunta = Do you want to delete this barcode configuration?
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.empresa = Enterprise
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.origem = Origin
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.destino = Destination
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codTerminal = Terminal Code
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codEmpresa = Company Code
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codRuta = Line Code
|
|
@ -10558,3 +10558,14 @@ winMovimentacionBilhetesPuntoVenta.numSerie.label = Série
|
||||||
winMovimentacionBilhetesPuntoVenta.origem.label = Origen
|
winMovimentacionBilhetesPuntoVenta.origem.label = Origen
|
||||||
winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag.
|
winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag.
|
||||||
winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Naturaleza
|
winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Naturaleza
|
||||||
|
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.title = Configuración de código de barras
|
||||||
|
indexController.mniConfCodBarrasTrecho.label = Configuración cód. de barras
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.MSG.borrarOK = Se eliminó correctamente el extracto de la configuración del código de barras.
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.MSG.borrarPergunta = ¿Quiere eliminar esta configuración de código de barras?
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.empresa = Empresa
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.origem = Origen
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.destino = Destino
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codTerminal = Cod. Terminal
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codEmpresa = Cod. Empresa
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codRuta = Cod. Ruta
|
||||||
|
|
|
@ -10560,3 +10560,14 @@ winMovimentacionBilhetesPuntoVenta.numSerie.label = Série
|
||||||
winMovimentacionBilhetesPuntoVenta.origem.label = Origen
|
winMovimentacionBilhetesPuntoVenta.origem.label = Origen
|
||||||
winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag.
|
winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag.
|
||||||
winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Naturaleza
|
winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Naturaleza
|
||||||
|
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.title = Configuración de código de barras
|
||||||
|
indexController.mniConfCodBarrasTrecho.label = Configuración cód. de barras
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.MSG.borrarOK = Se eliminó correctamente el extracto de la configuración del código de barras.
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.MSG.borrarPergunta = ¿Quiere eliminar esta configuración de código de barras?
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.empresa = Empresa
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.origem = Origen
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.destino = Destino
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codTerminal = Cod. Terminal
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codEmpresa = Cod. Empresa
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codRuta = Cod. Ruta
|
|
@ -10535,3 +10535,14 @@ winMovimentacionBilhetesPuntoVenta.numSerie.label = Série
|
||||||
winMovimentacionBilhetesPuntoVenta.origem.label = Origine
|
winMovimentacionBilhetesPuntoVenta.origem.label = Origine
|
||||||
winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag.
|
winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag.
|
||||||
winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Nature
|
winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Nature
|
||||||
|
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.title = Configuration du code-barres d'extrait
|
||||||
|
indexController.mniConfCodBarrasTrecho.label = Configuration des codes Extrait de barres
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.MSG.borrarOK = La configuration de l'extrait de code-barres a été supprimée avec succès.
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.MSG.borrarPergunta = Voulez-vous supprimer ce paramètre de code-barres ?
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.empresa = Entreprise
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.origem = Origine
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.destino = Destination
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codTerminal = Code. Terminal
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codEmpresa = Code. Entreprise
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codRuta = Code. Doubler
|
||||||
|
|
|
@ -10531,3 +10531,14 @@ winMovimentacionBilhetesPuntoVenta.numSerie.label = Série
|
||||||
winMovimentacionBilhetesPuntoVenta.origem.label = Origem
|
winMovimentacionBilhetesPuntoVenta.origem.label = Origem
|
||||||
winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag.
|
winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag.
|
||||||
winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Natureza
|
winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Natureza
|
||||||
|
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.title = Configuração de códigos de Barras Trecho
|
||||||
|
indexController.mniConfCodBarrasTrecho.label = Configuração Cod. Barras Trecho
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.MSG.borrarOK = Configuração de códigos de barras Trecho excluída com sucesso.
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.MSG.borrarPergunta = Deseja eliminar esta configuração de códigos de barras?
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.empresa = Empresa
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.origem = Origem
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.destino = Destino
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codTerminal = Cod. Terminal
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codEmpresa = Cod. Empresa
|
||||||
|
editarConfiguracaoCodBarrasTrechoController.codRuta = Cod. Linha
|
||||||
|
|
|
@ -0,0 +1,119 @@
|
||||||
|
<?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="winBusquedaCodigoBarraTrecho"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winBusquedaCodigoBarraTrecho" title="${c:l('busquedaArticuloController.window.title')}"
|
||||||
|
apply="${busquedaCodigoBarraTrechoController}" contentStyle="overflow:auto"
|
||||||
|
height="450px" width="670px" border="normal" >
|
||||||
|
<toolbar>
|
||||||
|
<hbox spacing="5px" style="padding:1px" align="left">
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaArticuloController.btnRefresh.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaArticuloController.btnNovo.tooltiptext')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winBusquedaCodigoBarraTrecho.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaArticuloController.btnCerrar.tooltiptext')}"/>
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<separator orient="horizontal" />
|
||||||
|
<button id="btnPadrao" height="20" image="/gui/img/enginer.png" width="35px" />
|
||||||
|
</hbox>
|
||||||
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
|
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="80%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
|
||||||
|
<row spans="1,3">
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracaoCodBarrasTrechoController.empresa')}" />
|
||||||
|
<combobox id="comboEmpresa" width="100%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa"
|
||||||
|
mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winBusquedaConfiguracaoCodBarras$composer.lsEmpresa}" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracaoCodBarrasTrechoController.origem')}" />
|
||||||
|
<combobox id="cmbOrigen" width="100%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
|
mold="rounded" buttonVisible="true" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracaoCodBarrasTrechoController.destino')}" />
|
||||||
|
<combobox id="cmbDestino" width="100%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
|
mold="rounded" buttonVisible="true" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracaoCodBarrasTrechoController.codTerminal')}" />
|
||||||
|
<textbox id="txtCodTerminal" width="98%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracaoCodBarrasTrechoController.codEmpresa')}" />
|
||||||
|
<textbox id="txtCodEmpresa" width="98%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracaoCodBarrasTrechoController.codRuta')}" />
|
||||||
|
<textbox id="txtCodRuta" width="98%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
|
label="${c:l('busquedaArticuloController.btnPesquisa.label')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<paging id="pagingCodigoBarraTrecho" pageSize="15"/>
|
||||||
|
<listbox id="codigoBarraTrechoList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" multiple="false" height="60%">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader id="lhId" width="70px" image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaArticuloController.lhId.label')}"
|
||||||
|
sort="auto(codigoBarraId)"/>
|
||||||
|
<listheader id="lhEmpresa" width="70px" image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarConfiguracaoCodBarrasTrechoController.empresa')}"
|
||||||
|
sort="auto(empresa)"/>
|
||||||
|
<listheader id="lhOrigem" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('editarConfiguracaoCodBarrasTrechoController.origem')}"
|
||||||
|
sort="auto(origen)"/>
|
||||||
|
<listheader id="lhDestino" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('editarConfiguracaoCodBarrasTrechoController.destino')}"
|
||||||
|
sort="auto(destino)"/>
|
||||||
|
<listheader id="lhCodTerminal" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('editarConfiguracaoCodBarrasTrechoController.codTerminal')}"
|
||||||
|
sort="auto(codTerminal)"/>
|
||||||
|
<listheader id="lhCodEmpresa" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('editarConfiguracaoCodBarrasTrechoController.codEmpresa')}"
|
||||||
|
sort="auto(codEmpresa)"/>
|
||||||
|
<listheader id="lhCodRuta" image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('editarConfiguracaoCodBarrasTrechoController.codRuta')}"
|
||||||
|
sort="auto(codRuta)"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,89 @@
|
||||||
|
<?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="winEditarCodigoBarraTrecho"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winEditarCodigoBarraTrecho" border="normal"
|
||||||
|
apply="${editarCodigoBarraTrechoController}"
|
||||||
|
width="400px" height="457x" contentStyle="overflow:auto"
|
||||||
|
title="${c:l('editarConfiguracaoCodBarrasTrechoController.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('editarArticuloController.btnApagar.tooltiptext')}"/>
|
||||||
|
<button id="btnSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarArticuloController.btnSalvar.tooltiptext')}"/>
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winEditarCodigoBarraTrecho.detach()"
|
||||||
|
tooltiptext="${c:l('editarArticuloController.btnFechar.tooltiptext')}"/>
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracaoCodBarrasTrechoController.empresa')}" />
|
||||||
|
<combobox id="cmbEmpresa" width="100%"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa"
|
||||||
|
mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winEditarCodigoBarraTrecho$composer.lsEmpresa}"
|
||||||
|
initialValue="@{winEditarCodigoBarraTrecho$composer.codigoBarraTrecho.empresa}"
|
||||||
|
selectedItem="@{winEditarCodigoBarraTrecho$composer.codigoBarraTrecho.empresa}" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracaoCodBarrasTrechoController.origem')}" />
|
||||||
|
<combobox id="cmbOrigen" width="100%"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
|
mold="rounded" buttonVisible="true" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracaoCodBarrasTrechoController.destino')}" />
|
||||||
|
<combobox id="cmbDestino" width="100%"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
|
mold="rounded" buttonVisible="true" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracaoCodBarrasTrechoController.codTerminal')}" />
|
||||||
|
<textbox id="txtCodTerminal" width="98%"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracaoCodBarrasTrechoController.codEmpresa')}" />
|
||||||
|
<textbox id="txtCodEmpresa" width="98%"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracaoCodBarrasTrechoController.codRuta')}" />
|
||||||
|
<textbox id="txtCodRuta" width="98%"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue