private void InformarDataRanking() { Dados.Bolao bolao = new Dados.Bolao(); DataRow linha = bolao.BuscarBolao(this.CodBolao); if (linha != null) { string dscBolao = Convert.ToString(linha["dsc_bolao"]); DateTime?datRanking = null; if (linha["dat_ranking"] != null && linha["dat_ranking"] != DBNull.Value) { datRanking = Convert.ToDateTime(linha["dat_ranking"]); lbDataUltimaAtualizacao.Text = String.Format("O ranking foi atualizado em {0} às {1}.", datRanking.Value.ToString("dd/MM/yyyy"), datRanking.Value.ToString("HH:mm:ss") ); } else { lbDataUltimaAtualizacao.Text = "O ranking ainda não foi atualizado."; } } else { lbDataUltimaAtualizacao.Text = "Erro ao tentar recuperar o código do bolão atual."; } }
public override void Inicializar(int codBolao) { Dados.Bolao bolao = new Dados.Bolao(); DataView ranking = new DataView(bolao.BuscarRanking(codBolao)); ranking.Sort = this.SortExpression; dgUsuarios.DataSource = ranking; dgUsuarios.DataBind(); }
protected void Page_Load(object sender, System.EventArgs e) { bolao = new Dados.Bolao(); ucEditarParticipante.Salvar += new EventHandler(this.SalvarParticipante); ucEditarParticipante.Cancelar += new EventHandler(this.CancelarEdicaoParticipante); if (!this.IsPostBack) { this.CarregarParticipantes(); } }
protected void Page_Load(object sender, System.EventArgs e) { bolao = new Dados.Bolao(); lbMensagem.Visible = false; if (!Page.IsPostBack) { tbValor.Attributes["onKeyUp"] = "javascript:NumericFormat(this, 2, ',', event);"; tbValor.Attributes["onFocus"] = "javascript:NumericFormat(this, 2, ',', event);"; tbValor.Attributes["onBlur"] = "javascript:NumericFormat(this, 2, ',', event);"; } }
protected void Page_Load(object sender, System.EventArgs e) { Lib.Util.ValidarAdministrador(this.Context); bolao = new Dados.Bolao(); if (!this.IsPostBack) { this.SortExpression = "num_ranking asc"; this.CarregarBolao(); this.CarregarRanking(); } }
protected void Page_Load(object sender, System.EventArgs e) { fase = new Dados.Fase(); bolao = new Dados.Bolao(); ucEditarFase.Salvar += new EventHandler(this.SalvarFase); ucEditarFase.Cancelar += new EventHandler(this.CancelarEdicaoFase); ucListarGrupo.Voltar += new EventHandler(this.VoltarGrupo); if (!this.IsPostBack) { this.CarregarFases(); } }
protected void Page_Load(object sender, System.EventArgs e) { time = new Dados.Time(); grupo = new Dados.Grupo(); fase = new Dados.Fase(); bolao = new Dados.Bolao(); ucEditarTimeGrupo.Salvar += new EventHandler(this.SalvarTime); ucEditarTimeGrupo.Cancelar += new EventHandler(this.CancelarEdicaoTime); if (!this.IsPostBack) { this.CarregarTimes(); } }
protected void Page_Load(object sender, System.EventArgs e) { bolao = new Dados.Bolao(); ucEditarBolao.Salvar += new EventHandler(this.SalvarBolao); ucEditarBolao.Cancelar += new EventHandler(this.CancelarEdicaoBolao); ucListarFase.Voltar += new EventHandler(this.VoltarFase); ucListarParticipante.Voltar += new EventHandler(this.VoltarParticipante); if (!this.IsPostBack) { this.SortExpression = "dsc_bolao asc"; this.CarregarBoloes(); } }
protected void Page_Load(object sender, System.EventArgs e) { Lib.Util.ValidarAdministrador(this.Context); bolao = new Dados.Bolao(); jogo = new Dados.Jogo(); fase = new Dados.Fase(); if (!this.IsPostBack) { this.SortExpression = "num_jogo asc"; this.CarregarBolao(); this.CarregarFases(); this.CarregarJogos(); } }
protected void AtualizarRanking(object sender, EventArgs e) { int codBolao = Convert.ToInt32(ddlBolao.SelectedValue); Dados.Bolao bolao = new Dados.Bolao(); try { bolao.GerarRanking(codBolao); lbMensagem.Visible = true; lbMensagem.Text = "Ranking atualizado!"; } catch (Exception error) { lbMensagem.Visible = true; lbMensagem.Text = "Erro ao tentar atualizar o ranking: " + error.Message; } }
protected void Page_Load(object sender, System.EventArgs e) { grupo = new Dados.Grupo(); bolao = new Dados.Bolao(); fase = new Dados.Fase(); ucEditarGrupo.Salvar += new EventHandler(this.SalvarGrupo); ucEditarGrupo.Cancelar += new EventHandler(this.CancelarEdicaoGrupo); ucListarTimeGrupo.Voltar += new EventHandler(this.VoltarListaTime); ucListarJogoGrupo.Voltar += new EventHandler(this.VoltarListaJogo); if (!this.IsPostBack) { this.CarregarGrupos(); } }
protected void Page_Load(object sender, System.EventArgs e) { bolao = new Dados.Bolao(); usuario = new Dados.Usuario(); if (!this.IsPostBack) { if (this.UsuarioLogado) { this.CodUsuario = Convert.ToInt32(Session["CodUsuario"]); this.LimparFormulario(3); this.ExibirPainel(pnPasso3); this.CarregarBolao(); } else { this.LimparFormulario(1); this.ExibirPainel(pnPasso1); } } }
protected void Page_Load(object sender, System.EventArgs e) { jogo = new Dados.Jogo(); bolao = new Dados.Bolao(); fase = new Dados.Fase(); }