예제 #1
0
        public void ExcluirTipo(int tipo_id)
        {
            RepTipo rep = new RepTipo();

            if (rep.FindById(tipo_id) != null)
            {
                rep.Delete(tipo_id);
            }
        }
예제 #2
0
        public void AtualizarTipo(Tipo t)
        {
            RepTipo rep = new RepTipo();

            if (rep.FindById(t.IdTipo) != null)
            {
                rep.UpdateAll(t);
            }
        }
예제 #3
0
        public bool Enviar(Tipo tipo)
        {
            BancoTools banco   = new BancoTools();
            var        retorno = banco.checa_existe("Tipo", "id_Tipo", tipo.id_Tipo);

            RepTipo RepTipo   = new RepTipo();
            var     resultado = RepTipo.Enviar(tipo, retorno);

            banco.Fechar();

            return(resultado);
        }
예제 #4
0
        public List <Tipo> Select()
        {
            RepTipo rep = new RepTipo();

            return(rep.Select());
        }
예제 #5
0
        public List <Tipo> ConsultarTipo(int sistema_id, int responsavel_id, int situacao_id)
        {
            RepTipo rep = new RepTipo();

            return(rep.FindBySistResSit(sistema_id, responsavel_id, situacao_id));
        }
예제 #6
0
        public List <Tipo> BuscarTodosTipo()
        {
            RepTipo rep = new RepTipo();

            return(rep.FindAll());
        }
예제 #7
0
        //Tipo

        #region Tipo
        public void InserirTipo(Tipo t)
        {
            RepTipo rep = new RepTipo();

            rep.Insert(t);
        }