コード例 #1
0
        public bool ValidaEferiado(string data, string filial)
        {
            var feriado = _serviceProthues.ObterFeriadoPorDataLancamento(data, filial);

            if (feriado.Descricao == null)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
コード例 #2
0
        private List <Fechamento> ValidaSabadoDomingoEFeriado(string id)
        {
            List <Fechamento> listFechamento = new List <Fechamento>();

            var listLancamento = _lancamentoerviceRepository.ObterListaLancamentoPorCodMarcacoEMatricula(id, matricula).Distinct(new LancamentoComparer());


            foreach (Lancamento lancamento in listLancamento)
            {
                var feriado = _prothuesService.ObterFeriadoPorDataLancamento(lancamento.DateLancamento, filial);
                var FechamentoResultValidacao = _fechamentoNegocio.ValidaSabadoDomingoFeriadoComApontamento(lancamento, feriado);

                if (FechamentoResultValidacao.Descricao != null)
                {
                    listFechamento.Add(FechamentoResultValidacao);
                }
            }
            return(listFechamento);
        }