1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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<Mem_DataDictory> getDatas(string filter="")
- {
- #region 获取机构列表
- DataTable dt = new DataTable();
- string result;
- IList<Mem_DataDictory> permss = new List<Mem_DataDictory>(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<T>
- permss = ModelConvertHelper<Mem_DataDictory>.ConvertToModel(dt);
- }
- return permss;
- }
- }
- }
|