Пример #1
0
        public JsonResult RefreshInstancesByState(string userId, string mobileToken, string keyWord, int instanceState, DateTime lastTime)
        {
            userId = AppUtility.RegParam(userId);
            if (this.UserValidator == null)
            {
                return(Json(new { }, JsonRequestBehavior.AllowGet));
            }
            ;
            var result = this.RefreshInstancesByState(userId, keyWord, lastTime, instanceState);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Пример #2
0
        public JsonResult LoadInstancesByState(string userId, string mobileToken, string keyWord, int instanceState, int loadStart)
        {
            userId = AppUtility.RegParam(userId);
            if (this.UserValidator == null)
            {
                return(Json(new { }, JsonRequestBehavior.AllowGet));
            }
            ;
            var result = this.LoadInstances(userId, Server.UrlDecode(keyWord), instanceState, loadStart);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Пример #3
0
        public JsonResult ReadCirculateItems(string userId,
                                             string mobileToken,
                                             string CirculateItemIDs,
                                             bool ReadAll)
        {
            userId           = AppUtility.RegParam(userId);
            CirculateItemIDs = AppUtility.RegParam(CirculateItemIDs);
            if (this.UserValidator == null)
            {
                return(Json(new { }, JsonRequestBehavior.AllowGet));
            }
            ;

            var result = this.ReadCirculateItemsByBatchFn(userId, mobileToken, CirculateItemIDs, ReadAll);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Пример #4
0
        public JsonResult RefreshCirculateItems(string userId,
                                                string mobileToken,
                                                string keyWord,
                                                DateTime lastTime,
                                                bool readWorkItem,
                                                int existsLength)
        {
            userId  = AppUtility.RegParam(userId);
            keyWord = AppUtility.RegParam(keyWord);
            if (this.UserValidator == null)
            {
                return(Json(new { }, JsonRequestBehavior.AllowGet));
            }
            ;

            var result = this.RefreshCirculateItemFn(userId, mobileToken, keyWord, lastTime, readWorkItem, existsLength);

            if (result == null)
            {
                return(Json(new { }, JsonRequestBehavior.AllowGet));
            }
            ;
            return(Json(result, JsonRequestBehavior.AllowGet));
        }