89 lines
3.2 KiB
Java
89 lines
3.2 KiB
Java
package com.rjconsultores.ventaboletos.dao;
|
||
|
||
import java.util.List;
|
||
|
||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||
import com.rjconsultores.ventaboletos.entidad.TarifaOficial;
|
||
import com.rjconsultores.ventaboletos.entidad.VigenciaTarifa;
|
||
import com.rjconsultores.ventaboletos.service.TarifaOficialService;
|
||
|
||
|
||
public interface TarifaOficialDAO extends GenericDAO<TarifaOficial, Integer>{
|
||
/**
|
||
* See {@link TarifaOficialService#gerarTarifaPorCoeficiente(Integer, Integer)}
|
||
* @param ruta
|
||
* @param usuarioId TODO
|
||
* @param orgaoConcedenteId TODO
|
||
* @return TODO
|
||
*/
|
||
public Integer gerarTarifaPorCoeficiente(Integer ruta, Integer usuarioId, Integer orgaoConcedenteId, Integer empresaId);
|
||
|
||
public Integer gerarTarifaArtesp(Integer ruta, Integer usuarioId, Integer orgaoConcedenteId, Integer empresaId);
|
||
|
||
public Integer gerarTabelaZerada(Integer ruta, Integer usuarioId, Integer orgaoConcedenteId, Integer empresaId);
|
||
|
||
/**
|
||
* See {@link TarifaOficialService#atualizarTarifaPorCoeficiente(Integer, Integer)}
|
||
* @param rutaId
|
||
* @param usuarioId TODO
|
||
* @param orgaoConcedenteId
|
||
* @return TODO
|
||
*/
|
||
public Integer atualizarTarifaCoeficiente(Integer rutaId, Integer usuarioId, Integer orgaoConcedenteId);
|
||
|
||
/**
|
||
* See {@link TarifaOficialService#copiarParaTarifa(VigenciaTarifa)}
|
||
* @param vigenciaTarifa
|
||
* @param usuarioId TODO
|
||
* @param calculaPegagio Boolean
|
||
* @param calculaTarifa Boolean
|
||
* @param calculaTaxaEmbarque Boolean
|
||
*/
|
||
public void copiarParaTarifa(VigenciaTarifa vigenciaTarifa, Integer usuarioId, Boolean calculaPegagio, Boolean calculaTarifa, Boolean calculaTaxaEmbarque, Boolean calculaSeguro);
|
||
|
||
/**
|
||
* See {@link TarifaOficialService#atualizarTaxaEmbarque(Integer, Integer)}
|
||
* @param rutaId
|
||
* @param usuarioId TODO
|
||
* @param orgaoConcedenteId TODO
|
||
* @param empresaId TODO
|
||
*/
|
||
public void atualizarTaxaEmbarque(List<Ruta> lsRuta, Integer usuarioId, Integer orgaoConcedenteId, Integer empresaId);
|
||
|
||
/**
|
||
* See {@link TarifaOficialService#atualizarSeguroPorKm(Integer, Integer, Integer)}
|
||
* @param rutaId
|
||
* @param orgaoId
|
||
* @param usuarioId
|
||
*/
|
||
public void atualizarSeguroPorKm(Integer rutaId,Integer orgaoId,Integer usuarioId) ;
|
||
|
||
/**
|
||
* See {@link TarifaOficialService#atualizarSeguroPorTarifa(Integer, Integer, Integer)}
|
||
* @param rutaId
|
||
* @param orgaoId
|
||
* @param usuarioId
|
||
*/
|
||
public void atualizarSeguroPorTarifa(Integer rutaId, Integer orgaoId,Integer usuarioId);
|
||
|
||
/**
|
||
* Aplica a regra de arredondamento para as tarifas do <20>rg<72>o concedente informado.<br/>
|
||
*
|
||
*
|
||
* Ap<41>s somar todos os componentes (precio,importetaxaembarque,importeseguro,importeoutros e importepedagio) obtem-se o PRECO final.<br/>
|
||
*
|
||
* Baseado nesse valor, s<>o aplicados as regras de arredondamento onde o componente precio pode sofrer um acr<63>scimo os descr<63>scimo de pre<72>o para que o arredondamento<br/>
|
||
* fique certo
|
||
*
|
||
* @param orgaoConcedenteId
|
||
* @param usuarioId TODO
|
||
*/
|
||
public void aplicarArredondamentoTarifa(Integer orgaoConcedenteId, Integer usuarioId, Boolean taxaEmbarque);
|
||
|
||
public void limparTarifasOficiais();
|
||
|
||
public void atualizarPedagio();
|
||
|
||
public long obtenerCount();
|
||
}
|