/// <summary> /// 根据目获取日志科 /// </summary> /// <param name="section">目</param> /// <returns></returns> public List <Logs> GetLogFamliyBySection(int section) { var dataList = LogsMgtDA.GetLogCategorys(); if (dataList != null && dataList.Count > 0) { return(dataList.FindAll(m => m.ParentSysNo == section)); } return(null); }
/// <summary> /// 根据纲获取日志目 /// </summary> /// <param name="classes">纲</param> /// <returns></returns> public List <Logs> GetLogSectionByClasses(int classes) { var dataList = LogsMgtDA.GetLogCategorys(); if (dataList != null && dataList.Count > 0) { return(dataList.FindAll(m => m.ParentSysNo == classes)); } return(null); }
/// <summary> /// 查询日志 /// </summary> /// <param name="filter">查询条件</param> /// <returns></returns> public QueryResult <Logs> QueryLogs(LogsQueryFilter filter) { return(LogsMgtDA.QueryLogs(filter)); }
/// <summary> /// 添加日志 /// </summary> /// <param name="entity">日志信息</param> /// <returns></returns> public int InsertLogs(Logs entity) { return(LogsMgtDA.InsertLogs(entity)); }