コード例 #1
0
        public ActionResult Index()
        {
            FollowingModel        model       = new FollowingModel();
            EFILE_CHIASE_SEARCHBO searchModel = new EFILE_CHIASE_SEARCHBO();

            searchModel.USER_ID  = GetUserInfo().ID;
            EFILE_CHIASEBusiness = Get <EFILE_CHIASEBusiness>();
            model.ListChiaSe     = EFILE_CHIASEBusiness.GetDaTaByPage(searchModel);
            SessionManager.SetValue("FollowingSearch", searchModel);
            return(View(model));
        }
コード例 #2
0
        public JsonResult getData(int indexPage, string sortQuery, int pageSize)
        {
            EFILE_CHIASEBusiness = Get <EFILE_CHIASEBusiness>();
            var searchModel = SessionManager.GetValue("FollowingSearch") as EFILE_CHIASE_SEARCHBO;

            if (searchModel == null)
            {
                searchModel = new EFILE_CHIASE_SEARCHBO();
            }
            if (!string.IsNullOrEmpty(sortQuery))
            {
                searchModel.sortQuery = sortQuery;
                if (pageSize > 0)
                {
                    searchModel.pageSize = pageSize;
                }
                SessionManager.SetValue("FollowingSearch", searchModel);
            }
            searchModel.USER_ID = GetUserInfo().ID;
            var data = EFILE_CHIASEBusiness.GetDaTaByPage(searchModel, indexPage, pageSize);

            return(Json(data));
        }