public IHttpActionResult GetEquipmentMonitorData(List <DeviceDataModel> model)
        {
            ReturnItem <List <RetDeviceCurrentData> > r = new ReturnItem <List <RetDeviceCurrentData> >();
            List <RetDeviceCurrentData> listinfo        = new List <RetDeviceCurrentData>();
            DeviceDataBLL data = new DeviceDataBLL();

            foreach (var item in model)
            {
                var get = data.GetCurrentData(item);
                RetDeviceCurrentData info = new RetDeviceCurrentData();
                if (get.Data == null)
                {
                    info.DeviceId     = item.DeviceID;
                    info.DeviceItemId = item.DeviceItemID;
                    info.Value        = "暂无数据";
                }
                else if (get.Data != null && get.Data.Data.Count > 0)
                {
                    info.DeviceId     = item.DeviceID;
                    info.DeviceItemId = item.DeviceItemID;
                    info.Value        = get.Data.Data[0].ToString();
                }
                //data.setAirRank(info);
                listinfo.Add(info);
            }
            data.setAirRank(listinfo);
            r.Data = listinfo;
            r.Msg  = "数据获取成功";
            r.Code = 0;
            return(InspurJson <List <RetDeviceCurrentData> >(r));
        }
        public IHttpActionResult GetAlarmDetailData(DeviceDataModel model)
        {
            DeviceDataBLL data = new DeviceDataBLL();
            var           get  = data.GetCurrentData(model);

            return(InspurJson <RetDeviceTableData>(get));
        }