/// <summary> 按分站测点号查找分站下的所有测点 /// </summary> /// <param name="station"></param> /// <returns></returns> public static List <Jc_DefInfo> QueryPointByStationCache(string station) { PointDefineGetByStationPointRequest PointDefineRequest = new PointDefineGetByStationPointRequest(); PointDefineRequest.StationPoint = station; var result = _PointDefineService.GetPointDefineCacheByStationPoint(PointDefineRequest); List <Jc_DefInfo> StationList = result.Data.FindAll(a => a.DevPropertyID == 0); PointDefineGetByStationIDRequest StationPointDefineRequest = new PointDefineGetByStationIDRequest(); StationPointDefineRequest.StationID = StationList[0].Fzh; var resultStationPoint = _PointDefineService.GetPointDefineCacheByStationID(StationPointDefineRequest); if (resultStationPoint.IsSuccess == true) { return(resultStationPoint.Data.FindAll(a => a.DevPropertyID != 0)); } else { throw new Exception(result.Message); } }
public BasicResponse <List <Jc_DefInfo> > GetPointDefineCacheByStationPoint(PointDefineGetByStationPointRequest PointDefineRequest) { return(_PointDefineService.GetPointDefineCacheByStationPoint(PointDefineRequest)); }