Exemplo 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();
        }
Exemplo n.º 2
0
        public HComboBoxSourceList(Csla.SortedBindingList <ModuloInfo> lista)
        {
            this.AddEmptyItem();
            foreach (ModuloInfo item in lista)
            {
                ComboBoxSource combo = new ComboBoxSource();

                combo.Texto = item.Texto;
                combo.Oid   = item.Oid;

                this.Add(combo);
            }
        }
Exemplo n.º 3
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;
    }
Exemplo n.º 4
0
        public HComboBoxSourceList(Csla.SortedBindingList <InstructorInfo> lista)
        {
            AddEmptyItem();

            foreach (InstructorInfo item in lista)
            {
                ComboBoxSource combo = new ComboBoxSource();

                combo.Texto = item.Apellidos + ", " + item.NombrePropio;
                combo.Oid   = item.Oid;

                this.Add(combo);
            }
        }
Exemplo n.º 5
0
        public HComboBoxSourceList(Csla.SortedBindingList <SubmoduloInfo> lista)
        {
            AddEmptyItem();

            foreach (SubmoduloInfo item in lista)
            {
                ComboBoxSource combo = new ComboBoxSource();

                combo.Texto    = item.Codigo;
                combo.Oid      = item.Oid;
                combo.OidAjeno = item.OidModulo;

                this.Add(combo);
            }
        }
Exemplo n.º 6
0
        public HComboBoxSourceList(Csla.SortedBindingList <PromocionInfo> lista)
        {
            AddEmptyItem();

            foreach (PromocionInfo item in lista)
            {
                ComboBoxSource combo = new ComboBoxSource();

                combo.Texto    = item.Nombre;
                combo.Oid      = item.Oid;
                combo.OidAjeno = item.OidPlan;

                this.Add(combo);
            }
        }
        /// <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();
        }
Exemplo n.º 8
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;
    }
Exemplo n.º 9
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;
    }