Parcourir la source

app2.0 会议预计时间开始后不允许签到

临城职教中职
ndbs il y a 2 ans
Parent
révision
c6edce6bd5
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. +6
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingSignInRecord/MeetingSignInRecordService.cs

+ 6
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingSignInRecord/MeetingSignInRecordService.cs Voir le fichier

@@ -224,14 +224,18 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
var meetEntity = this.BaseRepository("CollegeMIS")
.FindEntity<MeetingSignInRecordEntity>(a =>
a.MeetID == scanParamMeetid && a.ParticipantID == scanParamUserid);
if (meetEntity != null)
var date = DateTime.Now;
var meetEntityList = this.BaseRepository("CollegeMIS")
.FindEntity<MeetingManagementEntity>(x => x.Id == scanParamMeetid);
var beginTime = meetEntityList.BeginTime;
if (meetEntityList != null && beginTime > date)
{
meetEntity.IsSignIn = true;
meetEntity.SignInTime = DateTime.Now;
this.BaseRepository("CollegeMIS").Update(meetEntity);
result = true;

}

return result;

}


Chargement…
Annuler
Enregistrer