Ejemplo n.º 1
0
        /// <summary>
        /// Asigna el objeto principal al origen de datos
        /// <returns>void</returns>
        /// </summary>
        protected override void RefreshMainData()
        {
            Datos.DataSource = _entity;
            Bar.Grow();

            Csla.SortedBindingList <Plan_Tipo> lista = new Csla.SortedBindingList <Plan_Tipo>(_entity.PlanesTipos);
            lista.ApplySort("Orden", ListSortDirection.Ascending);

            Datos_Planes_Tipos.DataSource = lista;
            Bar.Grow();
        }
Ejemplo n.º 2
0
    private Csla.SortedBindingList<AveImperator.Library.Battle> GetBattleList()
    {
        object businessObject = Session["CurrentObject"];
        if ( businessObject == null || !( businessObject is BattleList ) )
        {
            businessObject = BattleList.GetBattleList( Master.Identity.GladiatorId );
            Session["CurrentObject"] = businessObject;
        }

        Csla.SortedBindingList<AveImperator.Library.Battle> list = new Csla.SortedBindingList<AveImperator.Library.Battle>( (BattleList)businessObject );
        list.ApplySort( Master.SortExpression, Master.SortDirection );
        return list;
    }
        /// <summary>
        /// Asigna el objeto principal al origen de datos
        /// <returns>void</returns>
        /// </summary>
        protected override void RefreshMainData()
        {
            Datos.DataSource = _entity;
            Bar.Grow();

            Csla.SortedBindingList <Plan_TipoInfo> lista = new Csla.SortedBindingList <Plan_TipoInfo>(_entity.PlanesTipos);
            lista.ApplySort("Orden", ListSortDirection.Ascending);

            Datos_Planes_Tipos.DataSource = lista;
            Bar.Grow();

            for (int i = 0; i < lista.Count; i++)
            {
                _source_list.AddCombosList(((Plan_TipoInfo)Clases_Grid.Rows[(int)i].DataBoundItem).OidClase);
                ((DataGridViewComboBoxCell)(Clases_Grid["TipoAuditoria_CBC", (int)i])).DataSource = _source_list.GetCombosList((int)i);
            }

            SetUnlinkedGridValues(Clases_Grid.Name);

            base.RefreshMainData();
        }
Ejemplo n.º 4
0
    private Csla.SortedBindingList<Gladiator> GetGladiatorList()
    {
        object businessObject = Session["CurrentObject"];
        if ( businessObject == null || !( businessObject is GladiatorList ) )
        {
            businessObject = GladiatorList.GetGladiatorList( Master.Identity.GladiatorId );
            Session["CurrentObject"] = businessObject;
        }

        Csla.SortedBindingList<Gladiator> list = new Csla.SortedBindingList<Gladiator>( (GladiatorList)businessObject );
        list.ApplySort( Master.SortExpression, Master.SortDirection );
        return list;
    }
Ejemplo n.º 5
0
    private Csla.SortedBindingList<House> GetHouseList()
    {
        object businessObject = Session["CurrentObject"];
        if ( businessObject == null || !( businessObject is HouseList ) )
        {
            businessObject = HouseList.GetHouseList();
            Session["CurrentObject"] = businessObject;
        }

        Csla.SortedBindingList<House> list = new Csla.SortedBindingList<House>( (HouseList)businessObject );
        list.ApplySort( SortExpression, SortDirection );
        return list;
    }