protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { CarregarProjetos(); CarregarCriterios(); CarregarUsuarios(); RelatorioDAL.Parametros p = new RelatorioDAL.Parametros(); RelatorioDAL rDAL = new RelatorioDAL(); DataTable dtCriterios = rDAL.ObterResultadosPorCriterio(p); DataTable dtprojetos = rDAL.ObterResultadosPorProjeto(p); gvProjetos.DataSource = dtprojetos; gvProjetos.DataBind(); gvCriterios.DataSource = dtCriterios; gvCriterios.DataBind(); int quantidadeAvaliacaoes = new RelatorioDAL().ObterQuantidadeAvaliacoes(); int quantidadeProjetosAvaliados = new RelatorioDAL().ObterQuantidadeProjetosAvaliados(); int quantidadeAvaliadores = new RelatorioDAL().ObterQuantidadeAvaliadores(); lblEstatistica.ForeColor = System.Drawing.Color.Green; lblEstatistica.Text = string.Format("<br>Já foram realizadas <b>{0}</b> avaliações de <b>{1}</b> diferentes projetos, por <b>{2}</b> avaliadores.</b>", quantidadeAvaliacaoes, quantidadeProjetosAvaliados, quantidadeAvaliadores); } }
public RelatoriosController(ApplicationContext context, UserManager <AppIdentityUser> userManager) { this.context = context; this.userManager = userManager; produtoDAL = new ProdutoDAL(context); repasseDAL = new RepasseDAL(context); relatorioDAL = new RelatorioDAL(context); colaboradorDAL = new ColaboradorDAL(context); }
private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(mtbPESQUISA.Text)) { MessageBox.Show(" Verifique campos em Branco !", "Falha ao Pesquisar !", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { DataSet ds = RelatorioDAL.pesquisa(mtbPESQUISA.Text); tabela.DataSource = ds; tabela.DataMember = ds.Tables[0].TableName; } }
protected void btnFiltrar_Click(object sender, EventArgs e) { RelatorioDAL.Parametros p = new RelatorioDAL.Parametros(); p.ProjetoId = (ddlProjetos.SelectedValue != "0") ? (int?)Convert.ToInt32(ddlProjetos.SelectedValue) : null; p.CriterioId = (ddlCriterios.SelectedValue != "0") ? (int?)Convert.ToInt32(ddlCriterios.SelectedValue) : null; p.CPF = (!string.IsNullOrEmpty(txtCpf.Text)) ? txtCpf.Text : string.Empty; p.ProjetoTurmaAvaliadorAproximado = (!string.IsNullOrEmpty(txtOutros.Text)) ? txtOutros.Text : string.Empty; RelatorioDAL rDAL = new RelatorioDAL(); DataTable dtCriterios = rDAL.ObterResultadosPorCriterio(p); DataTable dtprojetos = rDAL.ObterResultadosPorProjeto(p); gvProjetos.DataSource = dtprojetos; gvProjetos.DataBind(); gvCriterios.DataSource = dtCriterios; gvCriterios.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (!string.IsNullOrEmpty(Request.QueryString["ProjetoId"].ToString())) { int projetoID = Convert.ToInt32(Request.QueryString["ProjetoId"].ToString()); Projeto p = new ProjetoDAL().GetById(projetoID); hdnProjetoId.Value = p.Id.ToString(); lblProjeto.Text = p.Nome; lblTurma.Text = p.Turma; lblSala.Text = p.Sala; lblOrientadores.Text = p.Descricao; int quantidadeAvaliacaoes = new RelatorioDAL().ObterQuantidadeAvaliacoes(); int quantidadeProjetosAvaliados = new RelatorioDAL().ObterQuantidadeProjetosAvaliados(); int quantidadeAvaliadores = new RelatorioDAL().ObterQuantidadeAvaliadores(); lblEstatistica.ForeColor = System.Drawing.Color.DeepPink; lblEstatistica.Text = string.Format("<br>Já foram realizadas <b>{0}</b> avaliações de <b>{1}</b> diferentes projetos, por <b>{2}</b> avaliadores. <br><br><b>Participe você também!</b>", quantidadeAvaliacaoes, quantidadeProjetosAvaliados, quantidadeAvaliadores); } } }
public RelatorioBLL() { _dal = new RelatorioDAL(); }
public RelatorioBLL() { relatorioDAL = new RelatorioDAL(); }
public static List <Relatorio> ListarRelatorios() { return(RelatorioDAL.Consultar()); }