예제 #1
0
  private void setAttendance(CommitteeSchedule committeeSchedule, Schedule schedule) {
    List<CommitteeScheduleAttendanceBase> attendenceList =
        committeeSchedule.getCommitteeScheduleAttendances();
    for (CommitteeScheduleAttendanceBase attendanceInfoBean : attendenceList) {
      Attendents attendents = schedule.addNewAttendents();
      attendents.setAttendentName(attendanceInfoBean.getPersonName());
      attendents.setAlternateFlag(attendanceInfoBean.getAlternateFlag());
      attendents.setGuestFlag(attendanceInfoBean.getGuestFlag());
      attendents.setAlternateFor(attendanceInfoBean.getAlternateFor());
      attendents.setPresentFlag(true);
    }

    List<CommitteeMembershipBase> committeeMemberships =
        committeeSchedule.getParentCommittee().getCommitteeMemberships();
    for (CommitteeMembershipBase committeeMembership : committeeMemberships) {
      if (!getCommitteeMembershipService()
          .isMemberAttendedMeeting(
              committeeMembership, committeeSchedule.getParentCommittee().getCommitteeId())) {
        Attendents attendents = schedule.addNewAttendents();
        attendents.setAttendentName(committeeMembership.getPersonName());
        attendents.setAlternateFlag(false);
        attendents.setGuestFlag(false);
        attendents.setPresentFlag(false);
      }
    }
  }
 private boolean isProtocolPersonnel(ProtocolBase protocol, CommitteeMembershipBase member) {
   return getPersonnelIds(protocol).contains(member.getPersonId());
 }