62,046
社区成员
发帖
与我相关
我的任务
分享
public static string ConnectionString
{
get { return ConfigurationManager.ConnectionStrings["ManageDB"].ConnectionString; }
}
public static DBExecute<SqlConnection, SqlCommand> SqlExecute
{
get { return new DBExecute<SqlConnection, SqlCommand>(ConnectionString); }
}
public static uint GetCurrentPage
{
get { return Other.RequestPage(HttpContext.Current.Request.QueryString["Page"]); }
}
public static uint GetCurrentPageShowNum
{
get { return Other.RequestPage(HttpContext.Current.Request.QueryString["PageShowNum"]); }
}
public static string GetCurrentUrl
{
get { return HttpContext.Current.Request.CurrentExecutionFilePath; }
}
public static PageParameter GetPageParameter
{
get
{
PageParameter pp = new PageParameter();
pp.ConnectionString = ConnectionString;
pp.DataBaseType = DataBaseType.SqlServer2000;
pp.CommandType = CommandType.StoredProcedure;
pp.CurrentPagePre = 0;
pp.CurrentPageShowNum = GetCurrentPageShowNum;
pp.PageShowNum = 25;
pp.PageSize = 50;
pp.PageType = PageType.ZLText;
pp.CurrentPage = GetCurrentPage;
pp.Url = GetCurrentUrl;
pp.Fields = "*";
pp.Key = "id";
pp.Order = "addDate DESC";
pp.Where = string.Empty;
return pp;
}
}