diff --git a/src/com/rjconsultores/ventaboletos/service/EscolaService.java b/src/com/rjconsultores/ventaboletos/service/EscolaService.java index e7bf3a1e6..5e4196333 100644 --- a/src/com/rjconsultores/ventaboletos/service/EscolaService.java +++ b/src/com/rjconsultores/ventaboletos/service/EscolaService.java @@ -4,7 +4,6 @@ import java.util.List; import com.rjconsultores.ventaboletos.entidad.Ciudad; import com.rjconsultores.ventaboletos.entidad.Escola; -import com.rjconsultores.ventaboletos.entidad.Estado; import com.rjconsultores.ventaboletos.utilerias.RegistroConDependenciaException; public interface EscolaService { diff --git a/src/com/rjconsultores/ventaboletos/service/PtovtaAgenciaService.java b/src/com/rjconsultores/ventaboletos/service/PtovtaAgenciaService.java index 589665bd7..ba6fadad9 100644 --- a/src/com/rjconsultores/ventaboletos/service/PtovtaAgenciaService.java +++ b/src/com/rjconsultores/ventaboletos/service/PtovtaAgenciaService.java @@ -6,9 +6,7 @@ package com.rjconsultores.ventaboletos.service; import java.util.List; - import com.rjconsultores.ventaboletos.entidad.PtovtaAgencia; -import com.rjconsultores.ventaboletos.entidad.InstiFinanceira; public interface PtovtaAgenciaService extends GenericService { diff --git a/src/com/rjconsultores/ventaboletos/service/impl/AliasServicoServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/AliasServicoServiceImpl.java index 4c503e3f4..f4603b80c 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/AliasServicoServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/AliasServicoServiceImpl.java @@ -1,12 +1,9 @@ package com.rjconsultores.ventaboletos.service.impl; -import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.List; -import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.collections.Predicate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; diff --git a/src/com/rjconsultores/ventaboletos/service/impl/AutobusServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/AutobusServiceImpl.java index d8b066fdc..a05d846e0 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/AutobusServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/AutobusServiceImpl.java @@ -4,17 +4,18 @@ */ package com.rjconsultores.ventaboletos.service.impl; +import java.util.Calendar; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + import com.rjconsultores.ventaboletos.dao.AutobusDAO; -import com.rjconsultores.ventaboletos.dao.DiagramaAutobusDAO; import com.rjconsultores.ventaboletos.entidad.Autobus; import com.rjconsultores.ventaboletos.entidad.DiagramaAutobus; import com.rjconsultores.ventaboletos.service.AutobusService; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; -import java.util.Calendar; -import java.util.List; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; /** * @@ -25,9 +26,6 @@ public class AutobusServiceImpl implements AutobusService { @Autowired private AutobusDAO autobusDAO; - @Autowired - private DiagramaAutobusDAO diagramaAutobusDAO; - public List obtenerTodos() { return autobusDAO.obtenerTodos(); } diff --git a/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java index d477bd636..2fa569ef0 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java @@ -313,6 +313,7 @@ public class CorridaServiceImpl implements CorridaService { return gHoraChegada.getTime(); } + @SuppressWarnings("deprecation") private Date calcularFechorsalida(EsquemaTramo esquemaTramo, Date dataGeracao, Date horaChegadaAnterior, java.util.Date tiempoEstanciaAnterior) { Date horaSaida; @@ -410,6 +411,7 @@ public class CorridaServiceImpl implements CorridaService { * @param dataGeracao * @return - La corrida generada o null si no fue generada. */ + @SuppressWarnings("deprecation") private Corrida generarCorrida(EsquemaCorrida esquemaCorrida, Date dataGeracao, boolean isPisoExtra, Boolean isFeriado) { GregorianCalendar calendario = new GregorianCalendar(); diff --git a/src/com/rjconsultores/ventaboletos/service/impl/CorridaTramoServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/CorridaTramoServiceImpl.java index b6f4fe01c..1a1b4587a 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/CorridaTramoServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/CorridaTramoServiceImpl.java @@ -4,7 +4,6 @@ import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; import com.rjconsultores.ventaboletos.dao.CorridaTramoDAO; import com.rjconsultores.ventaboletos.entidad.CorridaTramo; diff --git a/src/com/rjconsultores/ventaboletos/service/impl/EscolaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/EscolaServiceImpl.java index ebe3bac97..78faee18a 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/EscolaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/EscolaServiceImpl.java @@ -7,7 +7,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import com.rjconsultores.ventaboletos.dao.CiudadDAO; import com.rjconsultores.ventaboletos.dao.EscolaDAO; import com.rjconsultores.ventaboletos.entidad.Ciudad; import com.rjconsultores.ventaboletos.entidad.Escola; @@ -20,9 +19,6 @@ public class EscolaServiceImpl implements EscolaService { @Autowired private EscolaDAO EscolaDAO; - @Autowired - private CiudadDAO ciudadDAO; - public List obtenerTodos() { return EscolaDAO.obtenerTodos(); } diff --git a/src/com/rjconsultores/ventaboletos/service/impl/EsquemaAgrupacionServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/EsquemaAgrupacionServiceImpl.java index 78ae2e0ba..2d9b5cf01 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/EsquemaAgrupacionServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/EsquemaAgrupacionServiceImpl.java @@ -13,7 +13,6 @@ import org.springframework.transaction.annotation.Transactional; import com.rjconsultores.ventaboletos.dao.EsquemaAgrupacionDAO; import com.rjconsultores.ventaboletos.entidad.EsquemaAgrupacion; -import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida; import com.rjconsultores.ventaboletos.service.EsquemaAgrupacionService; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; diff --git a/src/com/rjconsultores/ventaboletos/service/impl/FechamentoParamgeralServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/FechamentoParamgeralServiceImpl.java index 0e48fc923..6a69097be 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/FechamentoParamgeralServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/FechamentoParamgeralServiceImpl.java @@ -1,6 +1,5 @@ package com.rjconsultores.ventaboletos.service.impl; -import java.util.Calendar; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; diff --git a/src/com/rjconsultores/ventaboletos/service/impl/ImportacaoClientesServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/ImportacaoClientesServiceImpl.java index 156237af1..8684e4418 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/ImportacaoClientesServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/ImportacaoClientesServiceImpl.java @@ -16,7 +16,6 @@ import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.TarjetaFidelidad; import com.rjconsultores.ventaboletos.service.ClienteService; import com.rjconsultores.ventaboletos.service.ImportacaoClientesService; -import com.rjconsultores.ventaboletos.service.TarjetaFidelidadService; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; @Service("importacaoClientesService") @@ -24,9 +23,6 @@ public class ImportacaoClientesServiceImpl implements ImportacaoClientesService @Autowired private ClienteService clienteService; - @Autowired - private TarjetaFidelidadService tarjetaFidelidadService; - private static Logger log = Logger.getLogger(ImportacaoClientesServiceImpl.class); @Override diff --git a/src/com/rjconsultores/ventaboletos/service/impl/InformeCategoriaVentaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/InformeCategoriaVentaServiceImpl.java index 8ab08c109..8348725d2 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/InformeCategoriaVentaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/InformeCategoriaVentaServiceImpl.java @@ -15,11 +15,6 @@ import java.util.Map; import javax.sql.DataSource; -import net.sf.jasperreports.engine.JRDataSource; -import net.sf.jasperreports.engine.JRException; -import net.sf.jasperreports.engine.JRResultSetDataSource; -import net.sf.jasperreports.engine.JasperRunManager; - import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -29,7 +24,11 @@ import com.rjconsultores.ventaboletos.dao.InformeCategoriaVentaDAO; import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.exception.BusinessException; import com.rjconsultores.ventaboletos.service.InformeCategoriaVentaService; -import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext; + +import net.sf.jasperreports.engine.JRDataSource; +import net.sf.jasperreports.engine.JRException; +import net.sf.jasperreports.engine.JRResultSetDataSource; +import net.sf.jasperreports.engine.JasperRunManager; /** * diff --git a/src/com/rjconsultores/ventaboletos/service/impl/InformePasajeroServicioServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/InformePasajeroServicioServiceImpl.java index 48cc307b2..c0139a8e4 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/InformePasajeroServicioServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/InformePasajeroServicioServiceImpl.java @@ -15,11 +15,6 @@ import java.util.Map; import javax.sql.DataSource; -import net.sf.jasperreports.engine.JRDataSource; -import net.sf.jasperreports.engine.JRException; -import net.sf.jasperreports.engine.JRResultSetDataSource; -import net.sf.jasperreports.engine.JasperRunManager; - import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -29,7 +24,11 @@ import com.rjconsultores.ventaboletos.dao.InformePasajeroServicioDAO; import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.exception.BusinessException; import com.rjconsultores.ventaboletos.service.InformePasajeroServicioService; -import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext; + +import net.sf.jasperreports.engine.JRDataSource; +import net.sf.jasperreports.engine.JRException; +import net.sf.jasperreports.engine.JRResultSetDataSource; +import net.sf.jasperreports.engine.JasperRunManager; /** * diff --git a/src/com/rjconsultores/ventaboletos/service/impl/MigracaoControleEstoqueServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/MigracaoControleEstoqueServiceImpl.java index 1c6ab1107..04e9ce251 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/MigracaoControleEstoqueServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/MigracaoControleEstoqueServiceImpl.java @@ -8,7 +8,6 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; -import org.apache.commons.collections.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -23,12 +22,10 @@ import com.rjconsultores.ventaboletos.dao.TipoMovimentacionDAO; import com.rjconsultores.ventaboletos.entidad.AbastoBoleto; import com.rjconsultores.ventaboletos.entidad.AbastoCentral; import com.rjconsultores.ventaboletos.entidad.Aidf; -import com.rjconsultores.ventaboletos.entidad.ControleEstoqueMigracao; import com.rjconsultores.ventaboletos.entidad.DetAbastoBoleto; import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.PuntoVenta; import com.rjconsultores.ventaboletos.entidad.TipoMovimentacion; -import com.rjconsultores.ventaboletos.service.AbastoCentralService; import com.rjconsultores.ventaboletos.service.MigracaoControleEstoqueService; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; diff --git a/src/com/rjconsultores/ventaboletos/service/impl/MovimentacionBilhetesServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/MovimentacionBilhetesServiceImpl.java index cc67a25a0..b50ad87db 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/MovimentacionBilhetesServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/MovimentacionBilhetesServiceImpl.java @@ -11,7 +11,6 @@ import org.springframework.transaction.annotation.Transactional; import com.rjconsultores.ventaboletos.dao.AbastoCentralDAO; import com.rjconsultores.ventaboletos.dao.AbastoHistoDAO; -import com.rjconsultores.ventaboletos.dao.AidfDAO; import com.rjconsultores.ventaboletos.dao.PtovtaTipoEstoqueDAO; import com.rjconsultores.ventaboletos.dao.PuntoVentaDAO; import com.rjconsultores.ventaboletos.dao.TipoMovimentacionDAO; @@ -24,15 +23,11 @@ import com.rjconsultores.ventaboletos.entidad.PuntoVenta; import com.rjconsultores.ventaboletos.entidad.TipoMovimentacion; import com.rjconsultores.ventaboletos.service.AutorizaFolioService; import com.rjconsultores.ventaboletos.service.MovimentacionBilhetesService; -import com.rjconsultores.ventaboletos.service.PuntoVentaService; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; @Service("movimentacioBilhetesService") public class MovimentacionBilhetesServiceImpl implements MovimentacionBilhetesService { - @Autowired - private AidfDAO aidfDAO; - @Autowired private AbastoCentralDAO abastoCentralDAO; diff --git a/src/com/rjconsultores/ventaboletos/service/impl/OrgaoTramoServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/OrgaoTramoServiceImpl.java index a93409153..11002ce3a 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/OrgaoTramoServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/OrgaoTramoServiceImpl.java @@ -1,15 +1,10 @@ package com.rjconsultores.ventaboletos.service.impl; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; -import com.rjconsultores.ventaboletos.dao.OrgaoTramoDAO; import com.rjconsultores.ventaboletos.service.OrgaoTramoService; @Service("orgaoTramoService") public class OrgaoTramoServiceImpl implements OrgaoTramoService { - @Autowired - private OrgaoTramoDAO orgaoTramoDAO; - } diff --git a/src/com/rjconsultores/ventaboletos/service/impl/ParamCostoTarjetaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/ParamCostoTarjetaServiceImpl.java index 2b5c18c90..405c93c02 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/ParamCostoTarjetaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/ParamCostoTarjetaServiceImpl.java @@ -4,17 +4,18 @@ */ package com.rjconsultores.ventaboletos.service.impl; -import com.rjconsultores.ventaboletos.dao.ParamCostoTarjetaDAO; -import com.rjconsultores.ventaboletos.entidad.Empresa; -import com.rjconsultores.ventaboletos.entidad.ParamCostoTarjeta; -import com.rjconsultores.ventaboletos.service.ParamCostoTarjetaService; -import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; import java.util.Calendar; import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import com.rjconsultores.ventaboletos.dao.ParamCostoTarjetaDAO; +import com.rjconsultores.ventaboletos.entidad.ParamCostoTarjeta; +import com.rjconsultores.ventaboletos.service.ParamCostoTarjetaService; +import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; + /** * * @author Rafius diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PerfilServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PerfilServiceImpl.java index aafb62089..44ae4b18a 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PerfilServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PerfilServiceImpl.java @@ -4,29 +4,6 @@ */ package com.rjconsultores.ventaboletos.service.impl; -import com.rjconsultores.ventaboletos.dao.PerfilDAO; -import com.rjconsultores.ventaboletos.entidad.Perfil; -import com.rjconsultores.ventaboletos.entidad.PerfilFuncion; -import com.rjconsultores.ventaboletos.entidad.Pricing; -import com.rjconsultores.ventaboletos.entidad.PricingAsiento; -import com.rjconsultores.ventaboletos.entidad.PricingCategoria; -import com.rjconsultores.ventaboletos.entidad.PricingClase; -import com.rjconsultores.ventaboletos.entidad.PricingCorrida; -import com.rjconsultores.ventaboletos.entidad.PricingDia; -import com.rjconsultores.ventaboletos.entidad.PricingFormapago; -import com.rjconsultores.ventaboletos.entidad.PricingImporte; -import com.rjconsultores.ventaboletos.entidad.PricingMarca; -import com.rjconsultores.ventaboletos.entidad.PricingMercado; -import com.rjconsultores.ventaboletos.entidad.PricingOcupaAntecipa; -import com.rjconsultores.ventaboletos.entidad.PricingPuntoVenta; -import com.rjconsultores.ventaboletos.entidad.PricingRuta; -import com.rjconsultores.ventaboletos.entidad.PricingTipoPtoVta; -import com.rjconsultores.ventaboletos.entidad.PricingTipoServicio; -import com.rjconsultores.ventaboletos.entidad.PricingVigencia; -import com.rjconsultores.ventaboletos.entidad.UsuarioPerfil; -import com.rjconsultores.ventaboletos.service.PerfilService; -import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; - import java.util.ArrayList; import java.util.Calendar; import java.util.List; @@ -35,6 +12,13 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import com.rjconsultores.ventaboletos.dao.PerfilDAO; +import com.rjconsultores.ventaboletos.entidad.Perfil; +import com.rjconsultores.ventaboletos.entidad.PerfilFuncion; +import com.rjconsultores.ventaboletos.entidad.UsuarioPerfil; +import com.rjconsultores.ventaboletos.service.PerfilService; +import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; + /** * * @author rodrigo diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PrecioVentajaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PrecioVentajaServiceImpl.java index 6e02e517b..4650d8dce 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PrecioVentajaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PrecioVentajaServiceImpl.java @@ -10,10 +10,8 @@ import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import org.zkoss.util.resource.Labels; import com.rjconsultores.ventaboletos.dao.PrecioVentajaDAO; -import com.rjconsultores.ventaboletos.entidad.Estacion; import com.rjconsultores.ventaboletos.entidad.PrecioVentaja; import com.rjconsultores.ventaboletos.exception.BusinessException; import com.rjconsultores.ventaboletos.service.PrecioVentajaService; diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PricingEspecificoServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PricingEspecificoServiceImpl.java index d5b68a93f..013ff6d6a 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PricingEspecificoServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PricingEspecificoServiceImpl.java @@ -4,16 +4,6 @@ */ package com.rjconsultores.ventaboletos.service.impl; -import com.rjconsultores.ventaboletos.dao.PricingEspecificoDAO; -import com.rjconsultores.ventaboletos.entidad.ClaseServicio; -import com.rjconsultores.ventaboletos.entidad.Empresa; -import com.rjconsultores.ventaboletos.entidad.Parada; -import com.rjconsultores.ventaboletos.entidad.PricingEspecifico; -import com.rjconsultores.ventaboletos.entidad.PricingEspecificoOcupacion; -import com.rjconsultores.ventaboletos.entidad.VigenciaTarifa; -import com.rjconsultores.ventaboletos.service.PricingEspecificoService; -import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; - import java.util.ArrayList; import java.util.Calendar; import java.util.Date; @@ -23,6 +13,15 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import com.rjconsultores.ventaboletos.dao.PricingEspecificoDAO; +import com.rjconsultores.ventaboletos.entidad.ClaseServicio; +import com.rjconsultores.ventaboletos.entidad.Empresa; +import com.rjconsultores.ventaboletos.entidad.Parada; +import com.rjconsultores.ventaboletos.entidad.PricingEspecifico; +import com.rjconsultores.ventaboletos.entidad.PricingEspecificoOcupacion; +import com.rjconsultores.ventaboletos.service.PricingEspecificoService; +import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; + /** * * @author Rafius diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PtovtaAgenciaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PtovtaAgenciaServiceImpl.java index f4a902a61..cd466b15c 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PtovtaAgenciaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PtovtaAgenciaServiceImpl.java @@ -4,19 +4,18 @@ */ package com.rjconsultores.ventaboletos.service.impl; -import com.rjconsultores.ventaboletos.dao.PtovtaAgenciaDAO; -import com.rjconsultores.ventaboletos.entidad.ProdVigencia; -import com.rjconsultores.ventaboletos.entidad.PtovtaAgencia; -import com.rjconsultores.ventaboletos.service.ProdVigenciaService; -import com.rjconsultores.ventaboletos.service.PtovtaAgenciaService; -import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; import java.util.Calendar; import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; - import org.springframework.transaction.annotation.Transactional; +import com.rjconsultores.ventaboletos.dao.PtovtaAgenciaDAO; +import com.rjconsultores.ventaboletos.entidad.PtovtaAgencia; +import com.rjconsultores.ventaboletos.service.PtovtaAgenciaService; +import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; + /** * * @author Desenvolvimento diff --git a/src/com/rjconsultores/ventaboletos/service/impl/RutaCasetaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/RutaCasetaServiceImpl.java index 7b7236ca5..01d970b9c 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/RutaCasetaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/RutaCasetaServiceImpl.java @@ -1,16 +1,12 @@ package com.rjconsultores.ventaboletos.service.impl; import java.util.Calendar; -import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.rjconsultores.ventaboletos.dao.RutaCasetaDAO; -import com.rjconsultores.ventaboletos.dao.RutaDAO; -import com.rjconsultores.ventaboletos.entidad.ParadaSecuencia; -import com.rjconsultores.ventaboletos.entidad.Ruta; import com.rjconsultores.ventaboletos.entidad.RutaCaseta; import com.rjconsultores.ventaboletos.exception.BusinessException; import com.rjconsultores.ventaboletos.service.RutaCasetaService; diff --git a/src/com/rjconsultores/ventaboletos/service/impl/RutaCombinacionServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/RutaCombinacionServiceImpl.java index 6dd3fd911..ba6723eab 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/RutaCombinacionServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/RutaCombinacionServiceImpl.java @@ -313,13 +313,6 @@ public class RutaCombinacionServiceImpl implements RutaCombinacionService { numAba = numAba + 1; sheet1 = wb.createSheet(sheetName); - SimpleDateFormat sf = new SimpleDateFormat("dd/MM/yyyy HH:mm"); - - //Montando o CabeƧalho - HSSFRow r0 = sheet1.createRow(0); -// r0.createCell(0).setCellValue(Labels.getLabel("tarifaEscalaContorller.lhFeciniciovigencia.label")); -// r0.createCell(1).setCellValue(sf.format(teg.getFECINICIOVIGENCIA()) + " - " + sf.format(teg.getFECFINVIGENCIA())); - HSSFRow r1 = sheet1.createRow(1); r1.createCell(0).setCellValue(Labels.getLabel("tarifaEscalaContorller.lhMoneda.label")); r1.createCell(1).setCellValue(teg.getDESCMONEDA().toUpperCase()); diff --git a/src/com/rjconsultores/ventaboletos/service/impl/TarifaKmServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/TarifaKmServiceImpl.java index 3ce0f5415..9ec6ddb26 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/TarifaKmServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/TarifaKmServiceImpl.java @@ -8,11 +8,9 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.rjconsultores.ventaboletos.dao.TarifaKmDAO; -import com.rjconsultores.ventaboletos.dao.TaxaEmbarqueKmDAO; import com.rjconsultores.ventaboletos.entidad.ClaseServicio; import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente; import com.rjconsultores.ventaboletos.entidad.TarifaKm; -import com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueKm; import com.rjconsultores.ventaboletos.service.TarifaKmService; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; diff --git a/src/com/rjconsultores/ventaboletos/service/impl/TarifaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/TarifaServiceImpl.java index 097fd3635..249682c08 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/TarifaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/TarifaServiceImpl.java @@ -35,9 +35,7 @@ import com.rjconsultores.ventaboletos.entidad.Tramo; import com.rjconsultores.ventaboletos.entidad.Via; import com.rjconsultores.ventaboletos.entidad.VigenciaTarifa; import com.rjconsultores.ventaboletos.exception.BusinessException; -import com.rjconsultores.ventaboletos.service.ConstanteService; import com.rjconsultores.ventaboletos.service.MonedaService; -import com.rjconsultores.ventaboletos.service.ParadaService; import com.rjconsultores.ventaboletos.service.RutaService; import com.rjconsultores.ventaboletos.service.TarifaHistService; import com.rjconsultores.ventaboletos.service.TarifaMinimaService; @@ -56,14 +54,10 @@ public class TarifaServiceImpl implements TarifaService { @Autowired private TarifaHistService tarifaHistService; @Autowired - private ConstanteService constanteService; - @Autowired private MonedaService monedaService; @Autowired private TarifaMinimaService tarifaMinimaService; @Autowired - private ParadaService paradaService; - @Autowired private RutaService rutaService; private static Logger log = Logger.getLogger(TarifaServiceImpl.class); diff --git a/src/com/rjconsultores/ventaboletos/service/impl/TarjetaViajeServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/TarjetaViajeServiceImpl.java index e13a85796..57d762e10 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/TarjetaViajeServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/TarjetaViajeServiceImpl.java @@ -1,5 +1,7 @@ package com.rjconsultores.ventaboletos.service.impl; +import java.math.BigDecimal; +import java.math.BigInteger; import java.util.Calendar; import java.util.Date; import java.util.List; @@ -10,7 +12,6 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.zkoss.zul.Comboitem; - import com.rjconsultores.ventaboletos.dao.CorridaTramoDAO; import com.rjconsultores.ventaboletos.dao.TarjetaViajeDAO; import com.rjconsultores.ventaboletos.entidad.Corrida; @@ -22,9 +23,6 @@ import com.rjconsultores.ventaboletos.service.RhPagoConductorService; import com.rjconsultores.ventaboletos.service.RutaService; import com.rjconsultores.ventaboletos.service.TarjetaViajeService; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; -import java.math.BigDecimal; -import java.math.BigInteger; -import org.omg.CORBA.TCKind; @Service("tarjetaViajeService") public class TarjetaViajeServiceImpl implements TarjetaViajeService { diff --git a/src/com/rjconsultores/ventaboletos/service/impl/TipoInformativoComissaoServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/TipoInformativoComissaoServiceImpl.java index f4891c55b..6a16e1a49 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/TipoInformativoComissaoServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/TipoInformativoComissaoServiceImpl.java @@ -3,8 +3,6 @@ package com.rjconsultores.ventaboletos.service.impl; import java.util.Calendar; import java.util.List; -import org.hibernate.Criteria; -import org.hibernate.criterion.Restrictions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; diff --git a/src/com/rjconsultores/ventaboletos/service/impl/TramoKmServicioServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/TramoKmServicioServiceImpl.java index 20fd1c281..bc46a00c0 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/TramoKmServicioServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/TramoKmServicioServiceImpl.java @@ -5,17 +5,18 @@ package com.rjconsultores.ventaboletos.service.impl; -import com.rjconsultores.ventaboletos.dao.TramoKmServicioDAO; -import com.rjconsultores.ventaboletos.entidad.TramoKmServicio; -import com.rjconsultores.ventaboletos.service.TramoKmServicioService; -import com.rjconsultores.ventaboletos.service.TramoService; -import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; import java.util.Calendar; import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import com.rjconsultores.ventaboletos.dao.TramoKmServicioDAO; +import com.rjconsultores.ventaboletos.entidad.TramoKmServicio; +import com.rjconsultores.ventaboletos.service.TramoKmServicioService; +import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; + /** * * @author Desenvolvimento @@ -25,8 +26,6 @@ public class TramoKmServicioServiceImpl implements TramoKmServicioService { @Autowired private TramoKmServicioDAO tramoKmServicioDAO; - @Autowired - private TramoService tramoService; public List obtenerTodos() { return tramoKmServicioDAO.obtenerTodos(); diff --git a/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java index fbfb831fe..897612663 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java @@ -35,7 +35,6 @@ import com.rjconsultores.ventaboletos.exception.BusinessException; import com.rjconsultores.ventaboletos.service.RutaCombinacionService; import com.rjconsultores.ventaboletos.service.RutaEmpresaService; import com.rjconsultores.ventaboletos.service.RutaSecuenciaService; -import com.rjconsultores.ventaboletos.service.RutaService; import com.rjconsultores.ventaboletos.service.TramoRutaService; import com.rjconsultores.ventaboletos.service.TramoService; import com.rjconsultores.ventaboletos.service.TramoServicioService; @@ -50,8 +49,6 @@ public class TramoRutaServiceImpl implements TramoRutaService { private static Logger log = Logger.getLogger(TramoRutaServiceImpl.class); @Autowired - private RutaService rutaService; - @Autowired private RutaCombinacionService rutaCombinacionService; @Autowired private RutaSecuenciaService rutaSecuenciaService; diff --git a/src/com/rjconsultores/ventaboletos/service/impl/TramoTiempoServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/TramoTiempoServiceImpl.java index 8c528eb3f..f04f5ccab 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/TramoTiempoServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/TramoTiempoServiceImpl.java @@ -4,9 +4,7 @@ */ package com.rjconsultores.ventaboletos.service.impl; -import java.math.BigDecimal; import java.util.Calendar; -import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; @@ -15,11 +13,8 @@ import org.springframework.transaction.annotation.Transactional; import com.rjconsultores.ventaboletos.dao.TramoTiempoDAO; import com.rjconsultores.ventaboletos.entidad.ClaseServicio; -import com.rjconsultores.ventaboletos.entidad.Parada; import com.rjconsultores.ventaboletos.entidad.Tramo; import com.rjconsultores.ventaboletos.entidad.TramoTiempo; -import com.rjconsultores.ventaboletos.entidad.Via; -import com.rjconsultores.ventaboletos.service.TramoService; import com.rjconsultores.ventaboletos.service.TramoTiempoService; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; @@ -30,11 +25,8 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; @Service("tramoTiempoService") public class TramoTiempoServiceImpl implements TramoTiempoService { - @Autowired - private TramoTiempoDAO tramoTiempoDAO; - @Autowired - private TramoService tramoService; - + @Autowired + private TramoTiempoDAO tramoTiempoDAO; public List obtenerTodos() { return tramoTiempoDAO.obtenerTodos(); diff --git a/src/com/rjconsultores/ventaboletos/service/impl/UsuarioEmpresaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/UsuarioEmpresaServiceImpl.java index fca54cd5c..ba9c60a55 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/UsuarioEmpresaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/UsuarioEmpresaServiceImpl.java @@ -1,6 +1,5 @@ package com.rjconsultores.ventaboletos.service.impl; -import java.util.ArrayList; import java.util.Calendar; import java.util.List; @@ -8,7 +7,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; - import com.rjconsultores.ventaboletos.dao.UsuarioEmpresaDAO; import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Usuario; diff --git a/src/com/rjconsultores/ventaboletos/utilerias/spring/MyAnnotationSessionFactoryBean.java b/src/com/rjconsultores/ventaboletos/utilerias/spring/MyAnnotationSessionFactoryBean.java index aa6f26ed1..549c0cd07 100644 --- a/src/com/rjconsultores/ventaboletos/utilerias/spring/MyAnnotationSessionFactoryBean.java +++ b/src/com/rjconsultores/ventaboletos/utilerias/spring/MyAnnotationSessionFactoryBean.java @@ -6,6 +6,7 @@ import org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBea import com.rjconsultores.ventaboletos.dao.hibernate.sqlfunction.FnArredondamentoTarifa; +@SuppressWarnings("deprecation") public class MyAnnotationSessionFactoryBean extends AnnotationSessionFactoryBean{ public MyAnnotationSessionFactoryBean() {