Beispiel #1
0
        public JsonResult GetALL()
        {
            Book.BLL.T_Stock_In          bll = new BLL.T_Stock_In();
            List <Book.Model.T_Stock_In> lst = new List <Model.T_Stock_In>();

            lst = bll.GetList(1, 10);
            return(Json(lst));
        }
Beispiel #2
0
        //public JsonResult GetList()
        //{
        //    Book.BLL.T_Stock_In bll = new BLL.T_Stock_In();
        //    List<Book.Model.T_Stock_In> lst = new List<Model.T_Stock_In>();
        //    lst = bll.GetList(1, 10);
        //    return Json(lst);
        //}
        public JsonResult GetList(int pageSize, int pageIndex, String search = "")
        {
            Book.BLL.T_Stock_In          bll = new BLL.T_Stock_In();
            List <Book.Model.T_Stock_In> lst = new List <Model.T_Stock_In>();

            lst = bll.GetList(pageIndex, pageSize, search);
            int count = bll.Count(search);

            return(Json(new { total = count, rows = lst }));
        }
Beispiel #3
0
        public JsonResult GetList(int pageSize, int pageNumber)
        {
            Book.BLL.T_Stock_In          bll  = new BLL.T_Stock_In();
            List <Book.Model.T_Stock_In> list = bll.GetList(pageNumber, pageSize);

            Book.BLL.T_Stock_In bll_count = new BLL.T_Stock_In();
            int count = bll_count.GetCount();

            return(Json(new { total = count, rows = list }));
            //return Json(list);
        }