You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DigitalLearningSolutions.Data/DataServices/CourseDataService.cs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ LEFT JOIN UserCentreDetails AS ucd WITH (NOLOCK) ON ucd.UserID = da.UserID AND u
153
153
WHERE pr.CustomisationID = cu.CustomisationID
154
154
AND can.CentreID = @centreId
155
155
AND RemovedDate IS NULL
156
-
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%') AS DelegateCount";
156
+
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%') AS DelegateCount";
157
157
158
158
privateconststringCompletedCountQuery=
159
159
@"(SELECT COUNT(pr.CandidateID)
@@ -164,7 +164,7 @@ INNER JOIN dbo.Users AS u WITH (NOLOCK) ON u.ID = da.UserID
164
164
LEFT JOIN UserCentreDetails AS ucd WITH (NOLOCK) ON ucd.UserID = da.UserID AND ucd.centreID = da.centreID
165
165
WHERE pr.CustomisationID = cu.CustomisationID AND pr.Completed IS NOT NULL
166
166
AND can.CentreID = @centreId
167
-
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%') AS CompletedCount";
167
+
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%') AS CompletedCount";
168
168
169
169
privateconststringAllAttemptsQuery=
170
170
@"(SELECT COUNT(aa.AssessAttemptID)
@@ -1124,7 +1124,7 @@ AND ap.DefaultContentTypeID <> 4
1124
1124
AND ((@answer3 IS NULL) OR ((@answer3 = 'No option selected' OR @answer3 = 'FREETEXTBLANKVALUE') AND (pr.Answer3 IS NULL OR LTRIM(RTRIM(pr.Answer3)) = ''))
1125
1125
OR ((@answer3 = 'FREETEXTNOTBLANKVALUE' AND pr.Answer3 IS NOT NULL AND LTRIM(RTRIM(pr.Answer3)) != '') OR (pr.Answer3 IS NOT NULL AND pr.Answer3 = @answer3)))
1126
1126
1127
-
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%'";
1127
+
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%'";
1128
1128
1129
1129
stringorderBy;
1130
1130
stringsortOrder;
@@ -1632,7 +1632,7 @@ FROM DelegateAccounts AS da
1632
1632
WHERE da.CentreID = @centreId
1633
1633
AND p.CustomisationID = @customisationId
1634
1634
AND ap.DefaultContentTypeID <> 4
1635
-
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%'",
1635
+
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%'",
1636
1636
new{customisationId,centreId}
1637
1637
);
1638
1638
}
@@ -1678,7 +1678,7 @@ AND ap.DefaultContentTypeID <> 4
1678
1678
AND ((@answer3 IS NULL) OR ((@answer3 = 'No option selected' OR @answer3 = 'FREETEXTBLANKVALUE') AND (pr.Answer3 IS NULL OR LTRIM(RTRIM(pr.Answer3)) = ''))
1679
1679
OR ((@answer3 = 'FREETEXTNOTBLANKVALUE' AND pr.Answer3 IS NOT NULL AND LTRIM(RTRIM(pr.Answer3)) != '') OR (pr.Answer3 IS NOT NULL AND pr.Answer3 = @answer3)))
1680
1680
1681
-
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%'";
1681
+
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%'";
1682
1682
1683
1683
1684
1684
varmainSql="SELECT COUNT(*) AS TotalRecords "+fromTableQuery;
@@ -1779,7 +1779,7 @@ AND ap.DefaultContentTypeID <> 4
1779
1779
AND ((@answer3 IS NULL) OR ((@answer3 = 'No option selected' OR @answer3 = 'FREETEXTBLANKVALUE') AND (pr.Answer3 IS NULL OR LTRIM(RTRIM(pr.Answer3)) = ''))
1780
1780
OR ((@answer3 = 'FREETEXTNOTBLANKVALUE' AND pr.Answer3 IS NOT NULL AND LTRIM(RTRIM(pr.Answer3)) != '') OR (pr.Answer3 IS NOT NULL AND pr.Answer3 = @answer3)))
1781
1781
1782
-
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%'";
1782
+
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%'";
1783
1783
1784
1784
stringorderBy;
1785
1785
stringsortOrder;
@@ -1964,7 +1964,7 @@ FROM dbo.CandidateAssessments AS can WITH (NOLOCK)
1964
1964
INNER JOIN Users AS u WITH (NOLOCK) ON u.ID = can.DelegateUserID
1965
1965
LEFT JOIN UserCentreDetails AS ucd WITH (NOLOCK) ON ucd.UserID = u.ID AND ucd.centreID = can.CentreID
1966
1966
WHERE can.CentreID = @centreId AND can.SelfAssessmentID = csa.SelfAssessmentID
1967
-
AND can.RemovedDate IS NULL AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%') AS DelegateCount,
1967
+
AND can.RemovedDate IS NULL AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%') AS DelegateCount,
1968
1968
(Select COUNT(*) FROM
1969
1969
(SELECT can.ID FROM dbo.CandidateAssessments AS can WITH (NOLOCK)
1970
1970
LEFT JOIN dbo.CandidateAssessmentSupervisors AS cas ON can.ID = cas.CandidateAssessmentID
0 commit comments