Example #1
0
        public List <AlphaIndex_AptManage> Generate(List <AMR_MST04> values, GetAlphaMehtod_AptManage extractName)
        {
            var data = from q in values
                       where extractName(q) != null
                       group q by extractName(q) into g
                       orderby g.Key
                       select new AlphaIndex_AptManage()
            {
                Index = g.Key, Count = g.Count()
            };
            var res = data.ToList();

            res.Insert(0, AlphaIndex_AptManage.All);
            return(res);
        }
Example #2
0
        public List<AlphaIndex_AptManage> Generate(List<AMR_MST04> values, GetAlphaMehtod_AptManage extractName)
        {
            var data = from q in values
                       where extractName(q) != null
                       group q by extractName(q) into g
                       orderby g.Key
                       select new AlphaIndex_AptManage() { Index = g.Key, Count = g.Count() };
            var res = data.ToList();
            res.Insert(0, AlphaIndex_AptManage.All);
            return res;

        }