项目现场人员界面调整

This commit is contained in:
2025-12-05 17:46:23 +08:00
parent d50bff015b
commit 2b1680c9bc
3 changed files with 48 additions and 1 deletions
@@ -59,7 +59,7 @@ namespace FineUIPro.Web.DataShow
var query =
from x in db.SitePerson_PersonInOutNow
where x.ChangeTime >= startDate && x.ChangeTime < endDate && x.ProjectId == this.ProjectId
group x by new { x.PersonId, x.ProjectId } into g
group x by new { x.PersonId, x.ProjectId} into g
select new
{
g.Key.PersonId,
@@ -73,12 +73,17 @@ namespace FineUIPro.Web.DataShow
equals new { detail.PersonId, detail.ProjectId, MaxChangeTime = detail.ChangeTime }
join y in db.SitePerson_Person on record.PersonId equals y.PersonId
join z in db.Base_WorkPost on y.WorkPostId equals z.WorkPostId
join u in db.Base_Unit on detail.UnitId equals u.UnitId
join tg in db.ProjectData_TeamGroup on y.TeamGroupId equals tg.TeamGroupId
where detail.IsIn == true
select new
{
PersonId = record.PersonId,
PersonName = y.PersonName,
WorkPostName = z.WorkPostName,
IdentityCard = y.IdentityCard,
UnitName = u.UnitName,
TeamGroupName= tg.TeamGroupName,
ProjectId = record.ProjectId,
ChangeTime = record.MaxChangeTime,
PostType = z.PostType,
@@ -156,5 +161,26 @@ namespace FineUIPro.Web.DataShow
}
#endregion
#region
/// 导出按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnOut_Click(object sender, EventArgs e)
{
Response.ClearContent();
string filename = Funs.GetNewFileName();
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("项目当前现场" + filename+DateTime.Now.ToString("yyyyMMddHHmmss"), System.Text.Encoding.UTF8) + ".xls");
Response.ContentType = "application/excel";
Response.ContentEncoding = System.Text.Encoding.UTF8;
this.Grid1.PageSize = this.Grid1.RecordCount;
BindGrid();
Response.Write(GetGridTableHtml(Grid1));
Response.End();
}
#endregion
}
}