public List<Emprestimos> PesquisarBL() { /*criar as regras de negocio*/ EmprestimosDA varDA = new EmprestimosDA(); return varDA.PesquisarDA(); }
public bool LivrosAtrasados(int pessoaId, DateTime hoje) { //criar as regras de negocio EmprestimosDA varDA = new EmprestimosDA(); return varDA.LivrosAtrasados(pessoaId, hoje); }
public bool ExcluirBL(Emprestimos instancia) { /*criar as regras de negocio*/ EmprestimosDA varDA = new EmprestimosDA(); return varDA.ExcluirDA(instancia); }
public Int32 InserirBL(Emprestimos instancia) { /*criar as regras de negocio*/ EmprestimosDA varDA = new EmprestimosDA(); return varDA.InserirDA(instancia); }
public DataTable BuscaHistorico(int pessoaId) { //criar as regras de negocio EmprestimosDA varDA = new EmprestimosDA(); return varDA.BuscaHistorico(pessoaId); }
public string VerificaSituacaoPessoa(int id_pes, bool financeiro, bool biblioteca) { PessoasDA pesDA = new PessoasDA(); EmprestimosDA empDA = new EmprestimosDA(); StringBuilder situacao = new StringBuilder(); situacao.Append(pesDA.VerificaSituacaoPessoa(id_pes, financeiro, biblioteca)); if (!empDA.VerificaQtdeMaximaEmprestimo(id_pes)) situacao.Append("O cliente já atingiu o limite máximo de empréstimos permitido!"); return situacao.ToString(); }
//public List<Emprestimos> PesquisarBuscaBL(string valor) public List<ViewEmprestimos> PesquisarBuscaBL(string valor) { //criar as regras de negocio EmprestimosDA varDA = new EmprestimosDA(); return varDA.PesquisarBuscaBL(valor); }
public List<Emprestimos> PesquisarBL(string campo, string valor) { EmprestimosDA varDA = new EmprestimosDA(); return varDA.PesquisarDA(campo, valor); }
public List<Emprestimos> PesquisarBL(int bai) { EmprestimosDA varDA = new EmprestimosDA(); return varDA.PesquisarDA(bai); }
public override List<Base> Pesquisar(string codDes) { EmprestimosDA varDA = new EmprestimosDA(); return varDA.Pesquisar(codDes); }
public EmprestimoMov CarregaEmpNaoDevolvido(int id_emprestimo) { EmprestimosDA varDA = new EmprestimosDA(); return varDA.CarregaEmpNaoDevolvido(id_emprestimo); }
public bool VerificaQtdeMaximaEmprestimo(int id_pessoa) { EmprestimosDA empDA = new EmprestimosDA(); return empDA.VerificaQtdeMaximaEmprestimo(id_pessoa); }
public int QuantosLivrosEmprestados(int pessoaId) { //criar as regras de negocio EmprestimosDA varDA = new EmprestimosDA(); return varDA.QuantosLivrosEmprestados(pessoaId); }
public Int32 QtdRenovacoes(int emprestimoId) { //criar as regras de negocio EmprestimosDA varDA = new EmprestimosDA(); return varDA.QtdRenovacoes(emprestimoId); }
public DataSet PesquisarDataSet(int empId) { EmprestimosDA varDA = new EmprestimosDA(); return varDA.PesquisarDataSetDA(empId); }
public string RetornaSituacaoTitulo(Int32 id_emp) { string erro = null; ParametrosDA parDa = new ParametrosDA(); EmprestimosDA empDA = new EmprestimosDA(); //verifica quantidade máxima de renovação int maxRenovacao = utils.ComparaIntComZero(parDa.PesquisarValorDA(2, "B")); if (empDA.QtdRenovacoes(id_emp) >= maxRenovacao) { erro = "Este título não pode ser mais renovado!"; return erro; } return erro; }