Esempio n. 1
0
        public JsonResult SaveCalendar(CalendarInput input)
        {
            var status = new OperateStatus();

            try
            {
                if (!input.ReplaceExists && StdSchedulerManager.GetCalendar(input.CalendarName) != null)
                {
                    status.Message = "日历已存在,请换个其它名称或选择替换现有日历";
                    return(Json(status));
                }
                StdSchedulerManager.AddCalendar(input);
                status.ResultSign = ResultSign.Successful;
                status.Message    = "保存日历成功";
            }
            catch (Exception ex)
            {
                status.Message = ex.Message;
            }
            return(Json(status));
        }