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 @@ -65,6 +65,7 @@ FROM SelfAssessmentResults as sar1 INNER JOIN
SELECT
sa.Name AS SelfAssessment
, can.LastName + ', ' + can.FirstName AS Learner
, can.Active AS LearnerActive
, can.ProfessionalRegistrationNumber AS PRN
, jg.JobGroupName AS JobGroup
, CASE WHEN c.CustomField1PromptID = 10 THEN can.Answer1 WHEN c.CustomField2PromptID = 10 THEN can.Answer2 WHEN c.CustomField3PromptID = 10 THEN can.Answer3 WHEN c.CustomField4PromptID = 10 THEN can.Answer4 WHEN c.CustomField5PromptID = 10 THEN can.Answer5 WHEN c.CustomField6PromptID = 10 THEN can.Answer6 ELSE '' END AS 'ProgrammeCourse'
Expand Down Expand Up @@ -102,6 +103,7 @@ SelfAssessments AS sa INNER JOIN
(sa.ID = @SelfAssessmentID) AND (sa.ArchivedDate IS NULL) AND (c.Active = 1) AND (ca.RemovedDate IS NULL)
Group by sa.Name
, can.LastName + ', ' + can.FirstName
, can.Active
, can.ProfessionalRegistrationNumber
, c.CustomField1PromptID
, c.CustomField2PromptID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ public class SelfAssessmentReportData
{
public string? SelfAssessment { get; set; }
public string? Learner { get; set; }
public bool LearnerActive { get; set; }
public string? PRN { get; set; }
public string? JobGroup { get; set; }
public string? ProgrammeCourse { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public byte[] GetSelfAssessmentExcelExportForCentre(int centreId, int selfAssess
{
x.SelfAssessment,
x.Learner,
x.LearnerActive,
x.PRN,
x.JobGroup,
x.ProgrammeCourse,
Expand Down