/// <summary> 查找分站下的所有测点(包括分站)
        /// </summary>
        /// <param name="fzh"></param>
        /// <returns></returns>
        public static List <Jc_DefInfo> QueryPointByFzhCache(int fzh)
        {
            PointDefineGetByStationIDRequest PointDefineRequest = new PointDefineGetByStationIDRequest();

            PointDefineRequest.StationID = fzh;
            var result = _PointDefineService.GetPointDefineCacheByStationID(PointDefineRequest);

            if (result.IsSuccess == true)
            {
                return(result.Data);
            }
            else
            {
                throw new Exception(result.Message);
            }
        }
Beispiel #2
0
        public static List <Jc_DefInfo> GetAllPointByStation(int fzh)
        {
            PointDefineGetByStationIDRequest pointDefineGetByStationIDRequest = new PointDefineGetByStationIDRequest();

            pointDefineGetByStationIDRequest.StationID = fzh;
            var res = PointDefineService.GetPointDefineCacheByStationID(pointDefineGetByStationIDRequest);

            if (!res.IsSuccess)
            {
                throw new Exception(res.Message);
            }
            return(res.Data);
        }
        /// <summary>
        /// 根据分站号查询其下属测点
        /// </summary>
        /// <param name="fzh"></param>
        /// <returns></returns>
        public static IList <Jc_DefInfo> QueryPointByFzh(string fzh)
        {
            var req = new PointDefineGetByStationIDRequest
            {
                StationID = Convert.ToInt32(fzh)
            };
            var res = PointDefineService.GetPointDefineCacheByStationID(req);

            if (!res.IsSuccess)
            {
                throw new Exception(res.Message);
            }
            return(res.Data);
        }
 public BasicResponse <List <Jc_DefInfo> > GetPointDefineCacheByStationID(PointDefineGetByStationIDRequest PointDefineRequest)
 {
     return(_PointDefineService.GetPointDefineCacheByStationID(PointDefineRequest));
 }