人员考勤
This commit is contained in:
parent
2471c8b18b
commit
16cbb25ead
|
|
@ -162,8 +162,24 @@ namespace FineUIPro.Web.Door
|
||||||
List<string> resId = new List<string>();
|
List<string> resId = new List<string>();
|
||||||
if (tbres != null)
|
if (tbres != null)
|
||||||
{
|
{
|
||||||
foreach(DataRow row in tbres.Rows)
|
int pageIndex = Grid1.PageIndex;
|
||||||
|
int pageSize = Grid1.PageSize;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
int rowbegin = pageIndex * pageSize;
|
||||||
|
int rowend = (pageIndex + 1) * pageSize;
|
||||||
|
if (rowend > tbres.Rows.Count)
|
||||||
{
|
{
|
||||||
|
rowend = tbres.Rows.Count;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = rowbegin; i < rowend; i++)
|
||||||
|
{
|
||||||
|
|
||||||
|
DataRow row = tbres.Rows[i];
|
||||||
resId.Add(row["NewID"].ToString());
|
resId.Add(row["NewID"].ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -173,7 +189,7 @@ namespace FineUIPro.Web.Door
|
||||||
|
|
||||||
DataTable tb = SQLHelper.GetDataTableRunText(sqlData, null);
|
DataTable tb = SQLHelper.GetDataTableRunText(sqlData, null);
|
||||||
Grid1.RecordCount = tbres.Rows.Count;
|
Grid1.RecordCount = tbres.Rows.Count;
|
||||||
//var table = this.GetPagedDataTable(Grid1, tb);
|
var table = this.GetPagedDataTable(Grid1, tb);
|
||||||
this.OutputSummaryData(tbres); ///取合计值
|
this.OutputSummaryData(tbres); ///取合计值
|
||||||
|
|
||||||
Grid1.DataSource = tb;
|
Grid1.DataSource = tb;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue