Beispiel #1
0
        public ActionResult SaveJob(string serviceName, string jobName, string description, string triggerGroup, string triggerName, string cron)
        {
            string msg;

            if (QuartzHelper.SaveJob(serviceName, jobName, description, triggerGroup, triggerName, cron, out msg))
            {
                return(Json(new { code = 1, date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), msg = msg }, JsonRequestBehavior.AllowGet));
            }
            return(Json(new { code = 0, date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), msg = msg }, JsonRequestBehavior.AllowGet));
        }