Esempio n. 1
0
        public void LoadAttendanceList()
        {
            dgvAttendances.Rows.Clear();

            var searchDto = new SearchDto()
            {
                SearchBy   = comboSearchBy.Text,
                SearchText = txtSearchText.Text,
                PlaceId    = Helpers.PlaceHelper.PlaceId
            };

            var attendances = AttendanceRepository.GetAttendanceBySearchParameter(searchDto);


            foreach (var attendance in attendances)
            {
                dgvAttendances.Rows.Add(attendance.Name,
                                        attendance.VisitedDateTime,
                                        attendance.Temperature,
                                        attendance.Location,
                                        attendance.AttendeeRFID,
                                        attendance.Status,
                                        attendance.Id,
                                        attendance.AttendeeId);
            }
        }