20230324新增集团查看数据跳转页面、现场人员卡号补漏按钮功能

This commit is contained in:
2023-03-24 18:03:17 +08:00
parent 8b0c9fdef0
commit a9feacd3d2
123 changed files with 26137 additions and 50 deletions
@@ -1,4 +1,5 @@
using BLL;
using Microsoft.Office.Core;
using System;
using System.Linq;
@@ -311,5 +312,35 @@ namespace FineUIPro.Web.Person
{
this.BindGrid();
}
protected void btnResetCardNo_Click(object sender, EventArgs e)
{
string projectId = this.drpProject.SelectedValue;
if (projectId != Const._Null)
{
int count = 0;
var getSitePersons = from x in Funs.DB.SitePerson_Person
join y in Funs.DB.EduTrain_TrainRecordDetail on x.PersonId equals y.PersonId
join z in Funs.DB.EduTrain_TrainRecord on y.TrainingId equals z.TrainingId
where x.ProjectId == projectId && z.ProjectId == projectId && (x.CardNo == null || x.CardNo == "")
&& y.CheckResult == true
select x;
if (getSitePersons.Count() > 0)
{
foreach (var person in getSitePersons)
{
SitePerson_PersonService.SendCardNo(person.SitePersonId);
count++;
}
}
Alert.ShowInParent("操作完成!共补卡号" + count.ToString() + "个。", MessageBoxIcon.Information);
BindGrid();
}
else
{
Alert.ShowInParent("请先选择项目!", MessageBoxIcon.Warning);
}
}
}
}