public static IList <Jc_DefInfo> QueryPointByDevpropertIDCache(int DevPropertID) { IList <Jc_DefInfo> list = null; try { if (ClientAlarmConfig.getsererconnectstate()) { var requst = new QueryPointByDevpropertRequest() { DevPropertId = DevPropertID }; var response = alarmService.QueryPointByDevpropertIDCache(requst); if (response.Data != null) { list = response.Data; } } } catch (Exception ex) { LogHelper.Error(ex); } return(list); }
/// <summary> /// 通过设备性质查找测点 /// </summary> /// <param name="alarmRequest"></param> /// <returns></returns> public BasicResponse <List <Jc_DefInfo> > QueryPointByDevpropertIDCache(QueryPointByDevpropertRequest alarmRequest) { var response = new BasicResponse <List <Jc_DefInfo> >(); PointDefineCacheGetByConditonRequest pointDefineCacheRequest = new PointDefineCacheGetByConditonRequest(); pointDefineCacheRequest.Predicate = a => a.DevPropertyID == alarmRequest.DevPropertId; var result = pointDefineCacheService.GetPointDefineCache(pointDefineCacheRequest); response.Data = result.Data; return(response); }
public BasicResponse <List <Jc_DefInfo> > QueryPointByDevpropertIDCache(QueryPointByDevpropertRequest alarmRequest) { var responsestr = HttpClientHelper.Post(Webapi + "/v1/alarm/querypointbydevpropertidcache?token=" + Token, JSONHelper.ToJSONString(alarmRequest)); return(JSONHelper.ParseJSONString <BasicResponse <List <Jc_DefInfo> > >(responsestr)); }
public BasicResponse <List <Jc_DefInfo> > QueryPointByDevpropertIDCache(QueryPointByDevpropertRequest alarmRequest) { return(alarmService.QueryPointByDevpropertIDCache(alarmRequest)); }