Beispiel #1
0
        public ActionResult Index(int LineID = -1, int p = -1)
        {
            List <LineEntity> mList = null;
            int       count         = LineService.GetLineCount(LineID);
            PagerInfo pager         = new PagerInfo();

            pager.PageIndex = p;
            pager.PageSize  = PAGESIZE;
            pager.SumCount  = count;
            pager.URL       = "/Line";
            if (LineID > -1)
            {
                mList = LineService.GetLineInfoByRule(LineID, pager);
            }
            else
            {
                mList = LineService.GetLineInfoPager(pager);
            }
            ViewBag.LineID = LineID;
            ViewBag.Line   = mList;
            ViewBag.Pager  = pager;
            return(View());
        }