Ejemplo n.º 1
0
        private void PopulaGridEmpresa()
        {
            RelFiltroRanking objRelFiltroRanking = this.UCFiltroRanking1.GetFiltro(int.Parse(Request["TipoEtapaId"]));

            ListaGrid = new BllRelatorio().ObterRelatorioQuestoesEspeciais(objRelFiltroRanking);

            this.AtualizaGrid(objRelFiltroRanking);
        }
Ejemplo n.º 2
0
        private void PopulaGridRelatorioRAA()
        {
            Int32 IdEmpresaCadastro = EmpresaLogada.IdEmpresaCadastro;
            Int32 IdTurma           = objTurma.IdTurma;

            ListaGrid = new BllRelatorio().RelRAAPorFiltro(IdEmpresaCadastro, IdTurma, objPrograma.IdPrograma, null);

            this.AtualizaGrid();
        }
Ejemplo n.º 3
0
        private void PopulaGridPorCategoria()
        {
            RelFiltroRanking objRelFiltroRanking  = this.UCFiltroRanking1.GetFiltro(0);
            List <RelParticipantesPorEtapa> Lista = new BllRelatorio().ObterParticipantesPorEtapaPorCategoria(objRelFiltroRanking);

            this.grdCategoria.DataSource = Lista;
            this.grdCategoria.DataBind();

            if (Lista.Count > 0)
            {
                phGraficoPercentualCategoria.Controls.Clear();
                phGraficoPercentualCategoria.Controls.Add(GetGroupedBarEstadualCategoriaChart(Lista));
            }
        }
Ejemplo n.º 4
0
        // Método para Relatório
        private void CarregarRelatorio()
        {
            BllRelatorio bll = new BllRelatorio();
            Relatorio    dto = new Relatorio();

            dto.Operacao = "RelatorioAnual";
            dto.Ano      = cbAno.Text;
            try
            {
                DataTable dt = bll.RelatorioAnual(dto);

                if (dt.Rows.Count != 0)
                {
                    custoJan.Text  = Convert.ToDecimal(dt.Rows[0]["CustoJan"]).ToString("C");
                    custoFev.Text  = Convert.ToDecimal(dt.Rows[0]["CustoFev"]).ToString("C");
                    custoMar.Text  = Convert.ToDecimal(dt.Rows[0]["CustoMar"]).ToString("C");
                    custoAbri.Text = Convert.ToDecimal(dt.Rows[0]["CustoAbri"]).ToString("C");
                    custoMaio.Text = Convert.ToDecimal(dt.Rows[0]["CustoMaio"]).ToString("C");
                    custoJun.Text  = Convert.ToDecimal(dt.Rows[0]["CustoJun"]).ToString("C");
                    custoJul.Text  = Convert.ToDecimal(dt.Rows[0]["CustoJul"]).ToString("C");
                    custoAgo.Text  = Convert.ToDecimal(dt.Rows[0]["CustoAgo"]).ToString("C");
                    custoSet.Text  = Convert.ToDecimal(dt.Rows[0]["CustoSet"]).ToString("C");
                    custoOut.Text  = Convert.ToDecimal(dt.Rows[0]["CustoOut"]).ToString("C");
                    custoNov.Text  = Convert.ToDecimal(dt.Rows[0]["CustoNov"]).ToString("C");
                    custoDez.Text  = Convert.ToDecimal(dt.Rows[0]["CustoDez"]).ToString("C");

                    lucroJan.Text  = Convert.ToDecimal(dt.Rows[0]["LucroJan"]).ToString("C");
                    lucroFev.Text  = Convert.ToDecimal(dt.Rows[0]["LucroFev"]).ToString("C");
                    lucroMar.Text  = Convert.ToDecimal(dt.Rows[0]["LucroMar"]).ToString("C");
                    lucroAbri.Text = Convert.ToDecimal(dt.Rows[0]["LucroAbri"]).ToString("C");
                    lucroMaio.Text = Convert.ToDecimal(dt.Rows[0]["LucroMaio"]).ToString("C");
                    lucroJun.Text  = Convert.ToDecimal(dt.Rows[0]["LucroJun"]).ToString("C");
                    lucroJul.Text  = Convert.ToDecimal(dt.Rows[0]["LucroJul"]).ToString("C");
                    lucroAgo.Text  = Convert.ToDecimal(dt.Rows[0]["LucroAgo"]).ToString("C");
                    label17.Text   = Convert.ToDecimal(dt.Rows[0]["CustoAgo"]).ToString("C");
                    lucroSet.Text  = Convert.ToDecimal(dt.Rows[0]["LucroSet"]).ToString("C");
                    LucroOut.Text  = Convert.ToDecimal(dt.Rows[0]["LucroOut"]).ToString("C");
                    LucroNov.Text  = Convert.ToDecimal(dt.Rows[0]["LucroNov"]).ToString("C");
                    lucroDez.Text  = Convert.ToDecimal(dt.Rows[0]["LucroDez"]).ToString("C");

                    custoTotal.Text = Convert.ToDecimal(dt.Rows[0]["TOTALCUSTO"]).ToString("C");
                    lucroTotal.Text = Convert.ToDecimal(dt.Rows[0]["TOTALLUCRO"]).ToString("C");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 5
0
        protected void ImgBttnPesquisar_Click(object sender, ImageClickEventArgs e)
        {
            RelFiltroGeral Filtro = new RelFiltroGeral();

            Filtro = this.UCFiltro1.GetFiltro();
            // Filtro.Estado = 11;
            // Filtro.Turma = 7;
            List <RelRelatorioNumeroParticipantes> lista        = new BllRelatorio().RelNumeroParticipantesEtapaFga(Filtro, 1);
            List <RelRelatorioNumeroParticipantes> listaGrafico = new List <RelRelatorioNumeroParticipantes>();

            Div1.Style.Add("display", "block");
            Div2.Style.Add("display", "block");
            Div3.Style.Add("display", "block");
            Div4.Style.Add("display", "block");

            //Estado
            grdEtapaEstado.DataSource = lista;
            grdEtapaEstado.DataBind();
            if (Filtro.Estado > 0)
            {
                foreach (RelRelatorioNumeroParticipantes item in lista)
                {
                    if (item.IdEstado == Filtro.Estado)
                    {
                        listaGrafico.Add(item);
                    }
                }
            }
            else
            {
                listaGrafico = lista;
            }

            if (listaGrafico.Count > 0)
            {
                lblMsgGrafico1.Visible = false;
                grafEstado.DataSource  = listaGrafico;
            }
            //Categoria
            lista        = new BllRelatorio().RelNumeroParticipantesEtapaFga(Filtro, 2);
            listaGrafico = new List <RelRelatorioNumeroParticipantes>();
            grdCategoriaEtapa.DataSource = lista;
            grdCategoriaEtapa.DataBind();
            if (Filtro.Categoria > 0)
            {
                foreach (RelRelatorioNumeroParticipantes item in lista)
                {
                    if (item.IdCategoria == Filtro.Categoria)
                    {
                        listaGrafico.Add(item);
                    }
                }
            }
            else
            {
                listaGrafico = lista;
            }

            if (listaGrafico.Count > 0)
            {
                lblMsgGrafico.Visible    = false;
                grafCategoria.DataSource = listaGrafico;
            }
        }