public bool Salvar(PermissaoUsuarioItemInfo permissaousuarioitemInfo)
        {
            Acessor acessor = new Acessor();
            bool    sucesso = true;

            try
            {
                using (TransactionScope transacao = new TransactionScope())
                {
                    if (ValidaPermissaoUsuarioItem(permissaousuarioitemInfo))
                    {
                        if (permissaousuarioitemInfo.IsNew)
                        {
                            sucesso = acessor.PermissaoUsuarioItemDal.Inserir(permissaousuarioitemInfo);
                        }
                        else if (permissaousuarioitemInfo.IsDirty)
                        {
                            sucesso = acessor.PermissaoUsuarioItemDal.Editar(permissaousuarioitemInfo);
                        }
                    }
                    transacao.Complete();
                }
                return(sucesso);
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public bool Salvar(TipoAgendamentoInfo tipoagendamentoInfo)
        {
            Acessor acessor = new Acessor();
            bool    sucesso = true;

            try
            {
                using (TransactionScope transacao = new TransactionScope())
                {
                    if (ValidaTipoAgendamento(tipoagendamentoInfo))
                    {
                        if (tipoagendamentoInfo.IsNew)
                        {
                            sucesso = acessor.TipoAgendamentoDal.Inserir(tipoagendamentoInfo);
                        }
                        else if (tipoagendamentoInfo.IsDirty)
                        {
                            sucesso = acessor.TipoAgendamentoDal.Editar(tipoagendamentoInfo);
                        }
                    }
                    transacao.Complete();
                }
                return(sucesso);
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public bool Salvar(AcessoVisitanteInfo acessovisitanteInfo)
        {
            Acessor acessor = new Acessor();
            bool    sucesso = true;

            try
            {
                using (TransactionScope transacao = new TransactionScope())
                {
                    if (ValidaAcessoVisitante(acessovisitanteInfo))
                    {
                        if (acessovisitanteInfo.IsNew)
                        {
                            sucesso = acessor.AcessoVisitanteDal.Inserir(acessovisitanteInfo);
                        }
                        else if (acessovisitanteInfo.IsDirty)
                        {
                            sucesso = acessor.AcessoVisitanteDal.Editar(acessovisitanteInfo);
                        }
                    }
                    transacao.Complete();
                }
                return(sucesso);
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public bool Salvar(ProprietarioVeiculoInfo proprietarioveiculoInfo)
        {
            Acessor acessor = new Acessor();
            bool    sucesso = true;

            try
            {
                using (TransactionScope transacao = new TransactionScope())
                {
                    if (ValidaProprietarioVeiculo(proprietarioveiculoInfo))
                    {
                        if (proprietarioveiculoInfo.IsNew)
                        {
                            sucesso = acessor.ProprietarioVeiculoDal.Inserir(proprietarioveiculoInfo);
                        }
                        else if (proprietarioveiculoInfo.IsDirty)
                        {
                            sucesso = acessor.ProprietarioVeiculoDal.Editar(proprietarioveiculoInfo);
                        }
                    }
                    transacao.Complete();
                }
                return(sucesso);
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
예제 #5
0
        public List <PerfilInfo> ListarPerfilPorNome(string prf_nome)
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.PerfilDal.ListarPerfilPorNome(prf_nome));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
예제 #6
0
        public bool Excluir(int usu_codigo)
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.UsuarioDal.Excluir(usu_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public bool Excluir(int pro_codigo)
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.ProfissionalDal.Excluir(pro_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
예제 #8
0
        public bool Excluir(int ent_codigo)
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.EntregaDal.Excluir(ent_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public bool Excluir(int tag_codigo)
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.TipoAgendamentoDal.Excluir(tag_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public List <ProprietarioVeiculoInfo> ListarTodos()
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.ProprietarioVeiculoDal.ListarTodos());
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
예제 #11
0
        public bool Excluir(string emp_codigo)
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.EmpresaDal.Excluir(emp_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public List <PermissaoUsuarioItemInfo> ListarTodos()
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.PermissaoUsuarioItemDal.ListarTodos());
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
예제 #13
0
        public List <ResidenciaInfo> ListarTodos()
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.ResidenciaDal.ListarTodos());
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public List <AcessoVisitanteInfo> ListarTodos()
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.AcessoVisitanteDal.ListarTodos());
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public List <ProprietarioInfo> ListarPorParametro(ProprietarioInfo proprietarioInfo)
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.ProprietarioDal.ListarPorParametro(proprietarioInfo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public List <TipoAgendamentoInfo> ListarTodos()
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.TipoAgendamentoDal.ListarTodos());
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public bool Excluir(int avi_codigo)
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.AcessoVisitanteDal.Excluir(avi_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public bool Excluir(int per_codigo)
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.PermissaoUsuarioItemDal.Excluir(per_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public bool Excluir(int pve_codigo)
        {
            Acessor acessor = new Acessor();

            try
            {
                return(acessor.ProprietarioVeiculoDal.Excluir(pve_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
예제 #20
0
        public UsuarioInfo ListarPorCodigo(int usu_codigo)
        {
            Acessor     acessor     = new Acessor();
            UsuarioInfo usuarioInfo = new UsuarioInfo();

            try
            {
                return(usuarioInfo = acessor.UsuarioDal.ListarPorCodigo(usu_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public ProprietarioVeiculoInfo ListarPorCodigo(int pve_codigo)
        {
            Acessor acessor = new Acessor();
            ProprietarioVeiculoInfo proprietarioveiculoInfo = new ProprietarioVeiculoInfo();

            try
            {
                return(proprietarioveiculoInfo = acessor.ProprietarioVeiculoDal.ListarPorCodigo(pve_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
예제 #22
0
        public UsuarioInfo ListarUsuario(string usu_login)
        {
            Acessor     acessor     = new Acessor();
            UsuarioInfo usuarioInfo = new UsuarioInfo();

            try
            {
                return(usuarioInfo = acessor.UsuarioDal.ListarUsuario(usu_login));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
예제 #23
0
        public PerfilInfo ListarPorCodigo(int prf_codigo)
        {
            Acessor    acessor    = new Acessor();
            PerfilInfo perfilInfo = new PerfilInfo();

            try
            {
                return(perfilInfo = acessor.PerfilDal.ListarPorCodigo(prf_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
예제 #24
0
        public EmpresaInfo ListarPorCodigo(int emp_codigo)
        {
            Acessor     acessor     = new Acessor();
            EmpresaInfo empresaInfo = new EmpresaInfo();

            try
            {
                return(empresaInfo = acessor.EmpresaDal.ListarPorCodigo(emp_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
예제 #25
0
        public UsuarioInfo AutenticaUsuario(string usu_login, string usu_senha)
        {
            Acessor     acessor     = new Acessor();
            UsuarioInfo usuarioInfo = new UsuarioInfo();

            try
            {
                return(usuarioInfo = acessor.UsuarioDal.AutenticaUsuario(usu_login, usu_senha));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public PermissaoUsuarioItemInfo ListarPorCodigo(int per_codigo)
        {
            Acessor acessor = new Acessor();
            PermissaoUsuarioItemInfo permissaousuarioitemInfo = new PermissaoUsuarioItemInfo();

            try
            {
                return(permissaousuarioitemInfo = acessor.PermissaoUsuarioItemDal.ListarPorCodigo(per_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public TipoEntregaInfo ListarPorCodigo(int ten_codigo)
        {
            Acessor         acessor         = new Acessor();
            TipoEntregaInfo tipoentregaInfo = new TipoEntregaInfo();

            try
            {
                return(tipoentregaInfo = acessor.TipoEntregaDal.ListarPorCodigo(ten_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public AcessoVisitanteInfo ListarPorCodigo(int avi_codigo)
        {
            Acessor             acessor             = new Acessor();
            AcessoVisitanteInfo acessovisitanteInfo = new AcessoVisitanteInfo();

            try
            {
                return(acessovisitanteInfo = acessor.AcessoVisitanteDal.ListarPorCodigo(avi_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public AgendamentoInfo ListarPorCodigo(int age_codigo)
        {
            Acessor         acessor         = new Acessor();
            AgendamentoInfo agendamentoInfo = new AgendamentoInfo();

            try
            {
                return(agendamentoInfo = acessor.AgendamentoDal.ListarPorCodigo(age_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }
        public TipoAgendamentoInfo ListarPorCodigo(int tag_codigo)
        {
            Acessor             acessor             = new Acessor();
            TipoAgendamentoInfo tipoagendamentoInfo = new TipoAgendamentoInfo();

            try
            {
                return(tipoagendamentoInfo = acessor.TipoAgendamentoDal.ListarPorCodigo(tag_codigo));
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message, exc);
            }
            finally
            {
                acessor = null;
            }
        }