20220919版本日志整理,部门人员列表及导出功能调整

This commit is contained in:
2022-09-20 11:47:25 +08:00
parent 01ce3c0381
commit 7412e411a7
25 changed files with 361 additions and 1348 deletions
+16 -2
View File
@@ -88,7 +88,7 @@ namespace FineUIPro.Web.Person
}
}
if (this.CurrUser.PersonId == Const.hfnbdId)
if (this.CurrUser.PersonId == Const.hfnbdId || this.CurrUser.PersonId == Const.sysglyId)
{
this.btnIDCard.Hidden = false;
}
@@ -243,6 +243,8 @@ namespace FineUIPro.Web.Person
protected void btnIDCard_Click(object sender, EventArgs e)
{
int countRecod = 0;
int pCountRecod = 0;
string info=string.Empty;
var getPerson = (from x in Funs.DB.Person_Persons
where x.IdentityCard != null && x.IdentityCard.Length > 1 && !x.Birthday.HasValue && x.IsCardNoOK.Value
select x).Take(1000);
@@ -264,7 +266,19 @@ namespace FineUIPro.Web.Person
Funs.DB.SubmitChanges();
countRecod++;
}
Alert.ShowInTop("操作完成,共处理" + countRecod.ToString() + "条人员信息", MessageBoxIcon.Success);
info = "操作完成,共处理人员按身份证设置年龄" + countRecod.ToString() + "条。";
var getPPersons = (from x in Funs.DB.SitePerson_Person
join y in Funs.DB.Person_Persons on x.PersonId equals y.PersonId
where x.States == Const.ProjectPersonStates_1 && y.CurrentProjectId == null
select x).Take(1000);
foreach (var pitem in getPPersons)
{
SitePerson_PersonItemService.SetPersonItemInOut(pitem);
pCountRecod++;
}
info+= "共处理人员所在当前项目取值" + pCountRecod.ToString() + "条。";
}
}
}