using Common.Model; using CoreEntity.Entity; using System; using System.Collections.Generic; using System.Data; using System.Text; using ZcPeng.PublicLibrary; namespace CoreEntity.DAL { public class Mem_DataDictoryDAL { public static IList getDatas(string filter="") { #region 获取机构列表 DataTable dt = new DataTable(); string result; IList permss = new List(0); string commandText1 = "select A.*" + " from Mem_DataDictory as A " + " where 1=1 " +filter + " ORDER BY A.Value desc"; bool success = DataAccess.GetValues(commandText1, ref dt, null, out result); #endregion if (dt != null && dt.Rows.Count > 0) { // 把DataTable转换为IList permss = ModelConvertHelper.ConvertToModel(dt); } return permss; } } }