저장 프로세스 유니버설 DAL 클래스 조회 페이지 데이터 반환 데이터테이블

1892 단어
DAL

#region public DataTable SelectPageing(string feids, int page, int pagesize, int paixu, string where, string paixufeids, string tablename) { SqlParameter[] parms = new SqlParameter[] { new SqlParameter("@FEILDS",SqlDbType.NVarChar,1000), new SqlParameter("@PAGE_INDEX",SqlDbType.Int,10), new SqlParameter("@PAGE_SIZE",SqlDbType.Int,10), new SqlParameter("@ORDERTYPE",SqlDbType.Int,2), new SqlParameter("@ANDWHERE",SqlDbType.VarChar,1000), new SqlParameter("@ORDERFEILD",SqlDbType.VarChar,100), new SqlParameter("@TABLENAME",SqlDbType.VarChar,100) }; parms[0].Value = feids;// parms[1].Value = page;// parms[2].Value = pagesize;// parms[3].Value = paixu;// parms[4].Value = where;// parms[5].Value = paixufeids;// parms[6].Value = tablename;// DataTable dt = new DataTable(); using (SqlDataReader sdr = DBTool.DB.ExecuteReader(CommandType.StoredProcedure, "PAGINATION", parms)) { dt.Load(sdr); } return dt; } #endregion




  BLL
 #region        
        public DataTable SelectPageing(string feids, int page, int pagesize, int paixu, string where, string paixufeids, string tablename)
        {
            return new HZ.DAL.SelectPage().SelectPageing(feids,page,pagesize,paixu,where,paixufeids,tablename);
        }
        #endregion

좋은 웹페이지 즐겨찾기