public void TestGetSettingDeviceAlarmViewModelByBuildID() { AlarmDeviceOverLimitService service = new AlarmDeviceOverLimitService(); AlarmDeviceOverLimitViewModel ViewModel = service.GetSettingAlarmLimitValueViewModel("000001G001"); Console.WriteLine(UtilTest.GetJson(ViewModel)); }
/// <summary> /// 根据建筑 获取已设置告警列表和未设置的设备列表 /// </summary> /// <param name="buildId"></param> /// <returns></returns> public object Get(string buildId) { try { return(service.GetSettingAlarmLimitValueViewModel(buildId)); } catch (Exception e) { return(e.Message); } }