20220325 列表翻页
This commit is contained in:
parent
f372db34a0
commit
84d4439f84
|
@ -135,6 +135,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
|||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
|
|
|
@ -186,6 +186,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
|||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
|
|
@ -87,7 +87,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||
};
|
||||
if (personLists.Count() > 0)
|
||||
{
|
||||
var personIn = personLists.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.IsUsed == true
|
||||
var personIn = personLists.Where(x => x.ProjectId == project.ProjectId && x.IsUsed == true
|
||||
&& x.InTime <= DateTime.Now && (!x.OutTime.HasValue || x.OutTime > DateTime.Now)).ToList();
|
||||
rootNode.ToolTip = "当前项目人员总数:" + personLists.Count() + ";在场人员数:" + personIn.Count() + ";离场人员数:" + (personLists.Count() - personIn.Count());
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||
rootNode.Expanded = true;
|
||||
rootNode.EnableClickEvent = true;
|
||||
this.tvProjectAndUnit.Nodes.Add(rootNode);
|
||||
GetUnitLists(rootNode.Nodes, this.ProjectId, personLists);
|
||||
GetUnitLists(rootNode.Nodes, project.ProjectId, personLists);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue