Merge pull request 'Se agrega definición de estados de expreso de acuerdo al catálogo STATUS SOLICITUD EXPRESO. Se agrega filtro de búsqueda por Número de Solicitud de Expreso#AL-5135' (!806) from AL-5135 into master
Reviewed-on: adm/VentaBoletosAdm#806 Reviewed-by: Lucas Taiã <lucas@rjconsultores.com.br>master
commit
ba1a367c6b
2
pom.xml
2
pom.xml
|
@ -8,7 +8,7 @@
|
|||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
<modelWeb.version>1.121.3</modelWeb.version>
|
||||
<modelWeb.version>1.121.4</modelWeb.version>
|
||||
<flyway.version>1.103.3</flyway.version>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
</properties>
|
||||
|
|
|
@ -33,6 +33,7 @@ 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.Intbox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
|
@ -83,6 +84,8 @@ public class CargaContratoExpressosController extends MyGenericForwardComposer{
|
|||
SolicitudExpreso expreso;
|
||||
SolicitudExpreso expresoClone;
|
||||
|
||||
private Intbox txtNumSolicitud;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
|
@ -149,6 +152,10 @@ public class CargaContratoExpressosController extends MyGenericForwardComposer{
|
|||
buscarExpresos.addFilterEqual("ACTIVO", true);
|
||||
}
|
||||
|
||||
if(txtNumSolicitud.getValue() != null && txtNumSolicitud.getValue().toString() != "") {
|
||||
buscarExpresos.addFilterEqual("solicitudExpresoId", txtNumSolicitud.getValue());
|
||||
}
|
||||
|
||||
List<Integer> filterStatusSolicitudExpreso = new ArrayList<Integer>();
|
||||
filterStatusSolicitudExpreso.add(3);
|
||||
|
||||
|
@ -157,33 +164,6 @@ public class CargaContratoExpressosController extends MyGenericForwardComposer{
|
|||
plwTrayectosExpresos.init(buscarExpresos, expresosList, pagingExpresos);
|
||||
}
|
||||
|
||||
public void onUpload(UploadEvent event) throws IOException, InterruptedException, CloneNotSupportedException {
|
||||
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);
|
||||
|
||||
logAuditoriaService.auditar(expresoClone, expreso, null);
|
||||
} else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("cargaContratoController.MSG.errorFormatoContrato") + " " + media,
|
||||
Labels.getLabel("winExpressoCargaContrato.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
|
|
@ -57,12 +57,14 @@ import com.rjconsultores.ventaboletos.entidad.Constante;
|
|||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||
import com.rjconsultores.ventaboletos.entidad.StatusSolicitudExpreso;
|
||||
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||
import com.rjconsultores.ventaboletos.service.CiudadService;
|
||||
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||
import com.rjconsultores.ventaboletos.service.StatusSolicitudExpresosService;
|
||||
import com.rjconsultores.ventaboletos.service.TrayectosExpresosService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -90,6 +92,9 @@ public class CotizarExpresoController extends MyGenericForwardComposer{
|
|||
@Autowired
|
||||
SolicitudExpresosService solicitudExpresosService;
|
||||
|
||||
@Autowired
|
||||
StatusSolicitudExpresosService statusSolicitudExpresosService;
|
||||
|
||||
@Autowired
|
||||
ConstanteService constanteService;
|
||||
|
||||
|
@ -126,8 +131,16 @@ public class CotizarExpresoController extends MyGenericForwardComposer{
|
|||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
||||
lsOrigen = paradaService.obtenerTodos();
|
||||
lsDestino = paradaService.obtenerTodos();
|
||||
List<Parada> listParadas = paradaService.obtenerTodos();
|
||||
|
||||
lsOrigen = new ArrayList<Parada>();
|
||||
lsOrigen.addAll(listParadas);
|
||||
|
||||
lsDestino = new ArrayList<Parada>();
|
||||
lsDestino.addAll(listParadas);
|
||||
|
||||
//lsOrigen = paradaService.obtenerTodos();
|
||||
//lsDestino = paradaService.obtenerTodos();
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
|
@ -207,7 +220,11 @@ public class CotizarExpresoController extends MyGenericForwardComposer{
|
|||
Messagebox.OK, Messagebox.ERROR);
|
||||
}else {
|
||||
expreso.setDocCotizacion(docCotizacion);
|
||||
expreso.setStatusSolicitudExpresoId(2);
|
||||
|
||||
int status = ((StatusSolicitudExpreso)statusSolicitudExpresosService.obtenerStatusPorDesc("SOLICITADA")).getStatusSolicitudExpresoId();
|
||||
|
||||
expreso.setStatusSolicitudExpresoId(status);
|
||||
|
||||
solicitudExpresosService.actualizacion(expreso);
|
||||
|
||||
logAuditoriaService.auditar(expresoClone, expreso, null);
|
||||
|
|
|
@ -17,15 +17,18 @@ 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.Intbox;
|
||||
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.entidad.StatusSolicitudExpreso;
|
||||
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||
import com.rjconsultores.ventaboletos.service.StatusSolicitudExpresosService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyDatebox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -48,6 +51,9 @@ public class CumplimientoServicioExpresosController extends MyGenericForwardComp
|
|||
@Autowired
|
||||
SolicitudExpresosService solicitudExpreso;
|
||||
|
||||
@Autowired
|
||||
StatusSolicitudExpresosService statusSolicitudExpresosService;
|
||||
|
||||
@Autowired
|
||||
private LogAuditoriaService logAuditoriaService;
|
||||
|
||||
|
@ -62,6 +68,8 @@ public class CumplimientoServicioExpresosController extends MyGenericForwardComp
|
|||
SolicitudExpreso expreso;
|
||||
SolicitudExpreso expresoClone;
|
||||
|
||||
private Intbox txtNumSolicitud;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
|
@ -88,7 +96,10 @@ public class CumplimientoServicioExpresosController extends MyGenericForwardComp
|
|||
byte[] bytesIs = IOUtils.toByteArray(inputStream);
|
||||
|
||||
expreso.setDocCumplimientoServicio(bytesIs);
|
||||
expreso.setStatusSolicitudExpresoId(5);
|
||||
|
||||
int status = ((StatusSolicitudExpreso)statusSolicitudExpresosService.obtenerStatusPorDesc("CUMPLIDO")).getStatusSolicitudExpresoId();
|
||||
|
||||
expreso.setStatusSolicitudExpresoId(status);
|
||||
|
||||
solicitudExpreso.actualizacion(expreso);
|
||||
|
||||
|
@ -122,6 +133,10 @@ public class CumplimientoServicioExpresosController extends MyGenericForwardComp
|
|||
buscarExpresos.addFilterLessOrEqual("fechaSolicitud", fechaFin);
|
||||
}
|
||||
|
||||
if(txtNumSolicitud.getValue() != null && txtNumSolicitud.getValue().toString() != "") {
|
||||
buscarExpresos.addFilterEqual("solicitudExpresoId", txtNumSolicitud.getValue());
|
||||
}
|
||||
|
||||
if(ckServiciosInactivos.isChecked()) {
|
||||
buscarExpresos.addFilterEqual("ACTIVO", true);
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@ 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.Intbox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
|
@ -84,6 +85,8 @@ public class DocumentosExpresosController extends MyGenericForwardComposer{
|
|||
|
||||
SolicitudExpreso expreso;
|
||||
|
||||
private Intbox txtNumSolicitud;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
|
@ -148,6 +151,10 @@ public class DocumentosExpresosController extends MyGenericForwardComposer{
|
|||
buscarExpresos.addFilterLessOrEqual("fechaSolicitud", fechaFin);
|
||||
}
|
||||
|
||||
if(txtNumSolicitud.getValue() != null && txtNumSolicitud.getValue().toString() != "") {
|
||||
buscarExpresos.addFilterEqual("solicitudExpresoId", txtNumSolicitud.getValue());
|
||||
}
|
||||
|
||||
if(ckServiciosInactivos.isChecked()) {
|
||||
buscarExpresos.addFilterEqual("ACTIVO", true);
|
||||
}
|
||||
|
|
|
@ -1,49 +1,29 @@
|
|||
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.Intbox;
|
||||
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.SolicitudExpreso;
|
||||
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.entidad.StatusSolicitudExpreso;
|
||||
import com.rjconsultores.ventaboletos.service.StatusSolicitudExpresosService;
|
||||
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")
|
||||
|
@ -55,10 +35,7 @@ public class ExpressosPorCotizarController extends MyGenericForwardComposer{
|
|||
private transient PagedListWrapper<SolicitudExpreso> plwTrayectosExpresos;
|
||||
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
|
||||
@Autowired
|
||||
SolicitudExpresosService solicitudExpresosService;
|
||||
StatusSolicitudExpresosService statusSolicitudExpresosService;
|
||||
|
||||
private List<Empresa> lsEmpresa;
|
||||
private Combobox cmbEmpresa;
|
||||
|
@ -69,11 +46,10 @@ public class ExpressosPorCotizarController extends MyGenericForwardComposer{
|
|||
private MyDatebox txtFechaInicio;
|
||||
private MyDatebox txtFechaFin;
|
||||
|
||||
SolicitudExpreso expreso;
|
||||
private Intbox txtNumSolicitud;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
expresosList.setItemRenderer(new RenderExpresosPorCotizar(this));
|
||||
|
@ -99,9 +75,18 @@ public class ExpressosPorCotizarController extends MyGenericForwardComposer{
|
|||
buscarExpresos.addFilterEqual(ACTIVO, true);
|
||||
}
|
||||
|
||||
if(txtNumSolicitud.getValue() != null && txtNumSolicitud.getValue().toString() != "") {
|
||||
buscarExpresos.addFilterEqual("solicitudExpresoId", txtNumSolicitud.getValue());
|
||||
}
|
||||
|
||||
List<Integer> filterStatusSolicitudExpreso = new ArrayList<Integer>();
|
||||
filterStatusSolicitudExpreso.add(1);
|
||||
filterStatusSolicitudExpreso.add(2);
|
||||
|
||||
for(StatusSolicitudExpreso status : statusSolicitudExpresosService.obtenerTodos()) {
|
||||
switch (status.getDescStatusSolicitudExpreso()) {
|
||||
case "SOLICITADA": filterStatusSolicitudExpreso.add(status.getStatusSolicitudExpresoId()); break;
|
||||
case "COTIZACION_ENVIADA": filterStatusSolicitudExpreso.add(status.getStatusSolicitudExpresoId()); break;
|
||||
}
|
||||
}
|
||||
|
||||
buscarExpresos.addFilterIn("statusSolicitudExpresoId", filterStatusSolicitudExpreso);
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ import org.zkoss.util.resource.Labels;
|
|||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Filedownload;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
|
@ -43,13 +44,13 @@ public class InformeViajesOcasionalesExpresosController extends MyGenericForward
|
|||
private MyListbox expresosList;
|
||||
private Paging pagingExpresos;
|
||||
|
||||
private Intbox txtNumSolicitud;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
expresosList.setItemRenderer(new RenderInformeViajesOcasionales());
|
||||
|
||||
//refreshLista();
|
||||
}
|
||||
|
||||
private void refreshLista() throws InterruptedException {
|
||||
|
@ -66,6 +67,10 @@ public class InformeViajesOcasionalesExpresosController extends MyGenericForward
|
|||
buscarExpresos.addFilterLessOrEqual("solicitudExpresoId.fechaSolicitud", DateUtil.fimFecha(fechaFin));
|
||||
}
|
||||
|
||||
if(txtNumSolicitud.getValue() != null && txtNumSolicitud.getValue().toString() != "") {
|
||||
buscarExpresos.addFilterEqual("solicitudExpresoId.solicitudExpresoId", txtNumSolicitud.getValue());
|
||||
}
|
||||
|
||||
plwTrayectosExpresos.init(buscarExpresos, expresosList, pagingExpresos);
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ import org.zkoss.zhtml.Messagebox;
|
|||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
|
@ -51,7 +52,6 @@ public class LogExpresosController extends MyGenericForwardComposer{
|
|||
|
||||
private static Logger log = LogManager.getLogger(LogExpresosController.class);
|
||||
|
||||
private MyComboboxEstandar cmbTipoAlteracao;
|
||||
private MyListbox logAuditoriaList;
|
||||
private Paging pagingLogAuditoria;
|
||||
|
||||
|
@ -112,7 +112,6 @@ public class LogExpresosController extends MyGenericForwardComposer{
|
|||
sistemaBusqueda.addFilterLike("usuario.claveUsuario", "%" + cveUsuario.trim().concat("%"));
|
||||
}
|
||||
|
||||
//sistemaBusqueda.addFilterEqual("tela", recuperarChaveNomeTela("auditarClasse.SolicitudExpreso"));
|
||||
sistemaBusqueda.addFilterEqual("tela", "auditarClasse.SolicitudExpreso");
|
||||
|
||||
sistemaBusqueda.addSortAsc("fecmodif");
|
||||
|
@ -130,8 +129,6 @@ public class LogExpresosController extends MyGenericForwardComposer{
|
|||
log.error("", ex);
|
||||
}
|
||||
}
|
||||
}else {
|
||||
//configurarNomesTelas();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ import org.zkoss.zk.ui.Component;
|
|||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
|
@ -42,6 +43,8 @@ public class ProgramacionVehiculosExpresosController extends MyGenericForwardCom
|
|||
private MyDatebox txtFechaInicio;
|
||||
private MyDatebox txtFechaFin;
|
||||
|
||||
private Intbox txtNumSolicitud;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
|
@ -66,6 +69,10 @@ public class ProgramacionVehiculosExpresosController extends MyGenericForwardCom
|
|||
buscarExpresos.addFilterLessOrEqual("fechaSolicitud", fechaFin);
|
||||
}
|
||||
|
||||
if(txtNumSolicitud.getValue() != null && txtNumSolicitud.getValue().toString() != "") {
|
||||
buscarExpresos.addFilterEqual("solicitudExpresoId", txtNumSolicitud.getValue());
|
||||
}
|
||||
|
||||
if(ckServiciosInactivos.isChecked()) {
|
||||
buscarExpresos.addFilterEqual("ACTIVO", true);
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ import org.springframework.stereotype.Controller;
|
|||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
|
@ -35,6 +36,8 @@ public class SeguimientoExpresosController extends MyGenericForwardComposer{
|
|||
private MyListbox expresosList;
|
||||
private Paging pagingExpresos;
|
||||
|
||||
private Intbox txtNumSolicitud;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
@ -58,6 +61,10 @@ public class SeguimientoExpresosController extends MyGenericForwardComposer{
|
|||
buscarExpresos.addFilterLessOrEqual("solicitudExpresoId.fechaSolicitud", DateUtil.fimFecha(fechaFin));
|
||||
}
|
||||
|
||||
if(txtNumSolicitud.getValue() != null && txtNumSolicitud.getValue().toString() != "") {
|
||||
buscarExpresos.addFilterEqual("solicitudExpresoId.solicitudExpresoId", txtNumSolicitud.getValue());
|
||||
}
|
||||
|
||||
plwTrayectosExpresos.init(buscarExpresos, expresosList, pagingExpresos);
|
||||
}
|
||||
|
||||
|
|
|
@ -142,21 +142,6 @@ public class RenderDocumentosExpresos implements ListitemRenderer {
|
|||
btnVerListaPasajeros.setAttribute("data", data);
|
||||
btnVerListaPasajeros.addEventListener("onClick", listenerGenerico);
|
||||
|
||||
/*
|
||||
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");
|
||||
|
||||
if(expreso.getDocListaPasajeros() != null) {
|
||||
AMedia amedia = new AMedia("LISTA DE PASAJEROS - EXPRESO " + expreso.getStatusSolicitudExpresoId() + ".pdf", "pdf", null, expreso.getDocListaPasajeros());
|
||||
org.zkoss.util.media.Media pdf = amedia;
|
||||
Filedownload.save(pdf);
|
||||
}
|
||||
}
|
||||
});
|
||||
*/
|
||||
lc.appendChild(btnVerListaPasajeros);
|
||||
|
||||
item.setAttribute("data", expresos);
|
||||
|
|
|
@ -117,13 +117,6 @@ public class RenderExpresosPorCotizar implements ListitemRenderer {
|
|||
Labels.getLabel("winExpressoCargaContrato.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
|
||||
/*
|
||||
Map args = new HashMap();
|
||||
args.put("expreso", expreso);
|
||||
|
||||
expresosControllerWindow.openWindow("/gui/expressos/detalleExpreso.zul", Labels.getLabel("verDetalleExpreso.window.title"), args, PantallaUtileria.MODAL);
|
||||
*/
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -182,8 +175,6 @@ public class RenderExpresosPorCotizar implements ListitemRenderer {
|
|||
}
|
||||
|
||||
break;
|
||||
//case 3: break;
|
||||
//case 4: break;
|
||||
}
|
||||
|
||||
item.setAttribute("data", expresos);
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
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;
|
||||
|
@ -38,8 +43,37 @@ public class RenderInformeViajesOcasionales implements ListitemRenderer {
|
|||
lc = new Listcell(""); //Agencia contrató
|
||||
lc.setParent(item);
|
||||
|
||||
int estadoExpreso = (expresos.getSolicitudExpresoId().getStatusSolicitudExpresoId() == null ? 0 : expresos.getSolicitudExpresoId().getStatusSolicitudExpresoId());
|
||||
|
||||
switch(estadoExpreso) {
|
||||
case 1:
|
||||
lc = new Listcell(Labels.getLabel("expresosController.lbl.estadoSolicitado"));
|
||||
lc.setParent(item);
|
||||
break;
|
||||
case 2:
|
||||
lc = new Listcell(Labels.getLabel("expresosController.lbl.estadoEnviado"));
|
||||
lc.setParent(item);
|
||||
break;
|
||||
case 3:
|
||||
lc = new Listcell(Labels.getLabel("expresosController.lbl.estadoAceptado"));
|
||||
lc.setParent(item);
|
||||
|
||||
break;
|
||||
case 4:
|
||||
lc = new Listcell(Labels.getLabel("expresosController.lbl.estadoRechazado"));
|
||||
lc.setParent(item);
|
||||
break;
|
||||
case 5:
|
||||
lc = new Listcell(Labels.getLabel("expresosController.lbl.estadoCumplido"));
|
||||
lc.setParent(item);
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
/*
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getStatusSolicitudExpresoId().toString()); //Estado
|
||||
lc.setParent(item);
|
||||
*/
|
||||
|
||||
lc = new Listcell(""); //NIT
|
||||
lc.setParent(item);
|
||||
|
|
|
@ -50,8 +50,37 @@ public class RenderSeguimientoExpresos implements ListitemRenderer {
|
|||
lc = new Listcell(expresos.getNumPlaca() == null ? "N/A" : expresos.getNumPlaca().toString()); //Placa
|
||||
lc.setParent(item);
|
||||
|
||||
int estadoExpreso = (expresos.getSolicitudExpresoId().getStatusSolicitudExpresoId() == null ? 0 : expresos.getSolicitudExpresoId().getStatusSolicitudExpresoId());
|
||||
|
||||
switch(estadoExpreso) {
|
||||
case 1:
|
||||
lc = new Listcell(Labels.getLabel("expresosController.lbl.estadoSolicitado"));
|
||||
lc.setParent(item);
|
||||
break;
|
||||
case 2:
|
||||
lc = new Listcell(Labels.getLabel("expresosController.lbl.estadoEnviado"));
|
||||
lc.setParent(item);
|
||||
break;
|
||||
case 3:
|
||||
lc = new Listcell(Labels.getLabel("expresosController.lbl.estadoAceptado"));
|
||||
lc.setParent(item);
|
||||
|
||||
break;
|
||||
case 4:
|
||||
lc = new Listcell(Labels.getLabel("expresosController.lbl.estadoRechazado"));
|
||||
lc.setParent(item);
|
||||
break;
|
||||
case 5:
|
||||
lc = new Listcell(Labels.getLabel("expresosController.lbl.estadoCumplido"));
|
||||
lc.setParent(item);
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
/*
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getStatusSolicitudExpresoId().toString()); //Estado
|
||||
lc.setParent(item);
|
||||
*/
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getDocContrato() != null ? Labels.getLabel("MSG.SI") : Labels.getLabel("MSG.NO"));
|
||||
lc.setParent(item);
|
||||
|
|
|
@ -488,6 +488,7 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.ConfiguracionProductoParada</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaNequiConfig</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RevenueConfig</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.StatusSolicitudExpreso</value>
|
||||
|
||||
</list>
|
||||
</property>
|
||||
|
|
|
@ -30,18 +30,10 @@
|
|||
<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}"/>
|
||||
<label id="lblExpreso" value="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||
<intbox id="txtNumSolicitud"/>
|
||||
</row>
|
||||
-->
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
|
@ -53,13 +45,6 @@
|
|||
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"
|
||||
|
|
|
@ -30,18 +30,10 @@
|
|||
<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}"/>
|
||||
<label id="lblExpreso" value="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||
<intbox id="txtNumSolicitud"/>
|
||||
</row>
|
||||
-->
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
|
|
|
@ -30,18 +30,10 @@
|
|||
<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}"/>
|
||||
<label id="lblExpreso" value="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||
<intbox id="txtNumSolicitud"/>
|
||||
</row>
|
||||
-->
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
|
|
|
@ -35,6 +35,10 @@
|
|||
format="dd/MM/yyyy" maxlength="10"
|
||||
constraint="no empty" />
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label id="lblExpreso" value="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||
<intbox id="txtNumSolicitud"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
width="70%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row spans="1, 3">
|
||||
<row>
|
||||
<label value="${c:l('busquedaLogAuditoriaController.lblIdAuditado')}"/>
|
||||
<textbox id="txtIdAuditado"
|
||||
width="40%"
|
||||
|
|
|
@ -30,18 +30,10 @@
|
|||
<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}"/>
|
||||
<label id="lblExpreso" value="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||
<intbox id="txtNumSolicitud"/>
|
||||
</row>
|
||||
-->
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
|
|
|
@ -30,18 +30,10 @@
|
|||
<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}"/>
|
||||
<label id="lblExpreso" value="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||
<intbox id="txtNumSolicitud"/>
|
||||
</row>
|
||||
-->
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
|
|
|
@ -33,6 +33,10 @@
|
|||
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
|
||||
format="dd/MM/yyyy" maxlength="10" />
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label id="lblExpreso" value="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}"/>
|
||||
<intbox id="txtNumSolicitud"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
|
|
Loading…
Reference in New Issue