Example #1
0
        /// <summary>
        /// 根据种类获取测点
        /// </summary>
        /// <param name="alarmRequest"></param>
        /// <returns></returns>
        public BasicResponse <DataTable> GetPointByClass(GetPointByClassRequest alarmRequest)
        {
            var response = new BasicResponse <DataTable>();

            try
            {
                response.Data = _Repository.GetPointByClass(alarmRequest.sClass);
            }
            catch (Exception ex)
            {
                response.Code    = -100;
                response.Message = ex.Message;
                this.ThrowException("根据种类获取测点", ex);
            }

            return(response);
        }