예제 #1
0
        public IEnumerable <SituacaoCarteiraClientes> SituacaoCarteiraClientes()
        {
            using (var conexao = new ConexaoSqlServer().AbrirConexao())
            {
                IEnumerable <SituacaoCarteiraClientes> retorno;

                retorno = conexao.Query <SituacaoCarteiraClientes>(RelatoriosClienteProcedures.SituacaoCarteiraClientes
                                                                   .GetDescription(), commandType: CommandType.StoredProcedure);

                return(retorno);
            }
        }
예제 #2
0
        public IEnumerable <VendaRankingVendedor> RankingVendedores(int mes, int ano)
        {
            using (var conexao = new ConexaoSqlServer().AbrirConexao())
            {
                IEnumerable <VendaRankingVendedor> retorno;

                retorno = conexao.Query <VendaRankingVendedor>(RelatoriosVendaProcedures.RankingVendedores.GetDescription(),
                                                               new { @mes = mes, @ano = ano },
                                                               commandType: CommandType.StoredProcedure);

                return(retorno);
            }
        }
예제 #3
0
        public IEnumerable <VendaPorPeriodo> PorPeriodo(DateTime dataEmissaoInicio, DateTime dataEmissaoFim)
        {
            using (var conexao = new ConexaoSqlServer().AbrirConexao())
            {
                IEnumerable <VendaPorPeriodo> retorno;

                retorno = conexao.Query <VendaPorPeriodo>(RelatoriosVendaProcedures.PorPeriodo.GetDescription(),
                                                          new { @dataEmissaoInicio = dataEmissaoInicio, @dataEmissaoFim = dataEmissaoFim },
                                                          commandType: CommandType.StoredProcedure);

                return(retorno);
            }
        }