private void BindSelected()
        {
            Business.Boloes.Support.Bolao bolao = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName);
            bolao.Nome = BolaoUserBasePage.CurrentBolao.Nome;


            IList <Model.Boloes.BolaoMembros> list = bolao.LoadClassificacaoGrupo(new Framework.Security.Model.UserData(base.UserName));
            IList <Framework.DataServices.Model.EntityBaseData> listPosicoes = bolao.SelectPremios();


            DataSelected = list;

            this.grdSelecionados.DataSource = list;
            this.grdSelecionados.DataBind();
        }
        private void BindGrid()
        {
            Business.Boloes.Support.Bolao bolao = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName);
            bolao.Nome = BolaoUserBasePage.CurrentBolao.Nome;


            IList <Model.Boloes.BolaoMembros> list = bolao.LoadClassificacao(0);
            IList <Framework.DataServices.Model.EntityBaseData> listPosicoes = bolao.SelectPremios();


            ViewState["listPosicoes"] = listPosicoes;
            ViewState["list"]         = list;


            this.grdClassificacao.DataSource = list;
            this.grdClassificacao.DataBind();
        }
Beispiel #3
0
        private void BindSelected()
        {
            if (BolaoUserBasePage.CurrentBolao == null)
            {
                this.lnkConfigurar.Visible = false;
                return;
            }

            this.lnkConfigurar.Visible = true;
            Business.Boloes.Support.Bolao bolao = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName);
            bolao.Nome = BolaoUserBasePage.CurrentBolao.Nome;


            IList <Model.Boloes.BolaoMembros> list = bolao.LoadClassificacaoGrupo(new Framework.Security.Model.UserData(base.UserName));
            IList <Framework.DataServices.Model.EntityBaseData> listPosicoes = bolao.SelectPremios();



            this.grdClassificacao.DataSource = list;
            this.grdClassificacao.DataBind();
        }