/// <summary>
        /// 暂停任务
        /// </summary>
        /// <param name="jobId">任务编号</param>
        /// <returns></returns>
        public JsonResult PauseJob(int jobId)
        {
            var ajaxResponseData = _operateJob(jobId, (jobDetail) =>
            {
                //jobDetail.TriggerState = 1;
                //_customerJobInfoRepository.UpdateCustomerJobInfo(jobDetail);
                return(_triggerBase.PauseJob(jobDetail));
            });

            //ChangeCustomerJobState(jobId, (int)TriggerState.Paused);
            return(Json(ajaxResponseData));
        }
Пример #2
0
        public JsonResult PauseJob(int jobId)
        {
            var ajaxResponseData = _operateJob(jobId, (jobDetail) => { return(_triggerBase.PauseJob(jobDetail)); });

            return(Json(ajaxResponseData));
        }