protected new SortedBindingList <RegistroFaltasInfo> Localize(FilterItem item) { SortedBindingList <RegistroFaltasInfo> list = null; RegistroFaltasList sourceList = null; switch (FilterType) { case IFilterType.None: if (List == null) { MessageBox.Show(Face.Resources.Messages.NO_RESULTS); return(null); } sourceList = List; break; case IFilterType.Filter: if (FilteredList == null) { MessageBox.Show(Face.Resources.Messages.NO_RESULTS); return(null); } sourceList = FilteredList; break; default: sourceList = List; break; } if (item.FilterProperty == IFilterProperty.All) { FCriteria criteria = GetCriteria(string.Empty, item.Value, null, item.Operation); list = sourceList.GetSortedSubList(criteria, _properties_list); } else { FCriteria criteria = GetCriteria(item.Column, item.Value, null, item.Operation); list = sourceList.GetSortedSubList(criteria, _properties_list); } if (list.Count == 0) { MessageBox.Show(Face.Resources.Messages.NO_RESULTS); return(sourceList.GetSortedList()); } DatosSearch.DataSource = list; DatosSearch.MoveFirst(); AddFilterLabel(item); return(list); }
public RegistroFaltasAlumnosMngForm(bool isModal, Form parent) : base(isModal, parent, null) { InitializeComponent(); _view_mode = molView.Select; // Parche para poder abrir el formulario en modo diseƱo y no perder la configuracion de columnas DatosLocal_BS = Datos; Tabla.DataSource = DatosLocal_BS; SetMainDataGridView(Tabla); Datos.DataSource = RegistroFaltasList.NewList().GetSortedList(); base.SortProperty = NExpediente.DataPropertyName; this.Text = Resources.Labels.FALTAS_ALUMNOS_VIEW_TITLE; }
/// <summary> /// Toma la lista de bancos de la base de datos y rellena la tabla. /// </summary> protected override void RefreshMainData() { PgMng.Grow(string.Empty, "Alumno"); _selectedOid = ActiveOID; switch (DataType) { case EntityMngFormTypeData.Default: List = RegistroFaltasList.GetList(); break; case EntityMngFormTypeData.ByParameter: _sorted_list = List.GetSortedList(); break; } PgMng.Grow(string.Empty, "Lista de Alumnos"); }