public BasicResponse <List <EnumcodeInfo> > GetAllDevicePropertyCache(DevicePropertyCacheGetAllRequest devicePropertyCacheRequest)
        {
            var devicePropertyCache = DevicePropertyCache.DeviceDefineCahceInstance.Query();
            var configCacheResponse = new BasicResponse <List <EnumcodeInfo> >();

            configCacheResponse.Data = devicePropertyCache;
            return(configCacheResponse);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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));
        }