public ActionResult AdminSortList(int?Page)
        {
            DealMvc.Orm.PagerEx.Pager <Model.AdminSort> _Pager = new Orm.PagerEx.Pager <Model.AdminSort>(Page ?? 0, "");
            _Pager.OrderColumn = new string[] { "OrderNum" };
            _Pager.OrderType   = new Orm.PagerEx.SQLOrderType[] { Orm.PagerEx.SQLOrderType.DESC };
            _Pager.GetPageList();
            ViewData["Pager"] = _Pager;

            return(View());
        }
예제 #2
0
        public static string GetAdminSortForSelect()
        {
            StringBuilder output = new StringBuilder();

            DealMvc.Orm.PagerEx.Pager <Model.AdminSort> _Pager = new Orm.PagerEx.Pager <AdminSort>(1, "", null, int.MaxValue, "OrderNum", Orm.PagerEx.SQLOrderType.DESC);
            _Pager.GetPageList();
            foreach (AdminSort _AdminSort in _Pager.DataList)
            {
                output.AppendLine("<option value='" + _AdminSort.id + "'>" + _AdminSort.AdminSortName + "</option>");
            }
            return(output.ToString());
        }