Beispiel #1
0
        public JsonResult PauseJob(JobDetailInput input)
        {
            var status = new OperateStatus();

            try
            {
                StdSchedulerManager.PauseJob(input.JobName, input.JobGroup);
                status.ResultSign = ResultSign.Successful;
                status.Message    = "暂停作业成功";
            }
            catch (Exception ex)
            {
                status.Message = ex.Message;
            }
            return(Json(status));
        }