/// <summary> /// 保存区域设备定义限制信息 /// </summary> /// <param name="AreaId"></param> /// <param name="areaRuleInfoList"></param> private void SaveAreaRule(string AreaId, List <AreaRuleInfo> areaRuleInfoList) { if (areaRuleInfoList == null) { return; } //先删除原来区域设备定义限制信息 AreaRuleDeleteRequest areaRuleRequest = new AreaRuleDeleteRequest(); areaRuleRequest.Id = AreaId; _AreaRuleService.DeleteAreaRuleByAreaID(areaRuleRequest); //再进行添加操作 foreach (AreaRuleInfo addareaRuleInfo in areaRuleInfoList) { AreaRuleAddRequest areaRuleAddRequest = new AreaRuleAddRequest(); areaRuleAddRequest.AreaRuleInfo = addareaRuleInfo; _AreaRuleService.AddAreaRule(areaRuleAddRequest); } }
public BasicResponse DeleteAreaRuleByAreaID(Sys.Safety.Request.Area.AreaRuleDeleteRequest areaRuleRequest) { return(alarmHandleService.DeleteAreaRuleByAreaID(areaRuleRequest)); }