Пример #1
0
        public ActionResult GetImageList()
        {
            int pagesize  = DoRequest.GetFormInt("size", 15);
            int pageindex = DoRequest.GetFormInt("page", 1);
            //string code = DoRequest.GetFormString("path");
            DateTime startDate = DoRequest.GetFormDate("sDate", DateTime.Now.AddYears(-100));
            DateTime endDate   = DoRequest.GetFormDate("eDate", DateTime.Now);
            string   query     = DoRequest.GetFormString("query");
            int      dataCount = 0;
            int      pageCount = 0;

            List <PicFile> list = new List <PicFile>();
            var            res  = GetSysPicFile.Do(pagesize, pageindex, 3, startDate, endDate, query, ref dataCount, ref pageCount);

            if (res != null && res.Body != null && res.Body.pic_file_list != null)
            {
                list = res.Body.pic_file_list;
            }
            UpLoadFile upload = new UpLoadFile(false);

            return(Json(new { error = false, total = dataCount, size = pagesize, pages = pageCount, page = pageindex, root = base._config.UrlImages, data = list }, JsonRequestBehavior.AllowGet));
        }