Example #1
0
        /// <summary>
        /// 获取分页
        /// </summary>
        /// <param name="number">总数</param>
        /// <param name="pagesize">页大小</param>
        /// <returns></returns>
        public static List <ProModel> GetProListPageNoByLang(int lang, int number, int pagesize)
        {
            List <ProModel>     list     = EispProDAL.GetProListPageNoByLang(lang, number, pagesize);
            ProModel            p        = new ProModel();
            Reverser <ProModel> reverser = new Reverser <ProModel>(p.GetType(), "F_Sort", ReverserInfo.Direction.DESC);

            list.Sort(reverser);
            return(list);
        }
Example #2
0
        /// <summary>
        /// 根据产品类别获取产品分页功能
        /// </summary>
        /// <param name="number"></param>
        /// <param name="pagesize"></param>
        /// <param name="classid"></param>
        /// <returns></returns>
        public static List <ProModel> GetListPageNoByClassID(int number, int pagesize, int classid, int provider)
        {
            string strid = "";

            GetClassSubAllByClass(classid, ref strid);
            List <ProModel>     list     = EispProDAL.GetListPageNoByClassID(number, pagesize, strid, provider, classid);
            ProModel            p        = new ProModel();
            Reverser <ProModel> reverser = new Reverser <ProModel>(p.GetType(), "F_Sort", ReverserInfo.Direction.DESC);

            list.Sort(reverser);
            return(list);
        }
Example #3
0
        public static List <ProModel> GetListPageNoByClassIDByLang(int lang, int number, int pagesize, int classid, int provider)
        {
            string strid = "";

            if (classid == -1)
            {
                GetClassSubAllByLang(lang, ref strid);
            }
            else
            {
                GetClassSubAllByClass(classid, ref strid);
            }

            List <ProModel>     list     = EispProDAL.GetListPageNoByClassID(number, pagesize, strid, provider, classid);
            ProModel            p        = new ProModel();
            Reverser <ProModel> reverser = new Reverser <ProModel>(p.GetType(), "F_Sort", ReverserInfo.Direction.DESC);

            list.Sort(reverser);


            //  ColoProModel n = new ColoProModel();
            //  list.Sort(n.F_Sort);
            return(list);
        }