Пример #1
0
        public bool?ApplyRubroFilter()
        {
            var form = new SmartSelectWindow(() => { return(rubroLogic.GetForSelection()); },
                                             () => { return(rubroLogic.GetByIds(OrganizacionesFilter.Filter.RubroIds)); },
                                             OrganizacionesFilter.Filter.RubroIds,
                                             "Rubros");

            form.ShowDialog();

            if (form.DialogResult.HasValue && form.DialogResult.Value)
            {
                OrganizacionesFilter.Filter.RubroIds = form.GetSelection().ToList();

                OrganizacionesFilter.UpdateStatuses();
            }

            return(form.DialogResult);
        }
Пример #2
0
 public IEnumerable <IdAndValue> GetRubrosByIds()
 {
     return(rubroLogic.GetByIds(OrganizacionesFilter.Filter.RubroIds));
 }