using System.Data;
using Stat.DBUtility;
namespace Stat.SQLServerDAL
{
    /// <summary>
    /// 
    /// </summary>
    class ViewEnginePageIndex : IDAL.IViewEnginePageIndex
    {
        /// <summary>
        /// 获取列表（分页）
        /// </summary>

        public DataTable GetList(ref global::Stat.Model.PageInfo pageInfo)
        {
            string sqlWhere = "1=1";
            int recordCount = 0;

            DataTable dt = JPageIndex.ProGetList.GetFromDataTable("Stat_ViewEngine", "*", sqlWhere, "id", 0, pageInfo.PageSize, pageInfo.PageIndex, ref recordCount, "Stat_PageIndex",SqlHelper.ConnectionStringMaster);


            pageInfo.RecordCount = recordCount;

            return dt;
        }
    }
}
