/// <summary>
/// 分页获取数据列表
/// </summary>
public DataSet GetList( int pageSize, int pageIndex, string strWhere, bool isCount)
{
SqlParameter[] parameters = {
new SqlParameter( "@tblName" , SqlDbType.VarChar, 255),
new SqlParameter( "@fldName" , SqlDbType.VarChar, 255),
new SqlParameter( "@pageSize" , SqlDbType.Int),
new SqlParameter( "@pageIndex" , SqlDbType.Int),
new SqlParameter( "@IsReCount" , SqlDbType.Bit),
new SqlParameter( "@OrderType" , SqlDbType.Bit),
new SqlParameter( "@strWhere" , SqlDbType.VarChar,1000),
};
parameters[0].Value = "Whir_MemberDownRuleValue" ;
parameters[1].Value = "MemberLever" ;
parameters[2].Value = pageSize;
parameters[3].Value = pageIndex;
if (isCount){
parameters[4].Value = 1;
}
else {
parameters[4].Value = 0;
}
parameters[5].Value = 0;
parameters[6].Value = strWhere;
return DbHelperSQL.RunProcedure( "UP_GetRecordByPage" ,parameters, "ds" );
}
|