Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ FROM AdminAccounts aa
c.CentreName,
da.CentreID,
da.DateRegistered,
da.LastAccessed,
da.RegistrationConfirmationHash,
c.Active AS CentreActive,
COALESCE(ucd.Email, u.PrimaryEmail) AS EmailAddress,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class DelegateDownloadFileService : IDelegateDownloadFileService
private const string ProfessionalRegistrationNumber = "Professional Registration Number";
private const string JobGroup = "Job group";
private const string RegisteredDate = "Registered";
private const string LastAccessed = "Last Accessed";
private const string RegistrationComplete = "Registration complete";
private const string Active = "Active";
private const string Approved = "Approved";
Expand Down Expand Up @@ -333,6 +334,7 @@ DataTable dataTable
new DataColumn(ProfessionalRegistrationNumber),
new DataColumn(JobGroup),
new DataColumn(RegisteredDate),
new DataColumn(LastAccessed),
}
);

Expand Down Expand Up @@ -374,7 +376,7 @@ CentreRegistrationPrompts registrationPrompts
);
row[JobGroup] = delegateRecord.JobGroupName;
row[RegisteredDate] = delegateRecord.DateRegistered?.Date;

row[LastAccessed] = delegateRecord.LastAccessed?.Date;
var delegateAnswers = delegateRecord.GetRegistrationFieldAnswers();

foreach (var prompt in registrationPrompts.CustomPrompts)
Expand Down Expand Up @@ -402,7 +404,7 @@ CentreRegistrationPrompts registrationPrompts
private static void FormatAllDelegateWorksheetColumns(IXLWorkbook workbook, DataTable dataTable)
{
ClosedXmlHelper.FormatWorksheetColumn(workbook, dataTable, RegisteredDate, XLDataType.DateTime);

ClosedXmlHelper.FormatWorksheetColumn(workbook, dataTable, LastAccessed, XLDataType.DateTime);
var boolColumns = new[] { RegistrationComplete, Active, Approved, IsAdmin };
foreach (var columnName in boolColumns)
{
Expand Down
Loading