20230324新增集团查看数据跳转页面、现场人员卡号补漏按钮功能
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user