Пример #1
0
        public bool HasModelsFilterAnyElements()
        {
            List <Model> models = new List <Model>();

            using (ListProvider provider = new ListProvider())
            {
                models = provider.GetModelsChList(GlobalVars.BadBeeFilter);
                models.AddRange(provider.GetModelsList(GlobalVars.BadBeeFilter));
            }
            return(models.Where(q => string.IsNullOrEmpty(q.Name) == false).Count() > 0);
        }
Пример #2
0
        public bool HasBrandsFilterAnyElements()
        {
            List <Brand> brands = new List <Brand>();

            using (ListProvider provider = new ListProvider())
            {
                brands = provider.GetBrandsChList(GlobalVars.BadBeeFilter);
                brands.AddRange(provider.GetBrandsList(GlobalVars.BadBeeFilter));
            }
            return(brands.Where(q => string.IsNullOrEmpty(q.Name) == false).Count() > 0);
        }
Пример #3
0
        public bool HasSeriesFilterAnyElements()
        {
            List <Serie> series = new List <Serie>();

            using (ListProvider provider = new ListProvider())
            {
                series = provider.GetSeriesChList(GlobalVars.BadBeeFilter);
                series.AddRange(provider.GetSeriesList(GlobalVars.BadBeeFilter));
            }
            return(series.Where(q => string.IsNullOrEmpty(q.Name) == false).Count() > 0);
        }
Пример #4
0
        public bool HasWvaFilterAnyElements()
        {
            List <Wva> wva = new List <Wva>();

            using (ListProvider provider = new ListProvider())
            {
                wva = provider.GetWvaChList(GlobalVars.BadBeeFilter);
                wva.AddRange(provider.GetWvaList(GlobalVars.BadBeeFilter));
            }
            return(wva.Where(q => q.WvaId != 0).Count() > 0);
        }
Пример #5
0
        public bool HasBadBeesFilterAnyElements()
        {
            List <DAL.BadBee> BadBees = new List <DAL.BadBee>();

            using (ListProvider provider = new ListProvider())
            {
                BadBees = provider.GetBadBeeChList(GlobalVars.BadBeeFilter);
                BadBees.AddRange(provider.GetBadBeeList(GlobalVars.BadBeeFilter));
            }
            return(BadBees.Where(q => q.BadBeeId != 0).Count() > 0);
        }
Пример #6
0
        public bool HasSystemsFilterAnyElements()
        {
            List <Systems> system = new List <Systems>();

            using (ListProvider provider = new ListProvider())
            {
                system = provider.GetSystemsListCh(GlobalVars.BadBeeFilter);
                system.AddRange(provider.GetSystemsList(GlobalVars.BadBeeFilter));
            }
            return(system.Where(q => q.SystemId != 0).Count() > 0);
        }
Пример #7
0
        public bool HasThicknessesFilterAnyElements()
        {
            List <Thickness> thick = new List <Thickness>();

            using (ListProvider provider = new ListProvider())
            {
                thick = provider.GetThicknessesListCh(GlobalVars.BadBeeFilter);
                thick.AddRange(provider.GetThicknessesList(GlobalVars.BadBeeFilter));
            }
            return(thick.Where(q => q.ThicknessId != 0).Count() > 0);
        }
Пример #8
0
        public bool HasWidthsFilterAnyElements()
        {
            List <Width> wid = new List <Width>();

            using (ListProvider provider = new ListProvider())
            {
                wid = provider.GetWidthsListCh(GlobalVars.BadBeeFilter);
                wid.AddRange(provider.GetWidthsList(GlobalVars.BadBeeFilter));
            }
            return(wid.Where(q => q.WidthId != 0).Count() > 0);
        }
Пример #9
0
        public bool HasHeightsFilterAnyElements()
        {
            List <Height> hei = new List <Height>();

            using (ListProvider provider = new ListProvider())
            {
                hei = provider.GetHeightsListCh(GlobalVars.BadBeeFilter);
                hei.AddRange(provider.GetHeightsList(GlobalVars.BadBeeFilter));
            }
            return(hei.Where(q => q.HeightId != 0).Count() > 0);
        }
Пример #10
0
        public bool HasYearsFilterAnyElements()
        {
            List <Date> year = new List <Date>();

            using (ListProvider provider = new ListProvider())
            {
                year = provider.GetYearsListCh(GlobalVars.BadBeeFilter);
                year.AddRange(provider.GetYearsList(GlobalVars.BadBeeFilter));
            }
            return(year.Where(q => q.DateId != 0).Count() > 0);
        }