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)
@@ -1123,7 +1123,7 @@ AND ap.DefaultContentTypeID <> 4
1123
1123
AND ((@answer3 IS NULL) OR ((@answer3 = 'No option selected' OR @answer3 = 'FREETEXTBLANKVALUE') AND (pr.Answer3 IS NULL OR LTRIM(RTRIM(pr.Answer3)) = ''))
1124
1124
OR ((@answer3 = 'FREETEXTNOTBLANKVALUE' AND pr.Answer3 IS NOT NULL AND LTRIM(RTRIM(pr.Answer3)) != '') OR (pr.Answer3 IS NOT NULL AND pr.Answer3 = @answer3)))
1125
1125
1126
-
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%'";
1126
+
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%'";
1127
1127
1128
1128
stringorderBy;
1129
1129
stringsortOrder;
@@ -1631,7 +1631,7 @@ FROM DelegateAccounts AS da
1631
1631
WHERE da.CentreID = @centreId
1632
1632
AND p.CustomisationID = @customisationId
1633
1633
AND ap.DefaultContentTypeID <> 4
1634
-
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%'",
1634
+
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%'",
1635
1635
new{customisationId,centreId}
1636
1636
);
1637
1637
}
@@ -1677,7 +1677,7 @@ AND ap.DefaultContentTypeID <> 4
1677
1677
AND ((@answer3 IS NULL) OR ((@answer3 = 'No option selected' OR @answer3 = 'FREETEXTBLANKVALUE') AND (pr.Answer3 IS NULL OR LTRIM(RTRIM(pr.Answer3)) = ''))
1678
1678
OR ((@answer3 = 'FREETEXTNOTBLANKVALUE' AND pr.Answer3 IS NOT NULL AND LTRIM(RTRIM(pr.Answer3)) != '') OR (pr.Answer3 IS NOT NULL AND pr.Answer3 = @answer3)))
1679
1679
1680
-
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%'";
1680
+
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%'";
1681
1681
1682
1682
1683
1683
varmainSql="SELECT COUNT(*) AS TotalRecords "+fromTableQuery;
@@ -1778,7 +1778,7 @@ AND ap.DefaultContentTypeID <> 4
1778
1778
AND ((@answer3 IS NULL) OR ((@answer3 = 'No option selected' OR @answer3 = 'FREETEXTBLANKVALUE') AND (pr.Answer3 IS NULL OR LTRIM(RTRIM(pr.Answer3)) = ''))
1779
1779
OR ((@answer3 = 'FREETEXTNOTBLANKVALUE' AND pr.Answer3 IS NOT NULL AND LTRIM(RTRIM(pr.Answer3)) != '') OR (pr.Answer3 IS NOT NULL AND pr.Answer3 = @answer3)))
1780
1780
1781
-
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%'";
1781
+
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%'";
1782
1782
1783
1783
stringorderBy;
1784
1784
stringsortOrder;
@@ -1963,7 +1963,7 @@ FROM dbo.CandidateAssessments AS can WITH (NOLOCK)
1963
1963
INNER JOIN Users AS u WITH (NOLOCK) ON u.ID = can.DelegateUserID
1964
1964
LEFT JOIN UserCentreDetails AS ucd WITH (NOLOCK) ON ucd.UserID = u.ID AND ucd.centreID = can.CentreID
1965
1965
WHERE can.CentreID = @centreId AND can.SelfAssessmentID = csa.SelfAssessmentID
1966
-
AND can.RemovedDate IS NULL AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%') AS DelegateCount,
1966
+
AND can.RemovedDate IS NULL AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%') AS DelegateCount,
1967
1967
(Select COUNT(*) FROM
1968
1968
(SELECT can.ID FROM dbo.CandidateAssessments AS can WITH (NOLOCK)
1969
1969
LEFT JOIN dbo.CandidateAssessmentSupervisors AS cas ON can.ID = cas.CandidateAssessmentID
0 commit comments