예제 #1
0
        /// <summary>
        /// 获取所有设备性质
        /// </summary>
        /// <returns></returns>
        public BasicResponse <List <EnumcodeInfo> > GetAllDevicePropertyCache()
        {
            BasicResponse <List <EnumcodeInfo> > Result = new BasicResponse <List <EnumcodeInfo> >();
            DevicePropertyCacheGetAllRequest     devicePropertyCacheRequest = new DevicePropertyCacheGetAllRequest();
            var result = _DevicePropertyCacheService.GetAllDevicePropertyCache(devicePropertyCacheRequest);

            Result.Data = result.Data;
            return(Result);
        }
예제 #2
0
        /// <summary>
        /// 获取所有设备性质
        /// </summary>
        /// <returns></returns>
        public BasicResponse <List <EnumcodeInfo> > GetListEnumPropert()
        {
            var response = new BasicResponse <List <EnumcodeInfo> >();

            try
            {
                var devicePropertyCacheGetAllRequest  = new DevicePropertyCacheGetAllRequest();
                var devicePropertyCacheGetAllResponse = devicePropertyCacheService.GetAllDevicePropertyCache(devicePropertyCacheGetAllRequest);
                response.Data = devicePropertyCacheGetAllResponse.Data;
            }
            catch (Exception ex)
            {
                response.Code    = -100;
                response.Message = ex.Message;
                this.ThrowException("GetListEnumPropert-发生异常", ex);;
            }

            return(response);
        }
        public BasicResponse <List <EnumcodeInfo> > GetAllDevicePropertyCache()
        {
            var req = new DevicePropertyCacheGetAllRequest();

            return(_DevicePropertyCacheService.GetAllDevicePropertyCache(req));
        }