package gcom.micromedicao;
import java.io.BufferedReader;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Vector;
import javax.mail.SendFailedException;
import org.apache.commons.fileupload.FileItem;
import gcom.atendimentopublico.ligacaoagua.LigacaoAgua;
import gcom.cadastro.cliente.Cliente;
import gcom.cadastro.empresa.Empresa;
import gcom.cadastro.imovel.Categoria;
import gcom.cadastro.imovel.Imovel;
import gcom.cadastro.imovel.Subcategoria;
import gcom.cadastro.imovel.bean.ImovelMicromedicao;
import gcom.cadastro.sistemaparametro.SistemaParametro;
import gcom.cobranca.RotaAcaoCriterioHelper;
import gcom.faturamento.FaturamentoGrupo;
import gcom.faturamento.FaturamentoSituacaoHistorico;
import gcom.faturamento.FaturamentoSituacaoTipo;
import gcom.faturamento.MotivoInterferenciaTipo;
import gcom.faturamento.MovimentoContaPrefaturada;
import gcom.gui.faturamento.ImovelFaturamentoSeletivo;
import gcom.gui.faturamento.bean.AnalisarImoveisReleituraHelper;
import gcom.gui.micromedicao.ColetaMedidorEnergiaHelper;
import gcom.gui.micromedicao.DadosMovimentacao;
import gcom.gui.relatorio.micromedicao.FiltroRelatorioLeituraConsultarArquivosTextoHelper;
import gcom.gui.relatorio.micromedicao.RelatorioNotificacaoDebitosImpressaoSimultaneaHelper;
import gcom.micromedicao.bean.AnaliseConsumoRelatorioOSHelper;
import gcom.micromedicao.bean.AssociarConjuntoRotasCriterioCobrancaHelper;
import gcom.micromedicao.bean.ConsumoHistoricoCondominio;
import gcom.micromedicao.bean.FiltrarLeiturasTelemetriaHelper;
import gcom.micromedicao.bean.HidrometroRelatorioOSHelper;
import gcom.micromedicao.bean.ImovelFaltandoSituacaoLeituraHelper;
import gcom.micromedicao.bean.InformarSubdivisoesDeRotaHelper;
import gcom.micromedicao.bean.MonitorarLeituraMobilePopupHelper;
import gcom.micromedicao.bean.PesquisarRelatorioRotasOnlinePorEmpresaHelper;
import gcom.micromedicao.bean.SituacaoLeituraHelper;
import gcom.micromedicao.consumo.ConsumoAnormalidadeAcao;
import gcom.micromedicao.consumo.ConsumoHistorico;
import gcom.micromedicao.consumo.ConsumoTipo;
import gcom.micromedicao.consumo.LigacaoTipo;
import gcom.micromedicao.hidrometro.Hidrometro;
import gcom.micromedicao.hidrometro.HidrometroCapacidade;
import gcom.micromedicao.hidrometro.HidrometroInstalacaoHistorico;
import gcom.micromedicao.hidrometro.HidrometroMarca;
import gcom.micromedicao.hidrometro.HidrometroProtecao;
import gcom.micromedicao.leitura.LeituraAnormalidade;
import gcom.micromedicao.leitura.LeituraFiscalizacao;
import gcom.micromedicao.leitura.LeituraSituacao;
import gcom.micromedicao.medicao.FiltroMedicaoHistoricoSql;
import gcom.micromedicao.medicao.MedicaoHistorico;
import gcom.micromedicao.medicao.MedicaoTipo;
import gcom.relatorio.cadastro.micromedicao.FiltrarRelatorioImoveisComLeiturasHelper;
import gcom.relatorio.cadastro.micromedicao.RelatorioImoveisComLeiturasQuantitativosBean;
import gcom.relatorio.cadastro.micromedicao.RelatorioImoveisComLeiturasRelacaoBean;
import gcom.relatorio.cadastro.micromedicao.RelatorioImoveisComLeiturasTipo7Bean;
import gcom.relatorio.cadastro.micromedicao.RelatorioResumoLigacoesCapacidadeHidrometroBean;
import gcom.relatorio.cadastro.micromedicao.RelatorioResumoLigacoesCapacidadeHidrometroHelper;
import gcom.relatorio.micromedicao.AvisoAnormalidadeRelatorioHelper;
import gcom.relatorio.micromedicao.FiltrarAnaliseExcecoesLeiturasHelper;
import gcom.relatorio.micromedicao.FiltrarRelatorioAnormalidadeLeituraPeriodoHelper;
import gcom.relatorio.micromedicao.FiltrarRelatorioBoletimMedicaoHelper;
import gcom.relatorio.micromedicao.GerarDadosLeituraHelper;
import gcom.relatorio.micromedicao.RelatorioAcompanhamentoLeituristaHelper;
import gcom.relatorio.micromedicao.RelatorioAnormalidadeLeituraPeriodoBean;
import gcom.relatorio.micromedicao.RelatorioGerarDadosLeituraBean;
import gcom.relatorio.micromedicao.RelatorioRotasOnlinePorEmpresaBean;
import gcom.seguranca.acesso.usuario.Usuario;
import gcom.util.ControladorException;
import gcom.util.ErroRepositorioException;
import gcom.util.filtro.Filtro;
public interface IControladorMicromedicao {
public void consistirLeiturasCalcularConsumos(FaturamentoGrupo faturamentoGrupo, SistemaParametro sistemaParametro, Collection<Rota> colecaoRotas,
int idFuncionalidadeIniciada) throws ControladorException;
public void inserirHidrometro(Hidrometro hidrometro, String fixo, Integer faixaInicial, Integer faixaFinal) throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection pesquisarNumeroHidrometroFaixa(String fixo, String faixaInicial, String faixaFinal) throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection pesquisarNumeroHidrometroFaixaRelatorio(String fixo, String faixaInicial, String faixaFinal) throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection pesquisarNumeroHidrometroFaixaPaginacao(String fixo, String faixaInicial, String faixaFinal, Integer numeroPagina)
throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection pesquisarNumeroHidrometroFaixaComLimite(String fixo, String faixaInicial, String faixaFinal) throws ControladorException;
public void atualizarHidrometro(Hidrometro hidrometro) throws ControladorException;
@SuppressWarnings("rawtypes")
public String verificarLocalArmazenagemSituacao(Collection colecaoHidrometro) throws ControladorException;
@SuppressWarnings("rawtypes")
public void inserirAtualizarMovimentacaoHidrometroIds(Collection colecaoHidrometro, String data, String hora, String idLocalArmazenagemDestino,
String idMotivoMovimentacao, String parecer, Usuario usuario) throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection obterColecaoObjetosSelecionados(Collection colecaoHidrometro, String[] ids) throws ControladorException;
public void executarImovelTestesMedicaoConsumo(FaturamentoGrupo faturamentoGrupo, Imovel imovel) throws ControladorException;
@SuppressWarnings("rawtypes")
public int obterConsumoMinimoLigacao(Imovel imovel, Collection colecaoCategorias) throws ControladorException;
/**
* [UC0083] - Gerar Dados para Leitura
* [SF0001] - Gerar Arquivo MicroColetor
*/
@SuppressWarnings("rawtypes")
public Collection gerarDadosPorLeituraMicroColetor(Collection colecaoRota, Integer anoMesCorrente, Integer idGrupoFaturamentoRota,
SistemaParametro sistemaParametro, int idFuncionalidadeIniciada) throws ControladorException;
/**
* [UC0121] - Filtrar Exce��es de Leituras e Consumos Fl�vio Leonardo
* Cavalcanti Cordeiro
*/
@SuppressWarnings("rawtypes")
public Collection filtrarExcecoesLeiturasConsumos(FaturamentoGrupo faturamentoGrupo, FiltroMedicaoHistoricoSql filtroMedicaoHistoricoSql,
Integer numeroPagina, boolean todosRegistros, String mesAno, String valorAguaEsgotoInicial, String valorAguaEsgotoFinal)
throws ControladorException;
/**
* [UC0121] - Filtrar Exce��es de Leituras e Consumos Fl�vio Leonardo
* Cavalcanti Cordeiro
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarLigacoesMedicaoIndividualizada(Integer idImovel, String anoMes) throws ControladorException;
/**
* [UC0121] - Filtrar Exce��es de Leituras e Consumos Fl�vio Leonardo
* Cavalcanti Cordeiro
*/
public Integer filtrarExcecoesLeiturasConsumosCount(FaturamentoGrupo faturamentoGrupo, FiltroMedicaoHistoricoSql filtroMedicaoHistoricoSql, String mesAno,
String valorAguaEsgotoInicial, String valorAguaEsgotoFinal) throws ControladorException;
/**
* [UC0087] - Calcular Faixa de Leitura Falsa Autor: S�vio Luiz Data:
* 29/12/2005
*/
public Object[] calcularFaixaLeituraFalsa(Imovel imovel, int media, Integer leituraAnterior, MedicaoHistorico medicaoHistorico,
boolean hidrometroSelecionado, Hidrometro hidrometro) throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection pesquisarLeituraAnteriorTipoLigacaoAgua(Integer idImovel, Integer anoMesAnterior) throws ControladorException;
/**
* [UC0098] Manter V�nculos de Im�veis para Rateio de Consumo Atualizar Tipo
* Rateio com Vinculo com o Imovel Author: Rafael Santos Data: 12/01/2006
*/
public void atualizarTipoRateio(Imovel imovel, HidrometroInstalacaoHistorico hidrometroInstalacaoHistoricoAgua,
HidrometroInstalacaoHistorico hidrometroInstalacaoHistoricoPoco, Usuario usuarioLogado, boolean indicadorRateioPorAreaComum, Integer imovelRemover)
throws ControladorException;
@SuppressWarnings("rawtypes")
public void estabelecerVinculo(Imovel imovel, Collection imoveisASerVinculados, Collection imoveisASerDesvinculados,
HidrometroInstalacaoHistorico hidrometroInstalacaoHistoricoAgua, HidrometroInstalacaoHistorico hidrometroInstalacaoHistoricoPoco,
Usuario usuarioLogado) throws ControladorException;
/**
* [UC0098] Manter V�nculos de Im�veis para Rateio de Consumo Atualizar Tipo
* Rateio com Vinculo com o Imovel Author: Rafael Santos Data: 16/01/2006
* Desfazer Vinculo ao Imovel
*/
public void desfazerVinculo(Imovel imovel, String[] ids, boolean desvincular, Usuario usuarioLogado) throws ControladorException;
/**
* [UC0082] - Registrar Leituras e Anormalidades
*/
@SuppressWarnings("rawtypes")
public Collection registrarLeiturasAnormalidades(Collection colecaoMedicaoHistorico, Integer idFaturamentoGrupo, Integer anoMesReferencia, Usuario usuario,
String nomeArquivo) throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection pesquisarHidrometroPorHidrometroMovimentacao(Filtro filtro) throws ControladorException;
/**
* [UC0179] Consultar Historico Medi��o Indiviualizada
*/
public Cliente consultarDadosClienteImovelUsuario(Imovel imovel) throws ControladorException;
/**
* [UC0179] Consultar Historico Medi��o Indiviualizada
*/
@SuppressWarnings("rawtypes")
public Collection consultarHistoricoMedicaoIndividualizada(Imovel imovelCondominio, String anoMesFaturamento, LigacaoTipo ligacaoTipoInformado)
throws ControladorException;
/**
* [UC0179] Consultar Historico Medi��o Indiviualizada
*/
@SuppressWarnings("rawtypes")
public Collection consultarConsumoHistoricoImoveisVinculados(ConsumoHistoricoCondominio consumoHistorico) throws ControladorException;
/**
* [UC0179] Consultar Historico Medi��o Indiviualizada
*/
public ConsumoTipo consultarDadosConsumoTipoConsumoHistorico(ConsumoHistorico consumoHistorico) throws ControladorException;
/**
* [UC0179] Consultar Historico Medi��o Indiviualizada
*/
public ConsumoHistorico obterConsumoHistoricoMedicaoIndividualizada(Imovel imovel, LigacaoTipo ligacaoTipo, int anoMesReferencia)
throws ControladorException;
/**
* [UC0113] Faturar Grupo de Faturamento
*/
public MedicaoHistorico pesquisarMedicaoHistoricoTipoAgua(Integer imovel, Integer anoMes) throws ControladorException;
/**
* [UC0113] Faturar Grupo de Faturamento
*/
public MedicaoHistorico pesquisarMedicaoHistoricoTipoPoco(Integer imovel, Integer anoMes) throws ControladorException;
/**
* [UC0113] Faturar
* Grupo Faturamento
*/
public ConsumoHistorico obterConsumoHistoricoAnormalidade(Integer idImovel, Integer idAnormalidade, int anoMes) throws ControladorException;
/**
* Atualizar Medica��o Historico [UC0000] Alterar Dados Para Faturamento
* Auhtor: Rafael Corr�a Data: 07/03/2006
*
* @param medicaoHistorico
* @return
* @throws ErroRepositorioException
*/
public void atualizarMedicaoHistorico(MedicaoHistorico medicaoHistorico, Usuario usuarioLogado) throws ControladorException;
/**
* Consultar Imoveis com Medi��o Indiviualizada Auhtor: S�vio Luiz Data:
* 06/02/2006 [UC0180] Consultar Imoveis com Medi��o Indiviualizada
*
* @param idImovel
* @return
* @throws ControladorException
*/
public String pesquisarDescricaoRateioTipoLigacaoAgua(Integer idImovel) throws ControladorException;
/**
* Consultar Imoveis com Medi��o Indiviualizada Auhtor: S�vio Luiz Data:
* 06/02/2006 [UC0180] Consultar Imoveis com Medi��o Indiviualizada
*
* @param idImovel
* @return
* @throws ControladorException
*/
public String pesquisarDescricaoRateioTipoLigacaoEsgoto(Integer idImovel) throws ControladorException;
/**
* [UC0039] Manter Rota
*
* Altera um objeto do tipo rota no BD
*
* @author Vivianne Sousa
* @date 06/04/2006
* @param rota
*
* @param collectionRotaAcaoCriterio
* @return void
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public void atualizarRota(Rota rota, String idLocalidade, Collection collectionRotaAcaoCriterio, Usuario usuarioLogado) throws ControladorException;
/**
* [UC0038] Inserir Rota
*
* Insere um objeto do tipo rota no BD
*
* @author Vivianne Sousa
* @date 17/04/2006
* @param rota
* @param idLocalidade
* @param collectionRotaAcaoCriterio
* @return idRota
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public Integer inserirRota(Rota rota, String idLocalidade, Collection collectionRotaAcaoCriterio, Usuario usuarioLogado) throws ControladorException;
/**
* [UC0039] Manter Rota
*
* Remove um objeto do tipo rota no BD
*
* @author Vivianne Sousa
* @date 05/05/2006
* @param ids
* @return void
* @throws ControladorException
*/
public void removerRota(String[] ids, Usuario usuarioLogado) throws ControladorException;
/**
* M�todo que efetua o Rateio do consumo para todos os im�veis de uma rota
* que sejam im�veil condominio
*
* [UC0103] - Efetuar Rateio de Consumo
*
* @author Thiago Toscano
* @date 07/04/2006
*
* @param colecaoRotas
* @param anoMesFaturamento
*/
@SuppressWarnings("rawtypes")
public void efetuarRateioDeConsumo(Collection rotas, Integer anoMesFaturamento, int idFuncionalidadeIniciada) throws ControladorException;
/**
*
* Filtrar Hidrometro
*
* Faz a pesquisa da quantidade que o filtro vai retornar
*
* @author Fernanda Paiva
* @date
*
* @throws ControladorException
*/
public Integer pesquisarNumeroHidrometroFaixaCount(String fixo, String faixaInicial, String faixaFinal) throws ControladorException;
/**
* M�todo que retorna o maior c�digo de Rota de um Setor Comercial
*
* @author Vivianne Sousa
* @date 12/07/2006
*
* @param idSetorComercial
* @return
* @throws ControladorException
*/
public Short pesquisarMaximoCodigoRota(Integer idSetorComercial) throws ControladorException;
/**
*
* M�todo que apresenta os dados do imovel
*
* [UC0153] Apresentar dados para Analise da medi��o e Consumo
*
* @author S�vio Luiz
* @date 04/08/2006
*
* @param idImovel
* @return Collection
*/
@SuppressWarnings("rawtypes")
public Collection pesquiarImovelExcecoesApresentaDados(Integer idImovel, boolean ligacaoAgua) throws ControladorException;
/**
*
* M�todo que apresenta os dados do imovel
*
* [UC0153] Apresentar dados para Analise da medi��o e Consumo
*
* @author S�vio Luiz
* @date 04/08/2006
*
* @param idImovel
* @return Collection
*/
@SuppressWarnings("rawtypes")
public Collection pesquiarMedicaoConsumoHistoricoExcecoesApresentaDados(FaturamentoGrupo faturamentoGrupo, Integer idImovel, boolean ligacaoAgua)
throws ControladorException;
/**
* [UC0153] Apresentar dados para Analise da medi��o e Consumo
*/
@SuppressWarnings("rawtypes")
public Collection carregarDadosMedicao(Integer idImovel, boolean ligacaoAgua) throws ControladorException;
/**
* [UC0153] Apresentar dados para Analise da medi��o e Consumo
*/
@SuppressWarnings("rawtypes")
public Collection carregarDadosMedicaoResumo(Integer idImovel, boolean ligacaoAgua) throws ControladorException;
/**
* [UC0153] Apresentar dados para Analise da medi��o e Consumo
*/
@SuppressWarnings("rawtypes")
public Collection carregarDadosConsumo(Integer idImovel, int anoMes, boolean ligacaoAgua) throws ControladorException;
/**
*
* M�todo utilizado para pesquisar os consumo historicos a serem
* substituidos pelo caso de uso [UC0106] Substituir Consumos Anteriores
*
*/
@SuppressWarnings("rawtypes")
public Collection pesquisaConsumoHistoricoSubstituirConsumo(Integer idImovel) throws ControladorException;
/**
* Atualiza o valor de cshi_nnconsumoFaturadomes consumo historico [UC0106]
* - Substituir Consumos Anteriores
*
* @throws ErroRepositorioException
*/
public void atualizarConsumosAnteriores(ConsumoHistorico consumoHistorico) throws ControladorException;
/**
*
* M�todo que apresenta os dados do imovel
*
* [UC0153] Apresentar dados para Analise da medi��o e Consumo
*
* @author Fl�vio Cordeiro
* @date 04/08/2006
*
* @param idImovel
* @return Collection
*/
public ImovelMicromedicao pesquiarImovelExcecoesApresentaDadosResumido(Integer idImovel, boolean ligacaoAgua) throws ControladorException;
/**
*
* Retorna um objeto com os dados das medicoes para apresenta��o
*
* Fl�vio
*
* [UC0153] Apresentar dados para Analise da medi��o e Consumo
*/
public ImovelMicromedicao carregarDadosMedicaoResumido(Integer idImovel, boolean ligacaoAgua, String anoMes) throws ControladorException;
/**
* Atualizar Analise excecoes consumo resumido
*
* @param idMedicaoTipo
*
* @throws ErroRepositorioException
*/
public void atualizarLeituraConsumoResumido(Integer idImovel, String mesAno, String dataLeituraAnteriorFaturamento, String leituraAnteriorFaturamento,
String dataLeituraAtualInformada, String leituraAtualInformada, String consumo, boolean ligacaoAgua, Integer idAnormalidade,
Integer idleituraSituacaoAtual, FaturamentoGrupo faturamentoGrupo, Usuario usuarioLogado, boolean alterouAnormalidade,
MotivoInterferenciaTipo motivoInterferenciaTipo, Integer idMedicaoTipo) throws ControladorException;
/**
* Atualizar Analise excecoes consumo resumido
*
* @throws ErroRepositorioException
*/
public void atualizarIndicadorAnalisadoMedicaoHistorico(Integer idMedicaoHistorico, Usuario usuarioLogado) throws ControladorException;
/**
* M�todo que retorna um arrey de Object com informa��es do hist�rico de
* consumo com tipo de medi��o poco
*
* [UC0348] Emitir Contas
*
* [SB0006] Obter Dados de consumo da conta
*
* @author S�vio Luiz
* @date 19/05/2006
*
*
* @param idImovel
* @param anoMes
* @param idTipoLigacao
* @return
* @throws ErroRepositorioException
*/
public Object[] obterDadosConsumoConta(Integer idImovel, int anoMesReferencia, Integer idTipoLigacao) throws ControladorException;
/**
* M�todo que retorna o n�mero da leitura de retirada do hidr�metro
*
* @author Ana Maria
* @date 25/09/2006
*
* @param idLigacaoAgua
* @return
* @throws ErroRepositorioException
*/
public Integer pesquisarNumeroLeituraRetiradaLigacaoAgua(Integer idLigacaoAgua) throws ControladorException;
/**
* M�todo que retorna o n�mero da leitura de retirada do hidr�metro
*
* @author Ana Maria
* @date 25/09/2006
*
* @param idImovel
* @return
* @throws ErroRepositorioException
*/
public Integer pesquisarNumeroLeituraRetiradaImovel(Integer idImovel) throws ControladorException;
/**
* [UC0000] - Efetuar Retirada de Hidr�metro
*
* Pesquisa todos os campos do Hidrometro e seus relacionamentos
* obrigat�rios.
*
* @author Thiago Ten�rio
* @date 28/09/2006
*
* @param idHidrometro
* @throws ControladorException
*/
public Hidrometro pesquisarHidrometroPeloId(Integer idHidrometro) throws ControladorException;
/**
* M�todo que retorna o consumo m�dio do im�vel
*
* @author Ana Maria
* @date 17/10/2006
*
* @param idImovel
* @return
* @throws ErroRepositorioException
*/
public Integer pesquisarConsumoMedioImovel(Integer idImovel) throws ControladorException;
/**
* [UC0488] Informar Retorno Ordem de Fiscaliza��o
*
*
* @author S�vio Luiz
* @date 15/11/2006
*
* @param idOS
* @return OrdemServico
* @throws ControladorException
*/
public Integer pesquisarConsumoMedio(Integer idImovel, Integer tipoMedicao) throws ControladorException;
/**
* [UC0488] Informar Retorno Ordem de Fiscaliza��o
*
*
* @author S�vio Luiz
* @date 15/11/2006
*
* @param idOS
* @return OrdemServico
* @throws ControladorException
*/
public Integer pesquisarMaiorConsumoFaturadoQuantidadeMeses(Integer idImovel, Integer tipoMedicao, short qtdMeses) throws ControladorException;
/**
* Atualizar Hidr�metro
*
* Pesquisa o im�vel no qual o hidr�metro est� instalado
*
* @author Rafael Corr�a
* @date 23/11/2006
*
* @param idHidrometro
* @return String
* @throws ControladorException
*/
public String pesquisarImovelHidrometroInstalado(Integer idHidrometro) throws ControladorException;
/**
* [UC0498] - Efetuar Liga��o de �gua com Instalaa��o de Hidr�metro
*
* Pesquisa o id do hidr�metro e a sua situa��o pelo n�mero
*
* @author Rafael Corr�a
* @date 29/11/2006
*
* @param numeroHidrometro
* @return Hidrometro
* @throws ControladorException
*/
public Hidrometro pesquisarHidrometroPeloNumero(String numeroHidrometro) throws ControladorException;
/**
* [UC0488] Informar Retorno Ordem de Fiscaliza��o
*
*
* @author S�vio Luiz
* @date 06/12/2006
*
* @param idOS
* @return OrdemServico
* @throws ControladorException
*/
public Date pesquisarDataInstalacaoHidrometroAgua(Integer idImovel) throws ControladorException;
/**
* [UC0488] Informar Retorno Ordem de Fiscaliza��o
*
*
* @author S�vio Luiz
* @date 06/12/2006
*
* @param idOS
* @return OrdemServico
* @throws ControladorException
*/
public Date pesquisarDataInstalacaoHidrometroPoco(Integer idImovel) throws ControladorException;
/**
* [UC0488] Informar Retorno Ordem de Fiscaliza��o
*
*
* @author S�vio Luiz
* @date 14/11/2006
*
* @param idOS
* @return OrdemServico
* @throws ControladorException
*/
public Integer pesquisarConsumoFaturaMes(Integer amReferencia, Integer idLigacao, Integer idImovel) throws ControladorException;
/**
* Obt�m os ids de todas as rotas cadastradas
*
* [UC0251] - Gerar Atividade de A��o de Cobran�a
*
* [SB0002] - Gerar Atividade de A��o de Cobran�a para os Im�veis da Lista
* de Rotas
*
* @author Leonardo Vieira
* @date 13/12/2006
*
* @return
* @throws ErroRepositorioException
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarListaRotas() throws ControladorException;
/**
* [] Ligacoes Medicao Individualizada
*
*
* @author Fl�vio Cordeiro
* @date 17/12/2006
*
* @param colecaoLigacoesMedicao
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public void atualizarLigacoesMedicaoIndividualizada(Collection colecaoLigacoesMedicao, Usuario usuarioLogado, Integer anoMes) throws ControladorException;
/**
* [UC0488] Informar Retorno Ordem de Fiscaliza��o
*
*
* @author Raphael Rossiter
* @date 19/01/2007
*
* @param Integer
* idImovel, Integer tipoMedicao
* @return Integer
* @throws ControladorException
*/
public Integer pesquisarUltimoAnoMesConsumoFaturado(Integer idImovel, Integer tipoMedicao) throws ControladorException;
/**
* [UC00083] Gerar Dados para Leitura
*
* [SB0002] Gerar Rela��o(ROL) em TXT
*
* @author Rafael Francisco Pinto
* @date 19/01/2007
*
* @param Rota
* @param ano
* e es corrente
* @param id
* grupo faturamento
* @param id
* funcionalidade iniciada
*
* @throws ControladorException
*/
public void gerarDadosPorLeituraConvencional(Collection<Rota> colecaoRota, Integer anoMesCorrente, Integer idGrupoFaturamentoRota,
SistemaParametro sistemaParametro, int idFuncionalidadeIniciada) throws ControladorException;
/**
*
* M�todo que retorna o consumo de ligacao da agua ou esgoto (tipo passado)
* de um imovel em um determinado anoMes do faturamento. M�todo utilizado
* pra saber a ligacao de
*
* 2.2.2.2 e 2.2.3.2 do [UC0103] Efetuar Rateio de Consumo
*
* @author S�vio Luiz
* @date 07/04/2006
*
* @param idImovel
* @param anoMes
* @param idLigacaoTipo
* podendo ser agua ou esgoto
* @return
* @throws ErroRepositorioException
*/
public Object[] obterConsumoAnteriorAnormalidadeDoImovel(Integer idImovel, Integer anoMes, Integer idLigacaoTipo) throws ControladorException;
/**
* Atualiza o valor de cshi_nnconsumomedio, cshi_nnconsumomediohidrometro
* consumo historico [UC0106] - Substituir Consumos Anteriores
*
* @throws ErroRepositorioException
*/
public void atualizarConsumosMedio(Integer idImovel, Integer anoMesConsumoHistorico, int consumoMedioHidrometroAgua, int consumoMedioHidrometroEsgoto);
/**
* Obt�m os ids de todas as rotas cadastradas menos as rotas que tiverem o
* emp_cobranca = 1
*
* [UC0251] - Gerar Atividade de A��o de Cobran�a
*
* [SB0002] - Gerar Atividade de A��o de Cobran�a para os Im�veis da Lista
* de Rotas
*
* @author S�vio Luiz
* @date 05/03/2007
*
* @return
* @throws ErroRepositorioException
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarListaRotasEspecificas() throws ControladorException;
/**
*
* M�todo que apresenta os dados do imovel
*
* [UC0153] Apresentar dados para Analise da medi��o e Consumo
*
* @author S�vio Luiz
* @date 04/08/2006
*
* @param idImovel
* @return Collection
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarMedicaoConsumoHistoricoExcecoesApresentaDadosConsultarImovel(Integer anoMesReferencia, Integer idImovel, boolean ligacaoAgua)
throws ControladorException;
/**
* Pesquisa todas as rotas do sistema. Met�do usado no [UC0302] Gerar D�bito
* a Cobrar de Acr�scimos por Impontualidade
*
* @author Pedro Alexandre
* @date 20/03/2007
*
* @return
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarListaRotasCarregadas() throws ControladorException;
/**
* Description of the Method
*
* @param hidrometros
* Description of the Parameter
* @param hidrometroAtualizado
* Description of the Parameter
* @throws ControladorException
*/
public void atualizarConjuntoHidrometro(String fixo, String inicialFixo, String finalFixo, Hidrometro hidrometroAtualizado, Usuario usuarioLogado)
throws ControladorException;
/**
* [UC0105] Obter Consumo M�nimo da Liga��o por Subcategoria
*
* @author Raphael Rossiter
* @date 11/04/2007
*
* @return imovel, colecaoSubcategoria
* @throws ControladorException
*/
/*
* public int obterConsumoMinimoLigacaoPorSubcategoria(Imovel imovel,
* Collection colecaoSubcategoria) throws ControladorException;
*/
/**
* [UC0082] - Registrar Leituras e Anormalidades
*
* [SB0001] - Gerar Relat�rio Resumo das Leituras e Anormalidades
*
* Pesquisa as Anormalidades de Leitura e suas quantidades
*
* @author Rafael Corr�a - Hugo Leonardo
* @date 13/04/2007 - 18/03/2010
*
* @return Collection
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarAnormalidadesRelatorioComparativoLeiturasEAnormalidades(Integer idGrupoFaturamento, Integer idEmpresa, Integer anoMes,
Integer idLocalidadeInicial, Integer idLocalidadeFinal, Integer idSetorInicial, Integer idSetorFinal, Integer idGerencia, Integer idUnidadeNegocio,
Integer idLeiturista, Integer idRotaInicial, Integer idRotaFinal, Integer idPerfilImovel, Integer numOcorrenciasConsecutivas,
Collection colecaoAnormalidadesLeituras) throws ControladorException;
/**
* [UC0082] - Registrar Leituras e Anormalidades
*
* [SB0001] - Gerar Relat�rio Resumo das Leituras e Anormalidades
*
* Pesquisa os dados do relat�rio do comparativo de leituras e anormalidades
*
* @author Rafael Corr�a - Hugo Leonardo - Magno Gouveia
* @date 13/04/2007 - 18/03/2010 - 21/03/2011
*
* @return Collection
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarDadosRelatorioComparativoLeiturasEAnormalidades(Integer idGrupoFaturamento, Integer idEmpresa, Integer anoMes,
Integer idLocalidadeInicial, Integer idLocalidadeFinal, Integer idSetorInicial, Integer idSetorFinal, Integer idGerencia, Integer idUnidadeNegocio,
Integer idLeiturista, Integer idRotaInicial, Integer idRotaFinal, Integer idPerfilImovel, Integer numOcorrenciasConsecutivas,
Collection colecaoAnormalidadesLeituras) throws ControladorException;
public Object[] pesquisarDadosHidrometroTipoLigacaoAgua(Imovel imovel) throws ControladorException;
/**
* [UC0100] Informar Leitura de Fiscaliza��o
*
*
* @author R�mulo Aur�lio
* @date 19/05/2007
*
* @return
* @throws ControladorException
*/
public void informarLeituraFiscalizacao(Usuario usuarioLogado, LeituraFiscalizacao leituraFiscalizacao) throws ControladorException;
/**
* Met�do respons�vel por inserir uma Anormalidade de Leitura
*
* [UC0000 - Inserir Anormalidade Leitura
*
* @author Thiago Ten�rio
* @date 27/06/2006, 16/11/2006
*
* @param leituraAnormalidade
* leituraAnormalidade
* @param usuarioLogado
* @return
* @throws ControladorException
*/
public Integer inserirAnormalidadeLeitura(LeituraAnormalidade leituraAnormalidade, Usuario usuarioLogado) throws ControladorException;
/**
* [UC0391] Atualizar Anormalidade de Leitura.
*
*
*
*
* @author Thiago Ten�rio
* @date 01/11/2006
*
* @param
* @throws ControladorException
*/
public void atualizarAnormalidadeLeitura(LeituraAnormalidade leituraAnormalidade) throws ControladorException;
// valida anoMes para caso de uso anlise excecoes leituras
public boolean validaDataFaturamentoIncompativel(String anoMesReferencia, String anoMesAtual);
// valida anoMes para caso de uso anlise excecoes leituras
public boolean validaDataFaturamentoIncompativelInferior(String anoMesReferencia, String anoMesAnterior);
/**
* relat�rio de regitro atendimento
*
* @author Vivianne Sousa
* @date 07/06/2007
*
* @param
* @throws ControladorException
* @throws ErroRepositorioException
*/
public AnaliseConsumoRelatorioOSHelper obterDadosAnaliseConsumo(Integer idImovel) throws ControladorException;
/**
* [UC0613] - Registrar Leituras e Anormalidades
*
* Pesquisa os im�veis com faixa falsa
*
* @author Rafael Corr�a
* @date 18/06/2007
*
* @return Collection
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarImovelFaixaFalsa(Integer anoMesReferencia) throws ControladorException;
/**
* [UC0613] - Registrar Leituras e Anormalidades
*
* Retorna a quantidade de im�veis com faixa falsa
*
* @author Rafael Corr�a
* @date 18/06/2007
*
* @return Collection
* @throws ControladorException
*/
public Integer pesquisarImovelFaixaFalsaCount(Integer anoMesReferencia) throws ControladorException;
/**
* relat�rio de regitro atendimento
*
* @author Vivianne Sousa
* @date 08/06/2007
*
* @param
* @throws ControladorException
* @throws ErroRepositorioException
*/
public HidrometroRelatorioOSHelper obterDadosHidrometro(Integer idImovel) throws ControladorException;
/**
* Insere a marca de um hidr�metro
*
* @param hidrometroMarca
* Marca de hidrometro a ser inserida
* @return c�digo da marca que foi inserida
* @throws ControladorException
*/
public Integer inserirHidrometroMarca(HidrometroMarca hidrometroMarca, Usuario usuarioLogado) throws ControladorException;
/**
* Met�do respons�vel por inserir uma Capacidade de hidrometro
*
* [UC0000 - Inserir Capacidade Hidrometro
*
* @author Thiago Ten�rio
* @date 26/062007
*
* @param hidrometroCapacidade
*/
public Integer inserirCapacidadeHidrometro(HidrometroCapacidade hidrometroCapacidade, Usuario usuarioLogado) throws ControladorException;
/**
* Met�do respons�vel por inserir um Cliente Tipo
*
* [UC???? - Inserir Cliente Tipo
*
* @author Thiago Ten�rio
* @date 18/06/2007
*
* @param ClienteTipo
*
* @param usuarioLogado
* @return
* @throws ControladorException
*/
public void atualizarCapacidadeHidrometro(HidrometroCapacidade hidrometroCapacidade) throws ControladorException;
/**
* relat�rio de extrato de debito
*
* @author Vivianne Sousa
* @date 17/07/2007
*
* @param
* @throws ControladorException
* @throws ErroRepositorioException
*/
public String obterRotaESequencialRotaDoImovel(Integer idImovel) throws ControladorException;
/**
* [UC0595] Gerar Hist�rico de Medicao
*
* @param medicaoTipo
* Tipo de medi��o
* @param imovel
* Imovel a ter a medicao gerada
* @param faturamentoGrupo
* Grupo de faturamento
* @return
* @throws ControladorException
*/
public MedicaoHistorico gerarHistoricoMedicao(MedicaoTipo medicaoTipo, Imovel imovel, FaturamentoGrupo faturamentoGrupo, SistemaParametro sistemaParametro)
throws ControladorException;
/**
* [UC0623] Gerar Resumo de Metas CAERN
*
* @author S�vio Luiz
* @date 15/11/2006
*
* @param idOS
* @return OrdemServico
* @throws ControladorException
*/
public Integer pesquisarConsumoFaturado(Integer idImovel, Integer tipoLigacao, Integer idConsumoTipoMediaImovel, Integer idConsumoTipoMediaHidrometro,
Integer amArrecadacao) throws ControladorException;
/**
* Met�do respons�vel por inserir um Leiturista
*
* [UC0588 - Inserir Leiturista
*
* @author Thiago Ten�rio
* @date 22/07/2007
*
* @param leiturista
* leiturista
* @param usuarioLogado
* @return
* @throws ControladorException
*/
public Integer inserirLeiturista(Leiturista leiturista, Usuario usuarioLogado) throws ControladorException;
/**
* [UC0083] Gerar Dados para Leitura [SB0004] Gerar Movimento do Roteiro
* Empresa
*
* @author Rodrigo Silveira
* @date 25/07/2007
*
* @param colecaoRota
* @param anoMesCorrente
* @param idGrupoFaturamento
* @param idUnidadeIniciada
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public void gerarDadosPorLeituraCelularMobile(Collection colecaoRota, Integer anoMesCorrente, Integer idGrupoFaturamento, Integer idFuncionalidadeIniciada)
throws ControladorException;
/**
* Permite gerar o arquivo texto do roteiro empresa para o leiturista.
*
* [UC0627] Gerar Arquivo Texto para Leitura
*
* @author Pedro Alexandre, Pedro Alexandre
* @date 02/08/2007, 15/10/2007
*
* @param colecaoRoteirosEmpresa
* @param anoMesFaturamento
* @param faturamentoGrupo
* @param idFuncionalidadeIniciada
* @param colecaoRotas
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public void gerarArquivoTextoParaLeiturista(Collection colecaoRoteirosEmpresa, Collection colecaoRotas, Integer anoMesFaturamento,
FaturamentoGrupo faturamentoGrupo, int idFuncionalidadeIniciada) throws ControladorException;
/**
* Pesquisa as roteiro empresas de acordo com os par�metros informado pelo
* usu�rio
*
* [UC0370] - Filtrar Roteiro Empresa
*
* @author Thiago Ten�rio
* @date 29/08/2007
*
* @param idEquipe
* @param nome
* @param placa
* @param cargaTrabalho
* @param idUnidade
* @param idFuncionario
* @param idPerfilServico
* @param indicadorUso
* @param numeroPagina
* @return Collection
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarRoteiroEmpresa(String idEmpresa, String idLocalidade, String codigoSetorComercial, String idLeiturista, String indicadorUso,
Integer numeroPagina) throws ControladorException;
/**
* Verifica a quantidade de registros retornados da pesquisa de roteiro
* empresa
*
* [UC0370] - Filtrar Roteiro Empresa
*
* @author Thiago Ten�rio
* @date 29/08/2007
*
* @param empresa
* @param idLocalidade
* @param idLeiturista
* @param idSetorComercial
* @param indicadorUso
* @param numeroPagina
*/
public int pesquisarRoteiroEmpresaCount(String idEmpresa, String idLocalidade, String codigoSetorComercial, String idLeiturista, String indicadorUso)
throws ControladorException;
/**
* [UC00083] Gerar Dados para Leitura
*
* [SB0005] Gerar Rela��o(ROL) em TXT - CAER
*
* @author S�vio Luiz
* @date 24/08/2007
*
* @param idRota
* @param idLeituraTipo
*
* @throws ErroRepositorioException
*/
public Object[] pesquisarDadosLocalProtecaoTipoLigacaoAgua(Integer idImovel) throws ControladorException;
/**
* [UC00083] Gerar Dados para Leitura
*
* [SB0005] Gerar Rela��o(ROL) em TXT - CAER
*
* @author S�vio Luiz
* @date 24/08/2007
*
* @param idRota
* @param idLeituraTipo
*
* @throws ErroRepositorioException
*/
public Object[] pesquisarDadosLocalProtecaoTipoTipoPoco(Integer idImovel) throws ControladorException;
/**
* [UC0583] Inserir Roteiro Empresa
*
* Insere um objeto do tipo roteiro empresa no BD
*
* @author Francisco Nascimento
* @param roteiroEmpresa
* @param idLocalidade
* @param collectionRoteiroEmpresaAcaoCriterio
* @return idRota
* @throws ControladorException
*/
public Integer inserirRoteiroEmpresa(RoteiroEmpresa roteiroEmpresa, String[] quadras, Usuario usuarioLogado) throws ControladorException;
/**
* [UC00082] Registrar Leituras e Anormalidades
*
*
* @author S�vio Luiz
* @date 29/08/2007
*
* @param idRota
* @param idLeituraTipo
*
* @throws ErroRepositorioException
*/
public Collection<MedicaoHistorico> recuperarMedicoesHistorico(Integer idGrupoFaturamento) throws ControladorException;
/**
* [UC0631] Processar Requisi��es do Dispositivo M�vel.
*
* [SB0001] Baixar Arquivo Texto para o Leiturista.
*
*
* @author Thiago Nascimento
* @date 14/08/2007
*
* @param imei
* @return
* @throws ControladorException
*/
public byte[] baixarArquivoTextoParaLeitura(long imei, Integer idServicoTipoCelular) throws ControladorException;
/**
* [UC0631] Processar Requisi��es do Dispositivo M�vel.
*
* Atualizar Situa��o do Arquivo Texto.
*
*
* @author Thiago Nascimento
* @date 14/08/2007
*
* @param imei
* @param situacaoAnterior
* @param situacaoNova
* @throws ControladorException
*/
@Deprecated
public void atualizarArquivoTextoEnviado(long imei, int situacaoAnterior, int situacaoNova) throws ControladorException;
/**
* [UC0631] Processar Requisi��es do Dispositivo M�vel.
*
* Atualizar Situa��o do Arquivo Texto.
*
*
* @author Thiago Nascimento
* @date 14/08/2007
*
* @param idRota
* @param situacaoAnterior
* @param situacaoNova
* @throws ControladorException
*/
public void atualizarArquivoTextoEnviadoPorRota(Integer idRota, int situacaoAnterior, int situacaoNova) throws ControladorException;
/**
* [UC0631] Processar Requisi��es do Dispositivo M�vel.
*
* [SB0002] Atualizar o movimento roteiro empresa.
*
*
* @author Thiago Nascimento
* @date 14/08/2007
*
* @param dados
*
* @throws ControladorException
*/
public void atualizarRoteiro(Collection<DadosMovimentacao> dados, boolean isCelular) throws ControladorException;
/**
*
* @author Vivianne Sousa
* @date 06/09/2007
*
* @param idImovel
* @param anoMes
*
* @return
* @throws ErroRepositorioException
*/
public Integer obterConsumoMedioEmConsumoHistorico(Integer idImovel, Integer idLigacaoTipo) throws ControladorException;
/**
* Pesquisa os roteiros empresas pelo grupo de faturamento
*
* [UC0627] Gerar Arquivo Texto para Leitura
*
* @author Pedro Alexandre
* @date 13/09/2007
*
* @param idFaturamentoGrupo
* @return
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarRoteiroEmpresaPorGrupoFaturamento(Integer idFaturamentoGrupo) throws ControladorException;
/**
* Atualizar um roteiro empresa e as quadras associadas
*
* @author Francisco do Nascimento
* @date 20/09/07
*
* @param roteiroEmpresa
* @param idQuadras
* @param usuarioLogado
* @throws ControladorException
*/
public void atualizarRoteiroEmpresa(RoteiroEmpresa roteiroEmpresa, String[] idQuadras, Usuario usuarioLogado) throws ControladorException;
/**
* Remover roteiros empresa
*
* @author Francisco do Nascimento
* @date 20/09/07
* @param ids
* @param usuarioLogado
* @throws ControladorException
*/
public void removerRoteiroEmpresa(String[] ids, Usuario usuarioLogado) throws ControladorException;
/**
* Met�do respons�vel por Liberar um Arquivo Texto de Leitura
*
* [UC0000 - Inserir Anormalidade Leitura
*
* @author Thiago Ten�rio
* @date 18/09/2007
*
* @param liberarArquivoTextoLeitura
* liberarArquivoTextoLeitura
* @param usuarioLogado
* @return
* @throws ControladorException
*/
public Integer liberarArquivoTextoLeitura(ArquivoTextoRoteiroEmpresa arquivoTextoRoteiroEmpresa) throws ControladorException;
/**
* [UC0391] Atualizar Leiturista.
*
*
*
*
* @author Thiago Ten�rio
* @date 01/11/2006
*
* @param
* @throws ControladorException
*/
public void atualizarLeiturista(Leiturista leiturista) throws ControladorException;
/**
* Pesquisa as rotas pelo grupo de faturamento
*
* [UC0627] Gerar Arquivo Texto para Leitura
*
* @author Pedro Alexandre
* @date 15/10/2007
*
* @param idFaturamentoGrupo
* @return
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarRotaPorGrupoFaturamento(Integer idFaturamentoGrupo) throws ControladorException;
// caso de uso [UC0543] Associar Conjunto de Rotas a Criterio de Cobranca
public void desassociarRotasIntervaloRotas(String codigoSetorComercial, String rotaInicial, String rotaFinal, String idLocalidade, String idCobrancaAcao)
throws ControladorException;
// caso de uso [UC0543] Associar Conjunto de Rotas a Criterio de Cobranca
public void desassociarRotasIntervaloSetor(String codigoSetorComercialInicial, String codigoSetorComercialFinal, String idLocalidade, String idCobrancaAcao)
throws ControladorException;
// caso de uso [UC0543] Associar Conjunto de Rotas a Criterio de Cobranca
public void desassociarRotasIntervaloLocalidade(String idLocalidadeInicial, String idLocalidadeFinal, String idCobrancaAcao) throws ControladorException;
// caso de uso [UC0543] Associar Conjunto de Rotas a Criterio de Cobranca
public void desassociarRotasIntervaloGerencia(String idGerenciaRegional, String idCobrancaAcao) throws ControladorException;
// caso de uso [UC0543] Associar Conjunto de Rotas a Criterio de Cobranca
public void desassociarRotasIntervaloGrupo(String idGrupoCobranca, String idCobrancaAcao) throws ControladorException;
// caso de uso [UC0543] Associar Conjunto de Rotas a Criterio de Cobranca
public void desassociarRotasIntervaloUnidadeNegocio(String idUnidadeNegocio, String idCobrancaAcao) throws ControladorException;
/**
* pesquisa o consumo historico passando o imovel e o anomes referencia e o
* consumo anormalidade correspondente ao faturameto antecipado.
*
* [UC0113] Faturar Grupo de Faturamento
*
* @author S�vio Luiz
* @date 08/11/2007
*
* @param idRota
* @param anoMesFaturamento
* @param idFaturamentoGrupo
* @return
* @throws ErroRepositorioException
*/
public Integer pesquisarConsumoHistoricoAntecipado(Integer idImovel, Integer anoMes) throws ControladorException;
/**
*
* Relat�rio Analise de Consumo Fl�vio Leonardo 26/12/2007
*
* @param idImovel
* @param anomes
* @return
* @throws ErroRepositorioException
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarLeiturasImovel(String idImovel, String anoMes) throws ControladorException;
/**
* Relat�rio Manter Hidrometro
*
* Fl�vio Leonardo
*
* pesquisa o id do imovel do hidrometro instalado
*
* @throws ErroRepositorioException
*/
public Integer pesquisarImovelPeloHidrometro(Integer hidrometroId) throws ControladorException;
/**
* M�todo que atualiza as leituras e Anormalidades do Celular caso n�o tenha
* sido iniciado pelo operador do Computador.
*
* [UC0712] Atualizar Leituras e Anormalidades do Celular
*
* @author Thiago Nascimento
* @date 05/12/2007
*
* @param dados
* @throws ControladorException
*/
public byte[] atualizarLeituraAnormalidadeCelularCasoOperador(Vector<DadosMovimentacao> dados, Usuario usuario, String nomeArquivo, Leiturista l)
throws ControladorException;
/**
*
* Enviar Email em Caso de Problemas no Registrar ou Consistir.
*
* @param nomeArquivo
* @param arquivo
* @throws ControladorException
*/
public void enviarEmailProblemasRegistrarConsistir(String nomeArquivo, byte[] arquivo) throws ControladorException;
/**
*
* Buscar Empresa pela Matr�cula do Im�vel.
*
* @param imovel
* @return
* @throws ControladorException
*/
public Empresa buscarEmpresaPorMatriculaImovel(Integer imovel) throws ControladorException;
/**
*
* M�todo que atualiza as leituras e Anormalidades do Celular caso n�o tenha
* sido iniciado pelo Sistema.
*
* [UC0712] Atualizar Leituras e Anormalidades do Celular
*
* @author Thiago Nascimento
* @date 05/12/2007
*
* @param dados
* @throws ControladorException
*/
public void atualizarLeituraAnormalidadeCelularCasoSistema(Vector<DadosMovimentacao> dados) throws SendFailedException, ControladorException;
/**
* [UC0543] Associar Conjunto de Rotas a Crit�rio de Cobran�a
*
* [FS0003] - Verificar exist�ncia da localidade [FS0004] - Verificar
* exist�ncia do setor
*
* Verifica se a localidade inicial � maior que a localidade final Verifica
* se o setor inicial � maior que o setor final
*
* @author Raphael Rossiter
* @date 24/01/2008
*
* @param
* @throws ControladorException
*/
public void validarParametrosParaSelecaoDeRotas(AssociarConjuntoRotasCriterioCobrancaHelper parametros) throws ControladorException;
/**
* [UC0543] Associar Conjunto de Rotas a Crit�rio de Cobran�a
*
* @author Raphael Rossiter
* @date 24/01/2008
*
* @param
* @throws ControladorException
*/
public String[] pesquisarQuantidadeRotas(AssociarConjuntoRotasCriterioCobrancaHelper parametros) throws ControladorException;
/**
* [UC0543] Associar Conjunto de Rotas a Crit�rio de Cobran�a
*
* @author Raphael Rossiter
* @date 24/01/2008
*
* @param
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarRotasParaAssociacaoCriterioCobranca(AssociarConjuntoRotasCriterioCobrancaHelper parametros) throws ControladorException;
/**
* [UC0543] Associar Conjunto de Rotas a Crit�rio de Cobran�a
*
* @author Raphael Rossiter, Anderson Italo
* @date 24/01/2008, 02/06/2009 Adicionado registro de transacao CRC1946
*
* @param
* @throws ControladorException
*/
public void desassociarConjuntoRotasCriterioCobranca(AssociarConjuntoRotasCriterioCobrancaHelper parametros, Usuario usuarioLogado,
RotaAcaoCriterioHelper rotaAcaoCriterioHelper) throws ControladorException;
/**
* [UC0629] Consultar Arquivo Texto Leitura.
*
* Atualizar Situa��o do Arquivo Texto.
*
*
* @author Thiago Nascimento
* @date 29/01/2008
*
* @param id
* @param situacaoNova
* @throws ControladorException
*/
public void atualizarArquivoTextoEnviado(Integer id, Integer situacaoNova) throws ControladorException;
/**
* [UC0629] Consultar Arquivo Texto Leitura.
*
* Atualizar Situa��o do Arquivo Texto.
*
*
* @author Thiago Nascimento
* @date 29/01/2008
*
* @param ids
* @param situacaoNova
* @param motivoFinalizacao
* @throws ControladorException
*/
public void atualizarListaArquivoTexto(Vector<Integer> ids, Integer situacaoNova, Integer idServicoTipoCelular, boolean temPermissaoFinalizarArquivo,
String motivoFinalizacao) throws ControladorException;
/**
*
* Retorna uma cole��o com os dados das medicoes para apresenta��o sem
* informar o ano/mes para o caso em que o Imovel nao possui Hidrometro (Sem
* Medicao).
*
* [UC0153] Apresentar dados para Analise da medi��o e Consumo
*/
@SuppressWarnings("rawtypes")
public Collection carregarDadosConsumo(Integer idImovel, boolean ligacaoAgua) throws ControladorException;
public Collection<DadosMovimentacao> buscarImoveisPorRota(Rota idRota, boolean manter) throws ControladorException;
/**
* [UC0712] Atualizar Leituras e Anormalidades do Celular M�todo que
* atualiza as leituras e Anormalidades sem utilizar o Celular.
*/
public void atualizarLeituraAnormalidadeSemCelular(Vector<DadosMovimentacao> dados) throws ControladorException;
/**
* Atualiza a Rela��o de Rota X Leiturista
*
* @author Thiago Nascimento
* @param leiturista
* @param rotas
* @throws ControladorException
*/
public void atualizarRelacaoRotaLeiturista(Integer leiturista, Integer[] rotas) throws ControladorException;
/**
* [UC0762] Gerar Arquivo Texto de Ligacoes com Hidrometro - CAERN
*
* @author Tiago Moreno
* @date 10/04/2008
*
* @param ArquivoTextoLigacoesHidrometroHelper
*
* @return
* @throws ControladorException
*/
public void gerarArquivoTextoLigacoesHidrometro(ArquivoTextoLigacoesHidrometroHelper arquivoTextoLigacoesHidrometroHelper) throws ControladorException;
/**
* [UC0745] - Gerar Arquivo Texto para Faturamento
*
* @author Raphael Rossiter
* @date 24/04/2008
*
* @param imovel
* @param anoMesReferenciaInicio
* @param anoMesReferenciaFim
* @return Collection
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public Collection obterUltimosConsumosImovel(Imovel imovel) throws ControladorException;
/**
* [UC00083] Gerar Dados para Leitura
*
* [SB0002] Gerar Rela��o(ROL) em TXT - Registro 2 (DOIS)
*
* @author Rafael Francisco Pinto
* @date 22/01/2007
*
* @param idImovel
* @param anoMesReferencia
*
* @throws ErroRepositorioException
*/
public Integer pesquisarNumeroConsumoMedioImovel(Integer idImovel, Integer anoMesReferencia) throws ControladorException;
/**
* [UC0745] - Gerar Arquivo Texto para Faturamento
*
* @author Raphael Rossiter
* @date 24/04/2008
*
* @param consumoHistorico
* @return Integer
* @throws ControladorException
*/
public Integer obterLeituraAnormalidadeFaturamentoMedicaoHistorico(ConsumoHistorico consumoHistorico) throws ControladorException;
/**
* [UC0745] - Gerar Arquivo Texto para Faturamento
*
* [SB0006] - Obter dados dos tipos de medi��o
*
* @author Raphael Rossiter
* @date 30/04/2008
*
* @param imovel
* @param anoMesReferencia
* @return Collection
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public Collection obterDadosTiposMedicao(Imovel imovel, Integer anoMesReferencia) throws ControladorException;
/**
* [UC0086] - Calcular Faixa de Leitura Esperada
*/
public int[] calcularFaixaLeituraEsperada(int media, MedicaoHistorico medicaoHistorico, Hidrometro hidrometro, Integer leituraAnteriorPesquisada);
/**
*
* O ultimo sequencia para o id do leiturista passado como parametro
*
* @author Thiago Nascimento
* @param leit
* @return
* @throws ControladorException
*/
public Integer numeroSequenciaUltimaRota(Integer leit) throws ControladorException;
/**
*
* Retorno o valor m�ximo do Id do Leiturista.
*
* @author Thiago Nascimento
* @return
* @throws ControladorException
*/
public Integer maximoIdLeiturista() throws ControladorException;
/**
*
* Retorna a quantidade de Leitura feitas na Rota para o AnoMes de
* referencia.
*
* @author Thiago Nascimento
* @return
* @throws ControladorException
* @throws ErroRepositorioException
*/
public Integer quantidadeLeiturasRealizada(Integer rota, Integer anoMes, Integer idServicoTipoCelular) throws ControladorException;
/**
*
* [UC0781] - Informar Consumo por �rea
*
* Inserir/Atualizar consumoMinimoArea
*
* @author R�mulo Aur�lio
* @date 26/05/2008
*
* @param anoMesReferenciaInformado
* @return
* @throws ErroRepositorioException
*/
@SuppressWarnings("rawtypes")
public Integer informarConsumoMinimoArea(Collection colecaoConsumoMinimoArea, Collection colecaoConsumoMinimoAreaBase, Usuario usuarioLogado)
throws ControladorException;
/**
* Atualiza o FaturamentoAtividadeCronograma do grupo no anoMes especificado
* para o Registrar, Consistir e Efetuar Leitura.
*
* [UC0712] Atualizar Leituras e Anormalidades do Celular
*
* @author Thiago Nascimento
* @date 23/05/2008
*
*
* @param grupo
* @param anoMesReferencia
* @throws ControladorException
*/
public void atualizarFaturamentoAtividadeCronogramaRegistrarConsistirEfetuarLeitura(Integer grupo, Date dataRealizacao) throws ControladorException;
/**
* Adapta��o do batch que efetua o Rateio do consumo para todos os im�veis
* de uma rota que sejam im�vel condominio
*
* [UC0103] - Efetuar Rateio de Consumo
*
* @author Thiago Nascimento
* @date 27/03/2008
*
* @param rota
* @param anoMesFaturamento
* @throws ControladorException
*/
// public void efetuarRateioDeConsumoPorRota(Rota rota,
// Integer anoMesFaturamento)throws ControladorException;
/**
* [UC0805] - Gerar Aviso de Anormalidade
*
* Pesquisa os dados necess�rios para a gera��o do relat�rio
*
* @author Rafael Corr�a
* @date 03/06/2008
*
* @param colecaoImoveis
* @param anoMes
* @return
* @throws ErroRepositorioException
*/
@SuppressWarnings("rawtypes")
public Collection<AvisoAnormalidadeRelatorioHelper> pesquisarAvisoAnormalidadeRelatorio(Collection colecaoImoveis, Integer anoMes)
throws ControladorException;
/**
* [UC0805] - Gerar Aviso de Anormalidade
*
* Pesquisa os dados necess�rios para a gera��o do relat�rio
*
* @author Rafael Corr�a
* @date 03/06/2008
*
* @param colecaoImoveis
* @param anoMes
* @return
* @throws ErroRepositorioException
*/
public Collection<AvisoAnormalidadeRelatorioHelper> pesquisarAvisoAnormalidadeRelatorio(
FiltrarAnaliseExcecoesLeiturasHelper filtrarAnaliseExcecoesLeiturasHelper, Integer anoMes) throws ControladorException;
/**
* [UC0805] - Gerar Aviso de Anormalidade
*
* Pesquisa os dados necess�rios para a gera��o do relat�rio
*
* @author Rafael Corr�a
* @date 28/06/2008
*
* @param gerarDadosLeituraHelper
* @return
* @throws ErroRepositorioException
*/
public Collection<RelatorioGerarDadosLeituraBean> pesquisarDadosParaLeituraRelatorio(GerarDadosLeituraHelper gerarDadosLeituraHelper)
throws ControladorException;
/**
* [UC0805] - Gerar Aviso de Anormalidade
*
* Pesquisa a quantidade de registros do relat�rio
*
* @author Rafael Corr�a
* @date 28/06/2008
*
* @param gerarDadosLeituraHelper
* @return
* @throws ErroRepositorioException
*/
public Integer pesquisarDadosParaLeituraRelatorioCount(GerarDadosLeituraHelper gerarDadosLeituraHelper) throws ControladorException;
/**
*
* [UC0781] - Informar Consumo por �rea
*
* @author R�mulo Aur�lio
* @date 21/05/2008
*
* @param anoMesReferenciaInformado
* @return
* @throws ErroRepositorioException
*/
public Integer pesquisarAnoMesReferenciaMenorAnoMesReferenciaFaturamentoGrupo(int anoMesReferenciaInformado) throws ControladorException;
/**
* Retorno a quantidade leituras que ainda n�o foram registradas
*
* @data 03/06/2008
* @param grupo
* @return
* @throws ControladorException
*/
public Integer consultarQuantidadeLeiturasNaoResgistradas(FaturamentoGrupo grupo) throws ControladorException;
/**
* Retorna as leituras que ainda n�o foram registradas
*
* @data 03/06/2008
* @param anoMes
* @param grupo
* @return
* @throws ErroRepositorioException
*/
public void processarLeiturasNaoResgistradas(FaturamentoGrupo grupo) throws ControladorException;
/**
* [UC0083]-Gerar Dados para Leitura
*
* Author: R�mulo Aur�lio Data: 17/06/2008
*
*
*
* @param colecaoRota
* @param anoMesCorrente
* @param idGrupoFaturamentoRota
* @param idFuncionalidadeIniciada
* @throws ControladorException
*/
public void gerarDadosPorLeituraParaInserir(Rota rota, Integer anoMesCorrente, Integer idGrupoFaturamentoRota, SistemaParametro sistemaParametro,
Integer idFuncionalidadeIniciada) throws ControladorException;
public void removerMovimentoRoteiroEmpresa(Integer anoMesCorrente, Integer idGrupoFaturamentoRota) throws ControladorException;
/**
* [UC00083] Gerar Dados para Leitura
*
* @author R�mulo Aur�lio
* @throws ControladorException
* @date 07/07/2008
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarImoveisPorRota(Rota rota, SistemaParametro sistemaParametro) throws ControladorException;
/**
* [UC00083] Gerar Dados para Leitura
*
* @date 07/07/2008
* @author R�mulo Aur�lio
* @param imoveisParaSerGerados
* @param anoMesCorrente
* @param sistemaParametro
* @param idLeituraTipo
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public void inserirDadosImoveisMovimentoRoteiroEmpresa(Collection imoveisParaSerGerados, int anoMesCorrente, SistemaParametro sistemaParametro,
Integer idLeituraTipo) throws ControladorException;
/**
* [UC00083] Gerar Dados para Leitura
*
* @author R�mulo Aur�lio
* @date 07/07/2008
*/
@SuppressWarnings("rawtypes")
public Collection retornaImoveisPorRota(Rota rota, SistemaParametro sistemaParametro) throws ControladorException;
/**
* Author: R�mulo Aur�lio [UC0083] - Gerar Dados para Leitura
*
* @param objetosImoveis
* @return
*/
@SuppressWarnings("rawtypes")
public Collection verificarImoveisParaSerGerados(Collection objetosImoveis) throws ControladorException;
/**
* [UC0800] - Obter Consumo N�o Medido
*
* Obter o consumo m�nimo associado � faixa de �rea do im�vel e a categoria
* ou subcategoria informada
*
* @author Raphael Rossiter
* @date 22/05/2008
*
* @param areaConstruida
* @param anoMesReferencia
* @param subcategoria
* @return Integer
* @throws ControladorException
*/
public Integer pesquisarConsumoMinimoArea(BigDecimal areaConstruida, Integer anoMesReferencia, Subcategoria subcategoria, Categoria categoria)
throws ControladorException;
/**
* Retorno a quantidade leituras enviada.
*
* @autor Yara T. Souza
*
* @data 26/08/2008
* @param grupo
* @return
* @throws ControladorException
*/
public Integer pesquisarLeiturasEnviadasRelatorioCount(Integer anoMesReferencia, Integer idEmpresa, Integer idLocalidade, Integer codigoSetorComercial,
Integer idGrupoFaturamento, Integer idGerencia, Integer idUnidadeNegocio, Integer idLeiturista) throws ControladorException;
/**
* Gerar o vetor para registrar as leituras e anormalidades
*
* @data 28/07/2008
* @return
* @throws ControladorException
*/
public Vector<DadosMovimentacao> gerarVetorDadosParaLeitura(BufferedReader buffer) throws ControladorException;
/**
*
* M�todo que atualiza as leituras da telemetria
*
* *
*
* @author Thiago Nascimento
* @date 20/08/2008
*
* @param dados
* @throws ControladorException
*/
public void atualizarLeituraTelemetria(Vector<DadosMovimentacao> dados) throws ControladorException;
/**
* [UC0629] Retornar Arquivo Txt Leitura
*
*
* @author R�mulo Aur�lio
* @date 06/10/2008
*
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarArquivosTextoRoteiroEmpresaParaArquivoZip(String[] ids) throws ControladorException;
/**
* [UC0831] Gerar Tabelas para Atualiza��o Cadastral via celular
*
* @author Vinicius Medeiros
* @date 25/08/2008
*
* @return Object[]
* @throws Controlador
* Exception
*/
public Object[] obterDadosHidrometroAtualizacaoCadastral(Integer idImovel) throws ControladorException;
/**
* Informar Subdivis�es de Rota
*
* @author: Victor Cisneiros
* @date: 30/09/2008
*/
public void informarSubdivisoesDeRota(Integer idRotaOriginal, InformarSubdivisoesDeRotaHelper subdivisaoRotaOriginal,
Collection<InformarSubdivisoesDeRotaHelper> subdivisoes) throws ControladorException;
/**
* [UC0???] Gerar Relatorio Rotas Online por Empresa
*
* @see ControladorMicromedicao#pesquisarRelatorioRotasOnlinePorEmpresa(PesquisarRelatorioRotasOnlinePorEmpresaHelper)
*
* @author Victor Cisneiros
* @date 28/10/2008
*/
public Collection<RelatorioRotasOnlinePorEmpresaBean> pesquisarRelatorioRotasOnlinePorEmpresa(PesquisarRelatorioRotasOnlinePorEmpresaHelper helper)
throws ControladorException;
/**
* [UC0???] Gerar Relatorio Rotas Online por Empresa
*
* @author Victor Cisneiros
* @date 28/10/2008
*/
public Integer pesquisarRelatorioRotasOnlinePorEmpresaCount(PesquisarRelatorioRotasOnlinePorEmpresaHelper helper) throws ControladorException;
/**
* Emitir Contas Caema
*
* @author Tiago Moreno
* @date 06/11/2008
*
* @param
* @throws ControladorException
* @throws ErroRepositorioException
*/
public Object[] obterRotaESequencialRotaDoImovelSeparados(Integer idImovel) throws ControladorException;
/**
* Verifica se o processo de dados di�rios da arrecada��o est� sendo
* executado
*
* @author bruno
* @date 12/12/2008
*
* @throws ControladorException
*/
public void verificarBatchDadosDiariosArracadacaoRodando() throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection pesquisarDadosRelatorioAnaliseImovelCorporativoGrande(Integer idGerenciaRegional, Integer idUnidadeNegocio, Integer idLocalidadeInicial,
Integer idLocalidadeFinal, Integer idSetorComercialInicial, Integer idSetorComercialFinal, Integer referencia, Integer idImovelPerfil,
Integer selecionar) throws ControladorException;
/**
*
* [UC0889] - Alterar datas das leituras
*
* Pesquisamos todos os dados necess�rios para a altera��o das datas
*
* @author bruno
* @date 26/02/2009
*
* @param idGrupoFaturamento
* @return
*/
public Collection<AlterarDatasLeiturasHelper> pesquisarDadosAlterarGruposFaturamento(Integer idGrupoFaturamento) throws ControladorException;
/**
*
* [UC0889] - Alterar datas das leituras
*
* Alteramos todos as datas informadas
*
* @author bruno
* @date 26/02/2009
*
* @param idGrupoFaturamento
* @return
*/
public void alterarDatasLeituras(Collection<AlterarDatasLeiturasHelper> colHelper, Integer idGrupo) throws ControladorException;
/**
* < <Descri��o do m�todo>>
*
* @param fixo
* Descri��o do par�metro
* @param faixaInicial
* Descri��o do par�metro
* @param faixaFinal
* Descri��o do par�metro
* @return Descri��o do retorno
* @throws ControladorException
*/
public Integer pesquisarNumeroHidrometroSituacaoInstaladoPaginacaoCount(FiltrarHidrometroHelper helper) throws ControladorException;
/**
* < <Descri��o do m�todo>>
*
* @param fixo
* Descri��o do par�metro
* @param faixaInicial
* Descri��o do par�metro
* @param faixaFinal
* Descri��o do par�metro
* @return Descri��o do retorno
* @throws ControladorException
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarNumeroHidrometroSituacaoInstaladoPaginacao(FiltrarHidrometroHelper helper, Integer numeroPagina) throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection pesquisarNumeroHidrometroSituacaoInstaladoRelatorio(FiltrarHidrometroHelper helper) throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection pesquisarConsumoFaturadoQuantidadeMesesPorReferencia(Integer idImovel, Integer tipoMedicao, short qtdMeses) throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection verificarImoveisProcessadosEmMovimentoRoteiroEmpresa(Collection colecaoImoveisAGerar, Integer idFaturamentoGrupo, Integer anoMes)
throws ControladorException;
public Integer obterConsumoMininoAgua(Integer idConta) throws ControladorException;
public Integer obterConsumoMininoEsgoto(Integer idConta) throws ControladorException;
@SuppressWarnings("rawtypes")
public void inserirAtualizarMovimentacaoHidrometroIdsBatch(Collection colecaoHidrometro, String data, String hora, String idLocalArmazenagemDestino,
String idMotivoMovimentacao, String parecer, Usuario usuario, int idFuncionalidadeIniciada) throws ControladorException;
public Collection<Object[]> obterConsumosAnterioresAnormalidadeDoImovel(Integer idImovel, Integer anoMesInicial, Integer anoMesFinal, Integer idLigacaoTipo)
throws ControladorException;
public void atualizarConjuntoHidrometroBatch(String fixo, String inicialFixo, String finalFixo, Hidrometro hidrometroAtualizado, Usuario usuarioLogado,
int idFuncionalidadeIniciada, int numero) throws ControladorException;
public Date pesquisarMaiorDataLeituraImoveis(Integer idImovel, Integer anoMesReferencia) throws ControladorException;
public Collection<MedicaoHistorico> processarArquivoTextoParaRegistrarLeiturasAnormalidades(Integer idFaturamentoGrupo, FileItem fileItem)
throws ControladorException;
public void consistirLeiturasCalcularConsumosImoveis(FaturamentoGrupo faturamentoGrupo, Collection<Integer> imoveis) throws ControladorException;
public Object[] baixarArquivoTextoParaLeituristaImpressaoSimulanea(long imei, Integer idServicoTipoCelular) throws ControladorException;
/**
* UC0957 - Relatorio de Acompanhamento de Leiturista
*/
@SuppressWarnings("rawtypes")
public Collection selecionarRotasRelatorioAcompanhamentoLeiturista(Integer anoMesReferencia, Integer rotas[], String idEmpresa, String idLeiturista)
throws ControladorException;
/**
* UC0957 - Relatorio de Acompanhamento de Leiturista
*/
public Collection<RelatorioAcompanhamentoLeituristaHelper> pesquisarRelatorioAcompanhamentoLeiturista(RelatorioAcompanhamentoLeituristaHelper helper)
throws ControladorException;
/**
* UC0957 - Relatorio de Acompanhamento de Leiturista
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarLeituristasDasRotas(RelatorioAcompanhamentoLeituristaHelper helper) throws ControladorException;
/**
* [UC0965] - Relatorio de Anormalidade de Leitura por Periodo
*/
public Collection<RelatorioAnormalidadeLeituraPeriodoBean> pesquisarRelatorioAnormalidadeLeituraPeriodo(
FiltrarRelatorioAnormalidadeLeituraPeriodoHelper filtro) throws ControladorException;
/**
* [UC0965] - Relatorio de Anormalidade de Leitura por Periodo
*/
public Collection<Object[]> pesquisarTotalRegistrosRelatorioAnormalidadeLeituraPeriodo(FiltrarRelatorioAnormalidadeLeituraPeriodoHelper filtro)
throws ControladorException;
@SuppressWarnings("rawtypes")
public FaturamentoSituacaoTipo obterFaturamentoSituacaoTipo(Collection colecaoFaturamentoSituacaoTipo);
/**
* [UC0745] - Gerar Arquivo Texto Faturamento
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarFaturamentoSituacaoTipo(FaturamentoSituacaoTipo faturamentoSituacaoTipo) throws ControladorException;
/**
* [UC0082] - Registrar Leituras e Anormalidades
* [SB0001] - Gerar Relat�rio Resumo das Leituras e Anormalidades
*/
@SuppressWarnings("rawtypes")
public Integer pesquisarDadosRelatorioComparativoLeiturasEAnormalidadesCount(Integer idGrupoFaturamento, Integer idEmpresa, Integer anoMes,
Integer idLocalidadeInicial, Integer idLocalidadeFinal, Integer idSetorInicial, Integer idSetorFinal, Integer idGerencia, Integer idUnidadeNegocio,
Integer idLeiturista, Integer idRotaInicial, Integer idRotaFinal, Integer idPerfilImovel, Integer numOcorrenciasConsecutivas,
Collection colecaoAnormalidadesLeituras) throws ControladorException;
/**
* [UC0840] - Atualizar Faturamento do Movimento Celular
*/
public void atualizarDataRealizacaoGronogramaPreFaturamento(Integer grupo, Integer anoMesReferencia, Date dataRealizacao) throws ControladorException;
/**
* [UC0103] - Efetuar Rateio de Consumo
*/
public void efetuarRateioDeConsumo(Integer idImovelCondominio, Integer anoMesFaturamento) throws ControladorException;
/**
* [UC0101] Consistir Leituras e Calcular Consumos
*/
public ConsumoAnormalidadeAcao verificaAcaoASerTomada(Integer idConsumoAnormalidade, Integer idCategoria, Integer idPerfilImovel)
throws ControladorException;
public void removerMovimentoRoteiroEmpresa(Integer anoMesCorrente, Integer idGrupoFaturamentoRota, Rota rota) throws ControladorException;
public Rota buscarRotaPorMatriculaImovel(Integer imovel, Integer anoMesFaturamentoGrupo) throws ControladorException;
public String pesquisarAnormalidadesImovel(Integer idImovel, String indicadorAguaEsgoto) throws ControladorException;
public Integer inserirNovaSubdivisoesDeRota(Integer idRotaOriginal, Short codigoRota, Integer idLeiturista) throws ControladorException;
public String pesquisarNumeroHidrometro(Integer idImovel) throws ControladorException;
public String obterConsumoTipoImovel(Integer idImovel, Integer anoMes, Integer idLigacaoTipo) throws ControladorException;
/**
* [UC1000] Informar Medidor de Energia por Rota.
*/
public Integer countColetaMedidorEnergia(ColetaMedidorEnergiaHelper helper) throws ControladorException;
/**
* [UC1000] Informar Medidor de Energia por Rota.
*/
public Collection<ColetaMedidorEnergiaHelper> pesquisarColetaMedidorEnergia(ColetaMedidorEnergiaHelper helper) throws ControladorException;
/**
* [UC0997] Gerar Resumo de Liga��es por Capacidade de Hidr�metro.
*/
public Collection<RelatorioResumoLigacoesCapacidadeHidrometroBean> pesquisarRelatorioResumoLigacoesCapacidadeHidrometro(
RelatorioResumoLigacoesCapacidadeHidrometroHelper helper) throws ControladorException;
/**
* [UC0997] Gerar Resumo de Liga��es por Capacidade de Hidr�metro.
*/
public Integer countRelatorioResumoLigacoesCapacidadeHidrometro(RelatorioResumoLigacoesCapacidadeHidrometroHelper helper) throws ControladorException;
/**
* [UC0091] Alterar Dados para Faturamento
* [FS0015] Verificar Im�vel Impress�o Simult�nea
*/
public boolean verificarExistenciaArquivoDeImpressao(Integer idImovel, Integer tipoMedicao) throws ControladorException;
/**
* [UC0631] Processar Requisi��es do Dispositivo M�vel.
*/
public void atualizarArquivoTextoMenorSequencialLeitura(long imei, int situacaoAnterior, int situacaoNova, int idServicoTipoCelular)
throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection carregarDadosMedicaoConsumoHistoricoLigacaoEsgoto(Integer idImovel) throws ControladorException;
/**
* [UC1022] Relat�rio de Notifica��o de D�bitos para Impress�o Simult�nea
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarNotificacaoDebitosImpressaoSimultanea(RelatorioNotificacaoDebitosImpressaoSimultaneaHelper filtro) throws ControladorException;
public HidrometroCapacidade pesquisarCapacidadeHidrometro(String numeroHidrometro) throws ControladorException;
/**
* UC1027 - Exibir Consultar Arquivo Texto Leitura Divis�o.
*/
public void atualizarArquivoTextoDivisaoEnviado(Integer idArquivoTextoRoteiroEmpresaDivisao, int situacaoNova) throws ControladorException;
/**
* UC1027 - Exibir Consultar Arquivo Texto Leitura Divis�o.
*/
public void atualizarListaArquivoTextoDivisao(Vector<Integer> ids, Integer situacaoNova) throws ControladorException;
public ConsumoHistorico obterConsumoHistorico(Imovel imovel, LigacaoTipo ligacaoTipo, int anoMesReferencia) throws ControladorException;
public Integer obterIdRotaPorSetorComercialELocalidade(Integer codRota, Integer setorComercial, Integer localidade) throws ControladorException;
/**
* [UC1055] - Informar Valor de Item de Servi�o Por Contrato
*/
public List<InformarItensContratoServicoHelper> obterDadosItensContratoServico(Integer idEmpresa) throws ControladorException;
/**
* [UC1055] - Informar Valor de Item de Servi�o Por Contrato
*/
public void removerItemServicoDoContrato(Integer idContratoEmpresaServico, Usuario usuarioLogado) throws ControladorException;
/**
* [UC1055] - Informar Valor de Item de Servi�o Por Contrato
*/
public void removerAditivosDoContrato(Integer idContratoEmpresaServico) throws ControladorException;
/**
* [UC1054] - Gerar Relat�rio Boletim de Medi��o
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarRelatorioBoletimMedicao(FiltrarRelatorioBoletimMedicaoHelper helper) throws ControladorException;
/**
* [UC1054] - Gerar Relat�rio Boletim de Medi��o
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarEmpresasContratoServico() throws ControladorException;
/**
* [UC0629] Consultar Arquivo Texto para Leitura
* [FS0011 - Verificar Leituras];
*/
public SituacaoLeituraHelper pesquisarSituacaoLeitura(Integer anoMes, Integer idGrupo, Integer idRota) throws ControladorException;
public boolean isRotaDividida(Integer idRota, Integer anoMesFaturamento) throws ControladorException;
public boolean verificarExistenciaArquivosDivididosSituacaoDiferente(Integer idRota, Integer anoMesFaturamento, Integer[] idsSituacaoTransmissao)
throws ControladorException;
/**
* [UC0629] Consultar Arquivo Texto Leitura.
*/
public boolean verificarLeiturasRealizadas(Vector<Integer> ids, Integer idServicoTipoCelular) throws ControladorException;
public boolean verificarSituacaoMedicao(Integer idImovel) throws ControladorException;
/**
* [UC0153] Apresentar Dados Para An�lise da Medi��o e Consumo
* [FS0004] ? Solicitar releitura .Caso o usu�rio solicite a releitura de
* determinado im�vel, o sistema identifica o im�vel, grava os dados
* (REMO_ID, IMOV_ID, REMO_ICRELEITURA, USUR_ID, REMO_AMREFERENCIA
* preenchido com o valor FTGR_AMREFERENCIA) na tabela RELEITURA_MOBILE e
* envia a seguinte mensagem para o celular do leiturista respons�vel pela
* rota (LEIT_ID que esta na tabela rota em que o imovel pertence e
* identificar o celular deste (LEIT_NNIMEI) para envio da mensagem):
* ?Refazer leitura para o im�vel <IMOV_ID>. Ir para o im�vel??
*
* .Caso o im�vel ainda n�o tenha tido leitura para o ano/m�s de refer�ncia
* (se n�o existir registro na tabela MOVIMENTO_CONTAPREFATURADA no ano/m�s
* de referencia), o sistema exibir� a seguinte mensagem: Leitura n�o
* realizada para o im�vel em < FTGR_AMREFERENCIA >;
*
* .Caso o leiturista j� tenha finalizado a rota (verificar na tabela
* ARQUIVO_TEXTO_ROTEIRO_EMPRESA se existem ocorr�ncias para a rota
* mencionada no ano/m�s de referencia e o campo STIL_ID correspondente a
* descri��o "FINALIZADO" na tabela SITUACAO_TRANSMISSAO_LEITURA) ser�
* enviada a seguinte mensagem para o operador: ?Rota j� foi finalizada pelo
* leiturista? e retorna ao passo que chamou este fluxo.
*/
public void solicitarReleitura(String matricula, Usuario usuarioLogado) throws ControladorException;
public Collection<AnalisarImoveisReleituraHelper> pesquisarImovelParaReleitura(String anoMesReferencia, String idGrupoFaturamento, String idRota,
String idQuadra, String idSituacaoTrasmissaoLeitura, String idEmpresa) throws ControladorException;
public boolean releituraJaRealizada(String matricula) throws ControladorException;
/**
* [UC0113] Faturar Grupo de Faturamento [SB0006] - Gerar Dados da Conta
*/
public Object[] obterLeituraAnteriorEAtualFaturamentoMedicaoHistorico(Integer idImovel, Integer anoMesReferencia) throws ControladorException;
/**
* [UC0629] Consultar Arquivo Texto para Leitura
*/
public Collection<ImovelFaltandoSituacaoLeituraHelper> pesquisarImoveisFaltandoSituacaoLeitura(Integer idRota, Integer anoMesReferencia)
throws ControladorException;
/**
* [UC0932] Monitorar Leituras Transmitidas
*/
public Collection<MonitorarLeituraMobilePopupHelper> pesquisarImoveisMonitorarLeiturasTransmitidas(Integer idRota, Integer anoMesReferencia,
Short indicadorContaImpressa, Short indicadorMedido) throws ControladorException;
/**
* [UC0933] Alterar Leiturista do Arquivo Texto para Leitura
*/
public void alterarLeituristaArquivoLeitura(ArquivoTextoRoteiroEmpresa arq, Integer idLeiturista, Integer idGrupoFaturamento, Integer anoMesReferencia)
throws ControladorException;
/**
* [UC1004] Processar Leitura via Telemetria
*/
public TelemetriaLog processarLeituraViaTelemetria(String dadosTelemetria) throws ControladorException;
/**
* [UC1070] Filtrar Leituras Telemetria
*/
public Collection<TelemetriaMovReg> filtrarLeiturasTelemetria(FiltrarLeiturasTelemetriaHelper helper) throws ControladorException;
/**
* [UC1070] Filtrar Leituras Telemetria
*/
public Integer countFiltrarLeiturasTelemetria(FiltrarLeiturasTelemetriaHelper helper) throws ControladorException;
/**
* [UC1070] Filtrar Leituras Telemetria
*/
public boolean verificarLeiturasTelemetriaNaoProcessadas(FiltrarLeiturasTelemetriaHelper helper) throws ControladorException;
/**
* [UC1070] Filtrar Leituras Telemetria
*/
public boolean verificarGruposDiferentesLeiturasTelemetria(String[] ids) throws ControladorException;
/**
* [UC1070] Filtrar Leituras Telemetria
*/
public Collection<TelemetriaMovReg> perquisarLeiturasTelemetriaPorId(String[] ids) throws ControladorException;
/**
* [UC1068] Consistir Leitura Telemetria
*/
public boolean consistirLeituraTelemetria(TelemetriaMovReg telemetriaMovReg);
/**
* [UC0091] Alterar Dados para Faturamento
*
* [FS0015] Verificar Im�vel Impress�o Simult�nea
*
* @author R�mulo Aur�lio
* @date 08/11/2010
*/
public boolean verificarExistenciaArquivoDeImpressaoRotaAlternativa(Integer idImovel, Integer tipoMedicao) throws ControladorException;
/**
* [UCXXXX] - Obter Volume Medio Agua ou Esgoto RM4548
*
* @author Ivan Sergio
* @data 13/12/2010
*
* @param idImovel
* @param faturamentoGrupo
* @param idLigacaoTipo
* @return houveIntslacaoHidrometro
* @throws ControladorException
*/
public int[] obterVolumeMedioAguaEsgoto(Integer idImovel, Integer anoMesreferencia, Integer idLigacaoTipo, boolean houveIntslacaoHidrometro)
throws ControladorException;
/**
* Este caso de uso permite a emiss�o de boletins de medi��o em formato TXT
*
* [UC1054] Gerar Relat�rio Boletim de Medi��o
*
* @author Mariana Victor
* @date 22/02/2011
*
* @param
* @return byte[]
*/
@SuppressWarnings("rawtypes")
public byte[] emitirBoletimMedicao(Collection colecao, String mesAno) throws ControladorException;
/**
* [UCXXXX] - Obter Volume Medio Agua ou Esgoto RM4548 M�todo para descobrir
* o tipo de liga��o do im�vel para poder chamar o m�todo de
* obterVolumeMedioAguaEsgoto
*
* @author S�vio Luiz
* @data 23/02/2011
*
* @param imovel
* (Precisa que a situa��o da Liga��o de �gua e Esgoto do im�vel
* esteja carregado. HidrometroInstala��oHist�rico da liga��o de
* �gua do im�vel tamb�m deve estar carregado)
* @return
* @throws ControladorException
*/
public int verificarTipoLigacao(Imovel imovel);
/**
* Pesquisa do relatorio consultar arquivo texto leitura
*
* @author Rafael Pinto
* @date 11/03/2011
*
* @param FiltroRelatorioLeituraConsultarArquivosTextoHelper
* @throws ErroRepositorioException
*/
public Collection<ArquivoTextoRoteiroEmpresa> consultarRelatorioLeituraConsultarArquivosTexto(FiltroRelatorioLeituraConsultarArquivosTextoHelper helper)
throws ControladorException;
/**
* Pesquisa do relatorio consultar arquivo texto leitura
*
* @author Rafael Pinto
* @date 11/03/2011
*
* @param FiltroRelatorioLeituraConsultarArquivosTextoHelper
* @throws ErroRepositorioException
*/
public Integer consultarCountRelatorioLeituraConsultarArquivosTexto(FiltroRelatorioLeituraConsultarArquivosTextoHelper helper) throws ControladorException;
/**
* [UC0800] - Obter Consumo N�o Medido
*
* [SB0005] - Determinar consumo m�nimo da subcategoria por pontos de
* utiliza��o [FS0007] � Verificar exist�ncia do consumo m�nimo por
* subcategoria (pontos) [SB0006] - Determinar consumo m�nimo da categoria
* por pontos de utiliza��o
*
* Obter o consumo m�nimo associado ao ponto de utiliza��o e a subcategoria
* ou a categoria informada
*
* @author Mariana Victor
* @date 23/05/2011
*
* @param areaConstruida
* @param anoMesReferencia
* @param subcategoria
* @return Integer
* @throws ControladorException
*/
public Integer pesquisarConsumoMinimoParametro(BigDecimal numeroParametro, Integer anoMesReferencia, Subcategoria subcategoria, Categoria categoria)
throws ControladorException;
/**
* <b>[UC1180] Relat�rio Im�veis com Leituristas</b>:
*
* <ul>
* <li>
* <b>[SB0001] Gerar Relat�rio do Tipo 1</b>: Quantitativo de im�veis com
* leituras atrav�s da WEB</li>
* <li>
* <b>[SB0002] Gerar Relat�rio do Tipo 2</b>: Quantitativo de im�veis sem
* leituras atrav�s da ISC e WEB</li>
* <li>
* <b>[SB0003] Gerar Relat�rio do Tipo 3</b>: Quantitativo de im�veis que
* est�o na rota mas n�o foram recebidos atrav�s da ISC</p></li>
* </ul>
*
* @author Magno Gouveia
* @date 06/06/2011
*
* @param FiltrarRelatorioImoveisComLeiturasHelper
*
* @return Collection<RelatorioImoveisComLeiturasQuantitativosBean>
* @throws ControladorException
*/
public Collection<RelatorioImoveisComLeiturasQuantitativosBean> filtrarRelatorioImoveisComLeiturasQuantitativos(
FiltrarRelatorioImoveisComLeiturasHelper helper, int parametroPersistirRelatorio) throws ControladorException;
/**
* <b>[UC1180] Relat�rio Im�veis com Leituristas</b>:
*
* <ul>
* <li>
* <b>[SB0004] Gerar Relat�rio do Tipo 4</b>: Rela��o de im�veis com
* leituras n�o recebidas atrav�s da ISC</b></li>
* <li>
* <b>[SB0005] Gerar Relat�rio do Tipo 5</b>: Rela��o de im�veis n�o medidos
* que n�o est�o na rota de ISC</b></li>
* <li>
* <b>[SB0006] Gerar Relat�rio do Tipo 6</b>: Rela��o de im�veis medidos que
* n�o est�o na rota de ISC</b></li>
* </ul>
*
* @author Magno Gouveia
* @date 10/06/2011
*
* @param helper
*
* @return Collection<RelatorioImoveisComLeiturasRelacaoBean>
* @throws ControladorException
*/
public Collection<RelatorioImoveisComLeiturasRelacaoBean> filtrarRelatorioImoveisComLeiturasRelacao(FiltrarRelatorioImoveisComLeiturasHelper helper,
int parametroPersistirRelatorio) throws ControladorException;
/**
* <b>[UC1180] Relat�rio Im�veis com Leituristas</b>:
*
* <ul>
* <li>
* <b>[SB0007] Gerar Relat�rio do Tipo 7</b>: Quantitativo de im�veis com
* leituras enviado e recebidos</b></li>
* </ul>
*
* @author Magno Gouveia
* @date 13/06/2011
*
* @param helper
*
* @return Collection<RelatorioImoveisComLeiturasTipo7Bean>
* @throws ControladorException
*/
public Collection<RelatorioImoveisComLeiturasTipo7Bean> filtrarRelatorioImoveisComLeiturasTipo7(FiltrarRelatorioImoveisComLeiturasHelper helper)
throws ControladorException;
/**
* [UC0713] Emitir Ordem de Servi�o Seletiva [SB0002] Gerar TXT
*
* @author Vivianne Sousa
* @date 29/06/2011
*
* @throws ErroRepositorioException
*/
public Integer pesquisarUltimoConsumoFaturadoImovel(Integer idImovel, Integer tipoLigacao) throws ControladorException;
/**
* [UC0713] Emitir Ordem de Servi�o Seletiva [SB0002] Gerar TXT
*
* @author Vivianne Sousa
* @date 29/06/2011
*
* @param idImovel
*
* @return
* @throws ErroRepositorioException
*/
public Object[] pesquisarDadosHidrometro(Integer idImovel) throws ControladorException;
/**
* [MA2011061011]
*
* @author Paulo Diniz
* @date 02/07/2011
*
* @param idHidrometro
*
* @return HidrometroMovimentado
* @throws ErroRepositorioException
*/
public Date pesquisarMaiorDataHidrometroMovimentado(Integer idHidrometro) throws ControladorException;
/**
* [MA2011061010]
*
* @param faixaInicial
* Descricao do parametro
* @param faixaFinal
* Descricao do parametro
* @return Description of the Return Value
* @exception ControladorException
* Description of the Exception
*/
public Integer pesquisarNumeroHidrometroMovimentacaoPorFaixaCount(String Fixo, String faixaInicial, String faixaFinal) throws ControladorException;
/**
* [MA2011061010]
*
* pesquisa uma colecao de HidrometroMovimentacao
*
* @param faixaInicial
* Descricao do parametro
* @param faixaFinal
* Descricao do parametro
* @return Description of the Return Value
* @exception ErroRepositorioException
* Description of the Exception
*/
@SuppressWarnings("rawtypes")
public Collection pesquisarNumeroHidrometroMovimentacaoPorFaixaPaginacao(String faixaInicial, String faixaFinal, Integer numeroPagina)
throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection pesquisarNumeroHidrometroMovimentacaoPorFaixa(String faixaInicial, String faixaFinal) throws ControladorException;
public Object[] obterConsumoLigacaoAguaOuEsgotoDoImovel(Integer idImovel, Integer anoMesFaturamento, Integer idLigacaoTipo) throws ControladorException;
public Integer obterConsumoNaoMedidoSemTarifa(Integer idImovel, Integer anoMesReferencia) throws ControladorException;
public boolean verificarSubstituicaoHidrometro(Imovel imovel, MedicaoHistorico medicaoHistorico, SistemaParametro sistemaParametro)
throws ControladorException;
public String pesquisarImovelHidrometroInstaladoMaiorDataInstalacao(Integer idHidrometro) throws ControladorException;
public void atualizarArquivoTextoDividido(Integer idRota, Integer anoMesFaturamento, Integer numeroSequenciaArquivo, int situacaoAnterior, int situacaoNova)
throws ControladorException;
public Rota pesquisarRota(Integer idRota) throws ControladorException;
public boolean verificarInstalacaoSubstituicaoHidrometro(Integer idImovel, MedicaoTipo medicaoTipo) throws ControladorException;
public void processarImoveisImpressaoSimultanea(FaturamentoGrupo faturamentoGrupo, MovimentoContaPrefaturada movimentoContaPreFaturada)
throws ControladorException;
public void atualizarLeituraRetificarConta(Integer leituraAtual, int anoMesReferencia, Integer idImovel) throws ControladorException;
public Rota obterRotaPorLocalidadeSetorComercial(Integer idLocalidade, Integer codigoSetorComercial) throws ControladorException;
public FaturamentoSituacaoHistorico obterSituacaoEspecialFaturamentoImovel(Imovel imovel) throws ControladorException;
public MedicaoHistorico pesquisarMedicaoHistoricoAnterior(Integer idImovel, Integer anoMes, Integer idMedicaoTipo) throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection pesquisarArquivosTextoRoteiroEmpresaCompletoParaArquivoZip(String[] ids) throws ControladorException;
public ArquivoTextoRoteiroEmpresa pesquisarArquivosTextoRoteiroEmpresaTransmissaoOffline(Integer idLocalidade, Integer idRota, Integer anoMesReferencia)
throws ControladorException;
public ArquivoTextoRoteiroEmpresaDivisao pesquisarArquivosTextoRoteiroEmpresaDivisao(Integer atreId, Integer numeroSequenciaArquivo)
throws ControladorException;
@SuppressWarnings("rawtypes")
public Collection pesquisarDadosRelatorioLeiturasRealizadas(int anoMesFaturamento, Integer idFaturamentoGrupo) throws ControladorException;
/**
* Verifica se h� diferen�a entre a leitura persistida e a passada como
* parametro Utilizado na retifica��o de contas
*/
public boolean verificarLeituraAtualFaturadaImovel(Integer leituraAtual, int anoMesReferencia, Integer idImovel) throws ControladorException;
public boolean pesquisaArquivoRotaPorGrupoEReferencia(Integer idGrupo, int referencia) throws ControladorException;
public MedicaoHistorico pesquisarMedicaoHistoricoTipoPocoLeituraAnormalidade(Integer imovel, Integer anoMes) throws ControladorException;
public MedicaoHistorico pesquisarMedicaoHistoricoTipoAguaLeituraAnormalidade(Integer imovel, Integer anoMes) throws ControladorException;
public int obterQuantidadeEconomiasCondominio(Integer idImovelCondominio, Integer anoMesFaturamento);
public int obterConsumoASerRateado(Integer idImovelCondominio, Integer anoMesFaturamento, Integer ligacaoTipo);
public int obterConsumoNaoMedido(Imovel imovel) throws ControladorException;
public List<Integer> obterImoveisNaoEnviadosMovimentoContaPreFaturada(Integer idRota, Integer anoMesFaturamento) throws ControladorException;
public void calcularLeituraConfirmada(Integer leituraAnterior, Integer leituraAtual, LeituraSituacao leituraSituacao, Integer idImovel, Integer anoMes,
FaturamentoGrupo faturamentoGrupo, SistemaParametro sistemaParametro, String dataLeituraAtualInformada, Integer idLeituraAnormalidade,
boolean alterouAnormalidade) throws ControladorException;
public Rota buscarRotaDoImovel(Integer matricula) throws ControladorException;
public void validarImovelEmCampo(Integer idImovel) throws ControladorException;
public Collection<HidrometroProtecao> pesquisarHidrometroProtecao() throws ControladorException;
public Collection<HidrometroMarca> pesquisarHidrometroMarca() throws ControladorException;
public boolean isImovelEmCampo(Integer idImovel) throws Exception;
public Collection<DadosMovimentacao> buscarImoveisFaturamentoSeletivo(Integer matriculaImovel, Rota rota, boolean manter) throws ControladorException;
public LigacaoAgua obterLigacaoAgua(Integer idLigacao) throws ControladorException;
public void incluirMedicaoHistoricoFaturamentoSeletivo(ImovelFaturamentoSeletivo imovelFaturamentoSeletivo) throws Exception;
public Collection<Imovel> obterImoveisVinculadosDoCondominio(Integer idImovelCondominio) throws ControladorException;
public int obterConsumoLigacaoImoveisVinculados(Integer idImovelCondominio, Integer anoMesFaturamento, Integer ligacaoTipo) throws ControladorException;
}