Merge pull request 'AL-4549' (!626) from AL-4549 into master
Reviewed-on: adm/VentaBoletosAdm#626 Reviewed-by: Gleison da Cruz <gleison.cruz@totvs.com.br> Reviewed-by: fabio <fabio.faria@rjconsultores.com.br>master
commit
da9f257fa4
4
pom.xml
4
pom.xml
|
@ -8,8 +8,8 @@
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<modelWeb.version>1.90.0</modelWeb.version>
|
<modelWeb.version>1.90.1</modelWeb.version>
|
||||||
<flyway.version>1.77.1</flyway.version>
|
<flyway.version>1.77.2</flyway.version>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,97 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.Executions;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
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.RenderAsignarBusExpresos;
|
||||||
|
|
||||||
|
@Controller("asignarBusExpresosController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class AsignarBusExpresosController extends MyGenericForwardComposer{
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<TrayectosExpresos> plwTrayectosExpresos;
|
||||||
|
|
||||||
|
MyTextbox txtNumSolicitud;
|
||||||
|
MyTextbox txtRuta;
|
||||||
|
MyTextbox txtIdaRegreso;
|
||||||
|
MyTextbox txtCantPasajeros;
|
||||||
|
MyTextbox txtFechaIda;
|
||||||
|
MyTextbox txtFechaRegreso;
|
||||||
|
MyTextbox txtSitioRecogidaIda;
|
||||||
|
MyTextbox txtSitioRecogidaRegreso;
|
||||||
|
|
||||||
|
private MyListbox trayectosList;
|
||||||
|
|
||||||
|
private Paging pagingTrayectosExpresos;
|
||||||
|
|
||||||
|
SolicitudExpreso expreso;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
expreso = (SolicitudExpreso) Executions.getCurrent().getArg().get("expreso");
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
trayectosList.setItemRenderer(new RenderAsignarBusExpresos(this));
|
||||||
|
|
||||||
|
txtNumSolicitud.setValue(expreso.getSolicitudExpresoId().toString());
|
||||||
|
txtRuta.setValue(expreso.getCiudadOrigen().getNombciudad() + " - " + expreso.getCiudadDestino().getNombciudad());
|
||||||
|
txtIdaRegreso.setValue(expreso.getIndViajeRedondo() == true ? "Ida y Regreso" : "Ida");
|
||||||
|
txtCantPasajeros.setValue(expreso.getCantidadPasajeros().toString());
|
||||||
|
txtFechaIda.setValue(DateUtil.getStringDate(expreso.getFechaHoraIda(), "dd/MM/yyyy"));
|
||||||
|
txtFechaRegreso.setValue(DateUtil.getStringDate(expreso.getFechaHoraRegreso(), "dd/MM/yyyy"));
|
||||||
|
txtSitioRecogidaIda.setValue(expreso.getDescSitioPartidaIda());
|
||||||
|
txtSitioRecogidaRegreso.setValue(expreso.getDescSitioPartidaRegreso());
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
HibernateSearchObject<TrayectosExpresos> buscarTrayectos =
|
||||||
|
new HibernateSearchObject<TrayectosExpresos>(TrayectosExpresos.class, pagingTrayectosExpresos.getPageSize());
|
||||||
|
|
||||||
|
buscarTrayectos.addFilterEqual("solicitudExpresoId.solicitudExpresoId", expreso.getSolicitudExpresoId());
|
||||||
|
buscarTrayectos.addFilterEqual("status", true);
|
||||||
|
|
||||||
|
plwTrayectosExpresos.init(buscarTrayectos, trayectosList, pagingTrayectosExpresos);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getTrayectosList() {
|
||||||
|
return trayectosList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrayectosList(MyListbox trayectosList) {
|
||||||
|
this.trayectosList = trayectosList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paging getPagingTrayectosExpresos() {
|
||||||
|
return pagingTrayectosExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagingTrayectosExpresos(Paging pagingTrayectosExpresos) {
|
||||||
|
this.pagingTrayectosExpresos = pagingTrayectosExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedListWrapper<TrayectosExpresos> getPlwTrayectosExpresos() {
|
||||||
|
return plwTrayectosExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlwTrayectosExpresos(PagedListWrapper<TrayectosExpresos> plwTrayectosExpresos) {
|
||||||
|
this.plwTrayectosExpresos = plwTrayectosExpresos;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,196 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
|
import java.io.ByteArrayInputStream;
|
||||||
|
import java.io.ByteArrayOutputStream;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.math.BigInteger;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Base64;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import org.apache.commons.io.FileUtils;
|
||||||
|
import org.apache.commons.io.IOUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.util.media.AMedia;
|
||||||
|
import org.zkoss.util.media.Media;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zhtml.Filedownload;
|
||||||
|
import org.zkoss.zhtml.Fileupload;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.Executions;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zk.ui.event.UploadEvent;
|
||||||
|
import org.zkoss.zul.Checkbox;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Messagebox;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyDatebox;
|
||||||
|
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.RenderCargaContratoExpresos;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderExpresosPorCotizar;
|
||||||
|
|
||||||
|
import javax.sql.rowset.serial.SerialBlob;
|
||||||
|
import javax.swing.JFileChooser;
|
||||||
|
|
||||||
|
import oracle.sql.BLOB;
|
||||||
|
|
||||||
|
@Controller("cargaContratoExpressosController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class CargaContratoExpressosController extends MyGenericForwardComposer{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<SolicitudExpreso> plwTrayectosExpresos;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
|
||||||
|
private List<Empresa> lsEmpresa;
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private MyListbox expresosList;
|
||||||
|
private Paging pagingExpresos;
|
||||||
|
private Checkbox ckServiciosInactivos;
|
||||||
|
|
||||||
|
private MyDatebox txtFechaInicio;
|
||||||
|
private MyDatebox txtFechaFin;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
SolicitudExpresosService solicitudExpresosService;
|
||||||
|
SolicitudExpreso expreso;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
expresosList.setItemRenderer(new RenderCargaContratoExpresos(this));
|
||||||
|
expresosList.addEventListener("onSelect", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
expreso = (SolicitudExpreso) expresosList.getSelected();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
HibernateSearchObject<SolicitudExpreso> buscarExpresos =
|
||||||
|
new HibernateSearchObject<SolicitudExpreso>(SolicitudExpreso.class, pagingExpresos.getPageSize());
|
||||||
|
|
||||||
|
Date fechaInicio = txtFechaInicio.getValue();
|
||||||
|
if(fechaInicio != null) {
|
||||||
|
buscarExpresos.addFilterGreaterOrEqual("FECSOLICITUD", fechaInicio);
|
||||||
|
}
|
||||||
|
|
||||||
|
Date fechaFin = txtFechaFin.getValue();
|
||||||
|
if(fechaFin != null) {
|
||||||
|
buscarExpresos.addFilterLessOrEqual("FECSOLICITUD", fechaFin);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(ckServiciosInactivos.isChecked()) {
|
||||||
|
buscarExpresos.addFilterLessOrEqual("ACTIVO", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
List<Integer> filterStatusSolicitudExpreso = new ArrayList<Integer>();
|
||||||
|
filterStatusSolicitudExpreso.add(1);
|
||||||
|
filterStatusSolicitudExpreso.add(2);
|
||||||
|
|
||||||
|
buscarExpresos.addFilterIn("statusSolicitudExpresoId", filterStatusSolicitudExpreso);
|
||||||
|
|
||||||
|
plwTrayectosExpresos.init(buscarExpresos, expresosList, pagingExpresos);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onUpload(UploadEvent event) throws IOException, InterruptedException {
|
||||||
|
if(expreso == null) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("cargaContratoController.MSG.errorExpresoNull"),
|
||||||
|
Labels.getLabel("winExpressoCargaContrato.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}else {
|
||||||
|
Media media = event.getMedia();
|
||||||
|
|
||||||
|
if(media.getFormat().equalsIgnoreCase("pdf")) {
|
||||||
|
InputStream inputStream = media.getStreamData();
|
||||||
|
byte[] bytesIs = IOUtils.toByteArray(inputStream);
|
||||||
|
|
||||||
|
expreso.setDocContrato(bytesIs);
|
||||||
|
|
||||||
|
solicitudExpresosService.actualizacion(expreso);
|
||||||
|
} else {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("cargaContratoController.MSG.errorFormatoContrato") + " " + media,
|
||||||
|
Labels.getLabel("winExpressoCargaContrato.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresa() {
|
||||||
|
return lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||||
|
this.lsEmpresa = lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbEmpresa() {
|
||||||
|
return cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEmpresa(Combobox cmbEmpresa) {
|
||||||
|
this.cmbEmpresa = cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getExpresosList() {
|
||||||
|
return expresosList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpresosList(MyListbox expresosList) {
|
||||||
|
this.expresosList = expresosList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paging getPagingExpresos() {
|
||||||
|
return pagingExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagingExpresos(Paging pagingExpresos) {
|
||||||
|
this.pagingExpresos = pagingExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyDatebox getTxtFechaInicio() {
|
||||||
|
return txtFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtFechaInicio(MyDatebox txtFechaInicio) {
|
||||||
|
this.txtFechaInicio = txtFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedListWrapper<SolicitudExpreso> getPlwTrayectosExpresos() {
|
||||||
|
return plwTrayectosExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlwTrayectosExpresos(PagedListWrapper<SolicitudExpreso> plwTrayectosExpresos) {
|
||||||
|
this.plwTrayectosExpresos = plwTrayectosExpresos;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,236 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.apache.commons.io.IOUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.util.media.Media;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.Executions;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zk.ui.event.UploadEvent;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
import org.zkoss.zul.Messagebox;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Articulo;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||||
|
import com.rjconsultores.ventaboletos.service.CiudadService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.TrayectosExpresosService;
|
||||||
|
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.RenderTrayectosExpreso;
|
||||||
|
|
||||||
|
@Controller("cotizarExpresoController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class CotizarExpresoController extends MyGenericForwardComposer{
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private CiudadService ciudadService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<TrayectosExpresos> plwTrayectosExpresos;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
TrayectosExpresosService trayectosExpresosService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
SolicitudExpresosService solicitudExpresosService;
|
||||||
|
|
||||||
|
SolicitudExpreso expreso;
|
||||||
|
TrayectosExpresos trayecto;
|
||||||
|
|
||||||
|
private MyTextbox txtNumSolicitud;
|
||||||
|
private MyTextbox txtRuta;
|
||||||
|
private MyTextbox txtIdaRegreso;
|
||||||
|
private MyTextbox txtCantPasajeros;
|
||||||
|
private MyTextbox txtFechaIda;
|
||||||
|
private MyTextbox txtFechaRegreso;
|
||||||
|
private MyTextbox txtSitioRecogidaIda;
|
||||||
|
private MyTextbox txtSitioRecogidaRegreso;
|
||||||
|
private MyTextbox archivoCotizacionPath;
|
||||||
|
|
||||||
|
private List<Ciudad> lsOrigen;
|
||||||
|
private List<Ciudad> lsDestino;
|
||||||
|
private Combobox cmbOrigen;
|
||||||
|
private Combobox cmbDestino;
|
||||||
|
|
||||||
|
private List<TrayectosExpresos> lsTrayectos = new ArrayList<TrayectosExpresos>();
|
||||||
|
private MyListbox trayectosList;
|
||||||
|
private Paging pagingTrayectos;
|
||||||
|
|
||||||
|
private byte[] docCotizacion;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
lsOrigen = ciudadService.obtenerTodos();
|
||||||
|
lsDestino = ciudadService.obtenerTodos();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
expreso = (SolicitudExpreso) Executions.getCurrent().getArg().get("expreso");
|
||||||
|
|
||||||
|
trayectosList.setItemRenderer(new RenderTrayectosExpreso());
|
||||||
|
trayectosList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
trayecto = (TrayectosExpresos) trayectosList.getSelected();
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
|
||||||
|
args.put("trayecto", trayecto);
|
||||||
|
|
||||||
|
openWindow("/gui/expressos/modificarTrayectoCotizar.zul", Labels.getLabel("expresosPorCotizarCotizar.window.title"), args, MODAL);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
txtNumSolicitud.setValue(expreso.getSolicitudExpresoId().toString());
|
||||||
|
txtRuta.setValue(expreso.getCiudadOrigen().getNombciudad() + " - " + expreso.getCiudadDestino().getNombciudad());
|
||||||
|
txtIdaRegreso.setValue(expreso.getIndViajeRedondo() == true ? Labels.getLabel("expresosController.lbl.idaVuelta") : Labels.getLabel("expresosController.lbl.ida"));
|
||||||
|
txtCantPasajeros.setValue(expreso.getCantidadPasajeros().toString());
|
||||||
|
txtFechaIda.setValue(expreso.getFechaHoraIda().toString());
|
||||||
|
txtFechaRegreso.setValue(expreso.getFechaHoraRegreso().toString());
|
||||||
|
txtSitioRecogidaIda.setValue(expreso.getDescSitioPartidaIda());
|
||||||
|
txtSitioRecogidaRegreso.setValue(expreso.getDescSitioPartidaRegreso());
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
HibernateSearchObject<TrayectosExpresos> buscarTrayectos =
|
||||||
|
new HibernateSearchObject<TrayectosExpresos>(TrayectosExpresos.class, pagingTrayectos.getPageSize());
|
||||||
|
|
||||||
|
buscarTrayectos.addFilterEqual("solicitudExpresoId.solicitudExpresoId", expreso.getSolicitudExpresoId());
|
||||||
|
|
||||||
|
buscarTrayectos.addFilterEqual("activo", true);
|
||||||
|
|
||||||
|
plwTrayectosExpresos.init(buscarTrayectos, trayectosList, pagingTrayectos);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onUpload(UploadEvent event) throws IOException, InterruptedException {
|
||||||
|
org.zkoss.util.media.Media media = event.getMedia();
|
||||||
|
|
||||||
|
if(media.getFormat().toString().equalsIgnoreCase("pdf")) {
|
||||||
|
InputStream inputStream = media.getStreamData();
|
||||||
|
byte[] bytesIs = IOUtils.toByteArray(inputStream);
|
||||||
|
|
||||||
|
docCotizacion = bytesIs;
|
||||||
|
|
||||||
|
archivoCotizacionPath.setValue(media.getName());
|
||||||
|
}else {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("expresoController.MSG.errorArchivo") + " " + media,
|
||||||
|
Labels.getLabel("expresosPorCotizarCotizar.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnAgregarTrayecto(Event event) throws Exception {
|
||||||
|
agregarTrayectoExpreso();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRefresh(Event event) throws Exception {
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnGuardarCotizacion(Event event) throws Exception {
|
||||||
|
if(docCotizacion == null) {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("expresoController.MSG.errorArchivo"),
|
||||||
|
Labels.getLabel("expresosPorCotizarCotizar.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}else {
|
||||||
|
expreso.setDocCotizacion(docCotizacion);
|
||||||
|
expreso.setStatusSolicitudExpresoId(2);
|
||||||
|
solicitudExpresosService.actualizacion(expreso);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onFocus$winCotizarExpresso(Event event) throws Exception {
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void agregarTrayectoExpreso() {
|
||||||
|
|
||||||
|
trayecto = new TrayectosExpresos();
|
||||||
|
trayecto.setSolicitudExpresoId(expreso);
|
||||||
|
trayecto.setDescTrayecto(cmbOrigen.getValue() + " - " + cmbDestino.getValue());
|
||||||
|
trayecto.setCantVehiculos(0);
|
||||||
|
trayecto.setValorTrayecto(0);
|
||||||
|
|
||||||
|
trayectosExpresosService.suscribir(trayecto);
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
public SolicitudExpreso getExpreso() {
|
||||||
|
return expreso;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpreso(SolicitudExpreso expreso) {
|
||||||
|
this.expreso = expreso;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbOrigen() {
|
||||||
|
return cmbOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbOrigen(Combobox cmbOrigen) {
|
||||||
|
this.cmbOrigen = cmbOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Ciudad> getLsOrigen() {
|
||||||
|
return lsOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsOrigen(List<Ciudad> lsOrigen) {
|
||||||
|
this.lsOrigen = lsOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Ciudad> getLsDestino() {
|
||||||
|
return lsDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsDestino(List<Ciudad> lsDestino) {
|
||||||
|
this.lsDestino = lsDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbDestino() {
|
||||||
|
return cmbDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbDestino(Combobox cmbDestino) {
|
||||||
|
this.cmbDestino = cmbDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paging getPagingTrayectos() {
|
||||||
|
return pagingTrayectos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagingTrayectos(Paging pagingTrayectos) {
|
||||||
|
this.pagingTrayectos = pagingTrayectos;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,143 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Checkbox;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyDatebox;
|
||||||
|
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.RenderDocumentosExpresos;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderExpresosPorCotizar;
|
||||||
|
|
||||||
|
@Controller("documentosExpresosController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class DocumentosExpresosController extends MyGenericForwardComposer{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<SolicitudExpreso> plwTrayectosExpresos;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
|
||||||
|
private List<Empresa> lsEmpresa;
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private MyListbox expresosList;
|
||||||
|
private Paging pagingExpresos;
|
||||||
|
private Checkbox ckServiciosInactivos;
|
||||||
|
|
||||||
|
private MyDatebox txtFechaInicio;
|
||||||
|
private MyDatebox txtFechaFin;
|
||||||
|
|
||||||
|
SolicitudExpreso expreso;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
expresosList.setItemRenderer(new RenderDocumentosExpresos(this, new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event arg0) throws Exception {
|
||||||
|
expreso = (SolicitudExpreso)arg0.getTarget().getAttribute("data");
|
||||||
|
|
||||||
|
//expreso.setStatusSolicitudExpresoId(); -- UPDATE ID SOLICITUD A CRÉDITO
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
expresosList.addEventListener("onClick", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
expreso = (SolicitudExpreso) expresosList.getSelected();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
HibernateSearchObject<SolicitudExpreso> buscarExpresos =
|
||||||
|
new HibernateSearchObject<SolicitudExpreso>(SolicitudExpreso.class, pagingExpresos.getPageSize());
|
||||||
|
|
||||||
|
Date fechaInicio = txtFechaInicio.getValue();
|
||||||
|
if(fechaInicio != null) {
|
||||||
|
buscarExpresos.addFilterGreaterOrEqual("FECSOLICITUD", fechaInicio);
|
||||||
|
}
|
||||||
|
|
||||||
|
Date fechaFin = txtFechaFin.getValue();
|
||||||
|
if(fechaFin != null) {
|
||||||
|
buscarExpresos.addFilterLessOrEqual("FECSOLICITUD", fechaFin);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(ckServiciosInactivos.isChecked()) {
|
||||||
|
buscarExpresos.addFilterLessOrEqual("ACTIVO", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
plwTrayectosExpresos.init(buscarExpresos, expresosList, pagingExpresos);
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresa() {
|
||||||
|
return lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||||
|
this.lsEmpresa = lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbEmpresa() {
|
||||||
|
return cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEmpresa(Combobox cmbEmpresa) {
|
||||||
|
this.cmbEmpresa = cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getExpresosList() {
|
||||||
|
return expresosList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpresosList(MyListbox expresosList) {
|
||||||
|
this.expresosList = expresosList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paging getPagingExpresos() {
|
||||||
|
return pagingExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagingExpresos(Paging pagingExpresos) {
|
||||||
|
this.pagingExpresos = pagingExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyDatebox getTxtFechaInicio() {
|
||||||
|
return txtFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtFechaInicio(MyDatebox txtFechaInicio) {
|
||||||
|
this.txtFechaInicio = txtFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedListWrapper<SolicitudExpreso> getPlwTrayectosExpresos() {
|
||||||
|
return plwTrayectosExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlwTrayectosExpresos(PagedListWrapper<SolicitudExpreso> plwTrayectosExpresos) {
|
||||||
|
this.plwTrayectosExpresos = plwTrayectosExpresos;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,161 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Calendar;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
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.Checkbox;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Constante;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FormaPago;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.GrupoCortesia;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoCortesia;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoIdentificacion;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.TipoIdentificacionService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyDatebox;
|
||||||
|
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.RenderExpresosPorCotizar;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderHistoricoFormaPagoSelecao;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||||
|
import com.trg.search.Filter;
|
||||||
|
|
||||||
|
@Controller("expressosPorCotizarController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class ExpressosPorCotizarController extends MyGenericForwardComposer{
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<SolicitudExpreso> plwTrayectosExpresos;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
SolicitudExpresosService solicitudExpresosService;
|
||||||
|
|
||||||
|
private List<Empresa> lsEmpresa;
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private MyListbox expresosList;
|
||||||
|
private Paging pagingExpresos;
|
||||||
|
private Checkbox ckServiciosInactivos;
|
||||||
|
|
||||||
|
private MyDatebox txtFechaInicio;
|
||||||
|
private MyDatebox txtFechaFin;
|
||||||
|
|
||||||
|
SolicitudExpreso expreso;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
expresosList.setItemRenderer(new RenderExpresosPorCotizar(this));
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
HibernateSearchObject<SolicitudExpreso> buscarExpresos =
|
||||||
|
new HibernateSearchObject<SolicitudExpreso>(SolicitudExpreso.class, pagingExpresos.getPageSize());
|
||||||
|
|
||||||
|
Date fechaInicio = txtFechaInicio.getValue();
|
||||||
|
if(fechaInicio != null) {
|
||||||
|
buscarExpresos.addFilterGreaterOrEqual("FECSOLICITUD", fechaInicio);
|
||||||
|
}
|
||||||
|
|
||||||
|
Date fechaFin = txtFechaFin.getValue();
|
||||||
|
if(fechaFin != null) {
|
||||||
|
buscarExpresos.addFilterLessOrEqual("FECSOLICITUD", fechaFin);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(ckServiciosInactivos.isChecked()) {
|
||||||
|
buscarExpresos.addFilterEqual("ACTIVO", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
List<Integer> filterStatusSolicitudExpreso = new ArrayList<Integer>();
|
||||||
|
filterStatusSolicitudExpreso.add(1);
|
||||||
|
filterStatusSolicitudExpreso.add(2);
|
||||||
|
|
||||||
|
buscarExpresos.addFilterIn("statusSolicitudExpresoId", filterStatusSolicitudExpreso);
|
||||||
|
|
||||||
|
plwTrayectosExpresos.init(buscarExpresos, expresosList, pagingExpresos);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRefresh(Event ev) {
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresa() {
|
||||||
|
return lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||||
|
this.lsEmpresa = lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbEmpresa() {
|
||||||
|
return cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEmpresa(Combobox cmbEmpresa) {
|
||||||
|
this.cmbEmpresa = cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getExpresosList() {
|
||||||
|
return expresosList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpresosList(MyListbox expresosList) {
|
||||||
|
this.expresosList = expresosList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paging getPagingExpresos() {
|
||||||
|
return pagingExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagingExpresos(Paging pagingExpresos) {
|
||||||
|
this.pagingExpresos = pagingExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyDatebox getTxtFechaInicio() {
|
||||||
|
return txtFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtFechaInicio(MyDatebox txtFechaInicio) {
|
||||||
|
this.txtFechaInicio = txtFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedListWrapper<SolicitudExpreso> getPlwTrayectosExpresos() {
|
||||||
|
return plwTrayectosExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlwTrayectosExpresos(PagedListWrapper<SolicitudExpreso> plwTrayectosExpresos) {
|
||||||
|
this.plwTrayectosExpresos = plwTrayectosExpresos;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,69 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.Executions;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zul.Window;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||||
|
import com.rjconsultores.ventaboletos.service.TrayectosExpresosService;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||||
|
|
||||||
|
@Controller("modificarTrayectoCotizarController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class ModificarTrayectoExpresoController extends MyGenericForwardComposer{
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
TrayectosExpresosService trayectosExpresosService;
|
||||||
|
|
||||||
|
TrayectosExpresos trayecto;
|
||||||
|
|
||||||
|
private Window winCotizarExpresso;
|
||||||
|
|
||||||
|
private MyTextbox txtRuta;
|
||||||
|
private MyTextbox txtCantidadVehiculos;
|
||||||
|
private MyTextbox txtValorTrayecto;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
trayecto = (TrayectosExpresos) Executions.getCurrent().getArg().get("trayecto");
|
||||||
|
winCotizarExpresso = (Window) Executions.getCurrent().getArg().get("winCotizarExpresso");
|
||||||
|
|
||||||
|
txtRuta.setValue(trayecto.getDescTrayecto());
|
||||||
|
|
||||||
|
if(trayecto.getCantVehiculos() == null) {
|
||||||
|
txtCantidadVehiculos.setValue("0");
|
||||||
|
}else {
|
||||||
|
txtCantidadVehiculos.setValue(trayecto.getCantVehiculos().toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
if(trayecto.getValorTrayecto() == null) {
|
||||||
|
txtValorTrayecto.setValue("0");
|
||||||
|
}else {
|
||||||
|
txtValorTrayecto.setValue(trayecto.getValorTrayecto().toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnGuardar(Event event) throws Exception {
|
||||||
|
|
||||||
|
Integer cantVechiculos = Integer.valueOf(txtCantidadVehiculos.getValue().toString());
|
||||||
|
Integer valorTrayecto = Integer.valueOf(txtValorTrayecto.getValue().toString());
|
||||||
|
|
||||||
|
trayecto.setCantVehiculos(cantVechiculos);
|
||||||
|
trayecto.setValorTrayecto(valorTrayecto);
|
||||||
|
|
||||||
|
trayectosExpresosService.actualizacion(trayecto);
|
||||||
|
|
||||||
|
winCotizarExpresso.focus();
|
||||||
|
|
||||||
|
this.closeWindow();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,122 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zul.Checkbox;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyDatebox;
|
||||||
|
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.RenderProgramacionVehiculosExpresos;
|
||||||
|
|
||||||
|
@Controller("programacionVehiculoExpresosController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class ProgramacionVehiculosExpresosController extends MyGenericForwardComposer{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<SolicitudExpreso> plwTrayectosExpresos;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
|
||||||
|
private List<Empresa> lsEmpresa;
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private MyListbox expresosList;
|
||||||
|
private Paging pagingExpresos;
|
||||||
|
private Checkbox ckServiciosInactivos;
|
||||||
|
|
||||||
|
private MyDatebox txtFechaInicio;
|
||||||
|
private MyDatebox txtFechaFin;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
expresosList.setItemRenderer(new RenderProgramacionVehiculosExpresos(this));
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
HibernateSearchObject<SolicitudExpreso> buscarExpresos =
|
||||||
|
new HibernateSearchObject<SolicitudExpreso>(SolicitudExpreso.class, pagingExpresos.getPageSize());
|
||||||
|
|
||||||
|
Date fechaInicio = txtFechaInicio.getValue();
|
||||||
|
if(fechaInicio != null) {
|
||||||
|
buscarExpresos.addFilterGreaterOrEqual("FECSOLICITUD", fechaInicio);
|
||||||
|
}
|
||||||
|
|
||||||
|
Date fechaFin = txtFechaFin.getValue();
|
||||||
|
if(fechaFin != null) {
|
||||||
|
buscarExpresos.addFilterLessOrEqual("FECSOLICITUD", fechaFin);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(ckServiciosInactivos.isChecked()) {
|
||||||
|
buscarExpresos.addFilterLessOrEqual("ACTIVO", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
plwTrayectosExpresos.init(buscarExpresos, expresosList, pagingExpresos);
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresa() {
|
||||||
|
return lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||||
|
this.lsEmpresa = lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbEmpresa() {
|
||||||
|
return cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEmpresa(Combobox cmbEmpresa) {
|
||||||
|
this.cmbEmpresa = cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getExpresosList() {
|
||||||
|
return expresosList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpresosList(MyListbox expresosList) {
|
||||||
|
this.expresosList = expresosList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paging getPagingExpresos() {
|
||||||
|
return pagingExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagingExpresos(Paging pagingExpresos) {
|
||||||
|
this.pagingExpresos = pagingExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyDatebox getTxtFechaInicio() {
|
||||||
|
return txtFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtFechaInicio(MyDatebox txtFechaInicio) {
|
||||||
|
this.txtFechaInicio = txtFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedListWrapper<SolicitudExpreso> getPlwTrayectosExpresos() {
|
||||||
|
return plwTrayectosExpresos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlwTrayectosExpresos(PagedListWrapper<SolicitudExpreso> plwTrayectosExpresos) {
|
||||||
|
this.plwTrayectosExpresos = plwTrayectosExpresos;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuCargaContrato extends DefaultItemMenuSistema{
|
||||||
|
|
||||||
|
public ItemMenuCargaContrato() {
|
||||||
|
super("indexController.mniExpressosCargaContrato.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/expressos/cargaContrato.zul",
|
||||||
|
Labels.getLabel("indexController.mniExpressosCargaContrato.label"),
|
||||||
|
getArgs(), desktop);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuDocumentos extends DefaultItemMenuSistema{
|
||||||
|
|
||||||
|
public ItemMenuDocumentos() {
|
||||||
|
super("indexController.mniExpressosDocumentos.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/expressos/documentosExpreso.zul",
|
||||||
|
Labels.getLabel("indexController.mniExpressosDocumentos.label"),
|
||||||
|
getArgs(), desktop);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuPorCotizar extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuPorCotizar() {
|
||||||
|
super("indexController.mniExpressosPorCotizar.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/expressos/porCotizar.zul",
|
||||||
|
Labels.getLabel("indexController.mniExpressosPorCotizar.label"),
|
||||||
|
getArgs(), desktop);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuProgramacionVehiculo extends DefaultItemMenuSistema{
|
||||||
|
public ItemMenuProgramacionVehiculo() {
|
||||||
|
super("indexController.mniExpressosProgramacionVehiculos.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/expressos/programacionVehiculoExpreso.zul",
|
||||||
|
Labels.getLabel("indexController.mniExpressosProgramacionVehiculos.label"),
|
||||||
|
getArgs(), desktop);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class MenuExpressos extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public MenuExpressos() {
|
||||||
|
super("indexController.mnExpressos.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS";
|
||||||
|
}
|
||||||
|
}
|
|
@ -353,5 +353,15 @@ cortesias.grupoCortesia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.c
|
||||||
cortesias.tipoCortesia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuTipoCortesia
|
cortesias.tipoCortesia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuTipoCortesia
|
||||||
cortesias.tipoCortesiaDescuento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuTipoCortesiaDescuento
|
cortesias.tipoCortesiaDescuento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuTipoCortesiaDescuento
|
||||||
cortesias.cortesiaDireccion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuCortesiaDireccion
|
cortesias.cortesiaDireccion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuCortesiaDireccion
|
||||||
|
#Expressos
|
||||||
|
expressos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.MenuExpressos
|
||||||
|
expressos.porCotizar=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuPorCotizar
|
||||||
|
expressos.cargaContrato=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuCargaContrato
|
||||||
|
expressos.programacionVehiculo=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuProgramacionVehiculo
|
||||||
|
expressos.documentos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuDocumentos
|
||||||
|
#expressos.cumplimientoServicio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuCumplimientoServicio
|
||||||
|
#expressos.log=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuLog
|
||||||
|
#expressos.InformeViajesOcasionales=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuInformeViajesOcasionales
|
||||||
|
#expressos.seguimientoExpresos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuSeguimientoExpresos
|
||||||
ayuda=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ayuda.MenuAyuda
|
ayuda=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ayuda.MenuAyuda
|
||||||
ayuda.version=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ayuda.ItemMenuVersion
|
ayuda.version=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ayuda.ItemMenuVersion
|
|
@ -0,0 +1,110 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.zkoss.util.media.AMedia;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zhtml.Filedownload;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Button;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||||
|
import com.rjconsultores.ventaboletos.service.TrayectosExpresosService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
import com.rjconsultores.ventaboletos.web.gui.controladores.expressos.AsignarBusExpresosController;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
|
||||||
|
public class RenderAsignarBusExpresos implements ListitemRenderer {
|
||||||
|
|
||||||
|
TrayectosExpresos trayecto;
|
||||||
|
|
||||||
|
AsignarBusExpresosController winAsignarBus;
|
||||||
|
|
||||||
|
public RenderAsignarBusExpresos(AsignarBusExpresosController window) {
|
||||||
|
super();
|
||||||
|
winAsignarBus = window;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem item, Object data) throws Exception {
|
||||||
|
TrayectosExpresos trayectos = (TrayectosExpresos) data;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(trayectos.getDescTrayecto());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(trayectos.getSolicitudExpresoId().getFechaHoraIda(), "dd/MM/yyyy"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(trayectos.getTrayectoExpresoId().toString());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
if(trayectos.getNumPlaca() == null) {
|
||||||
|
lc = new Listcell();
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
Button btnCargarPlaca = new Button(Labels.getLabel("expresosController.lbl.cargarPlaca"));
|
||||||
|
btnCargarPlaca.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
trayecto = (TrayectosExpresos)listItem.getAttribute("data");
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("trayecto", trayecto);
|
||||||
|
|
||||||
|
winAsignarBus.openWindow("/gui/expressos/cargarPlacaTrayectoExpreso.zul", Labels.getLabel("asignarBusExpreso.window.title"), args, PantallaUtileria.MODAL);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
lc.appendChild(btnCargarPlaca);
|
||||||
|
}else {
|
||||||
|
lc = new Listcell(trayectos.getNumPlaca());
|
||||||
|
lc.setParent(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
lc = new Listcell();
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
if(trayectos.getDocFluec() == null) {
|
||||||
|
Button btnCargarFluec = new Button(Labels.getLabel("expresosController.lbl.cargarFluec"));
|
||||||
|
btnCargarFluec.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
trayecto = (TrayectosExpresos)listItem.getAttribute("data");
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("trayecto", trayecto);
|
||||||
|
|
||||||
|
winAsignarBus.openWindow("/gui/expressos/cargarFluecTrayectoExpreso.zul", Labels.getLabel("asignarBusExpreso.window.title"), args, PantallaUtileria.MODAL);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
lc.appendChild(btnCargarFluec);
|
||||||
|
}else {
|
||||||
|
Button btnVerFluec = new Button(Labels.getLabel("expresosController.lbl.verFluec"));
|
||||||
|
btnVerFluec.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
trayecto = (TrayectosExpresos)listItem.getAttribute("data");
|
||||||
|
|
||||||
|
AMedia amedia = new AMedia("fluec.pdf", "pdf", null, trayecto.getDocFluec());
|
||||||
|
|
||||||
|
org.zkoss.util.media.Media pdf = amedia;
|
||||||
|
Filedownload.save(pdf);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
lc.appendChild(btnVerFluec);
|
||||||
|
}
|
||||||
|
|
||||||
|
item.setAttribute("data", trayectos);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,130 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import java.awt.FileDialog;
|
||||||
|
import java.awt.Frame;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import javax.swing.JFileChooser;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.filechooser.FileNameExtensionFilter;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.zkoss.util.media.Media;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zhtml.Fileupload;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Button;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
import org.zkoss.zul.Messagebox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||||
|
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
import com.rjconsultores.ventaboletos.web.gui.controladores.expressos.CargaContratoExpressosController;
|
||||||
|
import com.rjconsultores.ventaboletos.web.gui.controladores.expressos.ExpressosPorCotizarController;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
|
||||||
|
public class RenderCargaContratoExpresos implements ListitemRenderer{
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private EventListener listenerGenerico;
|
||||||
|
|
||||||
|
private CargaContratoExpressosController expresosControllerWindow;
|
||||||
|
|
||||||
|
private SolicitudExpreso expreso;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
SolicitudExpresosService expresosService;
|
||||||
|
|
||||||
|
public RenderCargaContratoExpresos(CargaContratoExpressosController window) {
|
||||||
|
super();
|
||||||
|
expresosControllerWindow = window;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem item, Object data) throws Exception {
|
||||||
|
SolicitudExpreso expresos = (SolicitudExpreso) data;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(expresos.getSolicitudExpresoId().toString());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(expresos.getFechaSolicitud(), "dd/MM/yyyy"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
String ruta = expresos.getCiudadOrigen().getNombciudad() + " - " + expresos.getCiudadDestino().getNombciudad();
|
||||||
|
lc = new Listcell(ruta);
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
if(expresos.getIndViajeRedondo() == false) {
|
||||||
|
lc = new Listcell(Labels.getLabel("expresosController.lbl.ida"));
|
||||||
|
lc.setParent(item);
|
||||||
|
}else if (expresos.getIndViajeRedondo() == true) {
|
||||||
|
lc = new Listcell(Labels.getLabel("expresosController.lbl.idaVuelta"));
|
||||||
|
lc.setParent(item);
|
||||||
|
}else {
|
||||||
|
lc = new Listcell();
|
||||||
|
lc.setParent(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(expresos.getFechaHoraIda(), "dd/MM/yyyy HH:mm"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(expresos.getFechaHoraRegreso(), "dd/MM/yyyy HH:mm"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(expresos.getDescSitioPartidaIda());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(expresos.getDescSitioPartidaRegreso());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
if(expresos.getIndRequiereDispVehiculo() == 0) {
|
||||||
|
lc = new Listcell("No");
|
||||||
|
lc.setParent(item);
|
||||||
|
}else if (expresos.getIndRequiereDispVehiculo() == 1) {
|
||||||
|
lc = new Listcell("Sí");
|
||||||
|
lc.setParent(item);
|
||||||
|
}else {
|
||||||
|
lc = new Listcell("N/A");
|
||||||
|
lc.setParent(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
lc = new Listcell();
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
Button btnVerDetalle = new Button("Ver Detalle");
|
||||||
|
|
||||||
|
btnVerDetalle.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
expreso = (SolicitudExpreso)listItem.getAttribute("data");
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("expreso", expreso);
|
||||||
|
|
||||||
|
expresosControllerWindow.openWindow("/gui/expressos/detalleExpreso.zul", Labels.getLabel("verDetalleExpreso.window.title"), args, PantallaUtileria.MODAL);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
lc.appendChild(btnVerDetalle);
|
||||||
|
|
||||||
|
item.setAttribute("data", expresos);
|
||||||
|
}
|
||||||
|
|
||||||
|
public SolicitudExpreso getExpreso() {
|
||||||
|
return expreso;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpreso(SolicitudExpreso expreso) {
|
||||||
|
this.expreso = expreso;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,138 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import java.io.ByteArrayInputStream;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.zkoss.util.media.AMedia;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zhtml.Filedownload;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Button;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
import com.rjconsultores.ventaboletos.web.gui.controladores.expressos.DocumentosExpresosController;
|
||||||
|
import com.rjconsultores.ventaboletos.web.gui.controladores.expressos.ExpressosPorCotizarController;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
|
||||||
|
public class RenderDocumentosExpresos implements ListitemRenderer {
|
||||||
|
|
||||||
|
private SolicitudExpreso expreso;
|
||||||
|
|
||||||
|
private EventListener listenerGenerico;
|
||||||
|
|
||||||
|
DocumentosExpresosController winDocumentosExpresosController;
|
||||||
|
|
||||||
|
public RenderDocumentosExpresos(DocumentosExpresosController window, EventListener listenerGenerico) {
|
||||||
|
super();
|
||||||
|
winDocumentosExpresosController = window;
|
||||||
|
this.listenerGenerico = listenerGenerico;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem item, Object data) throws Exception {
|
||||||
|
SolicitudExpreso expresos = (SolicitudExpreso) data;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(expresos.getSolicitudExpresoId().toString());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(expresos.getFechaSolicitud(), "dd/MM/yyyy"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
String ruta = expresos.getCiudadOrigen().getNombciudad() + " - " + expresos.getCiudadDestino().getNombciudad();
|
||||||
|
lc = new Listcell(ruta);
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
if(expresos.getIndViajeRedondo() == false) {
|
||||||
|
lc = new Listcell(Labels.getLabel("expresosController.lbl.ida"));
|
||||||
|
lc.setParent(item);
|
||||||
|
}else if (expresos.getIndViajeRedondo() == true) {
|
||||||
|
lc = new Listcell(Labels.getLabel("expresosController.lbl.idaVuelta"));
|
||||||
|
lc.setParent(item);
|
||||||
|
}else {
|
||||||
|
lc = new Listcell();
|
||||||
|
lc.setParent(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(expresos.getFechaHoraIda(), "dd/MM/yyyy HH:mm"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(expresos.getFechaHoraRegreso(), "dd/MM/yyyy HH:mm"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(expresos.getDescSitioPartidaIda());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(expresos.getDescSitioPartidaRegreso());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
if(expresos.getIndRequiereDispVehiculo() == 0) {
|
||||||
|
lc = new Listcell("No");
|
||||||
|
lc.setParent(item);
|
||||||
|
}else if (expresos.getIndRequiereDispVehiculo() == 1) {
|
||||||
|
lc = new Listcell("Sí");
|
||||||
|
lc.setParent(item);
|
||||||
|
}else {
|
||||||
|
lc = new Listcell("N/A");
|
||||||
|
lc.setParent(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
lc = new Listcell();
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
Button btnVerContrato = new Button("");
|
||||||
|
btnVerContrato.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
expreso = (SolicitudExpreso)listItem.getAttribute("data");
|
||||||
|
|
||||||
|
AMedia amedia = new AMedia("contrato.pdf", "pdf", null, expreso.getDocContrato());
|
||||||
|
|
||||||
|
org.zkoss.util.media.Media pdf = amedia;
|
||||||
|
Filedownload.save(pdf);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
lc.appendChild(btnVerContrato);
|
||||||
|
|
||||||
|
Button btnVerFluec = new Button("");
|
||||||
|
btnVerFluec.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
expreso = (SolicitudExpreso)listItem.getAttribute("data");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
lc.appendChild(btnVerFluec);
|
||||||
|
|
||||||
|
Button btnVerPlanilla = new Button("");
|
||||||
|
btnVerPlanilla.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
expreso = (SolicitudExpreso)listItem.getAttribute("data");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
lc.appendChild(btnVerPlanilla);
|
||||||
|
|
||||||
|
Button btnVerListaPasajeros = new Button("");
|
||||||
|
btnVerListaPasajeros.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
expreso = (SolicitudExpreso)listItem.getAttribute("data");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
lc.appendChild(btnVerListaPasajeros);
|
||||||
|
|
||||||
|
item.setAttribute("data", expresos);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,171 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import java.util.Calendar;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Button;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Cliente;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Constante;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoCortesia;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional.BusquedaConfRestricaoCanalVentaController;
|
||||||
|
import com.rjconsultores.ventaboletos.web.gui.controladores.expressos.ExpressosPorCotizarController;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||||
|
|
||||||
|
public class RenderExpresosPorCotizar implements ListitemRenderer {
|
||||||
|
|
||||||
|
private ExpressosPorCotizarController expresosControllerWindow;
|
||||||
|
|
||||||
|
private SolicitudExpreso expreso;
|
||||||
|
|
||||||
|
private Usuario usuario;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
SolicitudExpresosService expresosService;
|
||||||
|
|
||||||
|
public RenderExpresosPorCotizar(ExpressosPorCotizarController window) {
|
||||||
|
super();
|
||||||
|
expresosControllerWindow = window;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem item, Object data) throws Exception {
|
||||||
|
SolicitudExpreso expresos = (SolicitudExpreso) data;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(expresos.getSolicitudExpresoId().toString());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(expresos.getFechaSolicitud(), "dd/MM/yyyy"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
String ruta = expresos.getCiudadOrigen().getNombciudad() + " - " + expresos.getCiudadDestino().getNombciudad();
|
||||||
|
lc = new Listcell(ruta);
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
if(expresos.getIndViajeRedondo() == false) {
|
||||||
|
lc = new Listcell(Labels.getLabel("expresosController.lbl.idaVuelta"));
|
||||||
|
lc.setParent(item);
|
||||||
|
}else if (expresos.getIndViajeRedondo() == true) {
|
||||||
|
lc = new Listcell(Labels.getLabel("expresosController.lbl.idaVuelta"));
|
||||||
|
lc.setParent(item);
|
||||||
|
}else {
|
||||||
|
lc = new Listcell("N/A");
|
||||||
|
lc.setParent(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(expresos.getFechaHoraIda(), "dd/MM/yyyy HH:mm"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(expresos.getFechaHoraRegreso(), "dd/MM/yyyy HH:mm"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(expresos.getDescSitioPartidaIda());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(expresos.getDescSitioPartidaRegreso());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
if(expresos.getIndRequiereDispVehiculo() == 0) {
|
||||||
|
lc = new Listcell("No");
|
||||||
|
lc.setParent(item);
|
||||||
|
}else if (expresos.getIndRequiereDispVehiculo() == 1) {
|
||||||
|
lc = new Listcell("Sí");
|
||||||
|
lc.setParent(item);
|
||||||
|
}else {
|
||||||
|
lc = new Listcell("N/A");
|
||||||
|
lc.setParent(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
lc = new Listcell();
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
Button btnVerDetalle = new Button(Labels.getLabel("expresosController.lbl.verDetalle"));
|
||||||
|
|
||||||
|
btnVerDetalle.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
expreso = (SolicitudExpreso)listItem.getAttribute("data");
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("expreso", expreso);
|
||||||
|
|
||||||
|
expresosControllerWindow.openWindow("/gui/expressos/detalleExpreso.zul", Labels.getLabel("verDetalleExpreso.window.title"), args, PantallaUtileria.MODAL);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
lc.appendChild(btnVerDetalle);
|
||||||
|
|
||||||
|
switch(expresos.getStatusSolicitudExpresoId()) {
|
||||||
|
case 1:
|
||||||
|
Button btnCotizar = new Button("Cotizar");
|
||||||
|
|
||||||
|
btnCotizar.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
expreso = (SolicitudExpreso)listItem.getAttribute("data");
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("expreso", expreso);
|
||||||
|
|
||||||
|
expresosControllerWindow.openWindow("/gui/expressos/cotizarExpreso.zul", Labels.getLabel("expresosPorCotizarCotizar.window.title"), args, PantallaUtileria.MODAL);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
lc.appendChild(btnCotizar); break;
|
||||||
|
case 2:
|
||||||
|
|
||||||
|
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
|
||||||
|
String pagoCreditoConstante = constanteService.buscarPorNomeConstante("FORMAPAGOCREDITO_ID").getValorconstante();
|
||||||
|
|
||||||
|
if(expresos.getFormaPagoId() == null || expresos.getFormaPagoId() != Integer.valueOf(pagoCreditoConstante)) {
|
||||||
|
Button btnPagoCredito = new Button("Pago Crédito");
|
||||||
|
|
||||||
|
btnPagoCredito.setAttribute("data", data);
|
||||||
|
btnPagoCredito.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
SolicitudExpresosService solicitudExpresosService = (SolicitudExpresosService) AppContext.getApplicationContext().getBean("solicitudExpresosService");
|
||||||
|
expreso = (SolicitudExpreso)listItem.getAttribute("data");
|
||||||
|
|
||||||
|
usuario = UsuarioLogado.getUsuarioLogado();
|
||||||
|
|
||||||
|
expreso.setFormaPagoId(Integer.valueOf(pagoCreditoConstante));
|
||||||
|
expreso.setUsuarioAutorizaCredito(usuario.getUsuarioId());
|
||||||
|
expreso.setFechaHoraAutorizaCredito(Calendar.getInstance().getTime());
|
||||||
|
|
||||||
|
solicitudExpresosService.actualizacion(expreso);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
lc.appendChild(btnPagoCredito);
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
//case 3: break;
|
||||||
|
//case 4: break;
|
||||||
|
}
|
||||||
|
|
||||||
|
item.setAttribute("data", expresos);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,130 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.zkoss.util.media.AMedia;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zhtml.Filedownload;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Button;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||||
|
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.TrayectosExpresosService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
import com.rjconsultores.ventaboletos.web.gui.controladores.expressos.DocumentosExpresosController;
|
||||||
|
import com.rjconsultores.ventaboletos.web.gui.controladores.expressos.ProgramacionVehiculosExpresosController;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
|
||||||
|
public class RenderProgramacionVehiculosExpresos implements ListitemRenderer {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
TrayectosExpresosService trayectosService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
SolicitudExpresosService expresosService;
|
||||||
|
|
||||||
|
private SolicitudExpreso expreso;
|
||||||
|
private List<TrayectosExpresos> trayectos;
|
||||||
|
|
||||||
|
ProgramacionVehiculosExpresosController winProgramacionVehiculoExpresos;
|
||||||
|
|
||||||
|
public RenderProgramacionVehiculosExpresos(ProgramacionVehiculosExpresosController window){
|
||||||
|
super();
|
||||||
|
winProgramacionVehiculoExpresos = window;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem item, Object data) throws Exception {
|
||||||
|
SolicitudExpreso expresos = (SolicitudExpreso) data;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(expresos.getSolicitudExpresoId().toString());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(expresos.getFechaSolicitud(), "dd/MM/yyyy"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
String ruta = expresos.getCiudadOrigen().getNombciudad() + " - " + expresos.getCiudadDestino().getNombciudad();
|
||||||
|
lc = new Listcell(ruta);
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
if(expresos.getIndViajeRedondo() == false) {
|
||||||
|
lc = new Listcell(Labels.getLabel("expresosController.lbl.ida"));
|
||||||
|
lc.setParent(item);
|
||||||
|
}else if (expresos.getIndViajeRedondo() == true) {
|
||||||
|
lc = new Listcell(Labels.getLabel("expresosController.lbl.idaVuelta"));
|
||||||
|
lc.setParent(item);
|
||||||
|
}else {
|
||||||
|
lc = new Listcell();
|
||||||
|
lc.setParent(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(expresos.getFechaHoraIda(), "dd/MM/yyyy HH:mm"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(DateUtil.getStringDate(expresos.getFechaHoraRegreso(), "dd/MM/yyyy HH:mm"));
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(expresos.getDescSitioPartidaIda());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
lc = new Listcell(expresos.getDescSitioPartidaRegreso());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
if(expresos.getIndRequiereDispVehiculo() == 0) {
|
||||||
|
lc = new Listcell("No");
|
||||||
|
lc.setParent(item);
|
||||||
|
}else if (expresos.getIndRequiereDispVehiculo() == 1) {
|
||||||
|
lc = new Listcell("Sí");
|
||||||
|
lc.setParent(item);
|
||||||
|
}else {
|
||||||
|
lc = new Listcell("N/A");
|
||||||
|
lc.setParent(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
lc = new Listcell();
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
Button btnVerDetalle = new Button(Labels.getLabel("expresosController.lbl.verDetalle"));
|
||||||
|
btnVerDetalle.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
expreso = (SolicitudExpreso)listItem.getAttribute("data");
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("expreso", expreso);
|
||||||
|
|
||||||
|
winProgramacionVehiculoExpresos.openWindow("/gui/expressos/detalleExpreso.zul", Labels.getLabel("verDetalleExpreso.window.title"), args, PantallaUtileria.MODAL);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
lc.appendChild(btnVerDetalle);
|
||||||
|
|
||||||
|
Button btnAsignarBus = new Button(Labels.getLabel("expresosController.lbl.asignarBus"));
|
||||||
|
btnAsignarBus.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
expreso = (SolicitudExpreso)listItem.getAttribute("data");
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("expreso", expreso);
|
||||||
|
|
||||||
|
winProgramacionVehiculoExpresos.openWindow("/gui/expressos/asignarBusExpreso.zul", Labels.getLabel("asignarBusExpreso.window.title"), args, PantallaUtileria.MODAL);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
lc.appendChild(btnAsignarBus);
|
||||||
|
|
||||||
|
item.setAttribute("data", expresos);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
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.TrayectosExpresos;
|
||||||
|
|
||||||
|
public class RenderTrayectosExpreso implements ListitemRenderer{
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem item, Object data) throws Exception {
|
||||||
|
TrayectosExpresos trayectos = (TrayectosExpresos) data;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(trayectos.getDescTrayecto());
|
||||||
|
lc.setParent(item);
|
||||||
|
|
||||||
|
if(trayectos.getCantVehiculos() == null) {
|
||||||
|
lc = new Listcell("0");
|
||||||
|
lc.setParent(item);
|
||||||
|
}else {
|
||||||
|
lc = new Listcell(trayectos.getCantVehiculos().toString());
|
||||||
|
lc.setParent(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(trayectos.getValorTrayecto() == null) {
|
||||||
|
lc = new Listcell("0");
|
||||||
|
lc.setParent(item);
|
||||||
|
}else {
|
||||||
|
lc = new Listcell(trayectos.getValorTrayecto().toString());
|
||||||
|
lc.setParent(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
item.setAttribute("data", trayectos);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -467,6 +467,8 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaCrediBancoConfig</value>
|
<value>com.rjconsultores.ventaboletos.entidad.EmpresaCrediBancoConfig</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaAsistenciaDeViajeConfig</value>
|
<value>com.rjconsultores.ventaboletos.entidad.EmpresaAsistenciaDeViajeConfig</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.RecuperarSenha</value>
|
<value>com.rjconsultores.ventaboletos.entidad.RecuperarSenha</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.SolicitudExpreso</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.TrayectosExpresos</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.AsistenciaDeViajeEmpresa</value>
|
<value>com.rjconsultores.ventaboletos.entidad.AsistenciaDeViajeEmpresa</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ImpresionLayoutConfig</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ImpresionLayoutConfig</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ConvenioCampanhaEmpresa</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ConvenioCampanhaEmpresa</value>
|
||||||
|
|
|
@ -7524,9 +7524,64 @@ indexController.mnAjuda.label = Help
|
||||||
indexController.mnCatalogos.label = Catalogs
|
indexController.mnCatalogos.label = Catalogs
|
||||||
indexController.mnConfiguracionesComerciales.label = Commercial Configuration
|
indexController.mnConfiguracionesComerciales.label = Commercial Configuration
|
||||||
#PARTE REALIZADA POR MANUEL
|
#PARTE REALIZADA POR MANUEL
|
||||||
indexController.mnCortesias.label = Courtesies for Employees
|
indexController.mnCortesias.label = Cortesias Para Funcionários
|
||||||
indexController.mnEquivalencia.label = Equivalence
|
indexController.mnEquivalencia.label = Equivalencia
|
||||||
indexController.mnEsquemaOperacional.label = Operating Scheme
|
indexController.mnEsquemaOperacional.label = Esquema Operacional
|
||||||
|
#Expressos
|
||||||
|
indexController.mnExpressos.label = Express
|
||||||
|
indexController.mniExpressosPorCotizar.label = Express to be quoted
|
||||||
|
indexController.mniExpressosCargaContrato.label = Contract Charge
|
||||||
|
indexController.mniExpressosProgramacionVehiculos.label = Vehicle Programming
|
||||||
|
|
||||||
|
verDetalleExpreso.window.title = Express Detail
|
||||||
|
expresosPorCotizarCotizar.window.title = Express Quote
|
||||||
|
|
||||||
|
expressosPorCotizarFechaInicioController.lblDesc.label = Start date
|
||||||
|
expressosPorCotizarFechaFinController.lblDesc.label = End date
|
||||||
|
expressosPorCotizarEmpresaController.lblDesc.label = Company
|
||||||
|
expressosPorCotizarServiciosInactivosController.lblDesc.label = Inactive services
|
||||||
|
expressosPorCotizarController.btnPesquisa.label = Look for
|
||||||
|
expressosPorCotizarController.lhNumSolicitud.label = # Application
|
||||||
|
expressosPorCotizarController.lhFechaSolicitud.label = Application date
|
||||||
|
expressosPorCotizarController.lhRuta.label = Route
|
||||||
|
expressosPorCotizarController.lhIdaRegreso.label = Round trip
|
||||||
|
expressosPorCotizarController.lhFechaIda.label = Departure date
|
||||||
|
expressosPorCotizarController.lhFechaRegreso.label = Return Date
|
||||||
|
expressosPorCotizarController.lhSitioRecogidaIda.label = Site Pickup Going
|
||||||
|
expressosPorCotizarController.lhSitioRecogidaRegreso.label = Site Pickup Return
|
||||||
|
expressosPorCotizarController.lhEstadiaConductor.label = Driver Stay
|
||||||
|
expressosPorCotizarBuscarController.lblDesc.label = Look for
|
||||||
|
expressosPorCotizarVerDetalleController.lblDesc.label = See detail
|
||||||
|
expressosPorCotizarPagoCreditoController.lblDesc.label = Credit Payment
|
||||||
|
indexController.mniExpressosPorCotizar.label = Express to be quoted
|
||||||
|
expresosPorCotizarPagoCredito.window.title = Credit Payment
|
||||||
|
expressosPorCotizarCotizarController.lblDesc.label = Quote
|
||||||
|
expressosPorCotizarController.lhCantidadPasajeros.label = Number of Passengers
|
||||||
|
expressosPorCotizarController.lhAdjuntarCotizacion.label = Attach Quote
|
||||||
|
expressosPorCotizarController.lhCantidadVehiculos.label = Vehicle Quantity
|
||||||
|
expressosPorCotizarController.lhValorTrayecto.label = Trip Value
|
||||||
|
expressosPorCotizarController.lblOrigen.label = Origin
|
||||||
|
expressosPorCotizarController.lblDestino.label = Destination
|
||||||
|
expressosPorCotizarController.lblAgregarTrayecto.label = Add Trip
|
||||||
|
cargarContratoController.lhAdjuntarContrato.label = Load Contract
|
||||||
|
expressosPorCotizarController.lhTrayecto.label = Journey
|
||||||
|
expressosPorCotizarController.lhCodigoViaje.label = Trip Code
|
||||||
|
expressosPorCotizarController.lhPlacaVehiculo.label = Plate
|
||||||
|
expressosPorCotizarController.lhFluecPlanilla.label = FLUEC - Occasional Return
|
||||||
|
asignarBusExpreso.window.title = Express Trip
|
||||||
|
expresosController.lbl.cargarFluec = Load FLUEC
|
||||||
|
expresosController.lbl.cargarPlaca = Load Plate
|
||||||
|
|
||||||
|
indexController.mniExpressosDocumentos.label = Documents
|
||||||
|
|
||||||
|
expresosController.lbl.verDetalle = See detail
|
||||||
|
expresosController.lbl.asignarBus = Assign Bus
|
||||||
|
expresosController.lbl.pagadoCredito = Paid on Credit
|
||||||
|
expresosController.lbl.idaVuelta = Round trip
|
||||||
|
expresosController.lbl.idaVuelta = Going
|
||||||
|
|
||||||
|
expresoController.MSG.errorArchivo = Invalid or null file
|
||||||
|
cargaContratoController.MSG.errorExpresoNull = Select Express to Associate Contract
|
||||||
#GR
|
#GR
|
||||||
indexController.mnGR.label = Passing Stock
|
indexController.mnGR.label = Passing Stock
|
||||||
#Gestao de Pricing
|
#Gestao de Pricing
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -7531,6 +7531,61 @@ indexController.mnConfiguracionesComerciales.label = Configuração Comercial
|
||||||
indexController.mnCortesias.label = Cortesias Para Funcionários
|
indexController.mnCortesias.label = Cortesias Para Funcionários
|
||||||
indexController.mnEquivalencia.label = Equivalencia
|
indexController.mnEquivalencia.label = Equivalencia
|
||||||
indexController.mnEsquemaOperacional.label = Esquema Operacional
|
indexController.mnEsquemaOperacional.label = Esquema Operacional
|
||||||
|
#Expressos
|
||||||
|
indexController.mnExpressos.label = Expresso
|
||||||
|
indexController.mniExpressosPorCotizar.label = Expresso a ser cotado
|
||||||
|
indexController.mniExpressosCargaContrato.label = Taxa de contrato
|
||||||
|
indexController.mniExpressosProgramacionVehiculos.label = Programação de veículos
|
||||||
|
|
||||||
|
verDetalleExpreso.window.title =Detalhe expresso
|
||||||
|
expresosPorCotizarCotizar.window.title = Cotação Expressa
|
||||||
|
|
||||||
|
expressosPorCotizarFechaInicioController.lblDesc.label = Data de início
|
||||||
|
expressosPorCotizarFechaFinController.lblDesc.label = Data final
|
||||||
|
expressosPorCotizarEmpresaController.lblDesc.label = Empresa
|
||||||
|
expressosPorCotizarServiciosInactivosController.lblDesc.label = Serviços inativos
|
||||||
|
expressosPorCotizarController.btnPesquisa.label = Pesquisa
|
||||||
|
expressosPorCotizarController.lhNumSolicitud.label = # Aplicativo
|
||||||
|
expressosPorCotizarController.lhFechaSolicitud.label = Data da inscrição
|
||||||
|
expressosPorCotizarController.lhRuta.label = Rota
|
||||||
|
expressosPorCotizarController.lhIdaRegreso.label = Ida e volta
|
||||||
|
expressosPorCotizarController.lhFechaIda.label = Data de partida
|
||||||
|
expressosPorCotizarController.lhFechaRegreso.label = Data de retorno
|
||||||
|
expressosPorCotizarController.lhSitioRecogidaIda.label = Local de coleta unidirecional
|
||||||
|
expressosPorCotizarController.lhSitioRecogidaRegreso.label = Devolução de retirada no local
|
||||||
|
expressosPorCotizarController.lhEstadiaConductor.label = Estadia do motorista
|
||||||
|
expressosPorCotizarBuscarController.lblDesc.label = Pesquisa
|
||||||
|
expressosPorCotizarVerDetalleController.lblDesc.label = Ver detalhe
|
||||||
|
expressosPorCotizarPagoCreditoController.lblDesc.label = Pagamento de crédito
|
||||||
|
indexController.mniExpressosPorCotizar.label = Expresso a ser cotado
|
||||||
|
expresosPorCotizarPagoCredito.window.title = Pagamento de crédito
|
||||||
|
expressosPorCotizarCotizarController.lblDesc.label = Cotação
|
||||||
|
expressosPorCotizarController.lhCantidadPasajeros.label = Número de passageiros
|
||||||
|
expressosPorCotizarController.lhAdjuntarCotizacion.label = Anexar orçamento
|
||||||
|
expressosPorCotizarController.lhCantidadVehiculos.label = Quantidade de veículos
|
||||||
|
expressosPorCotizarController.lhValorTrayecto.label = Valor da viagem
|
||||||
|
expressosPorCotizarController.lblOrigen.label = Origem
|
||||||
|
expressosPorCotizarController.lblDestino.label = Destino
|
||||||
|
expressosPorCotizarController.lblAgregarTrayecto.label = Adicionar viagem
|
||||||
|
cargarContratoController.lhAdjuntarContrato.label = Anexar Contrato
|
||||||
|
expressosPorCotizarController.lhTrayecto.label = trajetória
|
||||||
|
expressosPorCotizarController.lhCodigoViaje.label = Código de viagem
|
||||||
|
expressosPorCotizarController.lhPlacaVehiculo.label = Placa
|
||||||
|
expressosPorCotizarController.lhFluecPlanilla.label = FLUEC - Retorno Ocasional
|
||||||
|
asignarBusExpreso.window.title = Viagem Expressa
|
||||||
|
expresosController.lbl.cargarFluec = Anexar FLUEC
|
||||||
|
expresosController.lbl.cargarPlaca = Anexar Placa
|
||||||
|
|
||||||
|
indexController.mniExpressosDocumentos.label = Documentos
|
||||||
|
|
||||||
|
expresosController.lbl.verDetalle = Ver detalhe
|
||||||
|
expresosController.lbl.asignarBus = Atribuir ônibus
|
||||||
|
expresosController.lbl.pagadoCredito = Pagado a Crédito
|
||||||
|
expresosController.lbl.idaVuelta = Ida e volta
|
||||||
|
expresosController.lbl.idaVuelta = Ida
|
||||||
|
|
||||||
|
expresoController.MSG.errorArchivo = Arquivo inválido ou nulo
|
||||||
|
cargaContratoController.MSG.errorExpresoNull = Selecione Expresso para Associar Contrato
|
||||||
#GR
|
#GR
|
||||||
indexController.mnGR.label = Estoque de Passagem
|
indexController.mnGR.label = Estoque de Passagem
|
||||||
#Gestao de Pricing
|
#Gestao de Pricing
|
||||||
|
|
|
@ -0,0 +1,84 @@
|
||||||
|
<?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="winAsignarBusExpresos"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winAsignarBusExpresos" title="${c:l('winAsignarBusExpresos')}"
|
||||||
|
border="normal" height="484px" width="1145px" position="center" mode="overlapped"
|
||||||
|
apply="${asignarBusExpresosController}">
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnActualizar')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winAsignarBusExpresos.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnFechar')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<separator/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||||
|
<textbox id="txtNumSolicitud"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhRuta.label')}"/>
|
||||||
|
<textbox id="txtRuta"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhIdaRegreso.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtIdaRegreso"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhCantidadPasajeros.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtCantPasajeros"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
|
||||||
|
<separator/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhFechaIda.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtFechaIda"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhFechaRegreso.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtFechaRegreso"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhSitioRecogidaIda.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtSitioRecogidaIda"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhSitioRecogidaRegreso.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtSitioRecogidaRegreso"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
|
||||||
|
<separator/>
|
||||||
|
|
||||||
|
<paging id="pagingTrayectosExpresos" pageSize="20" />
|
||||||
|
<listbox id="trayectosList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="300px" label="${c:l('expressosPorCotizarController.lhTrayecto.label')}"/>
|
||||||
|
<listheader width="150px" label="${c:l('expressosPorCotizarController.lhFechaIda.label')}"/>
|
||||||
|
<listheader width="200px" label="${c:l('expressosPorCotizarController.lhCodigoViaje.label')}"/>
|
||||||
|
<listheader width="150px" label="${c:l('expressosPorCotizarController.lhPlacaVehiculo.label')}"/>
|
||||||
|
<listheader width="150px" label="${c:l('expressosPorCotizarController.lhFluecPlanilla.label')}"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,78 @@
|
||||||
|
<?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="winExpressoCargaContrato"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winExpressoCargaContrato" title="${c:l('winExpressoCargaContrato.title')}"
|
||||||
|
border="normal" height="484px" width="1100px" position="center" mode="overlapped"
|
||||||
|
apply="${cargaContratoExpressosController}">
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnActualizar')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winExpressoCargaContrato.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnFechar')}"/>
|
||||||
|
</toolbar>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('expressosPorCotizarFechaInicioController.lblDesc.label')}"/>
|
||||||
|
<datebox id="txtFechaInicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox" format="dd/MM/yyyy" maxlength="10" width="100%"/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarFechaFinController.lblDesc.label')}"/>
|
||||||
|
<datebox id="txtFechaFin" use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox" format="dd/MM/yyyy" maxlength="10" width="100%"/>
|
||||||
|
</row>
|
||||||
|
<row spans="1,3">
|
||||||
|
<label id="lblEmpresa" value="${c:l('expressosPorCotizarEmpresaController.lblDesc.label')}"/>
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
width="40%"
|
||||||
|
maxlength="60"
|
||||||
|
mold="rounded"
|
||||||
|
buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winExpressoPorCotizar$composer.lsEmpresa}"/>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<checkbox
|
||||||
|
id="ckServiciosInactivos"
|
||||||
|
checked="@{winEditarPuntoVenta$composer.puntoVenta.validaTempoParaImpressao}"
|
||||||
|
label="${c:l('expressosPorCotizarServiciosInactivosController.lblDesc.label')}"/>
|
||||||
|
<button
|
||||||
|
id="btnPesquisa"
|
||||||
|
image="/gui/img/find.png"
|
||||||
|
label="${c:l('expressosPorCotizarBuscarController.lblDesc.label')}" />
|
||||||
|
<fileupload
|
||||||
|
id="archivoContrato"
|
||||||
|
label="${c:l('cargarContratoController.lhAdjuntarContrato.label')}"
|
||||||
|
upload="true"
|
||||||
|
onUpload="winExpressoCargaContrato$composer.onUpload(event)" />
|
||||||
|
</toolbar>
|
||||||
|
<paging id="pagingExpresos" pageSize="20" />
|
||||||
|
<listbox id="expresosList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="80px" label="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||||
|
<listheader width="110px" label="${c:l('expressosPorCotizarController.lhFechaSolicitud.label')}"/>
|
||||||
|
<listheader width="100px" label="${c:l('expressosPorCotizarController.lhRuta.label')}"/>
|
||||||
|
<listheader width="100px" label="${c:l('expressosPorCotizarController.lhIdaRegreso.label')}"/>
|
||||||
|
<listheader width="80px" label="${c:l('expressosPorCotizarController.lhFechaIda.label')}"/>
|
||||||
|
<listheader width="100px" label="${c:l('expressosPorCotizarController.lhFechaRegreso.label')}"/>
|
||||||
|
<listheader width="110px" label="${c:l('expressosPorCotizarController.lhSitioRecogidaIda.label')}"/>
|
||||||
|
<listheader width="140px" label="${c:l('expressosPorCotizarController.lhSitioRecogidaRegreso.label')}"/>
|
||||||
|
<listheader width="120px" label="${c:l('expressosPorCotizarController.lhEstadiaConductor.label')}"/>
|
||||||
|
<listheader width="140px"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,137 @@
|
||||||
|
<?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="winCotizarExpresso"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window
|
||||||
|
id="winCotizarExpresso"
|
||||||
|
title="${c:l('winCotizarExpresso.title')}"
|
||||||
|
border="normal"
|
||||||
|
height="484px"
|
||||||
|
width="712px"
|
||||||
|
position="center"
|
||||||
|
mode="overlapped"
|
||||||
|
apply="${cotizarExpresoController}">
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnGuardar" image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnGuardar')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winCotizarExpresso.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnFechar')}"/>
|
||||||
|
</toolbar>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||||
|
<textbox id="txtNumSolicitud"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhRuta.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtRuta"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhIdaRegreso.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtIdaRegreso"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhCantidadPasajeros.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtCantPasajeros"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhFechaIda.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtFechaIda"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhFechaRegreso.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtFechaRegreso"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhSitioRecogidaIda.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtSitioRecogidaIda"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhSitioRecogidaRegreso.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtSitioRecogidaRegreso"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
</row>
|
||||||
|
<row spans="1, 3">
|
||||||
|
<fileupload
|
||||||
|
id="archivoCotizacion"
|
||||||
|
label="${c:l('expressosPorCotizarController.lhAdjuntarCotizacion.label')}"
|
||||||
|
upload="true"
|
||||||
|
onUpload="winCotizarExpresso$composer.onUpload(event)" />
|
||||||
|
<textbox
|
||||||
|
id="archivoCotizacionPath"
|
||||||
|
width="90%"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lblOrigen.label')}"/>
|
||||||
|
<combobox id="cmbOrigen"
|
||||||
|
mold="rounded"
|
||||||
|
buttonVisible="true"
|
||||||
|
width="85%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winCotizarExpresso$composer.lsOrigen}"/>
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lblDestino.label')}"/>
|
||||||
|
<combobox id="cmbDestino"
|
||||||
|
mold="rounded"
|
||||||
|
buttonVisible="true"
|
||||||
|
width="85%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winCotizarExpresso$composer.lsDestino}"/>
|
||||||
|
<button id="btnAgregarTrayecto" image="/gui/img/add.png" label="${c:l('expressosPorCotizarController.lblAgregarTrayecto.label')}"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnGuardar')}" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnBorrarTrayecto" image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnBorrar')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnActualizar')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnGuardarCotizacion" image="/gui/img/save.png" label="${c:l('tooltiptext.btnGuardar')}"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnGuardar')}" />
|
||||||
|
</toolbar>
|
||||||
|
<paging id="pagingTrayectos" pageSize="20" />
|
||||||
|
<listbox id="trayectosList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader label="${c:l('expressosPorCotizarController.lhRuta.label')}"/>
|
||||||
|
<listheader label="${c:l('expressosPorCotizarController.lhCantidadVehiculos.label')}"/>
|
||||||
|
<listheader label="${c:l('expressosPorCotizarController.lhValorTrayecto.label')}"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?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="winDetalleExpresso"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winDetalleExpresso" title="${c:l('winDetalleExpresso.title')}"
|
||||||
|
border="normal" height="484px" width="1024px" position="center" mode="overlapped">
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnActualizar')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winDetalleExpresso.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnFechar')}"/>
|
||||||
|
</toolbar>
|
||||||
|
</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="winDocumentosExpresos"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winDocumentosExpresos" title="${c:l('winDocumentosExpresos.title')}"
|
||||||
|
border="normal" height="484px" width="1200px" position="center" mode="overlapped"
|
||||||
|
apply="${documentosExpresosController}">
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnActualizar')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winDocumentosExpresos.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnFechar')}"/>
|
||||||
|
</toolbar>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('expressosPorCotizarFechaInicioController.lblDesc.label')}"/>
|
||||||
|
<datebox id="txtFechaInicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox" format="dd/MM/yyyy" maxlength="10" width="100%"/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarFechaFinController.lblDesc.label')}"/>
|
||||||
|
<datebox id="txtFechaFin" use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox" format="dd/MM/yyyy" maxlength="10" width="100%"/>
|
||||||
|
</row>
|
||||||
|
<row spans="1,3">
|
||||||
|
<label id="lblEmpresa" value="${c:l('expressosPorCotizarEmpresaController.lblDesc.label')}"/>
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
width="40%"
|
||||||
|
maxlength="60"
|
||||||
|
mold="rounded"
|
||||||
|
buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winExpressoPorCotizar$composer.lsEmpresa}"/>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<checkbox
|
||||||
|
id="ckServiciosInactivos"
|
||||||
|
checked="@{winEditarPuntoVenta$composer.puntoVenta.validaTempoParaImpressao}"
|
||||||
|
label="${c:l('expressosPorCotizarServiciosInactivosController.lblDesc.label')}"/>
|
||||||
|
<button
|
||||||
|
id="btnPesquisa"
|
||||||
|
image="/gui/img/find.png"
|
||||||
|
label="${c:l('expressosPorCotizarBuscarController.lblDesc.label')}" />
|
||||||
|
</toolbar>
|
||||||
|
<!--
|
||||||
|
<toolbar>
|
||||||
|
<button
|
||||||
|
id="btnVerDetalle"
|
||||||
|
tooltiptext="Ver Detalle"
|
||||||
|
label="${c:l('expressosPorCotizarVerDetalleController.lblDesc.label')}"/>
|
||||||
|
<button
|
||||||
|
id="btnCotizar"
|
||||||
|
tooltiptext="Cotizar"
|
||||||
|
label="${c:l('expressosPorCotizarCotizarController.lblDesc.label')}"/>
|
||||||
|
<button
|
||||||
|
id="btnPagoCredito"
|
||||||
|
tooltiptext="Cotizar"
|
||||||
|
label="${c:l('expressosPorCotizarPagoCreditoController.lblDesc.label')}"/>
|
||||||
|
</toolbar>
|
||||||
|
-->
|
||||||
|
<paging id="pagingExpresos" pageSize="20" />
|
||||||
|
<listbox id="expresosList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="80px" label="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||||
|
<listheader width="110px" label="${c:l('expressosPorCotizarController.lhFechaSolicitud.label')}"/>
|
||||||
|
<listheader width="100px" label="${c:l('expressosPorCotizarController.lhRuta.label')}"/>
|
||||||
|
<listheader width="100px" label="${c:l('expressosPorCotizarController.lhIdaRegreso.label')}"/>
|
||||||
|
<listheader width="80px" label="${c:l('expressosPorCotizarController.lhFechaIda.label')}"/>
|
||||||
|
<listheader width="100px" label="${c:l('expressosPorCotizarController.lhFechaRegreso.label')}"/>
|
||||||
|
<listheader width="110px" label="${c:l('expressosPorCotizarController.lhSitioRecogidaIda.label')}"/>
|
||||||
|
<listheader width="140px" label="${c:l('expressosPorCotizarController.lhSitioRecogidaRegreso.label')}"/>
|
||||||
|
<listheader width="120px" label="${c:l('expressosPorCotizarController.lhEstadiaConductor.label')}"/>
|
||||||
|
<listheader width="350px"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,47 @@
|
||||||
|
<?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="winModificarTrayectoCotizar"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window
|
||||||
|
id="winModificarTrayectoCotizar"
|
||||||
|
title="${c:l('winCotizarExpresso.title')}"
|
||||||
|
border="normal"
|
||||||
|
width="800px"
|
||||||
|
position="center"
|
||||||
|
mode="overlapped"
|
||||||
|
apply="${modificarTrayectoCotizarController}">
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="8%" />
|
||||||
|
<column width="22%" />
|
||||||
|
<column width="10%" />
|
||||||
|
<column width="22%" />
|
||||||
|
<column width="10%" />
|
||||||
|
<column width="22%" />
|
||||||
|
<column width="6%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhRuta.label')}"/>
|
||||||
|
<textbox id="txtRuta"
|
||||||
|
disabled="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhCantidadVehiculos.label')}"/>
|
||||||
|
<textbox
|
||||||
|
id="txtCantidadVehiculos"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarController.lhValorTrayecto.label')}"/>
|
||||||
|
<textbox id="txtValorTrayecto"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
<button id="btnGuardar" image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnGuardar')}" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,73 @@
|
||||||
|
<?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="winExpressoPorCotizar"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winExpressoPorCotizar" title="${c:l('winExpressoPorCotizar.title')}"
|
||||||
|
border="normal" height="484px" width="1100px" position="center" mode="overlapped"
|
||||||
|
apply="${expressosPorCotizarController}">
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnActualizar')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winExpressoPorCotizar.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnFechar')}"/>
|
||||||
|
</toolbar>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('expressosPorCotizarFechaInicioController.lblDesc.label')}"/>
|
||||||
|
<datebox id="txtFechaInicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox" format="dd/MM/yyyy" maxlength="10" width="100%"/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarFechaFinController.lblDesc.label')}"/>
|
||||||
|
<datebox id="txtFechaFin" use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox" format="dd/MM/yyyy" maxlength="10" width="100%"/>
|
||||||
|
</row>
|
||||||
|
<row spans="1,3">
|
||||||
|
<label id="lblEmpresa" value="${c:l('expressosPorCotizarEmpresaController.lblDesc.label')}"/>
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
width="40%"
|
||||||
|
maxlength="60"
|
||||||
|
mold="rounded"
|
||||||
|
buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winExpressoPorCotizar$composer.lsEmpresa}"/>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<checkbox
|
||||||
|
id="ckServiciosInactivos"
|
||||||
|
checked="@{winEditarPuntoVenta$composer.puntoVenta.validaTempoParaImpressao}"
|
||||||
|
label="${c:l('expressosPorCotizarServiciosInactivosController.lblDesc.label')}"/>
|
||||||
|
<button
|
||||||
|
id="btnPesquisa"
|
||||||
|
image="/gui/img/find.png"
|
||||||
|
label="${c:l('expressosPorCotizarBuscarController.lblDesc.label')}" />
|
||||||
|
</toolbar>
|
||||||
|
<paging id="pagingExpresos" pageSize="20" />
|
||||||
|
<listbox id="expresosList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="80px" label="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||||
|
<listheader width="110px" label="${c:l('expressosPorCotizarController.lhFechaSolicitud.label')}"/>
|
||||||
|
<listheader width="100px" label="${c:l('expressosPorCotizarController.lhRuta.label')}"/>
|
||||||
|
<listheader width="100px" label="${c:l('expressosPorCotizarController.lhIdaRegreso.label')}"/>
|
||||||
|
<listheader width="80px" label="${c:l('expressosPorCotizarController.lhFechaIda.label')}"/>
|
||||||
|
<listheader width="100px" label="${c:l('expressosPorCotizarController.lhFechaRegreso.label')}"/>
|
||||||
|
<listheader width="110px" label="${c:l('expressosPorCotizarController.lhSitioRecogidaIda.label')}"/>
|
||||||
|
<listheader width="140px" label="${c:l('expressosPorCotizarController.lhSitioRecogidaRegreso.label')}"/>
|
||||||
|
<listheader width="120px" label="${c:l('expressosPorCotizarController.lhEstadiaConductor.label')}"/>
|
||||||
|
<listheader width="140px"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
|
@ -0,0 +1,73 @@
|
||||||
|
<?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="winProgramacionVehiculoExpresos"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winProgramacionVehiculoExpresos" title="${c:l('winProgramacionVehiculoExpresos')}"
|
||||||
|
border="normal" height="484px" width="1145px" position="center" mode="overlapped"
|
||||||
|
apply="${programacionVehiculoExpresosController}">
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnActualizar')}" />
|
||||||
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar" onClick="winProgramacionVehiculoExpresos.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnFechar')}"/>
|
||||||
|
</toolbar>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('expressosPorCotizarFechaInicioController.lblDesc.label')}"/>
|
||||||
|
<datebox id="txtFechaInicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox" format="dd/MM/yyyy" maxlength="10" width="100%"/>
|
||||||
|
|
||||||
|
<label value="${c:l('expressosPorCotizarFechaFinController.lblDesc.label')}"/>
|
||||||
|
<datebox id="txtFechaFin" use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox" format="dd/MM/yyyy" maxlength="10" width="100%"/>
|
||||||
|
</row>
|
||||||
|
<row spans="1,3">
|
||||||
|
<label id="lblEmpresa" value="${c:l('expressosPorCotizarEmpresaController.lblDesc.label')}"/>
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
width="40%"
|
||||||
|
maxlength="60"
|
||||||
|
mold="rounded"
|
||||||
|
buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winProgramacionVehiculoExpresos$composer.lsEmpresa}"/>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<checkbox
|
||||||
|
id="ckServiciosInactivos"
|
||||||
|
checked="@{winEditarPuntoVenta$composer.puntoVenta.validaTempoParaImpressao}"
|
||||||
|
label="${c:l('expressosPorCotizarServiciosInactivosController.lblDesc.label')}"/>
|
||||||
|
<button
|
||||||
|
id="btnPesquisa"
|
||||||
|
image="/gui/img/find.png"
|
||||||
|
label="${c:l('expressosPorCotizarBuscarController.lblDesc.label')}" />
|
||||||
|
</toolbar>
|
||||||
|
<paging id="pagingExpresos" pageSize="20" />
|
||||||
|
<listbox id="expresosList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="80px" label="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||||
|
<listheader width="110px" label="${c:l('expressosPorCotizarController.lhFechaSolicitud.label')}"/>
|
||||||
|
<listheader width="100px" label="${c:l('expressosPorCotizarController.lhRuta.label')}"/>
|
||||||
|
<listheader width="100px" label="${c:l('expressosPorCotizarController.lhIdaRegreso.label')}"/>
|
||||||
|
<listheader width="80px" label="${c:l('expressosPorCotizarController.lhFechaIda.label')}"/>
|
||||||
|
<listheader width="100px" label="${c:l('expressosPorCotizarController.lhFechaRegreso.label')}"/>
|
||||||
|
<listheader width="110px" label="${c:l('expressosPorCotizarController.lhSitioRecogidaIda.label')}"/>
|
||||||
|
<listheader width="140px" label="${c:l('expressosPorCotizarController.lhSitioRecogidaRegreso.label')}"/>
|
||||||
|
<listheader width="120px" label="${c:l('expressosPorCotizarController.lhEstadiaConductor.label')}"/>
|
||||||
|
<listheader width="180px"/>
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue