public ActionResult AbnormalSaveThresholdValue(AbnormalThresholdValueView model)
        {
            var color   = string.Empty;
            var message = string.Empty;

            if (ModelState.IsValid)
            {
                var req = new AbnormalThresholdValueSettingRequest
                {
                    TypeId = model.TypeId,
                    MaxLevelThresholdValue = model.AbnormalThresholdValues[0],
                    MinLevelThresholdValue = model.AbnormalThresholdValues[1]
                };
                var abnomalthresholdValueSettingService = new AbnormalThresholdValueSettingService();
                var resp = abnomalthresholdValueSettingService.ModifyAbnormalThresholdValue(req);
                message = resp.Message;
                color   = resp.Succeed ? StyleConstants.GreenColor : StyleConstants.RedColor;
            }
            else
            {
                message = "阈值设置错误!";
                color   = StyleConstants.RedColor;
            }
            return(Json(new { color, message }, JsonRequestBehavior.AllowGet));
        }