using LeaRun.Application.Code; using LeaRun.Application.Entity.NBManage; using LeaRun.Data; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LeaRun.Application.Service.NBManage { public class AlarmHisService { SqlHelper sqlHelper = new SqlHelper("NBDB"); /// /// 查询所有的报警类型 /// /// public DataTable GetAllAlermTypes() { string selSql = "SELECT * FROM dbo.RMRS_AlarmType"; DataTable dtResult = sqlHelper.ExecuteDataTable(selSql,CommandType.Text,null); return dtResult; } } }