/// <summary> /// 创建人:张辽阔 /// 创建时间:2016-07-30 /// 创建记录:获取设备信息 /// </summary> /// <param name="devID">设备ID</param> /// <param name="msID">测量位置ID</param> /// <param name="samplingDate">采集时间</param> /// <param name="chartID">控件ID</param> /// <returns></returns> /// 修改: QXM 1.轴承信息从测点表关联查询;2.添加返回轴承厂商信息 public BaseResponse <DeviceInfoResult> GetDeviceInfo(DeviceInfoParameter parameter) { if (ValidateData <DeviceInfoParameter>(parameter)) { //return ""; //缺少依赖注入 return(diagnostiControlManager.GetDeviceInfo(parameter)); } else { BaseResponse <DeviceInfoResult> result = new BaseResponse <DeviceInfoResult>(); result.IsSuccessful = false; result.Code = "000421"; LogHelper.WriteLog(string.Format("未通过安全验证:({0}:{1}", result.Code, result.Reason)); return(result); } }
public OpenClErrorCode clGetDeviceInfo(IntPtr device, DeviceInfoParameter parameter, uint pValueSize, IntPtr paramValue, out uint paramValueSizeRet) { paramValueSizeRet = clGetDeviceInfoParamValueSizeRet; return(clGetDeviceInfoResult ?? 0); }
OpenClErrorCode IDeviceApi.clGetDeviceInfo(IntPtr device, DeviceInfoParameter parameter, uint pValueSize, IntPtr paramValue, out uint paramValueSizeRet) { return(clGetDeviceInfo(device, parameter, pValueSize, paramValue, out paramValueSizeRet)); }
public static extern OpenClErrorCode clGetDeviceInfo(IntPtr device, DeviceInfoParameter parameter, uint pValueSize, IntPtr paramValue, out uint paramValueSizeRet);