protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Business.Boloes.Support.Bolao bolao = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName, CurrentBolao.Nome); IList <Framework.DataServices.Model.EntityBaseData> list = bolao.LoadMembros(); this.cboUsuarios.DataSource = list; this.cboUsuarios.DataTextField = "UserName"; this.cboUsuarios.DataValueField = "UserName"; this.cboUsuarios.DataBind(); Business.Campeonatos.Support.Campeonato business = new BolaoNet.Business.Campeonatos.Support.Campeonato(base.UserName); business.Nome = CurrentCampeonato.Nome; this.cboGrupo.DataSource = business.LoadGrupos(); this.cboGrupo.DataTextField = "Nome"; this.cboGrupo.DataValueField = "Nome"; this.cboGrupo.DataBind(); this.cboFase.DataSource = business.LoadFases(); this.cboFase.DataTextField = "Nome"; this.cboFase.DataValueField = "Nome"; this.cboFase.DataBind(); }//endif ispostback BindGrid(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Business.Boloes.Support.Bolao bolao = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName, CurrentBolao.Nome); IList <Framework.DataServices.Model.EntityBaseData> list = bolao.LoadMembros(); this.cboUsuarios.DataSource = list; this.cboUsuarios.DataTextField = "UserName"; this.cboUsuarios.DataValueField = "UserName"; this.cboUsuarios.DataBind(); this.cboUsuarios.SelectedValue = base.UserName; this.lblUsuarioSelecionado.Text = base.UserName; //for (int c = 0; c < this.cboUsuarios.Items.Count; c++) //{ // if (string.Compare(this.cboUsuarios.Items[0].Text, base.UserName, true) == 0) // { // this.cboUsuarios.Items[c].Selected = true; // break; // } //} lnkDownloaApostas.NavigateUrl = "~/Boloes/DownloadApostas.aspx?Bolao=" + CurrentBolao.Nome + "&UserName="******"Target", "_blank"); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Business.Boloes.Support.Bolao business = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName, CurrentBolao.Nome); IList <Framework.DataServices.Model.EntityBaseData> list = business.LoadMembros(); DropDownList cboUsers = (DropDownList)this.MultiViewType.FindControl("cboUsers"); cboUsers.DataSource = list; cboUsers.DataBind(); business.Load(); if (business.IsIniciado && business.ApostasApenasAntes) { this.btnSalvarExisting.Enabled = false; this.btnSalvarNew.Enabled = false; } else { this.btnSalvarExisting.Enabled = true; this.btnSalvarNew.Enabled = true; } } }
private void BindMembros() { Business.Boloes.Support.Bolao bolao = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName, CurrentBolao.Nome); IList <Framework.DataServices.Model.EntityBaseData> list = bolao.LoadMembros(); this.grdUserBolao.DataSource = list; this.grdUserBolao.DataBind(); }
private void BindUsers() { Business.Boloes.Support.Bolao membros = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName, CurrentBolao.Nome); IList <Framework.DataServices.Model.EntityBaseData> users = membros.LoadMembros(); this.cboUser.Items.Add("<Escolha>"); foreach (Framework.Security.Model.UserData user in users) { this.cboUser.Items.Add(user.UserName); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Business.Boloes.Support.Bolao business = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName, CurrentBolao.Nome); this.cboUsuario.DataSource = business.LoadMembros(); this.cboUsuario.DataBind(); } BindChart(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Business.Boloes.Support.Bolao business = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName, CurrentBolao.Nome); IList <Framework.DataServices.Model.EntityBaseData> list = business.LoadMembros(); this.cboUsers.DataSource = list; this.cboUsers.DataTextField = "UserName"; this.cboUsers.DataValueField = "UserName"; this.cboUsers.DataBind(); this.cboUsers.Items.Insert(0, new ListItem("Todos", "")); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Business.Boloes.Support.Bolao bolao = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName, CurrentBolao.Nome); IList <Framework.DataServices.Model.EntityBaseData> list = bolao.LoadMembros(); this.cboUsuarios.DataSource = list; this.cboUsuarios.DataTextField = "UserName"; this.cboUsuarios.DataValueField = "UserName"; this.cboUsuarios.DataBind(); this.cboUsuarios.SelectedValue = base.UserName; this.lblUsuarioSelecionado.Text = base.UserName; BindGrid(); } }