Exemplo n.º 1
0
        /// <summary>
        /// 获取设备列表
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <Model.XCCloudRS232.Base_DeviceInfo> GetDeviceList()
        {
            BLL.IBLL.XCCloudRS232.IDeviceService deviceService = BLLContainer.Resolve <BLL.IBLL.XCCloudRS232.IDeviceService>();
            var deviceList = deviceService.GetModels(d => true);

            return(deviceList);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 更新设备
        /// </summary>
        /// <param name="d"></param>
        /// <returns></returns>
        public static bool UpdateDevice(Model.XCCloudRS232.Base_DeviceInfo d)
        {
            BLL.IBLL.XCCloudRS232.IDeviceService deviceService = BLLContainer.Resolve <BLL.IBLL.XCCloudRS232.IDeviceService>();
            bool ret = deviceService.Update(d);

            return(ret);
        }