博 之 文

以 拼 搏 设 计 梦 想 , 以 恒 心 编 程 明 天
  首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

General

Posted on 2012-02-15 15:29  IsNull_Soft  阅读(210)  评论(0编辑  收藏  举报

/// <summary>        

/// 分页查询客户资料(公用)        

/// </summary>        

/// <returns></returns>        

public static DataTable QueryClientPb(SortPage sortPage, string QueryWhere, int EId, int CId)        

{            

//增加传值参数            

  SqlParameter[] Params = SqlHelper.SqlHelper.GetSqlParams("EId,CId,QueryWhere", false, EId, CId, QueryWhere);                      SqlHelper.SqlHelper.AddSortPageParam(ref Params, sortPage, "rowcount");            

  DataTable dt = SqlHelper.SqlHelper.ExecuteDataSet("CL_GetClientPb", Params);            

  sortPage.recordCount = (int)Params[Params.Length - 1].Value;            

   return dt;        

}