20210807
This commit is contained in:
@@ -35,7 +35,7 @@ namespace BLL
|
||||
/// <param name="PageSize">每页数量</param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string projectId, string unitId, string personName, string identityCard, string treamGroupId, string workPostIds,
|
||||
bool ckTrain, bool ckIspost, bool ckJT, bool ckIdCardInfoNotOK, Grid Grid1)
|
||||
bool ckTrain, string postType, bool ckJT, bool ckIdCardInfoNotOK, Grid Grid1)
|
||||
{
|
||||
IQueryable<Model.View_SitePerson_Person> getPersonList = getPersonLists.Where(x => x.ProjectId == projectId);
|
||||
if (!string.IsNullOrEmpty(unitId))
|
||||
@@ -69,11 +69,16 @@ namespace BLL
|
||||
{
|
||||
getPersonList = getPersonList.Where(x => x.TrainCount == 0);
|
||||
}
|
||||
if (ckIspost)
|
||||
if (postType =="0")
|
||||
{
|
||||
getPersonList = getPersonList.Where(x => x.IsUsed == false || x.InTime.Value > DateTime.Now
|
||||
|| (x.OutTime.HasValue && x.OutTime < DateTime.Now));
|
||||
}
|
||||
else if (postType == "1")
|
||||
{
|
||||
getPersonList = getPersonList.Where(x => x.IsUsed == true && x.InTime <=DateTime.Now && (!x.OutTime.HasValue || x.OutTime.Value >DateTime.Now));
|
||||
}
|
||||
|
||||
if (ckJT)
|
||||
{
|
||||
getPersonList = getPersonList.Where(x => x.RealNameAddTime == null);
|
||||
|
||||
@@ -917,9 +917,9 @@ namespace BLL
|
||||
join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
|
||||
join w in Funs.DB.Base_WorkPost on x.WorkPostId equals w.WorkPostId
|
||||
where ((x.IdentityCard != null && x.IdentityCard != "" && identityCard == null) || (identityCard != null && x.IdentityCard == identityCard))
|
||||
&& y.JTProjectCode == proCode
|
||||
&& y.JTProjectCode == proCode
|
||||
&& v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0
|
||||
&& ((type == Const.BtnModify && !x.RealNameUpdateTime.HasValue) || (type != Const.BtnModify && !x.RealNameAddTime.HasValue))
|
||||
&& ((type == Const.BtnModify && !x.RealNameUpdateTime.HasValue) || (type != Const.BtnModify && !x.RealNameAddTime.HasValue && x.IsUsed && !x.OutTime.HasValue))
|
||||
&& (x.IdentityCard.Length == 15 || x.IdentityCard.Length == 18)
|
||||
select new
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user