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

            //ChangeCustomerJobState(jobId, 5);
            return(Json(ajaxResponseData));
        }
Exemple #2
0
        public JsonResult DeleteJob(int jobId)
        {
            var ajaxResponseData = _operateJob(jobId, (jobDetail) => { return(_triggerBase.DeleteJob(jobDetail)); });

            return(Json(ajaxResponseData));
        }