コード例 #1
0
        /// <summary> 通过设备型号查找测点
        /// </summary>
        /// <param name="DevClassID"></param>
        /// <returns></returns>
        public static List <Jc_DefInfo> QueryPointByDevModelIDCache(int DevModelID)
        {
            PointDefineGetByDevModelIDRequest PointDefineRequest = new PointDefineGetByDevModelIDRequest();

            PointDefineRequest.DevModelID = DevModelID;
            var result = _PointDefineService.GetPointDefineCacheByDevModelID(PointDefineRequest);

            if (result.IsSuccess == true)
            {
                return(result.Data);
            }
            else
            {
                throw new Exception(result.Message);
            }
        }
コード例 #2
0
 public BasicResponse <List <Jc_DefInfo> > GetPointDefineCacheByDevModelID(PointDefineGetByDevModelIDRequest PointDefineRequest)
 {
     return(_PointDefineService.GetPointDefineCacheByDevModelID(PointDefineRequest));
 }