Example #1
0
        public ICabecalhoRodape ObterEnderecoSetor(ICabecalhoRodape cabecalhoRodape, int setorId)
        {
            CabecalhoRodapeDa da  = new CabecalhoRodapeDa();
            SetorEndereco     end = da.ObterEndSetor(setorId);

            if (end != null)
            {
                cabecalhoRodape = FormatarEndereco(cabecalhoRodape, end);
            }
            cabecalhoRodape.SetorNome = _configFunc.Obter <List <Setor> >(ConfiguracaoFuncionario.KeySetores).Single(x => x.Id == setorId).Nome;

            ObterNomes(cabecalhoRodape);

            return(cabecalhoRodape);
        }
Example #2
0
        public ICabecalhoRodape ObterEnderecoFuncLogado(ICabecalhoRodape cabecalhoRodape)
        {
            CabecalhoRodapeDa da = new CabecalhoRodapeDa();

            int setorId = da.ObterFuncSetor((HttpContext.Current.User.Identity as EtramiteIdentity).FuncionarioId);

            SetorEndereco end = da.ObterEndSetor(setorId);

            cabecalhoRodape = FormatarEndereco(cabecalhoRodape, end);

            cabecalhoRodape.SetorNome = _configFunc.Obter <List <Setor> >(ConfiguracaoFuncionario.KeySetores).Single(x => x.Id == setorId).Nome;

            ObterNomes(cabecalhoRodape);

            return(cabecalhoRodape);
        }