/// <summary>
        /// 获取所有分组任务
        /// </summary>
        /// <returns></returns>
        public string GetTasksByGroup()
        {
            List <JobEntity> jobs   = new List <JobEntity>();
            IList <string>   groups = QuartzHelper.GetTaskGroups();

            foreach (string group in groups)
            {
                JobEntity job = new JobEntity();
                job.group = group;
                job.tasks = QuartzHelper.GetTasks(group);
                jobs.Add(job);
            }
            return(JsonConvert.SerializeObject(jobs));
        }