/// <summary>
        /// 查询区域断电信息
        /// </summary>
        /// <param name="id">模型ID</param>
        /// <returns></returns>
        public List <JC_RegionOutageConfigInfo> GetRegionOutage(string analysisModelId)
        {
            try
            {
                RegionOutageConfigGetListRequest regionOutageConfigListRequest = new RegionOutageConfigGetListRequest();
                regionOutageConfigListRequest.AnalysisModelId = analysisModelId;
                //调用接口
                Basic.Framework.Web.BasicResponse <List <JC_RegionOutageConfigInfo> > analysisTemplateResult =
                    regionOutageConfigService.GetRegionOutageConfigListByAnalysisModelId(regionOutageConfigListRequest);

                if (analysisTemplateResult.Data != null && analysisTemplateResult.Data.Count > 0)
                {
                    return(analysisTemplateResult.Data);
                }
                else
                {
                    return(new List <JC_RegionOutageConfigInfo>());
                }
            }
            catch (Exception ex)
            {
                return(new List <JC_RegionOutageConfigInfo>());
            }
        }
Esempio n. 2
0
 public BasicResponse <List <JC_RegionOutageConfigInfo> > GetRegionOutageConfigListByAnalysisModelId(RegionOutageConfigGetListRequest regionOutageConfigGetListRequest)
 {
     return(_regionOutageConfigService.GetRegionOutageConfigListByAnalysisModelId(regionOutageConfigGetListRequest));
 }