Esempio n. 1
0
        private void BuscarCargarGrilla()
        {
            try
            {
                _ldtoPlant = new List <DtoPlantilla>();
                DtoPlantilla dto = new DtoPlantilla();
                dto.codEquipo = Request.QueryString["codEquipo"];
                ClassResultV cr = new CTR.CtrPlantilla().Usp_PlantillaxEquipo_GetAll(dto);
                if (!cr.HuboError)
                {
                    foreach (DtoPlantilla dtoB in cr.List)
                    {
                        _ldtoPlant.Add(dtoB);
                    }
                    _ldtoPlant = _ldtoPlant.Where(x => (x.nombreCompleto.ToLower().Trim()).Trim().Contains(txtBuscar.Text.ToLower().Trim())).ToList();

                    gvPlantillaxEquipo.DataSource = _ldtoPlant;
                    gvPlantillaxEquipo.DataBind();
                }
                else
                {
                    gvPlantillaxEquipo.DataBind();
                }
            }
            catch { }
        }
Esempio n. 2
0
 private void CargarGrilla()
 {
     try
     {
         _ldtoPlant.Clear();
         ClassResultV cr = new CTR.CtrPlantilla().Usp_TotalJugadores_GetAll();
         if (!cr.HuboError)
         {
             _ldtoPlant.AddRange(cr.List.Cast <DtoPlantilla>().ToList());
             gvJugadoresAll.DataSource = _ldtoPlant;
             gvJugadoresAll.DataBind();
         }
         else
         {
             gvJugadoresAll.DataBind();
         }
         if (gvJugadoresAll.Rows.Count > 0)
         {
             gvJugadoresAll.HeaderRow.TableSection = TableRowSection.TableHeader;
         }
     }
     catch { }
 }
Esempio n. 3
0
        private void CargarGrilla()
        {
            try
            {
                _ldtoPlant = new List <DtoPlantilla>();
                DtoPlantilla dto = new DtoPlantilla();
                dto.codEquipo = Request.QueryString["codEquipo"];
                //dto.IB_Mostrar = true;
                ClassResultV cr = new CTR.CtrPlantilla().Usp_PlantillaxEquipo_GetAll(dto);
                if (!cr.HuboError)
                {
                    foreach (DtoB dtoB in cr.List)
                    {
                        _ldtoPlant.Add((DtoPlantilla)dtoB);
                    }
                    gvPlantillaxEquipo.DataSource = _ldtoPlant;
                    gvPlantillaxEquipo.DataBind();

                    gvConvocables.DataSource = _ldtoPlant;
                    gvConvocables.DataBind();
                }
            }
            catch { }
        }