/// <summary>
        /// 修改配置信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public CustomResult UpdateConfig(HolidayConfigViewModel model)
        {
            OT_HDayConfig modelHC = new OT_HDayConfig();
            modelHC.CheckFloat = model.CheckFloat;
            modelHC.CompEnd = model.ComparedEndTime;
            modelHC.CompStart = model.ComparedStartTime;
            modelHC.ConfigName = model.ConfigName;
            modelHC.ForeDate = model.ForecastDate;
            modelHC.ForeFloat = model.ForecastFloat;
            modelHC.Id = model.HolidayConfigId;
            modelHC.HDayEnd = model.HolidayEndTime;
            modelHC.HDayId = model.HolidayId;
            modelHC.HDayStart = model.HolidayStartTime;
            modelHC.RptRemark = model.ReportRemark;

            return holidayConfig.Update(modelHC);
        }
        public JsonResult UpdateConfig(HolidayConfigViewModel model)
        {
            var result = ReportFactory.Instance.UpdateConfig(model);

            //修改成功并且用户登录缓存未过期,则记录日志
            if (result.ResultKey == (byte)EResult.Succeed)
            {
                model.ConfigName = ReportFactory.Instance.holidayConfig.GetById(model.HolidayConfigId).ConfigName;
                ReportFactory.Instance.log.WriteLog(Common.OperationType.Update, string.Format("修改了假期配置表中的{0}", model.ConfigName));
            }
            return Json(result, JsonRequestBehavior.DenyGet);
        }