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 PayPlatFormDAL { public static IList getPayTerms() { #region 获取机构列表 DataTable dt = new DataTable(); string result; IList permss = new List(0); string commandText1 = "select A.*" + " from Mem_PayPlatform as A " + " where 1=1 " + " ORDER BY A.PayPlatFormKey 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; } } }