Exemplo n.º 1
0
 public void SwitchOffClients()
 {
     var filter = new SwitchOffClientsFilter();
     BindObjectInstance(filter, IsPost ? ParamStore.Form : ParamStore.QueryString, "filter", AutoLoadBehavior.NullIfInvalidKey);
     PropertyBag["filter"] = filter;
     PropertyBag["Clients"] = filter.Find(DbSession);
 }
Exemplo n.º 2
0
        public void Base_filter_test()
        {
            var filter = new SwitchOffClientsFilter {
                SortBy = "ClientName"
            };

            filter.Find(session);
        }
Exemplo n.º 3
0
        private static IEnumerable <SwitchOffCounts> GetExcelSwitchOffClients(SwitchOffClientsFilter filter)
        {
            var criteria = filter.GetCriteria();

            filter.ApplySort(criteria);

            return(ArHelper.WithSession(s => filter.Find(s, true)).ToList());
        }