public BasicResponse NoReleaseControlForAnalysysModelAndPoint(ReleaseControlCheckRequest releaseControlCheckRequest) { BasicResponse response = new BasicResponse(); DataTable dataTable = _Repository.QueryTable("IsRegionOutageControlPointHasReleaseControl", releaseControlCheckRequest.AnalysisModelId, releaseControlCheckRequest.PointId); StringBuilder modelNameBuilder = new StringBuilder(); foreach (DataRow dr in dataTable.Rows) { if (!string.IsNullOrEmpty(dr["Name"].ToString())) { modelNameBuilder.Append(string.Format("{0}{1}", dr["Name"].ToString(), System.Environment.NewLine)); } } if (!string.IsNullOrEmpty(modelNameBuilder.ToString())) { response.Code = -100; response.Message = "请先删除下列模型配置的解控测点!" + System.Environment.NewLine + modelNameBuilder.ToString(); } return(response); }
public BasicResponse NoReleaseControlForAnalysysModelAndPoint(ReleaseControlCheckRequest releaseControlCheckRequest) { var responseStr = HttpClientHelper.Post(Webapi + "/v1/RegionOutageConfig/NoReleaseControlForAnalysysModelAndPoint?token=" + Token, JSONHelper.ToJSONString(releaseControlCheckRequest)); return(JSONHelper.ParseJSONString <BasicResponse>(responseStr)); }
public BasicResponse NoReleaseControlForAnalysysModelAndPoint(ReleaseControlCheckRequest releaseControlCheckRequest) { return(_regionOutageConfigService.NoReleaseControlForAnalysysModelAndPoint(releaseControlCheckRequest)); }