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