Exemple #1
0
        //锁定任务
        public JsonResult LockTask(string taskID, string operateID, string clientID)
        {
            int result;

            TaskBusiness.LockTask(taskID, operateID, "", clientID, out result);
            JsonDictionary.Add("result", result);
            return(new JsonResult
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
Exemple #2
0
        //锁定任务
        public JsonResult LockTask(string taskID)
        {
            int result;

            TaskBusiness.LockTask(taskID, CurrentUser.UserID, OperateIP, CurrentUser.ClientID, out result);

            JsonDictionary.Add("result", result);

            return(new JsonResult
            {
                Data = result,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
Exemple #3
0
        public JsonResult UpdateTaskLockStatus(string taskid, int status)
        {
            var bl     = false;
            int result = 0;

            if (status == 2)
            {
                bl = TaskBusiness.UnLockTask(taskid, CurrentUser.UserID, OperateIP, CurrentUser.ClientID, out result);
            }
            else
            {
                bl = TaskBusiness.LockTask(taskid, CurrentUser.UserID, OperateIP, CurrentUser.ClientID, out result);
            }
            JsonDictionary.Add("status", bl);
            return(new JsonResult
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }