分頁邏輯處理類 pagecollection.cs
1view codeusing
system;
2using
system.collections.generic;
3using
system.linq;
4using
system.text;56
namespace
common717
///18
///當前頁面
19///
20public
int currentpage
21///
22///
每頁的記錄數
23///
24public
int onepagesize
25///
26///
總記錄數
27///
28public
long totalrows
29///
30///
排序31
///32
public
string orderby
3334
///35
///構造無參預設為最大數
36///
37public
pagecollection()
3842}43
///44
///分頁邏輯處理類 linq to entites
45///
46public
class pageinfowhere tentity : class
4761
else
6269
if (index >=maxpage)
7076
else
7781}82
}8384public
int index
85public
int pagesize
86public
int count
87public listlist
88public
string url
89public
int beginpage
90public
int endpage 91}
9293
///94
///分頁邏輯處理類 dynamic
95///
96public
class
pageinfo
97111
else
112119
if (index >=maxpage)
120126
else
127131
}132
}133
134public
int index
135public
int pagesize
136public
int count
137public
dynamic list
138public
string url
139public
int beginpage
140public
int endpage
141}
142143
///144
///eazyui分頁處理邏輯類
145///
146public
class
pageeazyui
147155
156public
int page
157public
int pagesize
158public
int total
159public
object rows
160}
161 }
C 公共幫助類 Image幫助類
大家知道,開發專案除了資料訪問層很重要外,就是common了,這裡就提供了強大且實用的工具。c 公共幫助類 convert幫助類 image類 using system using system.collections.generic using system.text using system.i...
C 公共類 快取幫助類 (備忘)
using system using system.collections.generic using system.text using system.threading namespace librarycommon endregion region work method static voi...
php mysql 公共分頁類
pagesize 5 每頁條數 page page 1 1 page start page 1 pagesize 起始條數 資訊列表 menulist this conn getlist tb admin manager where,order by fid limit start,pagesize...