diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index ebb5cdbd49..0c24271952 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,22 +1,25 @@ ### JIRA link -_DLSV2-XXXX_ +[TD-####](https://hee-tis.atlassian.net/browse/TD-####) ### Description -_Describe what has changed and how that will affect the app. If relevant, add references to the resources you used. Use this as your opportunity to highlight anything odd and give people context around particular decisions._ +_Describe what has changed and how that will affect the app. If relevant, add links to any sources/documentation you used. Highlight anything unusual and give people context around particular decisions._ ### Screenshots -_Attach screenshots on mobile, tablet and desktop._ +_Paste screenshots for all views created or changed: mobile, tablet and desktop, wave analyser showing no errors._ ----- ### Developer checks (Leave tasks unticked if they haven't been appropriate for your ticket.) I have: -- [ ] Run the formatter and made sure there are no IDE errors (see [info on Text Editor settings](https://hee-tis.atlassian.net/wiki/spaces/TP/pages/3546185813/DLS+Dev+Process) to avoid whitespace changes) -- [ ] Written tests for the changes (accessibility tests, unit tests for controller, data services, services, view models, etc) -- [ ] Manually tested my work with and without JavaScript -- [ ] Tested any Views or partials created or changed with [Wave Chrome plugin](https://chrome.google.com/webstore/detail/wave-evaluation-tool/jbbplnpkjmmeebjpijfedlgcdilocofh/related) and addressed any valid accessibility issues -- [ ] Updated/added documentation in [Confluence](https://hee-tis.atlassian.net/wiki/spaces/TP/pages/3546939432/DLS+Code) and/or [GitHub Readme](https://github.com/TechnologyEnhancedLearning/DLSV2/blob/master/README.md). List of documentation links added/changed: +- [ ] Run the IDE auto formatter on all files I’ve worked on and made sure there are no IDE errors relating to them +- [ ] Written or updated tests for the changes (accessibility ui tests for views, tests for controller, data services, services, view models created or modified) and made sure all tests are passing +- [ ] Manually tested my work with and without JavaScript (adding notes where functionality requires JavaScript) +- [ ] Tested any Views or partials created or changed with [Wave Chrome plugin](https://chrome.google.com/webstore/detail/wave-evaluation-tool/jbbplnpkjmmeebjpijfedlgcdilocofh/related). Addressed any valid accessibility issues and documented any invalid errors +- [ ] Updated my Jira ticket with testing notes, including information about other parts of the system that were touched as part of the MR and need to be tested to ensure nothing is broken +- [ ] Scanned over my pull request in GitHub and addressed any warnings from the GitHub Build and Test checks in the GitHub PR ‘Files Changed’ tab +Either: +- [ ] Documented my work in [Confluence](https://hee-tis.atlassian.net/wiki/spaces/TP/pages/3461087233/Development), updating any business rules applied or modified. Updated GitHub readme/documentation for the repository if appropriate. List of documentation links added/changed: - [doc_1_here](link_1_here) -- [ ] Updated my Jira ticket with information about other parts of the system that were touched as part of the MR and have to be sanity tested to ensure nothing’s broken -- [ ] Scanned over my pull request in GitHub and addressed any warnings from the GitHub Build and Test checks. +Or: +- [ ] Confirmed that none of the work that I have undertaken requires any updates to documentation diff --git a/DigitalLearningSolutions.Data.Migrations/202410231405_Alter_GetActivitiesForDelegateEnrolment.cs b/DigitalLearningSolutions.Data.Migrations/202410231405_Alter_GetActivitiesForDelegateEnrolment.cs new file mode 100644 index 0000000000..13840992ba --- /dev/null +++ b/DigitalLearningSolutions.Data.Migrations/202410231405_Alter_GetActivitiesForDelegateEnrolment.cs @@ -0,0 +1,19 @@ + + +namespace DigitalLearningSolutions.Data.Migrations +{ + using FluentMigrator; + + [Migration(202410231405)] + public class Alter_GetActivitiesForDelegateEnrolment : Migration + { + public override void Up() + { + Execute.Sql(Properties.Resources.TD_4878_Alter_GetActivitiesForDelegateEnrolment_Up); + } + public override void Down() + { + Execute.Sql(Properties.Resources.TD_4878_Alter_GetActivitiesForDelegateEnrolment_Down); + } + } +} diff --git a/DigitalLearningSolutions.Data.Migrations/Properties/Resources.Designer.cs b/DigitalLearningSolutions.Data.Migrations/Properties/Resources.Designer.cs index e614a4a7ca..330a60292a 100644 --- a/DigitalLearningSolutions.Data.Migrations/Properties/Resources.Designer.cs +++ b/DigitalLearningSolutions.Data.Migrations/Properties/Resources.Designer.cs @@ -1,2487 +1,2489 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace DigitalLearningSolutions.Data.Migrations.Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DigitalLearningSolutions.Data.Migrations.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/10/2020 - ///-- Description: Updates a customisation based on form values - ///-- V2 Adds @CCEmail - ///-- V3 Adds ApplyLPDefaultsToSelfEnrol - ///-- ============================================= - ///CREATE PROCEDURE [dbo].[UpdateCustomisation_V3] - /// -- Add the parameters for the stored procedure here - /// @CustomisationID As Int, - /// @Active as bit, - /// @CustomisationName as nvarcha [rest of string was truncated]";. - /// - internal static string ApplyLPDefaultsSPChanges { - get { - return ResourceManager.GetString("ApplyLPDefaultsSPChanges", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to <div class=nhsuk-u-reading-width><h2>What are cookies?</h2><p>Cookies are files saved on your phone, tablet or computer when you visit a website.<p>They store information about how you use the website, such as the pages you visit.<p>Cookies are not viruses or computer programs. They are very small so do not take up much space.<h2>How we use cookies</h2><p>We only use cookies to:<ul><li>make our website work<li>measure how you use our website, such as which links you click on (analytics cookies), if you give [rest of string was truncated]";. - /// - internal static string CookiePolicy { - get { - return ResourceManager.GetString("CookiePolicy", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to -- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 04/01/2021 - ///-- Description: Reorders the FrameworkCompetencyGroups in a given Framework - moving the given group up or down. - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE [dbo].[ReorderFrameworkCompetencyGroup] - /// -- Add the parameters for the stored procedure here - /// @FrameworkCompetencyGroupID int, - /// @Direction nvarchar(4) = '', - /// @SingleStep bit - ///AS - ///BEGIN - /// -- SET NOCOUNT ON added [rest of string was truncated]";. - /// - internal static string CreateOrAlterReorderFrameworkCompetenciesAndGroupsSPs { - get { - return ResourceManager.GetString("CreateOrAlterReorderFrameworkCompetenciesAndGroupsSPs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[InsertCustomisation_V3] Script Date: 20/11/2020 14:12:52 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 28 February 2020 - ///-- V2 Adds @CCCompletion field - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE [dbo].[InsertCustomisation_V3] - /// @Active as bit, - /// @ApplicationID as int, - /// @CentreID as int, - /// @CustomisationName as nvarch [rest of string was truncated]";. - /// - internal static string DLSV2_106_CreateOrAlterInsertCustomisation_V3 { - get { - return ResourceManager.GetString("DLSV2_106_CreateOrAlterInsertCustomisation_V3", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[InsertCustomisation_V3] Script Date: 20/11/2020 14:12:52 ******/ - ///DROP PROCEDURE [dbo].[InsertCustomisation_V3] - ///GO - /// - /// - ///. - /// - internal static string DLSV2_106_DropInsertCustomisation_V3 { - get { - return ResourceManager.GetString("DLSV2_106_DropInsertCustomisation_V3", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetFilteredCompetencyResponsesForCandidate] Script Date: 22/09/2020 09:22:43 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/09/2020 - ///-- Description: Returns user self assessment responses (AVG) for Filtered competency - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE [dbo].[GetFilteredCompetencyResponsesForCandidate] - /// -- Add t [rest of string was truncated]";. - /// - internal static string DLSV2_133_AdjustScoresForFilteredSP { - get { - return ResourceManager.GetString("DLSV2_133_AdjustScoresForFilteredSP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetFilteredCompetencyResponsesForCandidate] Script Date: 22/09/2020 09:22:43 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/09/2020 - ///-- Description: Returns user self assessment responses (AVG) for Filtered competency - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE [dbo].[GetFilteredCompetencyResponsesForCandidate] - /// -- Add t [rest of string was truncated]";. - /// - internal static string DLSV2_133_UnAdjustScoresForFilteredSP { - get { - return ResourceManager.GetString("DLSV2_133_UnAdjustScoresForFilteredSP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - ////****** Object: UserDefinedFunction [dbo].[GetSelfAssessmentSummaryForCandidate] Script Date: 28/01/2021 07:45:22 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///CREATE OR ALTER FUNCTION [dbo].[GetSelfAssessmentSummaryForCandidate] - ///( - /// @CandidateID int, - /// @SelfAssessmentID int - ///) - ///RETURNS @ResTable TABLE - ///( - /// CompetencyGroupID int, - /// Confidence float, - /// Relevance float - ///) - /// - ///AS - ///BEGIN - ///INSERT INTO @ResTable - /// SELECT CompetencyGroupID, [1] AS Confidence, [2] AS Relevance - ///FROM [rest of string was truncated]";. - /// - internal static string DLSV2_153_DropFilteredFunctionTweak { - get { - return ResourceManager.GetString("DLSV2_153_DropFilteredFunctionTweak", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - /// - ////****** Object: StoredProcedure [dbo].[GetFilteredCompetencyResponsesForCandidate] Script Date: 27/01/2021 16:01:15 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/09/2020 - ///-- Description: Returns user self assessment responses (AVG) for Filtered competency - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE [dbo].[GetFilteredCompetencyResponsesForCandidate] - /// [rest of string was truncated]";. - /// - internal static string DLSV2_153_DropFilteredSPFixes { - get { - return ResourceManager.GetString("DLSV2_153_DropFilteredSPFixes", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[GetSelfAssessmentSummaryForCandidate] Script Date: 28/01/2021 07:43:39 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///CREATE OR ALTER FUNCTION [dbo].[GetSelfAssessmentSummaryForCandidate] - ///( - /// @CandidateID int, - /// @SelfAssessmentID int - ///) - ///RETURNS @ResTable TABLE - ///( - /// CompetencyGroupID int, - /// Confidence float, - /// Relevance float - ///) - /// - ///AS - ///BEGIN - ///INSERT INTO @ResTable - /// SELECT CompetencyGroupID, [1] AS Confidence, [2] AS Relevance - ///FROM (SELEC [rest of string was truncated]";. - /// - internal static string DLSV2_153_FilteredFunctionTweak { - get { - return ResourceManager.GetString("DLSV2_153_FilteredFunctionTweak", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetFilteredCompetencyResponsesForCandidate] Script Date: 27/01/2021 15:29:35 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/09/2020 - ///-- Description: Returns user self assessment responses (AVG) for Filtered competency - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE [dbo].[GetFilteredCompetencyResponsesForCandidate] - /// -- Add [rest of string was truncated]";. - /// - internal static string DLSV2_153_FilteredSPFixes { - get { - return ResourceManager.GetString("DLSV2_153_FilteredSPFixes", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[InsertUpdateCustomisationTutorials] Script Date: 21/04/2021 16:16:32 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 02/03/2020 - ///-- Description: Updates or inserts a CustomisationTutorials record with new values - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[InsertUpdateCustomisationTutorials] - /// -- Add the parameters for the store [rest of string was truncated]";. - /// - internal static string dlsv2_172_fixcustomisationtutorialprogressissue_down { - get { - return ResourceManager.GetString("dlsv2_172_fixcustomisationtutorialprogressissue_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[InsertUpdateCustomisationTutorials] Script Date: 21/04/2021 16:16:32 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 02/03/2020 - ///-- Description: Updates or inserts a CustomisationTutorials record with new values - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[InsertUpdateCustomisationTutorials] - /// -- Add the parameters for the store [rest of string was truncated]";. - /// - internal static string dlsv2_172_fixcustomisationtutorialprogressissue_up { - get { - return ResourceManager.GetString("dlsv2_172_fixcustomisationtutorialprogressissue_up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 21/06/2021 08:36:32 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of completed courses for the candidate. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetCompletedCoursesForCandidate] - /// -- Add the parameters for the stored procedure here - /// [rest of string was truncated]";. - /// - internal static string DLSV2_236_GetCompletedCoursesTweak_DOWN { - get { - return ResourceManager.GetString("DLSV2_236_GetCompletedCoursesTweak_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 21/06/2021 08:36:32 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of completed courses for the candidate. - ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetCompletedCoursesForCan [rest of string was truncated]";. - /// - internal static string DLSV2_236_GetCompletedCoursesTweak_UP { - get { - return ResourceManager.GetString("DLSV2_236_GetCompletedCoursesTweak_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] Script Date: 22/06/2021 09:46:28 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 05/10/2020 - ///-- Description: Returns active available customisations for centre v5 adds SelfAssessments. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFilter [rest of string was truncated]";. - /// - internal static string DLSV2_237_GetActiveAvailableTweak_DOWN { - get { - return ResourceManager.GetString("DLSV2_237_GetActiveAvailableTweak_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] Script Date: 22/06/2021 09:46:28 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 05/10/2020 - ///-- Description: Returns active available customisations for centre v5 adds SelfAssessments. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFilter [rest of string was truncated]";. - /// - internal static string DLSV2_237_GetActiveAvailableTweak_UP { - get { - return ResourceManager.GetString("DLSV2_237_GetActiveAvailableTweak_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[GetLinkedFieldNameForCentreByID] Script Date: 16/07/2021 09:23:22 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 12/10/2018 - ///-- Description: Return the field name for centre group linked field ID - ///-- ============================================= - ///ALTER FUNCTION [dbo].[GetLinkedFieldNameForCentreByID] - ///( - /// -- Add the parameters for the function here - /// @ [rest of string was truncated]";. - /// - internal static string DLSV2_272_AlterGetLinkedFieldNameFunction_DOWN { - get { - return ResourceManager.GetString("DLSV2_272_AlterGetLinkedFieldNameFunction_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[GetLinkedFieldNameForCentreByID] Script Date: 16/07/2021 09:23:22 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 12/10/2018 - ///-- Description: Return the field name for centre group linked field ID - ///-- ============================================= - ///ALTER FUNCTION [dbo].[GetLinkedFieldNameForCentreByID] - ///( - /// -- Add the parameters for the function here - /// @ [rest of string was truncated]";. - /// - internal static string DLSV2_272_AlterGetLinkedFieldNameFunction_UP { - get { - return ResourceManager.GetString("DLSV2_272_AlterGetLinkedFieldNameFunction_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[ReorderFrameworkCompetency] Script Date: 15/10/2021 08:31:18 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - /// - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 15/10/2021 - ///-- Description: Reorders the CompetencyAssessmentQuestions - moving the given competency question up or down. - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE [dbo].[ReorderCompetencyAssessmentQuestion] /// [rest of string was truncated]";. - /// - internal static string DLSV2_379_ReorderCompetencyAssessmentQuestionsSP { - get { - return ResourceManager.GetString("DLSV2_379_ReorderCompetencyAssessmentQuestionsSP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V6] Script Date: 29/09/2022 19:11:04 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Manish Agarwal - ///-- Create date: 26/09/2022 - ///-- Description: Returns active available customisations for centre v6 adds SelfAssessments. - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsFo [rest of string was truncated]";. - /// - internal static string DLSV2_581_GetActiveAvailableCustomisationsForCentreFiltered_V6 { - get { - return ResourceManager.GetString("DLSV2_581_GetActiveAvailableCustomisationsForCentreFiltered_V6", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to --DLSV2-95 Adds System Versioning to auditable tables (UP) - /// - ///--Frameworks table - ///ALTER TABLE Frameworks - /// ADD - /// SysStartTime DATETIME2 GENERATED ALWAYS AS ROW START HIDDEN - /// CONSTRAINT DF_Frameworks_SysStart DEFAULT SYSUTCDATETIME() - /// , SysEndTime DATETIME2 GENERATED ALWAYS AS ROW END HIDDEN - /// CONSTRAINT DF_Frameworks_SysEnd DEFAULT CONVERT(DATETIME2, '9999-12-31 23:59:59.9999999'), - /// PERIOD FOR SYSTEM_TIME (SysStartTime, SysEndTime); - ///GO - /// - ///ALTER TABLE Framework [rest of string was truncated]";. - /// - internal static string DLSV2_95_AddSystemVersioning { - get { - return ResourceManager.GetString("DLSV2_95_AddSystemVersioning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to --DLSV2-95 Removes System Versioning to auditable tables (DOWN) - /// - /// - ///-- Remove versioning from FrameworkCompetencies table - ///ALTER TABLE FrameworkCompetencies SET (SYSTEM_VERSIONING = OFF); - ///DROP TABLE dbo.FrameworkCompetencies; - ///DROP TABLE dbo.FrameworkCompetenciesHistory; - ///GO - /// - ///-- Remove versioning from FrameworkCompetencyGroups table - ///ALTER TABLE FrameworkCompetencyGroups SET (SYSTEM_VERSIONING = OFF); - ///DROP TABLE dbo.FrameworkCompetencyGroups; - ///DROP TABLE dbo.FrameworkCompetencyGroupsHistory; - ///GO - /// - ///-- [rest of string was truncated]";. - /// - internal static string DLSV2_95_RemoveSystemVersioning { - get { - return ResourceManager.GetString("DLSV2_95_RemoveSystemVersioning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V6] Script Date: 03/10/2022 06:00:00 ******/ - ///DROP PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V6] - ///GO - /// - ///. - /// - internal static string DropActiveAvailableV6 { - get { - return ResourceManager.GetString("DropActiveAvailableV6", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 䕓⁔乁䥓也䱕卌传ൎ䜊൏匊呅儠何䕔彄䑉久䥔䥆剅传ൎ䜊൏ഊⴊ‭㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽ഽⴊ‭畁桴牯ऺ䬉癥湩圠楨瑴歡牥਍ⴭ䌠敲瑡⁥慤整›㔱䘠扥畲牡⁹〲㈱਍ⴭ䐠獥牣灩楴湯ऺ牃慥整⁳桴⁥牐杯敲獳愠摮愠灳牐杯敲獳爠捥牯⁤潦⁲⁡敮⁷獵牥਍ⴭ删瑥牵獮ऺ〉㨠猠捵散獳‬牰杯敲獳挠敲瑡摥਍ⴭ†††ठㄉ㨠䘠楡敬⁤‭牰杯敲獳愠牬慥祤攠楸瑳൳ⴊ‭†††उ〱‰›慆汩摥ⴠ䌠湥牴䥥⁄湡⁤畃瑳浯獩瑡潩䥮⁄潤❮⁴慭捴൨ⴊ‭†††उ〱‱›慆汩摥ⴠ䌠湥牴䥥⁄湡⁤慃摮摩瑡䥥⁄潤❮⁴慭捴൨ഊⴊ‭㍖挠慨杮獥椠据畬敤ഺഊⴊ‭桃捥獫琠慨⁴硥獩楴杮瀠潲牧獥⁳慨湳琧戠敥敒潭敶⁤牯删晥敲桳摥戠晥牯⁥敲畴楲楮杮攠牲牯മⴊ‭摁獤瀠牡浡瑥牥⁳潦⁲湅潲汬敭瑮洠瑥潨⁤湡⁤摡業䑉਍ⴭ㴠㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽਍䱁䕔⁒剐䍏䑅剕⁅摛潢⹝畛灳牃慥整牐杯敲獳敒潣摲噟崳਍䀉慃摮摩瑡䥥⁄湩ⱴ਍䀉畃瑳浯獩瑡潩䥮⁄湩ⱴ਍䀉敃瑮敲䑉椠瑮ബऊ䕀牮汯浬湥䵴瑥潨䥤⁄湩ⱴ਍䀉湅潲汬摥祂摁業䥮⁄湩൴䄊൓䈊䝅义਍ⴉ‭䕓⁔低佃乕⁔乏愠摤摥琠牰癥湥⁴硥牴⁡敲畳瑬猠瑥⁳牦浯਍ⴉ‭湩整晲牥湩⁧楷桴匠䱅䍅⁔瑳瑡浥湥獴മऊ䕓⁔低佃乕⁔乏഻ऊⴭ਍ⴉ‭桔牥⁥牡⁥慶楲畯⁳桴湩獧琠 [rest of string was truncated]";. - /// - internal static string DropApplyLPDefaultsSPChanges { - get { - return ResourceManager.GetString("DropApplyLPDefaultsSPChanges", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - ///DROP PROCEDURE [dbo].[GetFilteredCompetencyResponsesForCandidate] - ///GO - ///DROP PROCEDURE [dbo].[GetFilteredProfileForCandidate] - ///GO - ///DROP FUNCTION [dbo].[GetSelfAssessmentSummaryForCandidate] - ///GO - ///DROP FUNCTION [dbo].[GetFilteredAPISeniorityID] - ///GO - /// - /// - /// - /// - /// - ///. - /// - internal static string DropFilteredSPs { - get { - return ResourceManager.GetString("DropFilteredSPs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to DROP PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] - ///GO. - /// - internal static string DropGetActiveAvailableV5 { - get { - return ResourceManager.GetString("DropGetActiveAvailableV5", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[ReorderTutorial] Script Date: 04/01/2021 16:17:57 ******/ - ///DROP PROCEDURE [dbo].[ReorderFrameworkCompetency] - ///GO - ///DROP PROCEDURE [dbo].[ReorderFrameworkCompetencyGroup] - ///GO - /// - ///. - /// - internal static string DropReorderFrameworkCompetenciesAndGroupsSPs { - get { - return ResourceManager.GetString("DropReorderFrameworkCompetenciesAndGroupsSPs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - ///CREATE FUNCTION [dbo].[GetSelfAssessmentSummaryForCandidate] - ///( - /// @CandidateID int, - /// @SelfAssessmentID int - ///) - ///RETURNS @ResTable TABLE - ///( - /// CompetencyGroupID int, - /// Confidence float, - /// Relevance float - ///) - /// - ///AS - ///BEGIN - ///INSERT INTO @ResTable - /// SELECT CompetencyGroupID, [1] AS Confidence, [2] AS Relevance - ///FROM (SELECT comp.CompetencyGroupID, sar.AssessmentQuestionID, sar.Result*1.0 AS Result - /// FROM Competencies AS comp INNER JOIN - /// SelfAssessmentResults AS sar [rest of string was truncated]";. - /// - internal static string FilteredSPs { - get { - return ResourceManager.GetString("FilteredSPs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] Script Date: 14/10/2020 10:02:34 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 05/10/2020 - ///-- Description: Returns active available customisations for centre v5 adds SelfAssessments. - ///-- ============================================= - ///CREATE PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreF [rest of string was truncated]";. - /// - internal static string GetActiveAvailableV5 { - get { - return ResourceManager.GetString("GetActiveAvailableV5", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] Script Date: 22/06/2021 09:46:28 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 05/10/2020 - ///-- Description: Returns active available customisations for centre v5 adds SelfAssessments. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFilter [rest of string was truncated]";. - /// - internal static string HEEDLS_667_GetActiveAvailableCustomisationsForCentreFiltered_V5_Signposting_DOWN { - get { - return ResourceManager.GetString("HEEDLS_667_GetActiveAvailableCustomisationsForCentreFiltered_V5_Signposting_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] Script Date: 17/11/2021 16:40:41 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 05/10/2020 - ///-- Description: Returns active available customisations for centre v5 adds SelfAssessments. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFilter [rest of string was truncated]";. - /// - internal static string HEEDLS_667_GetActiveAvailableCustomisationsForCentreFiltered_V5_Signposting_UP { - get { - return ResourceManager.GetString("HEEDLS_667_GetActiveAvailableCustomisationsForCentreFiltered_V5_Signposting_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V6] Script Date: 24/01/2023 15:00:41 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 24/01/2023 - ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for cate [rest of string was truncated]";. - /// - internal static string td_1043_getactivitiesforenrolment { - get { - return ResourceManager.GetString("td_1043_getactivitiesforenrolment", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V6] Script Date: 24/01/2023 15:31:20 ******/ - ///DROP PROCEDURE [dbo].[GetActivitiesForDelegateEnrolment] - ///GO - /// - /// - ///. - /// - internal static string td_1043_getactivitiesforenrolment_down { - get { - return ResourceManager.GetString("td_1043_getactivitiesforenrolment_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: View [dbo].[Candidates] Script Date: 2/22/2023 09:29:54 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: - ///-- Modified date: 22/02/2023 - ///-- ============================================= - /// - ///ALTER VIEW [dbo].[Candidates] AS - ///SELECT dbo.DelegateAccounts.ID AS CandidateID, - /// dbo.DelegateAccounts.Active, - /// dbo.DelegateAccounts.CentreID, - /// dbo.Users.FirstName, - /// dbo.Users.LastName, - /// [rest of string was truncated]";. - /// - internal static string td_1131_alterviewcandidatesadduserid_down { - get { - return ResourceManager.GetString("td_1131_alterviewcandidatesadduserid_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: View [dbo].[Candidates] Script Date: 2/22/2023 09:29:54 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: - ///-- Modified date: 22/02/2023 - ///-- ============================================= - /// - ///ALTER VIEW [dbo].[Candidates] AS - ///SELECT dbo.DelegateAccounts.ID AS CandidateID, - /// dbo.DelegateAccounts.Active, - /// dbo.DelegateAccounts.CentreID, - /// dbo.Users.FirstName, - /// dbo.Users.LastName, - /// [rest of string was truncated]";. - /// - internal static string td_1131_alterviewcandidatesadduserid_up { - get { - return ResourceManager.GetString("td_1131_alterviewcandidatesadduserid_up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to --TD-1220-AddSystemVersioning_SelfAssessmentResultSupervisorVerifications - ///--Add versioning in SelfAssessmentResultSupervisorVerifications table - ///ALTER TABLE SelfAssessmentResultSupervisorVerifications - /// ADD - /// SysStartTime DATETIME2 GENERATED ALWAYS AS ROW START HIDDEN - /// CONSTRAINT DF_SelfAssessmentResultSupervisorVerifications_SysStart DEFAULT SYSUTCDATETIME() - /// , SysEndTime DATETIME2 GENERATED ALWAYS AS ROW END HIDDEN - /// CONSTRAINT DF_SelfAssessmentResultSupervisorVerif [rest of string was truncated]";. - /// - internal static string TD_1220_AddSystemVersioning_SelfAssessmentResultSupervisorVerifications { - get { - return ResourceManager.GetString("TD_1220_AddSystemVersioning_SelfAssessmentResultSupervisorVerifications", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to --TD-1220-AddSystemVersioning_SelfAssessmentResultSupervisorVerifications - ///-- Remove versioning from SelfAssessmentResultSupervisorVerifications table - ///ALTER TABLE SelfAssessmentResultSupervisorVerifications SET (SYSTEM_VERSIONING = OFF); - ///ALTER TABLE SelfAssessmentResultSupervisorVerifications DROP PERIOD FOR SYSTEM_TIME; - ///ALTER TABLE [dbo].SelfAssessmentResultSupervisorVerifications DROP CONSTRAINT [DF_SelfAssessmentResultSupervisorVerifications_SysEnd]; - ///ALTER TABLE [dbo].SelfAssessmentResultSupervisorVe [rest of string was truncated]";. - /// - internal static string TD_1220_RemoveSystemVersioning_SelfAssessmentResultSupervisorVerifications { - get { - return ResourceManager.GetString("TD_1220_RemoveSystemVersioning_SelfAssessmentResultSupervisorVerifications", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 22/05/2023 07:50:40 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 24/01/2023 - ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. - ///-- ============= [rest of string was truncated]";. - /// - internal static string td_1610_update_getactivitiesfordelegateenrolment_proc_down { - get { - return ResourceManager.GetString("td_1610_update_getactivitiesfordelegateenrolment_proc_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 19/05/2023 16:40:12 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 24/01/2023 - ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. - ///-- ============= [rest of string was truncated]";. - /// - internal static string td_1610_update_getactivitiesfordelegateenrolment_proc_up { - get { - return ResourceManager.GetString("td_1610_update_getactivitiesfordelegateenrolment_proc_up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 01/06/2023 15:32:33 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 24/01/2023 - ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. - ///-- ========= [rest of string was truncated]";. - /// - internal static string TD_1766_GetActivitiesForDelegateEnrolmentTweak { - get { - return ResourceManager.GetString("TD_1766_GetActivitiesForDelegateEnrolmentTweak", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 01/06/2023 15:32:33 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 24/01/2023 - ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. - ///-- ========= [rest of string was truncated]";. - /// - internal static string TD_1766_GetActivitiesForDelegateEnrolmentTweak_down { - get { - return ResourceManager.GetString("TD_1766_GetActivitiesForDelegateEnrolmentTweak_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 16/08/2023 12:17:34 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of completed courses for the candidate. - ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetCompletedCoursesFo [rest of string was truncated]";. - /// - internal static string TD_1766_GetCompletedCoursesForCandidateTweak { - get { - return ResourceManager.GetString("TD_1766_GetCompletedCoursesForCandidateTweak", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 16/08/2023 12:17:34 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of completed courses for the candidate. - ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetCompletedCoursesFo [rest of string was truncated]";. - /// - internal static string TD_1766_GetCompletedCoursesForCandidateTweak_down { - get { - return ResourceManager.GetString("TD_1766_GetCompletedCoursesForCandidateTweak_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCurrentCoursesForCandidate_V2] Script Date: 26/06/2023 08:04:53 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - /// - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of active progress records for the candidate. - ///-- Change 18/09/2018: Adds logic to exclude Removed courses from returned results. - ///-- ============================================= - ///ALTER PROCEDU [rest of string was truncated]";. - /// - internal static string TD_1766_GetCurrentCoursesForCandidateTweak { - get { - return ResourceManager.GetString("TD_1766_GetCurrentCoursesForCandidateTweak", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCurrentCoursesForCandidate_V2] Script Date: 22/06/2023 14:49:50 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of active progress records for the candidate. - ///-- Change 18/09/2018: Adds logic to exclude Removed courses from returned results. - ///-- ============================================= - ///ALTER PROCEDURE [ [rest of string was truncated]";. - /// - internal static string TD_1766_GetCurrentCoursesForCandidateTweak_down { - get { - return ResourceManager.GetString("TD_1766_GetCurrentCoursesForCandidateTweak_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GroupCustomisation_Add_V2] Script Date: 16/06/2023 09:17:01 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/10/2018 - ///-- Description: Adds a customisation to a group and enrols all group delegates on the customisation if applicable. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GroupCustomisation_Add_V2] - /// -- Add the parameter [rest of string was truncated]";. - /// - internal static string TD_1913_AlterGroupCustomisation_Add_V2_DOWN { - get { - return ResourceManager.GetString("TD_1913_AlterGroupCustomisation_Add_V2_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GroupCustomisation_Add_V2] Script Date: 16/06/2023 09:17:01 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/10/2018 - ///-- Description: Adds a customisation to a group and enrols all group delegates on the customisation if applicable. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GroupCustomisation_Add_V2] - /// -- Add the parameter [rest of string was truncated]";. - /// - internal static string TD_1913_AlterGroupCustomisation_Add_V2_UP { - get { - return ResourceManager.GetString("TD_1913_AlterGroupCustomisation_Add_V2_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to <div class=nhsuk-u-reading-width><h2>What are cookies?</h2><p>Cookies are files saved on your phone, tablet or computer when you visit a website.<p>They store information about how you use the website, such as the pages you visit.<p>Cookies are not viruses or computer programs. They are very small so do not take up much space.<h2>How we use cookies</h2><p>We only use cookies to:<ul><li>make our website work<li>measure how you use our website, such as which links you click on (analytics cookies), if you give [rest of string was truncated]";. - /// - internal static string TD_1943_CookiePolicyContentHtmlOldRecord { - get { - return ResourceManager.GetString("TD_1943_CookiePolicyContentHtmlOldRecord", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to <div class=nhsuk-u-reading-width> - ///<h2>What are cookies?</h2> - ///<p>Cookies are files saved on your phone, tablet or computer when you visit a website.</p> - ///<p>They store information about how you use the website, such as the pages you visit.</p> - ///<p>Cookies are not viruses or computer programs. They are very small so do not take up much space.</p> - ///<h2>How we use cookies</h2><p>We only use cookies to:</p> - ///<ul> - ///<li>make our website work</li> - ///<li>measure how you use our website, such as which links you clic [rest of string was truncated]";. - /// - internal static string TD_1943_CookiesPolicy { - get { - return ResourceManager.GetString("TD_1943_CookiesPolicy", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to -- Remove period field from FrameworkCompetencies table - ///ALTER TABLE FrameworkCompetencies ADD PERIOD FOR SYSTEM_TIME ( SysStartTime, SysEndTime ); - ///GO - /// - ///-- Remove period field from FrameworkCompetencyGroups table - ///ALTER TABLE FrameworkCompetencyGroups ADD PERIOD FOR SYSTEM_TIME ( SysStartTime, SysEndTime ); - ///GO - /// - ///-- Remove period field from Frameworks table - ///ALTER TABLE Frameworks ADD PERIOD FOR SYSTEM_TIME ( SysStartTime, SysEndTime ); - ///GO - /// - ///-- Remove period field from Competencies table - ///ALTER TABL [rest of string was truncated]";. - /// - internal static string TD_2036_SwitchOffPeriodFields_DOWN { - get { - return ResourceManager.GetString("TD_2036_SwitchOffPeriodFields_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to -- Remove period field from FrameworkCompetencies table - ///ALTER TABLE FrameworkCompetencies DROP PERIOD FOR SYSTEM_TIME; - ///GO - /// - ///-- Remove period field from FrameworkCompetencyGroups table - ///ALTER TABLE FrameworkCompetencyGroups DROP PERIOD FOR SYSTEM_TIME; - ///GO - /// - ///-- Remove period field from Frameworks table - ///ALTER TABLE Frameworks DROP PERIOD FOR SYSTEM_TIME; - ///GO - /// - ///-- Remove period field from Competencies table - ///ALTER TABLE Competencies DROP PERIOD FOR SYSTEM_TIME; - ///GO - /// - ///-- Remove period field from Comp [rest of string was truncated]";. - /// - internal static string TD_2036_SwitchOffPeriodFields_UP { - get { - return ResourceManager.GetString("TD_2036_SwitchOffPeriodFields_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to -- Switch on versioning from FrameworkCompetencies table - ///ALTER TABLE FrameworkCompetencies SET (SYSTEM_VERSIONING = ON (HISTORY_TABLE = [dbo].FrameworkCompetenciesHistory)); - ///GO - /// - ///-- Switch on versioning from FrameworkCompetencyGroups table - ///ALTER TABLE FrameworkCompetencyGroups SET (SYSTEM_VERSIONING = ON (HISTORY_TABLE = [dbo].FrameworkCompetencyGroupsHistory)); - ///GO - /// - ///-- Switch on versioning from Frameworks table - ///ALTER TABLE Frameworks SET (SYSTEM_VERSIONING = ON (HISTORY_TABLE = [dbo].FrameworksHisto [rest of string was truncated]";. - /// - internal static string TD_2036_SwitchSystemVersioningOffAllTables_DOWN { - get { - return ResourceManager.GetString("TD_2036_SwitchSystemVersioningOffAllTables_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to -- Remove versioning from FrameworkCompetencies table - ///ALTER TABLE FrameworkCompetencies SET (SYSTEM_VERSIONING = OFF); - ///GO - /// - ///-- Remove versioning from FrameworkCompetencyGroups table - ///ALTER TABLE FrameworkCompetencyGroups SET (SYSTEM_VERSIONING = OFF); - ///GO - /// - ///-- Remove versioning from Frameworks table - ///ALTER TABLE Frameworks SET (SYSTEM_VERSIONING = OFF); - ///GO - /// - ///-- Remove versioning from Competencies table - ///ALTER TABLE Competencies SET (SYSTEM_VERSIONING = OFF); - ///GO - /// - ///-- Remove versioning from Competency [rest of string was truncated]";. - /// - internal static string TD_2036_SwitchSystemVersioningOffAllTables_UP { - get { - return ResourceManager.GetString("TD_2036_SwitchSystemVersioningOffAllTables_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 05/07/2023 08:52:32 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 24/01/2023 - ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. - ///-- ============= [rest of string was truncated]";. - /// - internal static string TD_2094_GetActivitiesForDelegateEnrolmentDelegateStatusPropertyTweak { - get { - return ResourceManager.GetString("TD_2094_GetActivitiesForDelegateEnrolmentDelegateStatusPropertyTweak", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 05/07/2023 09:33:56 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 24/01/2023 - ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. - ///-- ============= [rest of string was truncated]";. - /// - internal static string TD_2094_GetActivitiesForDelegateEnrolmentDelegateStatusPropertyTweak_down { - get { - return ResourceManager.GetString("TD_2094_GetActivitiesForDelegateEnrolmentDelegateStatusPropertyTweak_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 03/07/2023 - ///-- Description: Populate the ReportSelfAssessmentActivityLog table with recent activity - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE PopulateReportSelfAssessmentActivityLog - /// - ///AS - ///BEGIN - /// -- SET NOCOUNT ON added to prevent extra result sets from - /// -- interfering with SELECT statements. - /// SET NOCOUNT ON; - /// - /// DECLARE @ [rest of string was truncated]";. - /// - internal static string TD_2117_CreatePopulateReportSelfAssessmentActivityLog_SP { - get { - return ResourceManager.GetString("TD_2117_CreatePopulateReportSelfAssessmentActivityLog_SP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspReturnSectionsForCandCust_V2] Script Date: 08/12/2023 13:33:59 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 15/08/2013 - ///-- Description: Gets section table for learning menu - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[uspReturnSectionsForCandCust_V2] - /// -- Add the parameters for the stored procedure here - /// @ProgressID [rest of string was truncated]";. - /// - internal static string TD_2481_Update_uspReturnSectionsForCandCust_V2_down { - get { - return ResourceManager.GetString("TD_2481_Update_uspReturnSectionsForCandCust_V2_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspReturnSectionsForCandCust_V2] Script Date: 08/12/2023 13:33:59 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 15/08/2013 - ///-- Description: Gets section table for learning menu - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[uspReturnSectionsForCandCust_V2] - /// -- Add the parameters for the stored procedure here - /// @ProgressID [rest of string was truncated]";. - /// - internal static string TD_2481_Update_uspReturnSectionsForCandCust_V2_up { - get { - return ResourceManager.GetString("TD_2481_Update_uspReturnSectionsForCandCust_V2_up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 05/07/2023 08:52:32 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 24/01/2023 - ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. - ///-- ============= [rest of string was truncated]";. - /// - internal static string TD_2508_GetActivitiesForDelegateEnrolmentHiddenInLearningPortalTweak { - get { - return ResourceManager.GetString("TD_2508_GetActivitiesForDelegateEnrolmentHiddenInLearningPortalTweak", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 05/07/2023 08:52:32 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 24/01/2023 - ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. - ///-- ============= [rest of string was truncated]";. - /// - internal static string TD_2508_GetActivitiesForDelegateEnrolmentHiddenInLearningPortalTweak_down { - get { - return ResourceManager.GetString("TD_2508_GetActivitiesForDelegateEnrolmentHiddenInLearningPortalTweak_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: View [dbo].[AdminUsers] Script Date: 2/6/2023 22:11:41 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: - ///-- Modified date: 02/06/2023 - ///-- Description: Return the admin user details - ///-- ============================================= - /// - ///ALTER VIEW [dbo].[AdminUsers] AS - ///SELECT dbo.AdminAccounts.ID AS AdminID, - /// null AS Login, - /// dbo.Users.PasswordHas [rest of string was truncated]";. - /// - internal static string td_264_alterviewadminusersaddcentrename_down { - get { - return ResourceManager.GetString("td_264_alterviewadminusersaddcentrename_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: View [dbo].[AdminUsers] Script Date: 2/6/2023 22:11:41 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: - ///-- Modified date: 02/06/2023 - ///-- Description: Return the admin user details - ///-- ============================================= - /// - ///ALTER VIEW [dbo].[AdminUsers] AS - ///SELECT dbo.AdminAccounts.ID AS AdminID, - /// null AS Login, - /// dbo.Users.PasswordHas [rest of string was truncated]";. - /// - internal static string td_264_alterviewadminusersaddcentrename_up { - get { - return ResourceManager.GetString("td_264_alterviewadminusersaddcentrename_up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[CheckDelegateStatusForCustomisation] Script Date: 18/10/2023 08:05:27 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/12/2016 - ///-- Description: Checks if learner has progress record against customisation. - ///-- Returns: - ///-- 0: None - ///-- 1: Expired - ///-- 2: Complete - ///-- 3: Current - ///-- ============================================= - ///-- 18/09/2018 Adds return v [rest of string was truncated]";. - /// - internal static string TD_3000_CheckDelegateStatusForCustomisationFix_down { - get { - return ResourceManager.GetString("TD_3000_CheckDelegateStatusForCustomisationFix_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[CheckDelegateStatusForCustomisation] Script Date: 17/10/2023 12:13:14 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/12/2016 - ///-- Description: Checks if learner has progress record against customisation. - ///-- Returns: - ///-- 0: None - ///-- 1: Expired - ///-- 2: Complete - ///-- 3: Current - ///-- ============================================= - ///-- 18/09/2018 Adds return v [rest of string was truncated]";. - /// - internal static string TD_3000_CheckDelegateStatusForCustomisationFix_up { - get { - return ResourceManager.GetString("TD_3000_CheckDelegateStatusForCustomisationFix_up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Auldrin Possa - ///-- Create date: 30/11/2023 - ///-- Description: Returns assessment results for a delegate - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE [dbo].[GetAssessmentResultsByDelegate] - /// @selfAssessmentId as Int = 0, - /// @delegateId as int = 0 - ///AS - ///BEGIN - /// - /// SET NOCOUNT ON; - /// - /// WITH LatestAssessmentResults AS - /// ( - /// SELECT - /// [rest of string was truncated]";. - /// - internal static string TD_3187_CreateGetAssessmentResultsByDelegate_SP { - get { - return ResourceManager.GetString("TD_3187_CreateGetAssessmentResultsByDelegate_SP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Auldrin Possa - ///-- Create date: 30/11/2023 - ///-- Description: Returns candidate assessment results by candidateAssessmentId - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE [dbo].[GetCandidateAssessmentResultsById] - /// @candidateAssessmentId as Int = 0, - /// @adminId as int = 0, - /// @selfAssessmentResultId as int = NULL - ///AS - ///BEGIN - /// - /// SET NOCOUNT ON; - /// - /// WITH LatestAssessmentR [rest of string was truncated]";. - /// - internal static string TD_3187_CreateGetCandidateAssessmentResultsById_SP { - get { - return ResourceManager.GetString("TD_3187_CreateGetCandidateAssessmentResultsById_SP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[SendOneMonthSelfAssessmentTBCReminders] Script Date: 06/12/2023 15:54:40 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 29/11/2023 - ///-- Description: Uses DB mail to send reminders to delegates on self assessments with a TBC date within 1 month. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[SendOneMonthSelfAssessmentTBCReminders] [rest of string was truncated]";. - /// - internal static string TD_3190_FixSelfAssessmentReminderQueriesSP_UP { - get { - return ResourceManager.GetString("TD_3190_FixSelfAssessmentReminderQueriesSP_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 29/11/2023 - ///-- Description: Uses DB mail to send reminders to delegates on self assessments with a TBC date within 1 month. - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE [dbo].[SendSelfAssessmentOverdueReminders] - /// -- Add the parameters for the stored procedure here - /// @EmailProfileName nvarchar(100), - /// @TestOnly bit - ///AS - ///BEGIN - /// -- [rest of string was truncated]";. - /// - internal static string TD_3190_SendOneMonthSelfAssessmentOverdueRemindersSP { - get { - return ResourceManager.GetString("TD_3190_SendOneMonthSelfAssessmentOverdueRemindersSP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 29/11/2023 - ///-- Description: Uses DB mail to send reminders to delegates on self assessments with a TBC date within 1 month. - ///-- ============================================= - ///CREATE OR ALTER PROCEDURE [dbo].[SendOneMonthSelfAssessmentTBCReminders] - /// -- Add the parameters for the stored procedure here - /// @EmailProfileName nvarchar(100), - /// @TestOnly bit - ///AS - ///BEGIN /// [rest of string was truncated]";. - /// - internal static string TD_3190_SendOneMonthSelfAssessmentTBCRemindersSP { - get { - return ResourceManager.GetString("TD_3190_SendOneMonthSelfAssessmentTBCRemindersSP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[SendExpiredTBCReminders] Script Date: 07/12/2023 08:03:01 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 17/08/2018 - ///-- Description: Uses DB mail to send reminders to delegates on courses with a TBC date within 1 month. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[SendExpiredTBCReminders] - /// -- Add the parameters for the stored p [rest of string was truncated]";. - /// - internal static string TD_3197_FixLinksInCourseReminderEmails_DOWN { - get { - return ResourceManager.GetString("TD_3197_FixLinksInCourseReminderEmails_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[SendExpiredTBCReminders] Script Date: 07/12/2023 08:03:01 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 17/08/2018 - ///-- Description: Uses DB mail to send reminders to delegates on courses with a TBC date within 1 month. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[SendExpiredTBCReminders] - /// -- Add the parameters for the stored p [rest of string was truncated]";. - /// - internal static string TD_3197_FixLinksInCourseReminderEmails_UP { - get { - return ResourceManager.GetString("TD_3197_FixLinksInCourseReminderEmails_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecordWithCompleteWithinMonths] Script Date: 27/02/2024 10:27:26 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 23/10/2018 - ///-- Description: Creates the Progress and aspProgress record for a new user - ///-- Returns: 0 : success, progress created - ///-- 1 : Failed - progress already exists - ///-- 100 : Failed - CentreID and Cust [rest of string was truncated]";. - /// - internal static string TD_3623_Alter_uspCreateProgressRecordWithCompleteWithinMonthsSPs_Down { - get { - return ResourceManager.GetString("TD_3623_Alter_uspCreateProgressRecordWithCompleteWithinMonthsSPs_Down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecordWithCompleteWithinMonths] Script Date: 27/02/2024 10:27:26 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 23/10/2018 - ///-- Description: Creates the Progress and aspProgress record for a new user - ///-- Returns: 0 : success, progress created - ///-- 1 : Failed - progress already exists - ///-- 100 : Failed - CentreID and Cust [rest of string was truncated]";. - /// - internal static string TD_3623_Alter_uspCreateProgressRecordWithCompleteWithinMonthsSPs_Up { - get { - return ResourceManager.GetString("TD_3623_Alter_uspCreateProgressRecordWithCompleteWithinMonthsSPs_Up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///CREATE TABLE [dbo].[deprecated_ApplicationGroups]( - /// [AppGroupID] [int] IDENTITY(1,1) NOT NULL, - /// [ApplicationGroup] [nvarchar](100) NOT NULL, - /// CONSTRAINT [PK_ApplicationGroups] PRIMARY KEY CLUSTERED - ///( - /// [AppGroupID] ASC - ///)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] - ///) ON [PRIMARY] - ///GO - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///CREATE TABLE [dbo].[deprec [rest of string was truncated]";. - /// - internal static string TD_3629_DeleteDeprecatedTables_DOWN { - get { - return ResourceManager.GetString("TD_3629_DeleteDeprecatedTables_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER OFF - ///GO - ///CREATE PROCEDURE [dbo].[aspnet_AnyDataInTables_deprecated] - /// @TablesToCheck int - ///AS - ///BEGIN - /// -- Check Membership table if (@TablesToCheck & 1) is set - /// IF ((@TablesToCheck & 1) <> 0 AND - /// (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_MembershipUsers') AND (type = 'V')))) - /// BEGIN - /// IF (EXISTS(SELECT TOP 1 UserId FROM dbo.aspnet_Membership)) - /// BEGIN - /// SELECT N'aspnet_Membership' - /// RETU [rest of string was truncated]";. - /// - internal static string TD_3664_RestoreDroppedSPs { - get { - return ResourceManager.GetString("TD_3664_RestoreDroppedSPs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[CheckDelegateStatusForCustomisation] Script Date: 16/05/2024 09:29:31 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/12/2016 - ///-- Description: Checks if learner has progress record against customisation. - ///-- Returns: - ///-- 0: None - ///-- 1: Expired - ///-- 2: Complete - ///-- 3: Current - ///-- ============================================= - ///-- 18/09/2018 Adds re [rest of string was truncated]";. - /// - internal static string TD_3671_Alter_CheckDelegateStatusForCustomisation_func_down { - get { - return ResourceManager.GetString("TD_3671_Alter_CheckDelegateStatusForCustomisation_func_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - ////****** Object: UserDefinedFunction [dbo].[CheckDelegateStatusForCustomisation] Script Date: 09/05/2024 11:41:58 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/12/2016 - ///-- Description: Checks if learner has progress record against customisation. - ///-- Returns: - ///-- 0: None - ///-- 1: Expired - ///-- 2: Complete - ///-- 3: Current - ///-- ============================================= - ///-- 18/09/2018 Adds return [rest of string was truncated]";. - /// - internal static string TD_3671_Alter_CheckDelegateStatusForCustomisation_func_up { - get { - return ResourceManager.GetString("TD_3671_Alter_CheckDelegateStatusForCustomisation_func_up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCurrentCoursesForCandidate_V2] Script Date: 16/05/2024 09:37:05 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of active progress records for the candidate. - ///-- Change 18/09/2018: Adds logic to exclude Removed courses from returned results. - ///-- ============================================= - ///ALTER PROCEDURE [rest of string was truncated]";. - /// - internal static string TD_3671_Alter_GetCurrentCoursesForCandidate_V2_proc_down { - get { - return ResourceManager.GetString("TD_3671_Alter_GetCurrentCoursesForCandidate_V2_proc_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - ////****** Object: StoredProcedure [dbo].[GetCurrentCoursesForCandidate_V2] Script Date: 08/05/2024 10:34:29 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of active progress records for the candidate. - ///-- Change 18/09/2018: Adds logic to exclude Removed courses from returned results. - ///-- ============================================= - ///ALTER PROCEDURE [db [rest of string was truncated]";. - /// - internal static string TD_3671_Alter_GetCurrentCoursesForCandidate_V2_proc_up { - get { - return ResourceManager.GetString("TD_3671_Alter_GetCurrentCoursesForCandidate_V2_proc_up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 09/04/2024 08:39:16 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of completed courses for the candidate. - ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetCompletedCoursesFo [rest of string was truncated]";. - /// - internal static string TD_4015_Update_GetCompletedCoursesForCandidate_proc_down { - get { - return ResourceManager.GetString("TD_4015_Update_GetCompletedCoursesForCandidate_proc_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 09/04/2024 08:39:16 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of completed courses for the candidate. - ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetCompletedCoursesFo [rest of string was truncated]";. - /// - internal static string TD_4015_Update_GetCompletedCoursesForCandidate_proc_up { - get { - return ResourceManager.GetString("TD_4015_Update_GetCompletedCoursesForCandidate_proc_up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GroupCustomisation_Add_V2] Script Date: 12/07/2024 17:37:50 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/10/2018 - ///-- Description: Adds a customisation to a group and enrols all group delegates on the customisation if applicable. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GroupCustomisation_Add_V2] - /// -- Add the paramet [rest of string was truncated]";. - /// - internal static string TD_4223_Alter_GroupCustomisation_Add_V2_Down { - get { - return ResourceManager.GetString("TD_4223_Alter_GroupCustomisation_Add_V2_Down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GroupCustomisation_Add_V2] Script Date: 12/07/2024 17:37:50 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/10/2018 - ///-- Description: Adds a customisation to a group and enrols all group delegates on the customisation if applicable. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GroupCustomisation_Add_V2] - /// -- Add the paramet [rest of string was truncated]";. - /// - internal static string TD_4223_Alter_GroupCustomisation_Add_V2_Up { - get { - return ResourceManager.GetString("TD_4223_Alter_GroupCustomisation_Add_V2_Up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecord_V3] Script Date: 27/06/2024 09:35:55 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 15 February 2012 - ///-- Description: Creates the Progress and aspProgress record for a new user - ///-- Returns: 0 : success, progress created - ///-- 1 : Failed - progress already exists - ///-- 100 : Failed - CentreID and CustomisationID don [rest of string was truncated]";. - /// - internal static string TD_4223_Alter_uspCreateProgressRecord_V3_Down { - get { - return ResourceManager.GetString("TD_4223_Alter_uspCreateProgressRecord_V3_Down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecord_V3] Script Date: 27/06/2024 09:35:33 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - /// - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 15 February 2012 - ///-- Description: Creates the Progress and aspProgress record for a new user - ///-- Returns: 0 : success, progress created - ///-- 1 : Failed - progress already exists - ///-- 100 : Failed - CentreID and CustomisationID d [rest of string was truncated]";. - /// - internal static string TD_4223_Alter_uspCreateProgressRecord_V3_Up { - get { - return ResourceManager.GetString("TD_4223_Alter_uspCreateProgressRecord_V3_Up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2] Script Date: 27/06/2024 09:37:38 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 11/04/2019 - ///-- Description: Creates the Progress and aspProgress record for a new user with no return value - ///-- Returns: Nothing - /// - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[uspCreatePr [rest of string was truncated]";. - /// - internal static string TD_4223_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Down { - get { - return ResourceManager.GetString("TD_4223_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2] Script Date: 27/06/2024 09:38:12 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 11/04/2019 - ///-- Description: Creates the Progress and aspProgress record for a new user with no return value - ///-- Returns: Nothing - /// - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[uspCreate [rest of string was truncated]";. - /// - internal static string TD_4223_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Up { - get { - return ResourceManager.GetString("TD_4223_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - ////****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 20/08/2024 11:57:38 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 24/01/2023 - ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. - ///-- ======= [rest of string was truncated]";. - /// - internal static string TD_4243_Alter_GetActivitiesForDelegateEnrolment_proc_down { - get { - return ResourceManager.GetString("TD_4243_Alter_GetActivitiesForDelegateEnrolment_proc_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - ////****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 20/08/2024 11:57:38 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 24/01/2023 - ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. - ///-- ======= [rest of string was truncated]";. - /// - internal static string TD_4243_Alter_GetActivitiesForDelegateEnrolment_proc_up { - get { - return ResourceManager.GetString("TD_4243_Alter_GetActivitiesForDelegateEnrolment_proc_up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - ////****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 20/08/2024 11:58:45 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of completed courses for the candidate. - ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetCompletedCourses [rest of string was truncated]";. - /// - internal static string TD_4243_Alter_GetCompletedCoursesForCandidate_proc_down { - get { - return ResourceManager.GetString("TD_4243_Alter_GetCompletedCoursesForCandidate_proc_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - ////****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 20/08/2024 11:58:45 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of completed courses for the candidate. - ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetCompletedCourses [rest of string was truncated]";. - /// - internal static string TD_4243_Alter_GetCompletedCoursesForCandidate_proc_up { - get { - return ResourceManager.GetString("TD_4243_Alter_GetCompletedCoursesForCandidate_proc_up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - ////****** Object: StoredProcedure [dbo].[GetCurrentCoursesForCandidate_V2] Script Date: 22/07/2024 10:11:35 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of active progress records for the candidate. - ///-- Change 18/09/2018: Adds logic to exclude Removed courses from returned results. - ///-- ============================================= - ///ALTER PROCEDU [rest of string was truncated]";. - /// - internal static string TD_4243_Alter_GetCurrentCoursesForCandidate_V2_proc_down { - get { - return ResourceManager.GetString("TD_4243_Alter_GetCurrentCoursesForCandidate_V2_proc_down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to - /// - ////****** Object: StoredProcedure [dbo].[GetCurrentCoursesForCandidate_V2] Script Date: 22/07/2024 10:11:35 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of active progress records for the candidate. - ///-- Change 18/09/2018: Adds logic to exclude Removed courses from returned results. - ///-- ============================================= - ///ALTER PROC [rest of string was truncated]";. - /// - internal static string TD_4243_Alter_GetCurrentCoursesForCandidate_V2_proc_up { - get { - return ResourceManager.GetString("TD_4243_Alter_GetCurrentCoursesForCandidate_V2_proc_up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GroupCustomisation_Add_V2] Script Date: 27/08/2024 14:41:29 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/10/2018 - ///-- Description: Adds a customisation to a group and enrols all group delegates on the customisation if applicable. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GroupCustomisation_Add_V2] - /// -- Add the paramet [rest of string was truncated]";. - /// - internal static string TD_4436_Alter_GroupCustomisation_Add_V2_UpdateCompleteBy_Supervisor_Down { - get { - return ResourceManager.GetString("TD_4436_Alter_GroupCustomisation_Add_V2_UpdateCompleteBy_Supervisor_Down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GroupCustomisation_Add_V2] Script Date: 27/08/2024 14:41:29 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/10/2018 - ///-- Description: Adds a customisation to a group and enrols all group delegates on the customisation if applicable. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GroupCustomisation_Add_V2] - /// -- Add the paramet [rest of string was truncated]";. - /// - internal static string TD_4436_Alter_GroupCustomisation_Add_V2_UpdateCompleteBy_Supervisor_Up { - get { - return ResourceManager.GetString("TD_4436_Alter_GroupCustomisation_Add_V2_UpdateCompleteBy_Supervisor_Up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecord_V3] Script Date: 14/08/2024 14:46:35 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 15 February 2012 - ///-- Description: Creates the Progress and aspProgress record for a new user - ///-- Returns: 0 : success, progress created - ///-- 1 : Failed - progress already exists - ///-- 100 : Failed - CentreID and CustomisationID don't [rest of string was truncated]";. - /// - internal static string TD_4436_Alter_uspCreateProgressRecord_V3_Down { - get { - return ResourceManager.GetString("TD_4436_Alter_uspCreateProgressRecord_V3_Down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecord_V3] Script Date: 14/08/2024 14:46:35 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 15 February 2012 - ///-- Description: Creates the Progress and aspProgress record for a new user - ///-- Returns: 0 : success, progress created - ///-- 1 : Failed - progress already exists - ///-- 100 : Failed - CentreID and CustomisationID don't [rest of string was truncated]";. - /// - internal static string TD_4436_Alter_uspCreateProgressRecord_V3_Up { - get { - return ResourceManager.GetString("TD_4436_Alter_uspCreateProgressRecord_V3_Up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2] Script Date: 27/08/2024 15:06:49 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 11/04/2019 - ///-- Description: Creates the Progress and aspProgress record for a new user with no return value - ///-- Returns: Nothing - /// - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[uspCreatePr [rest of string was truncated]";. - /// - internal static string TD_4436_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Down { - get { - return ResourceManager.GetString("TD_4436_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Down", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2] Script Date: 27/08/2024 15:06:49 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 11/04/2019 - ///-- Description: Creates the Progress and aspProgress record for a new user with no return value - ///-- Returns: Nothing - /// - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[uspCreatePr [rest of string was truncated]";. - /// - internal static string TD_4436_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Up { - get { - return ResourceManager.GetString("TD_4436_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Up", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 05/09/2024 16:24:49 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of completed courses for the candidate. - ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetCompletedCoursesFo [rest of string was truncated]";. - /// - internal static string TD_4634_Alter_GetCompletedCoursesForCandidate_DOWN { - get { - return ResourceManager.GetString("TD_4634_Alter_GetCompletedCoursesForCandidate_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 05/09/2024 16:24:49 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 16/12/2016 - ///-- Description: Returns a list of completed courses for the candidate. - ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetCompletedCoursesFo [rest of string was truncated]";. - /// - internal static string TD_4634_Alter_GetCompletedCoursesForCandidate_UP { - get { - return ResourceManager.GetString("TD_4634_Alter_GetCompletedCoursesForCandidate_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetAssessmentResultsByDelegate] Script Date: 07/11/2024 21:36:58 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Auldrin Possa - ///-- Create date: 30/11/2023 - ///-- Description: Returns assessment results for a delegate - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetAssessmentResultsByDelegate] - /// @selfAssessmentId as Int = 0, - /// @delegateId as int = 0 - ///AS - ///BEGIN [rest of string was truncated]";. - /// - internal static string TD_4950_Alter_GetAssessmentResultsByDelegate_DOWN { - get { - return ResourceManager.GetString("TD_4950_Alter_GetAssessmentResultsByDelegate_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetAssessmentResultsByDelegate] Script Date: 07/11/2024 21:36:58 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Auldrin Possa - ///-- Create date: 30/11/2023 - ///-- Description: Returns assessment results for a delegate - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetAssessmentResultsByDelegate] - /// @selfAssessmentId as Int = 0, - /// @delegateId as int = 0 - ///AS - ///BEGIN [rest of string was truncated]";. - /// - internal static string TD_4950_Alter_GetAssessmentResultsByDelegate_UP { - get { - return ResourceManager.GetString("TD_4950_Alter_GetAssessmentResultsByDelegate_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to USE [mbdbx101_uar] - ///GO - ////****** Object: StoredProcedure [dbo].[GetCandidateAssessmentResultsById] Script Date: 14/11/2024 14:31:31 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Auldrin Possa - ///-- Create date: 30/11/2023 - ///-- Description: Returns candidate assessment results by candidateAssessmentId - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetCandidateAssessmentResultsById] - /// @candidateAssessmen [rest of string was truncated]";. - /// - internal static string TD_4950_AlterGetCandidateAssessmentResultsById_DOWN { - get { - return ResourceManager.GetString("TD_4950_AlterGetCandidateAssessmentResultsById_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to USE [mbdbx101_uar] - ///GO - ////****** Object: StoredProcedure [dbo].[GetCandidateAssessmentResultsById] Script Date: 14/11/2024 14:31:31 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Auldrin Possa - ///-- Create date: 30/11/2023 - ///-- Description: Returns candidate assessment results by candidateAssessmentId - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetCandidateAssessmentResultsById] - /// @candidateAssessmen [rest of string was truncated]";. - /// - internal static string TD_4950_AlterGetCandidateAssessmentResultsById_UP { - get { - return ResourceManager.GetString("TD_4950_AlterGetCandidateAssessmentResultsById_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[GetOtherCentresForSelfAssessment] Script Date: 12/11/2024 08:47:08 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 22/01/2024 - ///-- Description: Gets a comma separated list of other centres for a user self assessment - ///-- ============================================= - ///CREATE OR ALTER FUNCTION [dbo].[GetOtherCentresForSelfAssessment] - ///( - /// -- Add the para [rest of string was truncated]";. - /// - internal static string TD_4950_dboGetOtherCentresForSelfAssessmentCreateOrAlter { - get { - return ResourceManager.GetString("TD-4950-dboGetOtherCentresForSelfAssessmentCreateOrAlter", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V6] Script Date: 29/09/2022 19:11:04 ******/ - ///SET ANSI_NULLS ON - ///GO - /// - ///SET QUOTED_IDENTIFIER ON - ///GO - /// - ///-- ============================================= - ///-- Author: Manish Agarwal - ///-- Create date: 26/09/2022 - ///-- Description: Returns active available customisations for centre v6 adds SelfAssessments. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFil [rest of string was truncated]";. - /// - internal static string TD_786_GetSelfRegisteredFlag_DOWN { - get { - return ResourceManager.GetString("TD-786-GetSelfRegisteredFlag_DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] Script Date: 08/12/2022 13:00:15 ******/ - ///SET ANSI_NULLS ON - ///GO - ///SET QUOTED_IDENTIFIER ON - ///GO - ///-- ============================================= - ///-- Author: Kevin Whittaker - ///-- Create date: 05/10/2020 - ///-- Description: Returns active available customisations for centre v5 adds SelfAssessments. - ///-- ============================================= - ///ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFilter [rest of string was truncated]";. - /// - internal static string TD_786_GetSelfRegisteredFlag_UP { - get { - return ResourceManager.GetString("TD-786-GetSelfRegisteredFlag_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to <ol type=""1""><li><strong>About these terms and conditions</strong><ul data-list-level=""1""><li>It is your responsibility to ensure that you understand and comply with these terms and conditions. It ensures that:<ul data-list-level=""2""><li>You understand your responsibilities and what constitutes an abuse of the service</li><li>Computers and personal data are not put at risk</li></ul></li><li>If you have any questions about these terms and conditions, you should contact your Digital Learning Solutions c [rest of string was truncated]";. - /// - internal static string TermsAndConditionsOldrecord { - get { - return ResourceManager.GetString("TermsAndConditionsOldrecord", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to <h1 class="policy-text-center">TERMS AND CONDITIONS</h1> - ///<h1 class="policy-text-center">PLEASE READ THESE TERMS AND CONDITIONS CAREFULLY BEFORE USING THE PLATFORM. YOUR ATTENTION IS PARTICULARLY DRAWN TO THE PROVISIONS OF CLAUSE 14 (OUR RESPONSIBILITY FOR LOSS OR DAMAGE SUFFERED BY YOU) AND CLAUSE 15 (INDEMNITIES).</h1> - ///<ol class="custom-ordered-list nhsuk-u-padding-left-0"> - /// - /// - ///<li class="h2 nhsuk-heading-l nhsuk-u-font-weight-bold nhsuk-u-margin-0">THE PLATFORM - ///<ol class [rest of string was truncated]";. - /// - internal static string TermsConditions { - get { - return ResourceManager.GetString("TermsConditions", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to DROP VIEW AdminUsers - /// GO - ///DROP VIEW Candidates - /// GO - ///. - /// - internal static string UAR_831_CreateViewsForAdminUsersAndCandidatesTables_DOWN { - get { - return ResourceManager.GetString("UAR-831-CreateViewsForAdminUsersAndCandidatesTables-DOWN", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to CREATE VIEW AdminUsers AS - ///SELECT dbo.AdminAccounts.ID AS AdminID, - /// null AS Login, - /// dbo.Users.PasswordHash AS Password, - /// dbo.AdminAccounts.CentreID, - /// dbo.AdminAccounts.IsCentreAdmin AS CentreAdmin, - /// 0 AS ConfigAdmin, - /// dbo.AdminAccounts.IsReportsViewer AS SummaryReports, - /// dbo.AdminAccounts.IsSuperAdmin AS UserAdmin, - /// dbo.Us [rest of string was truncated]";. - /// - internal static string UAR_831_CreateViewsForAdminUsersAndCandidatesTables_UP { - get { - return ResourceManager.GetString("UAR-831-CreateViewsForAdminUsersAndCandidatesTables-UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to DECLARE @dbName NVARCHAR(128) = DB_NAME() - ///DECLARE @defaultPath NVARCHAR(500) = CONVERT(NVARCHAR(500), SERVERPROPERTY('InstanceDefaultDataPath')) - ///DECLARE @snapshotTime NVARCHAR(12) = FORMAT(GETDATE(), 'yyyyMMddHHmm') - /// - ///DECLARE @snapSql NVARCHAR(4000) = 'CREATE DATABASE ' + @dbName + '_' + @snapshotTime + ' ON - ///( NAME = mbdbx101, FILENAME = ''' + @defaultPath + @dbName + '_' + @snapshotTime + '''), - ///( NAME = mbdbx101files, FILENAME = ''' + @defaultPath + @dbName + '_filestream1_' + @snapshotTime + ''') - ///A [rest of string was truncated]";. - /// - internal static string UAR_858_SnapshotData_UP { - get { - return ResourceManager.GetString("UAR_858_SnapshotData_UP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to DECLARE @dbName NVARCHAR(128) = DB_NAME() - ///DECLARE @snapshotName NVARCHAR(128) = CONVERT(NVARCHAR(128), (SELECT TOP 1 name FROM sys.databases WHERE NAME LIKE @dbName + '_2%' ORDER BY create_date DESC)) - /// - ///DECLARE @adminSql NVARCHAR(4000) = 'UPDATE AdminAccounts - ///SET - /// Login_deprecated = snapAA.Login_deprecated, - /// Password_deprecated = snapAA.Password_deprecated, - /// CentreID = snapAA.CentreID, - /// IsCentreAdmin = snapAA.IsCentreAdmin, - /// ConfigAdmin_deprecated = snapAA.ConfigAdmin_deprecated, - /// [rest of string was truncated]";. - /// - internal static string UAR_859_PopulateUsersTableFromAccountsTables_DOWN { - get { - return ResourceManager.GetString("UAR_859_PopulateUsersTableFromAccountsTables_DOWN", resourceCulture); - } - } - } -} +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace DigitalLearningSolutions.Data.Migrations.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DigitalLearningSolutions.Data.Migrations.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/10/2020 + ///-- Description: Updates a customisation based on form values + ///-- V2 Adds @CCEmail + ///-- V3 Adds ApplyLPDefaultsToSelfEnrol + ///-- ============================================= + ///CREATE PROCEDURE [dbo].[UpdateCustomisation_V3] + /// -- Add the parameters for the stored procedure here + /// @CustomisationID As Int, + /// @Active as bit, + /// @CustomisationName as nvarcha [rest of string was truncated]";. + /// + internal static string ApplyLPDefaultsSPChanges { + get { + return ResourceManager.GetString("ApplyLPDefaultsSPChanges", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to <div class=nhsuk-u-reading-width><h2>What are cookies?</h2><p>Cookies are files saved on your phone, tablet or computer when you visit a website.<p>They store information about how you use the website, such as the pages you visit.<p>Cookies are not viruses or computer programs. They are very small so do not take up much space.<h2>How we use cookies</h2><p>We only use cookies to:<ul><li>make our website work<li>measure how you use our website, such as which links you click on (analytics cookies), if you give [rest of string was truncated]";. + /// + internal static string CookiePolicy { + get { + return ResourceManager.GetString("CookiePolicy", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to -- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 04/01/2021 + ///-- Description: Reorders the FrameworkCompetencyGroups in a given Framework - moving the given group up or down. + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE [dbo].[ReorderFrameworkCompetencyGroup] + /// -- Add the parameters for the stored procedure here + /// @FrameworkCompetencyGroupID int, + /// @Direction nvarchar(4) = '', + /// @SingleStep bit + ///AS + ///BEGIN + /// -- SET NOCOUNT ON added [rest of string was truncated]";. + /// + internal static string CreateOrAlterReorderFrameworkCompetenciesAndGroupsSPs { + get { + return ResourceManager.GetString("CreateOrAlterReorderFrameworkCompetenciesAndGroupsSPs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[InsertCustomisation_V3] Script Date: 20/11/2020 14:12:52 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 28 February 2020 + ///-- V2 Adds @CCCompletion field + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE [dbo].[InsertCustomisation_V3] + /// @Active as bit, + /// @ApplicationID as int, + /// @CentreID as int, + /// @CustomisationName as nvarch [rest of string was truncated]";. + /// + internal static string DLSV2_106_CreateOrAlterInsertCustomisation_V3 { + get { + return ResourceManager.GetString("DLSV2_106_CreateOrAlterInsertCustomisation_V3", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[InsertCustomisation_V3] Script Date: 20/11/2020 14:12:52 ******/ + ///DROP PROCEDURE [dbo].[InsertCustomisation_V3] + ///GO + /// + /// + ///. + /// + internal static string DLSV2_106_DropInsertCustomisation_V3 { + get { + return ResourceManager.GetString("DLSV2_106_DropInsertCustomisation_V3", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetFilteredCompetencyResponsesForCandidate] Script Date: 22/09/2020 09:22:43 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/09/2020 + ///-- Description: Returns user self assessment responses (AVG) for Filtered competency + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE [dbo].[GetFilteredCompetencyResponsesForCandidate] + /// -- Add t [rest of string was truncated]";. + /// + internal static string DLSV2_133_AdjustScoresForFilteredSP { + get { + return ResourceManager.GetString("DLSV2_133_AdjustScoresForFilteredSP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetFilteredCompetencyResponsesForCandidate] Script Date: 22/09/2020 09:22:43 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/09/2020 + ///-- Description: Returns user self assessment responses (AVG) for Filtered competency + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE [dbo].[GetFilteredCompetencyResponsesForCandidate] + /// -- Add t [rest of string was truncated]";. + /// + internal static string DLSV2_133_UnAdjustScoresForFilteredSP { + get { + return ResourceManager.GetString("DLSV2_133_UnAdjustScoresForFilteredSP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + ////****** Object: UserDefinedFunction [dbo].[GetSelfAssessmentSummaryForCandidate] Script Date: 28/01/2021 07:45:22 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///CREATE OR ALTER FUNCTION [dbo].[GetSelfAssessmentSummaryForCandidate] + ///( + /// @CandidateID int, + /// @SelfAssessmentID int + ///) + ///RETURNS @ResTable TABLE + ///( + /// CompetencyGroupID int, + /// Confidence float, + /// Relevance float + ///) + /// + ///AS + ///BEGIN + ///INSERT INTO @ResTable + /// SELECT CompetencyGroupID, [1] AS Confidence, [2] AS Relevance + ///FROM [rest of string was truncated]";. + /// + internal static string DLSV2_153_DropFilteredFunctionTweak { + get { + return ResourceManager.GetString("DLSV2_153_DropFilteredFunctionTweak", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + /// + ////****** Object: StoredProcedure [dbo].[GetFilteredCompetencyResponsesForCandidate] Script Date: 27/01/2021 16:01:15 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/09/2020 + ///-- Description: Returns user self assessment responses (AVG) for Filtered competency + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE [dbo].[GetFilteredCompetencyResponsesForCandidate] + /// [rest of string was truncated]";. + /// + internal static string DLSV2_153_DropFilteredSPFixes { + get { + return ResourceManager.GetString("DLSV2_153_DropFilteredSPFixes", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[GetSelfAssessmentSummaryForCandidate] Script Date: 28/01/2021 07:43:39 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///CREATE OR ALTER FUNCTION [dbo].[GetSelfAssessmentSummaryForCandidate] + ///( + /// @CandidateID int, + /// @SelfAssessmentID int + ///) + ///RETURNS @ResTable TABLE + ///( + /// CompetencyGroupID int, + /// Confidence float, + /// Relevance float + ///) + /// + ///AS + ///BEGIN + ///INSERT INTO @ResTable + /// SELECT CompetencyGroupID, [1] AS Confidence, [2] AS Relevance + ///FROM (SELEC [rest of string was truncated]";. + /// + internal static string DLSV2_153_FilteredFunctionTweak { + get { + return ResourceManager.GetString("DLSV2_153_FilteredFunctionTweak", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetFilteredCompetencyResponsesForCandidate] Script Date: 27/01/2021 15:29:35 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/09/2020 + ///-- Description: Returns user self assessment responses (AVG) for Filtered competency + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE [dbo].[GetFilteredCompetencyResponsesForCandidate] + /// -- Add [rest of string was truncated]";. + /// + internal static string DLSV2_153_FilteredSPFixes { + get { + return ResourceManager.GetString("DLSV2_153_FilteredSPFixes", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[InsertUpdateCustomisationTutorials] Script Date: 21/04/2021 16:16:32 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 02/03/2020 + ///-- Description: Updates or inserts a CustomisationTutorials record with new values + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[InsertUpdateCustomisationTutorials] + /// -- Add the parameters for the store [rest of string was truncated]";. + /// + internal static string dlsv2_172_fixcustomisationtutorialprogressissue_down { + get { + return ResourceManager.GetString("dlsv2_172_fixcustomisationtutorialprogressissue_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[InsertUpdateCustomisationTutorials] Script Date: 21/04/2021 16:16:32 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 02/03/2020 + ///-- Description: Updates or inserts a CustomisationTutorials record with new values + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[InsertUpdateCustomisationTutorials] + /// -- Add the parameters for the store [rest of string was truncated]";. + /// + internal static string dlsv2_172_fixcustomisationtutorialprogressissue_up { + get { + return ResourceManager.GetString("dlsv2_172_fixcustomisationtutorialprogressissue_up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 21/06/2021 08:36:32 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of completed courses for the candidate. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetCompletedCoursesForCandidate] + /// -- Add the parameters for the stored procedure here + /// [rest of string was truncated]";. + /// + internal static string DLSV2_236_GetCompletedCoursesTweak_DOWN { + get { + return ResourceManager.GetString("DLSV2_236_GetCompletedCoursesTweak_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 21/06/2021 08:36:32 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of completed courses for the candidate. + ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetCompletedCoursesForCan [rest of string was truncated]";. + /// + internal static string DLSV2_236_GetCompletedCoursesTweak_UP { + get { + return ResourceManager.GetString("DLSV2_236_GetCompletedCoursesTweak_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] Script Date: 22/06/2021 09:46:28 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 05/10/2020 + ///-- Description: Returns active available customisations for centre v5 adds SelfAssessments. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFilter [rest of string was truncated]";. + /// + internal static string DLSV2_237_GetActiveAvailableTweak_DOWN { + get { + return ResourceManager.GetString("DLSV2_237_GetActiveAvailableTweak_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] Script Date: 22/06/2021 09:46:28 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 05/10/2020 + ///-- Description: Returns active available customisations for centre v5 adds SelfAssessments. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFilter [rest of string was truncated]";. + /// + internal static string DLSV2_237_GetActiveAvailableTweak_UP { + get { + return ResourceManager.GetString("DLSV2_237_GetActiveAvailableTweak_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[GetLinkedFieldNameForCentreByID] Script Date: 16/07/2021 09:23:22 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 12/10/2018 + ///-- Description: Return the field name for centre group linked field ID + ///-- ============================================= + ///ALTER FUNCTION [dbo].[GetLinkedFieldNameForCentreByID] + ///( + /// -- Add the parameters for the function here + /// @ [rest of string was truncated]";. + /// + internal static string DLSV2_272_AlterGetLinkedFieldNameFunction_DOWN { + get { + return ResourceManager.GetString("DLSV2_272_AlterGetLinkedFieldNameFunction_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[GetLinkedFieldNameForCentreByID] Script Date: 16/07/2021 09:23:22 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 12/10/2018 + ///-- Description: Return the field name for centre group linked field ID + ///-- ============================================= + ///ALTER FUNCTION [dbo].[GetLinkedFieldNameForCentreByID] + ///( + /// -- Add the parameters for the function here + /// @ [rest of string was truncated]";. + /// + internal static string DLSV2_272_AlterGetLinkedFieldNameFunction_UP { + get { + return ResourceManager.GetString("DLSV2_272_AlterGetLinkedFieldNameFunction_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[ReorderFrameworkCompetency] Script Date: 15/10/2021 08:31:18 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + /// + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 15/10/2021 + ///-- Description: Reorders the CompetencyAssessmentQuestions - moving the given competency question up or down. + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE [dbo].[ReorderCompetencyAssessmentQuestion] + /// [rest of string was truncated]";. + /// + internal static string DLSV2_379_ReorderCompetencyAssessmentQuestionsSP { + get { + return ResourceManager.GetString("DLSV2_379_ReorderCompetencyAssessmentQuestionsSP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V6] Script Date: 29/09/2022 19:11:04 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Manish Agarwal + ///-- Create date: 26/09/2022 + ///-- Description: Returns active available customisations for centre v6 adds SelfAssessments. + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsFo [rest of string was truncated]";. + /// + internal static string DLSV2_581_GetActiveAvailableCustomisationsForCentreFiltered_V6 { + get { + return ResourceManager.GetString("DLSV2_581_GetActiveAvailableCustomisationsForCentreFiltered_V6", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to --DLSV2-95 Adds System Versioning to auditable tables (UP) + /// + ///--Frameworks table + ///ALTER TABLE Frameworks + /// ADD + /// SysStartTime DATETIME2 GENERATED ALWAYS AS ROW START HIDDEN + /// CONSTRAINT DF_Frameworks_SysStart DEFAULT SYSUTCDATETIME() + /// , SysEndTime DATETIME2 GENERATED ALWAYS AS ROW END HIDDEN + /// CONSTRAINT DF_Frameworks_SysEnd DEFAULT CONVERT(DATETIME2, '9999-12-31 23:59:59.9999999'), + /// PERIOD FOR SYSTEM_TIME (SysStartTime, SysEndTime); + ///GO + /// + ///ALTER TABLE Framework [rest of string was truncated]";. + /// + internal static string DLSV2_95_AddSystemVersioning { + get { + return ResourceManager.GetString("DLSV2_95_AddSystemVersioning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to --DLSV2-95 Removes System Versioning to auditable tables (DOWN) + /// + /// + ///-- Remove versioning from FrameworkCompetencies table + ///ALTER TABLE FrameworkCompetencies SET (SYSTEM_VERSIONING = OFF); + ///DROP TABLE dbo.FrameworkCompetencies; + ///DROP TABLE dbo.FrameworkCompetenciesHistory; + ///GO + /// + ///-- Remove versioning from FrameworkCompetencyGroups table + ///ALTER TABLE FrameworkCompetencyGroups SET (SYSTEM_VERSIONING = OFF); + ///DROP TABLE dbo.FrameworkCompetencyGroups; + ///DROP TABLE dbo.FrameworkCompetencyGroupsHistory; + ///GO + /// + ///-- [rest of string was truncated]";. + /// + internal static string DLSV2_95_RemoveSystemVersioning { + get { + return ResourceManager.GetString("DLSV2_95_RemoveSystemVersioning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V6] Script Date: 03/10/2022 06:00:00 ******/ + ///DROP PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V6] + ///GO + /// + ///. + /// + internal static string DropActiveAvailableV6 { + get { + return ResourceManager.GetString("DropActiveAvailableV6", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 䕓⁔乁䥓也䱕卌传ൎ䜊൏匊呅儠何䕔彄䑉久䥔䥆剅传ൎ䜊൏ഊⴊ‭㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽ഽⴊ‭畁桴牯ऺ䬉癥湩圠楨瑴歡牥਍ⴭ䌠敲瑡⁥慤整›㔱䘠扥畲牡⁹〲㈱਍ⴭ䐠獥牣灩楴湯ऺ牃慥整⁳桴⁥牐杯敲獳愠摮愠灳牐杯敲獳爠捥牯⁤潦⁲⁡敮⁷獵牥਍ⴭ删瑥牵獮ऺ〉㨠猠捵散獳‬牰杯敲獳挠敲瑡摥਍ⴭ†††ठㄉ㨠䘠楡敬⁤‭牰杯敲獳愠牬慥祤攠楸瑳൳ⴊ‭†††उ〱‰›慆汩摥ⴠ䌠湥牴䥥⁄湡⁤畃瑳浯獩瑡潩䥮⁄潤❮⁴慭捴൨ⴊ‭†††उ〱‱›慆汩摥ⴠ䌠湥牴䥥⁄湡⁤慃摮摩瑡䥥⁄潤❮⁴慭捴൨ഊⴊ‭㍖挠慨杮獥椠据畬敤ഺഊⴊ‭桃捥獫琠慨⁴硥獩楴杮瀠潲牧獥⁳慨湳琧戠敥敒潭敶⁤牯删晥敲桳摥戠晥牯⁥敲畴楲楮杮攠牲牯മⴊ‭摁獤瀠牡浡瑥牥⁳潦⁲湅潲汬敭瑮洠瑥潨⁤湡⁤摡業䑉਍ⴭ㴠㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽਍䱁䕔⁒剐䍏䑅剕⁅摛潢⹝畛灳牃慥整牐杯敲獳敒潣摲噟崳਍䀉慃摮摩瑡䥥⁄湩ⱴ਍䀉畃瑳浯獩瑡潩䥮⁄湩ⱴ਍䀉敃瑮敲䑉椠瑮ബऊ䕀牮汯浬湥䵴瑥潨䥤⁄湩ⱴ਍䀉湅潲汬摥祂摁業䥮⁄湩൴䄊൓䈊䝅义਍ⴉ‭䕓⁔低佃乕⁔乏愠摤摥琠牰癥湥⁴硥牴⁡敲畳瑬猠瑥⁳牦浯਍ⴉ‭湩整晲牥湩⁧楷桴匠䱅䍅⁔瑳瑡浥湥獴മऊ䕓⁔低佃乕⁔乏഻ऊⴭ਍ⴉ‭桔牥⁥牡⁥慶楲畯⁳桴湩獧琠 [rest of string was truncated]";. + /// + internal static string DropApplyLPDefaultsSPChanges { + get { + return ResourceManager.GetString("DropApplyLPDefaultsSPChanges", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + ///DROP PROCEDURE [dbo].[GetFilteredCompetencyResponsesForCandidate] + ///GO + ///DROP PROCEDURE [dbo].[GetFilteredProfileForCandidate] + ///GO + ///DROP FUNCTION [dbo].[GetSelfAssessmentSummaryForCandidate] + ///GO + ///DROP FUNCTION [dbo].[GetFilteredAPISeniorityID] + ///GO + /// + /// + /// + /// + /// + ///. + /// + internal static string DropFilteredSPs { + get { + return ResourceManager.GetString("DropFilteredSPs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to DROP PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] + ///GO. + /// + internal static string DropGetActiveAvailableV5 { + get { + return ResourceManager.GetString("DropGetActiveAvailableV5", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[ReorderTutorial] Script Date: 04/01/2021 16:17:57 ******/ + ///DROP PROCEDURE [dbo].[ReorderFrameworkCompetency] + ///GO + ///DROP PROCEDURE [dbo].[ReorderFrameworkCompetencyGroup] + ///GO + /// + ///. + /// + internal static string DropReorderFrameworkCompetenciesAndGroupsSPs { + get { + return ResourceManager.GetString("DropReorderFrameworkCompetenciesAndGroupsSPs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + ///CREATE FUNCTION [dbo].[GetSelfAssessmentSummaryForCandidate] + ///( + /// @CandidateID int, + /// @SelfAssessmentID int + ///) + ///RETURNS @ResTable TABLE + ///( + /// CompetencyGroupID int, + /// Confidence float, + /// Relevance float + ///) + /// + ///AS + ///BEGIN + ///INSERT INTO @ResTable + /// SELECT CompetencyGroupID, [1] AS Confidence, [2] AS Relevance + ///FROM (SELECT comp.CompetencyGroupID, sar.AssessmentQuestionID, sar.Result*1.0 AS Result + /// FROM Competencies AS comp INNER JOIN + /// SelfAssessmentResults AS sar [rest of string was truncated]";. + /// + internal static string FilteredSPs { + get { + return ResourceManager.GetString("FilteredSPs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] Script Date: 14/10/2020 10:02:34 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 05/10/2020 + ///-- Description: Returns active available customisations for centre v5 adds SelfAssessments. + ///-- ============================================= + ///CREATE PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreF [rest of string was truncated]";. + /// + internal static string GetActiveAvailableV5 { + get { + return ResourceManager.GetString("GetActiveAvailableV5", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] Script Date: 22/06/2021 09:46:28 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 05/10/2020 + ///-- Description: Returns active available customisations for centre v5 adds SelfAssessments. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFilter [rest of string was truncated]";. + /// + internal static string HEEDLS_667_GetActiveAvailableCustomisationsForCentreFiltered_V5_Signposting_DOWN { + get { + return ResourceManager.GetString("HEEDLS_667_GetActiveAvailableCustomisationsForCentreFiltered_V5_Signposting_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] Script Date: 17/11/2021 16:40:41 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 05/10/2020 + ///-- Description: Returns active available customisations for centre v5 adds SelfAssessments. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFilter [rest of string was truncated]";. + /// + internal static string HEEDLS_667_GetActiveAvailableCustomisationsForCentreFiltered_V5_Signposting_UP { + get { + return ResourceManager.GetString("HEEDLS_667_GetActiveAvailableCustomisationsForCentreFiltered_V5_Signposting_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V6] Script Date: 24/01/2023 15:00:41 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 24/01/2023 + ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for cate [rest of string was truncated]";. + /// + internal static string td_1043_getactivitiesforenrolment { + get { + return ResourceManager.GetString("td_1043_getactivitiesforenrolment", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V6] Script Date: 24/01/2023 15:31:20 ******/ + ///DROP PROCEDURE [dbo].[GetActivitiesForDelegateEnrolment] + ///GO + /// + /// + ///. + /// + internal static string td_1043_getactivitiesforenrolment_down { + get { + return ResourceManager.GetString("td_1043_getactivitiesforenrolment_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: View [dbo].[Candidates] Script Date: 2/22/2023 09:29:54 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: + ///-- Modified date: 22/02/2023 + ///-- ============================================= + /// + ///ALTER VIEW [dbo].[Candidates] AS + ///SELECT dbo.DelegateAccounts.ID AS CandidateID, + /// dbo.DelegateAccounts.Active, + /// dbo.DelegateAccounts.CentreID, + /// dbo.Users.FirstName, + /// dbo.Users.LastName, + /// [rest of string was truncated]";. + /// + internal static string td_1131_alterviewcandidatesadduserid_down { + get { + return ResourceManager.GetString("td_1131_alterviewcandidatesadduserid_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: View [dbo].[Candidates] Script Date: 2/22/2023 09:29:54 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: + ///-- Modified date: 22/02/2023 + ///-- ============================================= + /// + ///ALTER VIEW [dbo].[Candidates] AS + ///SELECT dbo.DelegateAccounts.ID AS CandidateID, + /// dbo.DelegateAccounts.Active, + /// dbo.DelegateAccounts.CentreID, + /// dbo.Users.FirstName, + /// dbo.Users.LastName, + /// [rest of string was truncated]";. + /// + internal static string td_1131_alterviewcandidatesadduserid_up { + get { + return ResourceManager.GetString("td_1131_alterviewcandidatesadduserid_up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to --TD-1220-AddSystemVersioning_SelfAssessmentResultSupervisorVerifications + ///--Add versioning in SelfAssessmentResultSupervisorVerifications table + ///ALTER TABLE SelfAssessmentResultSupervisorVerifications + /// ADD + /// SysStartTime DATETIME2 GENERATED ALWAYS AS ROW START HIDDEN + /// CONSTRAINT DF_SelfAssessmentResultSupervisorVerifications_SysStart DEFAULT SYSUTCDATETIME() + /// , SysEndTime DATETIME2 GENERATED ALWAYS AS ROW END HIDDEN + /// CONSTRAINT DF_SelfAssessmentResultSupervisorVerif [rest of string was truncated]";. + /// + internal static string TD_1220_AddSystemVersioning_SelfAssessmentResultSupervisorVerifications { + get { + return ResourceManager.GetString("TD_1220_AddSystemVersioning_SelfAssessmentResultSupervisorVerifications", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to --TD-1220-AddSystemVersioning_SelfAssessmentResultSupervisorVerifications + ///-- Remove versioning from SelfAssessmentResultSupervisorVerifications table + ///ALTER TABLE SelfAssessmentResultSupervisorVerifications SET (SYSTEM_VERSIONING = OFF); + ///ALTER TABLE SelfAssessmentResultSupervisorVerifications DROP PERIOD FOR SYSTEM_TIME; + ///ALTER TABLE [dbo].SelfAssessmentResultSupervisorVerifications DROP CONSTRAINT [DF_SelfAssessmentResultSupervisorVerifications_SysEnd]; + ///ALTER TABLE [dbo].SelfAssessmentResultSupervisorVe [rest of string was truncated]";. + /// + internal static string TD_1220_RemoveSystemVersioning_SelfAssessmentResultSupervisorVerifications { + get { + return ResourceManager.GetString("TD_1220_RemoveSystemVersioning_SelfAssessmentResultSupervisorVerifications", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 22/05/2023 07:50:40 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 24/01/2023 + ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. + ///-- ============= [rest of string was truncated]";. + /// + internal static string td_1610_update_getactivitiesfordelegateenrolment_proc_down { + get { + return ResourceManager.GetString("td_1610_update_getactivitiesfordelegateenrolment_proc_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 19/05/2023 16:40:12 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 24/01/2023 + ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. + ///-- ============= [rest of string was truncated]";. + /// + internal static string td_1610_update_getactivitiesfordelegateenrolment_proc_up { + get { + return ResourceManager.GetString("td_1610_update_getactivitiesfordelegateenrolment_proc_up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 01/06/2023 15:32:33 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 24/01/2023 + ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. + ///-- ========= [rest of string was truncated]";. + /// + internal static string TD_1766_GetActivitiesForDelegateEnrolmentTweak { + get { + return ResourceManager.GetString("TD_1766_GetActivitiesForDelegateEnrolmentTweak", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 01/06/2023 15:32:33 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 24/01/2023 + ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. + ///-- ========= [rest of string was truncated]";. + /// + internal static string TD_1766_GetActivitiesForDelegateEnrolmentTweak_down { + get { + return ResourceManager.GetString("TD_1766_GetActivitiesForDelegateEnrolmentTweak_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 16/08/2023 12:17:34 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of completed courses for the candidate. + ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetCompletedCoursesFo [rest of string was truncated]";. + /// + internal static string TD_1766_GetCompletedCoursesForCandidateTweak { + get { + return ResourceManager.GetString("TD_1766_GetCompletedCoursesForCandidateTweak", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 16/08/2023 12:17:34 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of completed courses for the candidate. + ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetCompletedCoursesFo [rest of string was truncated]";. + /// + internal static string TD_1766_GetCompletedCoursesForCandidateTweak_down { + get { + return ResourceManager.GetString("TD_1766_GetCompletedCoursesForCandidateTweak_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCurrentCoursesForCandidate_V2] Script Date: 26/06/2023 08:04:53 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + /// + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of active progress records for the candidate. + ///-- Change 18/09/2018: Adds logic to exclude Removed courses from returned results. + ///-- ============================================= + ///ALTER PROCEDU [rest of string was truncated]";. + /// + internal static string TD_1766_GetCurrentCoursesForCandidateTweak { + get { + return ResourceManager.GetString("TD_1766_GetCurrentCoursesForCandidateTweak", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCurrentCoursesForCandidate_V2] Script Date: 22/06/2023 14:49:50 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of active progress records for the candidate. + ///-- Change 18/09/2018: Adds logic to exclude Removed courses from returned results. + ///-- ============================================= + ///ALTER PROCEDURE [ [rest of string was truncated]";. + /// + internal static string TD_1766_GetCurrentCoursesForCandidateTweak_down { + get { + return ResourceManager.GetString("TD_1766_GetCurrentCoursesForCandidateTweak_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GroupCustomisation_Add_V2] Script Date: 16/06/2023 09:17:01 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/10/2018 + ///-- Description: Adds a customisation to a group and enrols all group delegates on the customisation if applicable. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GroupCustomisation_Add_V2] + /// -- Add the parameter [rest of string was truncated]";. + /// + internal static string TD_1913_AlterGroupCustomisation_Add_V2_DOWN { + get { + return ResourceManager.GetString("TD_1913_AlterGroupCustomisation_Add_V2_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GroupCustomisation_Add_V2] Script Date: 16/06/2023 09:17:01 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/10/2018 + ///-- Description: Adds a customisation to a group and enrols all group delegates on the customisation if applicable. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GroupCustomisation_Add_V2] + /// -- Add the parameter [rest of string was truncated]";. + /// + internal static string TD_1913_AlterGroupCustomisation_Add_V2_UP { + get { + return ResourceManager.GetString("TD_1913_AlterGroupCustomisation_Add_V2_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to <div class=nhsuk-u-reading-width><h2>What are cookies?</h2><p>Cookies are files saved on your phone, tablet or computer when you visit a website.<p>They store information about how you use the website, such as the pages you visit.<p>Cookies are not viruses or computer programs. They are very small so do not take up much space.<h2>How we use cookies</h2><p>We only use cookies to:<ul><li>make our website work<li>measure how you use our website, such as which links you click on (analytics cookies), if you give [rest of string was truncated]";. + /// + internal static string TD_1943_CookiePolicyContentHtmlOldRecord { + get { + return ResourceManager.GetString("TD_1943_CookiePolicyContentHtmlOldRecord", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to <div class=nhsuk-u-reading-width> + ///<h2>What are cookies?</h2> + ///<p>Cookies are files saved on your phone, tablet or computer when you visit a website.</p> + ///<p>They store information about how you use the website, such as the pages you visit.</p> + ///<p>Cookies are not viruses or computer programs. They are very small so do not take up much space.</p> + ///<h2>How we use cookies</h2><p>We only use cookies to:</p> + ///<ul> + ///<li>make our website work</li> + ///<li>measure how you use our website, such as which links you clic [rest of string was truncated]";. + /// + internal static string TD_1943_CookiesPolicy { + get { + return ResourceManager.GetString("TD_1943_CookiesPolicy", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to -- Remove period field from FrameworkCompetencies table + ///ALTER TABLE FrameworkCompetencies ADD PERIOD FOR SYSTEM_TIME ( SysStartTime, SysEndTime ); + ///GO + /// + ///-- Remove period field from FrameworkCompetencyGroups table + ///ALTER TABLE FrameworkCompetencyGroups ADD PERIOD FOR SYSTEM_TIME ( SysStartTime, SysEndTime ); + ///GO + /// + ///-- Remove period field from Frameworks table + ///ALTER TABLE Frameworks ADD PERIOD FOR SYSTEM_TIME ( SysStartTime, SysEndTime ); + ///GO + /// + ///-- Remove period field from Competencies table + ///ALTER TABL [rest of string was truncated]";. + /// + internal static string TD_2036_SwitchOffPeriodFields_DOWN { + get { + return ResourceManager.GetString("TD_2036_SwitchOffPeriodFields_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to -- Remove period field from FrameworkCompetencies table + ///ALTER TABLE FrameworkCompetencies DROP PERIOD FOR SYSTEM_TIME; + ///GO + /// + ///-- Remove period field from FrameworkCompetencyGroups table + ///ALTER TABLE FrameworkCompetencyGroups DROP PERIOD FOR SYSTEM_TIME; + ///GO + /// + ///-- Remove period field from Frameworks table + ///ALTER TABLE Frameworks DROP PERIOD FOR SYSTEM_TIME; + ///GO + /// + ///-- Remove period field from Competencies table + ///ALTER TABLE Competencies DROP PERIOD FOR SYSTEM_TIME; + ///GO + /// + ///-- Remove period field from Comp [rest of string was truncated]";. + /// + internal static string TD_2036_SwitchOffPeriodFields_UP { + get { + return ResourceManager.GetString("TD_2036_SwitchOffPeriodFields_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to -- Switch on versioning from FrameworkCompetencies table + ///ALTER TABLE FrameworkCompetencies SET (SYSTEM_VERSIONING = ON (HISTORY_TABLE = [dbo].FrameworkCompetenciesHistory)); + ///GO + /// + ///-- Switch on versioning from FrameworkCompetencyGroups table + ///ALTER TABLE FrameworkCompetencyGroups SET (SYSTEM_VERSIONING = ON (HISTORY_TABLE = [dbo].FrameworkCompetencyGroupsHistory)); + ///GO + /// + ///-- Switch on versioning from Frameworks table + ///ALTER TABLE Frameworks SET (SYSTEM_VERSIONING = ON (HISTORY_TABLE = [dbo].FrameworksHisto [rest of string was truncated]";. + /// + internal static string TD_2036_SwitchSystemVersioningOffAllTables_DOWN { + get { + return ResourceManager.GetString("TD_2036_SwitchSystemVersioningOffAllTables_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to -- Remove versioning from FrameworkCompetencies table + ///ALTER TABLE FrameworkCompetencies SET (SYSTEM_VERSIONING = OFF); + ///GO + /// + ///-- Remove versioning from FrameworkCompetencyGroups table + ///ALTER TABLE FrameworkCompetencyGroups SET (SYSTEM_VERSIONING = OFF); + ///GO + /// + ///-- Remove versioning from Frameworks table + ///ALTER TABLE Frameworks SET (SYSTEM_VERSIONING = OFF); + ///GO + /// + ///-- Remove versioning from Competencies table + ///ALTER TABLE Competencies SET (SYSTEM_VERSIONING = OFF); + ///GO + /// + ///-- Remove versioning from Competency [rest of string was truncated]";. + /// + internal static string TD_2036_SwitchSystemVersioningOffAllTables_UP { + get { + return ResourceManager.GetString("TD_2036_SwitchSystemVersioningOffAllTables_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 05/07/2023 08:52:32 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 24/01/2023 + ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. + ///-- ============= [rest of string was truncated]";. + /// + internal static string TD_2094_GetActivitiesForDelegateEnrolmentDelegateStatusPropertyTweak { + get { + return ResourceManager.GetString("TD_2094_GetActivitiesForDelegateEnrolmentDelegateStatusPropertyTweak", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 05/07/2023 09:33:56 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 24/01/2023 + ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. + ///-- ============= [rest of string was truncated]";. + /// + internal static string TD_2094_GetActivitiesForDelegateEnrolmentDelegateStatusPropertyTweak_down { + get { + return ResourceManager.GetString("TD_2094_GetActivitiesForDelegateEnrolmentDelegateStatusPropertyTweak_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 03/07/2023 + ///-- Description: Populate the ReportSelfAssessmentActivityLog table with recent activity + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE PopulateReportSelfAssessmentActivityLog + /// + ///AS + ///BEGIN + /// -- SET NOCOUNT ON added to prevent extra result sets from + /// -- interfering with SELECT statements. + /// SET NOCOUNT ON; + /// + /// DECLARE @ [rest of string was truncated]";. + /// + internal static string TD_2117_CreatePopulateReportSelfAssessmentActivityLog_SP { + get { + return ResourceManager.GetString("TD_2117_CreatePopulateReportSelfAssessmentActivityLog_SP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspReturnSectionsForCandCust_V2] Script Date: 08/12/2023 13:33:59 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 15/08/2013 + ///-- Description: Gets section table for learning menu + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[uspReturnSectionsForCandCust_V2] + /// -- Add the parameters for the stored procedure here + /// @ProgressID [rest of string was truncated]";. + /// + internal static string TD_2481_Update_uspReturnSectionsForCandCust_V2_down { + get { + return ResourceManager.GetString("TD_2481_Update_uspReturnSectionsForCandCust_V2_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspReturnSectionsForCandCust_V2] Script Date: 08/12/2023 13:33:59 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 15/08/2013 + ///-- Description: Gets section table for learning menu + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[uspReturnSectionsForCandCust_V2] + /// -- Add the parameters for the stored procedure here + /// @ProgressID [rest of string was truncated]";. + /// + internal static string TD_2481_Update_uspReturnSectionsForCandCust_V2_up { + get { + return ResourceManager.GetString("TD_2481_Update_uspReturnSectionsForCandCust_V2_up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 05/07/2023 08:52:32 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 24/01/2023 + ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. + ///-- ============= [rest of string was truncated]";. + /// + internal static string TD_2508_GetActivitiesForDelegateEnrolmentHiddenInLearningPortalTweak { + get { + return ResourceManager.GetString("TD_2508_GetActivitiesForDelegateEnrolmentHiddenInLearningPortalTweak", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 05/07/2023 08:52:32 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 24/01/2023 + ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. + ///-- ============= [rest of string was truncated]";. + /// + internal static string TD_2508_GetActivitiesForDelegateEnrolmentHiddenInLearningPortalTweak_down { + get { + return ResourceManager.GetString("TD_2508_GetActivitiesForDelegateEnrolmentHiddenInLearningPortalTweak_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: View [dbo].[AdminUsers] Script Date: 2/6/2023 22:11:41 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: + ///-- Modified date: 02/06/2023 + ///-- Description: Return the admin user details + ///-- ============================================= + /// + ///ALTER VIEW [dbo].[AdminUsers] AS + ///SELECT dbo.AdminAccounts.ID AS AdminID, + /// null AS Login, + /// dbo.Users.PasswordHas [rest of string was truncated]";. + /// + internal static string td_264_alterviewadminusersaddcentrename_down { + get { + return ResourceManager.GetString("td_264_alterviewadminusersaddcentrename_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: View [dbo].[AdminUsers] Script Date: 2/6/2023 22:11:41 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: + ///-- Modified date: 02/06/2023 + ///-- Description: Return the admin user details + ///-- ============================================= + /// + ///ALTER VIEW [dbo].[AdminUsers] AS + ///SELECT dbo.AdminAccounts.ID AS AdminID, + /// null AS Login, + /// dbo.Users.PasswordHas [rest of string was truncated]";. + /// + internal static string td_264_alterviewadminusersaddcentrename_up { + get { + return ResourceManager.GetString("td_264_alterviewadminusersaddcentrename_up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[CheckDelegateStatusForCustomisation] Script Date: 18/10/2023 08:05:27 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/12/2016 + ///-- Description: Checks if learner has progress record against customisation. + ///-- Returns: + ///-- 0: None + ///-- 1: Expired + ///-- 2: Complete + ///-- 3: Current + ///-- ============================================= + ///-- 18/09/2018 Adds return v [rest of string was truncated]";. + /// + internal static string TD_3000_CheckDelegateStatusForCustomisationFix_down { + get { + return ResourceManager.GetString("TD_3000_CheckDelegateStatusForCustomisationFix_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[CheckDelegateStatusForCustomisation] Script Date: 17/10/2023 12:13:14 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/12/2016 + ///-- Description: Checks if learner has progress record against customisation. + ///-- Returns: + ///-- 0: None + ///-- 1: Expired + ///-- 2: Complete + ///-- 3: Current + ///-- ============================================= + ///-- 18/09/2018 Adds return v [rest of string was truncated]";. + /// + internal static string TD_3000_CheckDelegateStatusForCustomisationFix_up { + get { + return ResourceManager.GetString("TD_3000_CheckDelegateStatusForCustomisationFix_up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Auldrin Possa + ///-- Create date: 30/11/2023 + ///-- Description: Returns assessment results for a delegate + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE [dbo].[GetAssessmentResultsByDelegate] + /// @selfAssessmentId as Int = 0, + /// @delegateId as int = 0 + ///AS + ///BEGIN + /// + /// SET NOCOUNT ON; + /// + /// WITH LatestAssessmentResults AS + /// ( + /// SELECT + /// [rest of string was truncated]";. + /// + internal static string TD_3187_CreateGetAssessmentResultsByDelegate_SP { + get { + return ResourceManager.GetString("TD_3187_CreateGetAssessmentResultsByDelegate_SP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Auldrin Possa + ///-- Create date: 30/11/2023 + ///-- Description: Returns candidate assessment results by candidateAssessmentId + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE [dbo].[GetCandidateAssessmentResultsById] + /// @candidateAssessmentId as Int = 0, + /// @adminId as int = 0, + /// @selfAssessmentResultId as int = NULL + ///AS + ///BEGIN + /// + /// SET NOCOUNT ON; + /// + /// WITH LatestAssessmentR [rest of string was truncated]";. + /// + internal static string TD_3187_CreateGetCandidateAssessmentResultsById_SP { + get { + return ResourceManager.GetString("TD_3187_CreateGetCandidateAssessmentResultsById_SP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[SendOneMonthSelfAssessmentTBCReminders] Script Date: 06/12/2023 15:54:40 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 29/11/2023 + ///-- Description: Uses DB mail to send reminders to delegates on self assessments with a TBC date within 1 month. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[SendOneMonthSelfAssessmentTBCReminders] [rest of string was truncated]";. + /// + internal static string TD_3190_FixSelfAssessmentReminderQueriesSP_UP { + get { + return ResourceManager.GetString("TD_3190_FixSelfAssessmentReminderQueriesSP_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 29/11/2023 + ///-- Description: Uses DB mail to send reminders to delegates on self assessments with a TBC date within 1 month. + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE [dbo].[SendSelfAssessmentOverdueReminders] + /// -- Add the parameters for the stored procedure here + /// @EmailProfileName nvarchar(100), + /// @TestOnly bit + ///AS + ///BEGIN + /// -- [rest of string was truncated]";. + /// + internal static string TD_3190_SendOneMonthSelfAssessmentOverdueRemindersSP { + get { + return ResourceManager.GetString("TD_3190_SendOneMonthSelfAssessmentOverdueRemindersSP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 29/11/2023 + ///-- Description: Uses DB mail to send reminders to delegates on self assessments with a TBC date within 1 month. + ///-- ============================================= + ///CREATE OR ALTER PROCEDURE [dbo].[SendOneMonthSelfAssessmentTBCReminders] + /// -- Add the parameters for the stored procedure here + /// @EmailProfileName nvarchar(100), + /// @TestOnly bit + ///AS + ///BEGIN + /// [rest of string was truncated]";. + /// + internal static string TD_3190_SendOneMonthSelfAssessmentTBCRemindersSP { + get { + return ResourceManager.GetString("TD_3190_SendOneMonthSelfAssessmentTBCRemindersSP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[SendExpiredTBCReminders] Script Date: 07/12/2023 08:03:01 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 17/08/2018 + ///-- Description: Uses DB mail to send reminders to delegates on courses with a TBC date within 1 month. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[SendExpiredTBCReminders] + /// -- Add the parameters for the stored p [rest of string was truncated]";. + /// + internal static string TD_3197_FixLinksInCourseReminderEmails_DOWN { + get { + return ResourceManager.GetString("TD_3197_FixLinksInCourseReminderEmails_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[SendExpiredTBCReminders] Script Date: 07/12/2023 08:03:01 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 17/08/2018 + ///-- Description: Uses DB mail to send reminders to delegates on courses with a TBC date within 1 month. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[SendExpiredTBCReminders] + /// -- Add the parameters for the stored p [rest of string was truncated]";. + /// + internal static string TD_3197_FixLinksInCourseReminderEmails_UP { + get { + return ResourceManager.GetString("TD_3197_FixLinksInCourseReminderEmails_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecordWithCompleteWithinMonths] Script Date: 27/02/2024 10:27:26 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 23/10/2018 + ///-- Description: Creates the Progress and aspProgress record for a new user + ///-- Returns: 0 : success, progress created + ///-- 1 : Failed - progress already exists + ///-- 100 : Failed - CentreID and Cust [rest of string was truncated]";. + /// + internal static string TD_3623_Alter_uspCreateProgressRecordWithCompleteWithinMonthsSPs_Down { + get { + return ResourceManager.GetString("TD_3623_Alter_uspCreateProgressRecordWithCompleteWithinMonthsSPs_Down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecordWithCompleteWithinMonths] Script Date: 27/02/2024 10:27:26 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 23/10/2018 + ///-- Description: Creates the Progress and aspProgress record for a new user + ///-- Returns: 0 : success, progress created + ///-- 1 : Failed - progress already exists + ///-- 100 : Failed - CentreID and Cust [rest of string was truncated]";. + /// + internal static string TD_3623_Alter_uspCreateProgressRecordWithCompleteWithinMonthsSPs_Up { + get { + return ResourceManager.GetString("TD_3623_Alter_uspCreateProgressRecordWithCompleteWithinMonthsSPs_Up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///CREATE TABLE [dbo].[deprecated_ApplicationGroups]( + /// [AppGroupID] [int] IDENTITY(1,1) NOT NULL, + /// [ApplicationGroup] [nvarchar](100) NOT NULL, + /// CONSTRAINT [PK_ApplicationGroups] PRIMARY KEY CLUSTERED + ///( + /// [AppGroupID] ASC + ///)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] + ///) ON [PRIMARY] + ///GO + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///CREATE TABLE [dbo].[deprec [rest of string was truncated]";. + /// + internal static string TD_3629_DeleteDeprecatedTables_DOWN { + get { + return ResourceManager.GetString("TD_3629_DeleteDeprecatedTables_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER OFF + ///GO + ///CREATE PROCEDURE [dbo].[aspnet_AnyDataInTables_deprecated] + /// @TablesToCheck int + ///AS + ///BEGIN + /// -- Check Membership table if (@TablesToCheck & 1) is set + /// IF ((@TablesToCheck & 1) <> 0 AND + /// (EXISTS (SELECT name FROM sysobjects WHERE (name = N'vw_aspnet_MembershipUsers') AND (type = 'V')))) + /// BEGIN + /// IF (EXISTS(SELECT TOP 1 UserId FROM dbo.aspnet_Membership)) + /// BEGIN + /// SELECT N'aspnet_Membership' + /// RETU [rest of string was truncated]";. + /// + internal static string TD_3664_RestoreDroppedSPs { + get { + return ResourceManager.GetString("TD_3664_RestoreDroppedSPs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[CheckDelegateStatusForCustomisation] Script Date: 16/05/2024 09:29:31 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/12/2016 + ///-- Description: Checks if learner has progress record against customisation. + ///-- Returns: + ///-- 0: None + ///-- 1: Expired + ///-- 2: Complete + ///-- 3: Current + ///-- ============================================= + ///-- 18/09/2018 Adds re [rest of string was truncated]";. + /// + internal static string TD_3671_Alter_CheckDelegateStatusForCustomisation_func_down { + get { + return ResourceManager.GetString("TD_3671_Alter_CheckDelegateStatusForCustomisation_func_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + ////****** Object: UserDefinedFunction [dbo].[CheckDelegateStatusForCustomisation] Script Date: 09/05/2024 11:41:58 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/12/2016 + ///-- Description: Checks if learner has progress record against customisation. + ///-- Returns: + ///-- 0: None + ///-- 1: Expired + ///-- 2: Complete + ///-- 3: Current + ///-- ============================================= + ///-- 18/09/2018 Adds return [rest of string was truncated]";. + /// + internal static string TD_3671_Alter_CheckDelegateStatusForCustomisation_func_up { + get { + return ResourceManager.GetString("TD_3671_Alter_CheckDelegateStatusForCustomisation_func_up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCurrentCoursesForCandidate_V2] Script Date: 16/05/2024 09:37:05 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of active progress records for the candidate. + ///-- Change 18/09/2018: Adds logic to exclude Removed courses from returned results. + ///-- ============================================= + ///ALTER PROCEDURE [rest of string was truncated]";. + /// + internal static string TD_3671_Alter_GetCurrentCoursesForCandidate_V2_proc_down { + get { + return ResourceManager.GetString("TD_3671_Alter_GetCurrentCoursesForCandidate_V2_proc_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + ////****** Object: StoredProcedure [dbo].[GetCurrentCoursesForCandidate_V2] Script Date: 08/05/2024 10:34:29 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of active progress records for the candidate. + ///-- Change 18/09/2018: Adds logic to exclude Removed courses from returned results. + ///-- ============================================= + ///ALTER PROCEDURE [db [rest of string was truncated]";. + /// + internal static string TD_3671_Alter_GetCurrentCoursesForCandidate_V2_proc_up { + get { + return ResourceManager.GetString("TD_3671_Alter_GetCurrentCoursesForCandidate_V2_proc_up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 09/04/2024 08:39:16 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of completed courses for the candidate. + ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetCompletedCoursesFo [rest of string was truncated]";. + /// + internal static string TD_4015_Update_GetCompletedCoursesForCandidate_proc_down { + get { + return ResourceManager.GetString("TD_4015_Update_GetCompletedCoursesForCandidate_proc_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 09/04/2024 08:39:16 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of completed courses for the candidate. + ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetCompletedCoursesFo [rest of string was truncated]";. + /// + internal static string TD_4015_Update_GetCompletedCoursesForCandidate_proc_up { + get { + return ResourceManager.GetString("TD_4015_Update_GetCompletedCoursesForCandidate_proc_up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GroupCustomisation_Add_V2] Script Date: 12/07/2024 17:37:50 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/10/2018 + ///-- Description: Adds a customisation to a group and enrols all group delegates on the customisation if applicable. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GroupCustomisation_Add_V2] + /// -- Add the paramet [rest of string was truncated]";. + /// + internal static string TD_4223_Alter_GroupCustomisation_Add_V2_Down { + get { + return ResourceManager.GetString("TD_4223_Alter_GroupCustomisation_Add_V2_Down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GroupCustomisation_Add_V2] Script Date: 12/07/2024 17:37:50 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/10/2018 + ///-- Description: Adds a customisation to a group and enrols all group delegates on the customisation if applicable. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GroupCustomisation_Add_V2] + /// -- Add the paramet [rest of string was truncated]";. + /// + internal static string TD_4223_Alter_GroupCustomisation_Add_V2_Up { + get { + return ResourceManager.GetString("TD_4223_Alter_GroupCustomisation_Add_V2_Up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecord_V3] Script Date: 27/06/2024 09:35:55 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 15 February 2012 + ///-- Description: Creates the Progress and aspProgress record for a new user + ///-- Returns: 0 : success, progress created + ///-- 1 : Failed - progress already exists + ///-- 100 : Failed - CentreID and CustomisationID don [rest of string was truncated]";. + /// + internal static string TD_4223_Alter_uspCreateProgressRecord_V3_Down { + get { + return ResourceManager.GetString("TD_4223_Alter_uspCreateProgressRecord_V3_Down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecord_V3] Script Date: 27/06/2024 09:35:33 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + /// + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 15 February 2012 + ///-- Description: Creates the Progress and aspProgress record for a new user + ///-- Returns: 0 : success, progress created + ///-- 1 : Failed - progress already exists + ///-- 100 : Failed - CentreID and CustomisationID d [rest of string was truncated]";. + /// + internal static string TD_4223_Alter_uspCreateProgressRecord_V3_Up { + get { + return ResourceManager.GetString("TD_4223_Alter_uspCreateProgressRecord_V3_Up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2] Script Date: 27/06/2024 09:37:38 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 11/04/2019 + ///-- Description: Creates the Progress and aspProgress record for a new user with no return value + ///-- Returns: Nothing + /// + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[uspCreatePr [rest of string was truncated]";. + /// + internal static string TD_4223_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Down { + get { + return ResourceManager.GetString("TD_4223_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2] Script Date: 27/06/2024 09:38:12 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 11/04/2019 + ///-- Description: Creates the Progress and aspProgress record for a new user with no return value + ///-- Returns: Nothing + /// + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[uspCreate [rest of string was truncated]";. + /// + internal static string TD_4223_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Up { + get { + return ResourceManager.GetString("TD_4223_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + ////****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 20/08/2024 11:57:38 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 24/01/2023 + ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. + ///-- ======= [rest of string was truncated]";. + /// + internal static string TD_4243_Alter_GetActivitiesForDelegateEnrolment_proc_down { + get { + return ResourceManager.GetString("TD_4243_Alter_GetActivitiesForDelegateEnrolment_proc_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + ////****** Object: StoredProcedure [dbo].[GetActivitiesForDelegateEnrolment] Script Date: 20/08/2024 11:57:38 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 24/01/2023 + ///-- Description: Returns active available for delegate enrolment based on original GetActiveAvailableCustomisationsForCentreFiltered_V6 sproc but adjusted for user account refactor and filters properly for category. + ///-- ======= [rest of string was truncated]";. + /// + internal static string TD_4243_Alter_GetActivitiesForDelegateEnrolment_proc_up { + get { + return ResourceManager.GetString("TD_4243_Alter_GetActivitiesForDelegateEnrolment_proc_up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + ////****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 20/08/2024 11:58:45 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of completed courses for the candidate. + ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetCompletedCourses [rest of string was truncated]";. + /// + internal static string TD_4243_Alter_GetCompletedCoursesForCandidate_proc_down { + get { + return ResourceManager.GetString("TD_4243_Alter_GetCompletedCoursesForCandidate_proc_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + ////****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 20/08/2024 11:58:45 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of completed courses for the candidate. + ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetCompletedCourses [rest of string was truncated]";. + /// + internal static string TD_4243_Alter_GetCompletedCoursesForCandidate_proc_up { + get { + return ResourceManager.GetString("TD_4243_Alter_GetCompletedCoursesForCandidate_proc_up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + ////****** Object: StoredProcedure [dbo].[GetCurrentCoursesForCandidate_V2] Script Date: 22/07/2024 10:11:35 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of active progress records for the candidate. + ///-- Change 18/09/2018: Adds logic to exclude Removed courses from returned results. + ///-- ============================================= + ///ALTER PROCEDU [rest of string was truncated]";. + /// + internal static string TD_4243_Alter_GetCurrentCoursesForCandidate_V2_proc_down { + get { + return ResourceManager.GetString("TD_4243_Alter_GetCurrentCoursesForCandidate_V2_proc_down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + /// + ////****** Object: StoredProcedure [dbo].[GetCurrentCoursesForCandidate_V2] Script Date: 22/07/2024 10:11:35 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of active progress records for the candidate. + ///-- Change 18/09/2018: Adds logic to exclude Removed courses from returned results. + ///-- ============================================= + ///ALTER PROC [rest of string was truncated]";. + /// + internal static string TD_4243_Alter_GetCurrentCoursesForCandidate_V2_proc_up { + get { + return ResourceManager.GetString("TD_4243_Alter_GetCurrentCoursesForCandidate_V2_proc_up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GroupCustomisation_Add_V2] Script Date: 27/08/2024 14:41:29 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/10/2018 + ///-- Description: Adds a customisation to a group and enrols all group delegates on the customisation if applicable. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GroupCustomisation_Add_V2] + /// -- Add the paramet [rest of string was truncated]";. + /// + internal static string TD_4436_Alter_GroupCustomisation_Add_V2_UpdateCompleteBy_Supervisor_Down { + get { + return ResourceManager.GetString("TD_4436_Alter_GroupCustomisation_Add_V2_UpdateCompleteBy_Supervisor_Down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GroupCustomisation_Add_V2] Script Date: 27/08/2024 14:41:29 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/10/2018 + ///-- Description: Adds a customisation to a group and enrols all group delegates on the customisation if applicable. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GroupCustomisation_Add_V2] + /// -- Add the paramet [rest of string was truncated]";. + /// + internal static string TD_4436_Alter_GroupCustomisation_Add_V2_UpdateCompleteBy_Supervisor_Up { + get { + return ResourceManager.GetString("TD_4436_Alter_GroupCustomisation_Add_V2_UpdateCompleteBy_Supervisor_Up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecord_V3] Script Date: 14/08/2024 14:46:35 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 15 February 2012 + ///-- Description: Creates the Progress and aspProgress record for a new user + ///-- Returns: 0 : success, progress created + ///-- 1 : Failed - progress already exists + ///-- 100 : Failed - CentreID and CustomisationID don't [rest of string was truncated]";. + /// + internal static string TD_4436_Alter_uspCreateProgressRecord_V3_Down { + get { + return ResourceManager.GetString("TD_4436_Alter_uspCreateProgressRecord_V3_Down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecord_V3] Script Date: 14/08/2024 14:46:35 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 15 February 2012 + ///-- Description: Creates the Progress and aspProgress record for a new user + ///-- Returns: 0 : success, progress created + ///-- 1 : Failed - progress already exists + ///-- 100 : Failed - CentreID and CustomisationID don't [rest of string was truncated]";. + /// + internal static string TD_4436_Alter_uspCreateProgressRecord_V3_Up { + get { + return ResourceManager.GetString("TD_4436_Alter_uspCreateProgressRecord_V3_Up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2] Script Date: 27/08/2024 15:06:49 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 11/04/2019 + ///-- Description: Creates the Progress and aspProgress record for a new user with no return value + ///-- Returns: Nothing + /// + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[uspCreatePr [rest of string was truncated]";. + /// + internal static string TD_4436_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Down { + get { + return ResourceManager.GetString("TD_4436_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Down", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2] Script Date: 27/08/2024 15:06:49 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 11/04/2019 + ///-- Description: Creates the Progress and aspProgress record for a new user with no return value + ///-- Returns: Nothing + /// + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[uspCreatePr [rest of string was truncated]";. + /// + internal static string TD_4436_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Up { + get { + return ResourceManager.GetString("TD_4436_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Up", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 05/09/2024 16:24:49 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of completed courses for the candidate. + ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetCompletedCoursesFo [rest of string was truncated]";. + /// + internal static string TD_4634_Alter_GetCompletedCoursesForCandidate_DOWN { + get { + return ResourceManager.GetString("TD_4634_Alter_GetCompletedCoursesForCandidate_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetCompletedCoursesForCandidate] Script Date: 05/09/2024 16:24:49 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 16/12/2016 + ///-- Description: Returns a list of completed courses for the candidate. + ///-- 21/06/2021: Adds Applications.ArchivedDate field to output. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetCompletedCoursesFo [rest of string was truncated]";. + /// + internal static string TD_4634_Alter_GetCompletedCoursesForCandidate_UP { + get { + return ResourceManager.GetString("TD_4634_Alter_GetCompletedCoursesForCandidate_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetAssessmentResultsByDelegate] Script Date: 07/11/2024 21:36:58 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Auldrin Possa + ///-- Create date: 30/11/2023 + ///-- Description: Returns assessment results for a delegate + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetAssessmentResultsByDelegate] + /// @selfAssessmentId as Int = 0, + /// @delegateId as int = 0 + ///AS + ///BEGIN [rest of string was truncated]";. + /// + internal static string TD_4950_Alter_GetAssessmentResultsByDelegate_DOWN { + get { + return ResourceManager.GetString("TD_4950_Alter_GetAssessmentResultsByDelegate_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetAssessmentResultsByDelegate] Script Date: 07/11/2024 21:36:58 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Auldrin Possa + ///-- Create date: 30/11/2023 + ///-- Description: Returns assessment results for a delegate + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetAssessmentResultsByDelegate] + /// @selfAssessmentId as Int = 0, + /// @delegateId as int = 0 + ///AS + ///BEGIN [rest of string was truncated]";. + /// + internal static string TD_4950_Alter_GetAssessmentResultsByDelegate_UP { + get { + return ResourceManager.GetString("TD_4950_Alter_GetAssessmentResultsByDelegate_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to USE [mbdbx101_uar] + ///GO + ////****** Object: StoredProcedure [dbo].[GetCandidateAssessmentResultsById] Script Date: 14/11/2024 14:31:31 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Auldrin Possa + ///-- Create date: 30/11/2023 + ///-- Description: Returns candidate assessment results by candidateAssessmentId + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetCandidateAssessmentResultsById] + /// @candidateAssessmen [rest of string was truncated]";. + /// + internal static string TD_4950_AlterGetCandidateAssessmentResultsById_DOWN { + get { + return ResourceManager.GetString("TD_4950_AlterGetCandidateAssessmentResultsById_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to USE [mbdbx101_uar] + ///GO + ////****** Object: StoredProcedure [dbo].[GetCandidateAssessmentResultsById] Script Date: 14/11/2024 14:31:31 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Auldrin Possa + ///-- Create date: 30/11/2023 + ///-- Description: Returns candidate assessment results by candidateAssessmentId + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetCandidateAssessmentResultsById] + /// @candidateAssessmen [rest of string was truncated]";. + /// + internal static string TD_4950_AlterGetCandidateAssessmentResultsById_UP { + get { + return ResourceManager.GetString("TD_4950_AlterGetCandidateAssessmentResultsById_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: UserDefinedFunction [dbo].[GetOtherCentresForSelfAssessment] Script Date: 12/11/2024 08:47:08 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 22/01/2024 + ///-- Description: Gets a comma separated list of other centres for a user self assessment + ///-- ============================================= + ///CREATE OR ALTER FUNCTION [dbo].[GetOtherCentresForSelfAssessment] + ///( + /// -- Add the para [rest of string was truncated]";. + /// + internal static string TD_4950_dboGetOtherCentresForSelfAssessmentCreateOrAlter { + get { + return ResourceManager.GetString("TD-4950-dboGetOtherCentresForSelfAssessmentCreateOrAlter", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V6] Script Date: 29/09/2022 19:11:04 ******/ + ///SET ANSI_NULLS ON + ///GO + /// + ///SET QUOTED_IDENTIFIER ON + ///GO + /// + ///-- ============================================= + ///-- Author: Manish Agarwal + ///-- Create date: 26/09/2022 + ///-- Description: Returns active available customisations for centre v6 adds SelfAssessments. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFil [rest of string was truncated]";. + /// + internal static string TD_786_GetSelfRegisteredFlag_DOWN { + get { + return ResourceManager.GetString("TD-786-GetSelfRegisteredFlag_DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[GetActiveAvailableCustomisationsForCentreFiltered_V5] Script Date: 08/12/2022 13:00:15 ******/ + ///SET ANSI_NULLS ON + ///GO + ///SET QUOTED_IDENTIFIER ON + ///GO + ///-- ============================================= + ///-- Author: Kevin Whittaker + ///-- Create date: 05/10/2020 + ///-- Description: Returns active available customisations for centre v5 adds SelfAssessments. + ///-- ============================================= + ///ALTER PROCEDURE [dbo].[GetActiveAvailableCustomisationsForCentreFilter [rest of string was truncated]";. + /// + internal static string TD_786_GetSelfRegisteredFlag_UP { + get { + return ResourceManager.GetString("TD-786-GetSelfRegisteredFlag_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to <ol type=""1""><li><strong>About these terms and conditions</strong><ul data-list-level=""1""><li>It is your responsibility to ensure that you understand and comply with these terms and conditions. It ensures that:<ul data-list-level=""2""><li>You understand your responsibilities and what constitutes an abuse of the service</li><li>Computers and personal data are not put at risk</li></ul></li><li>If you have any questions about these terms and conditions, you should contact your Digital Learning Solutions c [rest of string was truncated]";. + /// + internal static string TermsAndConditionsOldrecord { + get { + return ResourceManager.GetString("TermsAndConditionsOldrecord", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to <h1 class="policy-text-center">TERMS AND CONDITIONS</h1> + ///<h1 class="policy-text-center">PLEASE READ THESE TERMS AND CONDITIONS CAREFULLY BEFORE USING THE PLATFORM. YOUR ATTENTION IS PARTICULARLY DRAWN TO THE PROVISIONS OF CLAUSE 14 (OUR RESPONSIBILITY FOR LOSS OR DAMAGE SUFFERED BY YOU) AND CLAUSE 15 (INDEMNITIES).</h1> + ///<ol class="custom-ordered-list nhsuk-u-padding-left-0"> + /// + /// + ///<li class="h2 nhsuk-heading-l nhsuk-u-font-weight-bold nhsuk-u-margin-0">THE PLATFORM + ///<ol class [rest of string was truncated]";. + /// + internal static string TermsConditions { + get { + return ResourceManager.GetString("TermsConditions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to DROP VIEW AdminUsers + /// GO + ///DROP VIEW Candidates + /// GO + ///. + /// + internal static string UAR_831_CreateViewsForAdminUsersAndCandidatesTables_DOWN { + get { + return ResourceManager.GetString("UAR-831-CreateViewsForAdminUsersAndCandidatesTables-DOWN", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to CREATE VIEW AdminUsers AS + ///SELECT dbo.AdminAccounts.ID AS AdminID, + /// null AS Login, + /// dbo.Users.PasswordHash AS Password, + /// dbo.AdminAccounts.CentreID, + /// dbo.AdminAccounts.IsCentreAdmin AS CentreAdmin, + /// 0 AS ConfigAdmin, + /// dbo.AdminAccounts.IsReportsViewer AS SummaryReports, + /// dbo.AdminAccounts.IsSuperAdmin AS UserAdmin, + /// dbo.Us [rest of string was truncated]";. + /// + internal static string UAR_831_CreateViewsForAdminUsersAndCandidatesTables_UP { + get { + return ResourceManager.GetString("UAR-831-CreateViewsForAdminUsersAndCandidatesTables-UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to DECLARE @dbName NVARCHAR(128) = DB_NAME() + ///DECLARE @defaultPath NVARCHAR(500) = CONVERT(NVARCHAR(500), SERVERPROPERTY('InstanceDefaultDataPath')) + ///DECLARE @snapshotTime NVARCHAR(12) = FORMAT(GETDATE(), 'yyyyMMddHHmm') + /// + ///DECLARE @snapSql NVARCHAR(4000) = 'CREATE DATABASE ' + @dbName + '_' + @snapshotTime + ' ON + ///( NAME = mbdbx101, FILENAME = ''' + @defaultPath + @dbName + '_' + @snapshotTime + '''), + ///( NAME = mbdbx101files, FILENAME = ''' + @defaultPath + @dbName + '_filestream1_' + @snapshotTime + ''') + ///A [rest of string was truncated]";. + /// + internal static string UAR_858_SnapshotData_UP { + get { + return ResourceManager.GetString("UAR_858_SnapshotData_UP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to DECLARE @dbName NVARCHAR(128) = DB_NAME() + ///DECLARE @snapshotName NVARCHAR(128) = CONVERT(NVARCHAR(128), (SELECT TOP 1 name FROM sys.databases WHERE NAME LIKE @dbName + '_2%' ORDER BY create_date DESC)) + /// + ///DECLARE @adminSql NVARCHAR(4000) = 'UPDATE AdminAccounts + ///SET + /// Login_deprecated = snapAA.Login_deprecated, + /// Password_deprecated = snapAA.Password_deprecated, + /// CentreID = snapAA.CentreID, + /// IsCentreAdmin = snapAA.IsCentreAdmin, + /// ConfigAdmin_deprecated = snapAA.ConfigAdmin_deprecated, + /// [rest of string was truncated]";. + /// + internal static string UAR_859_PopulateUsersTableFromAccountsTables_DOWN { + get { + return ResourceManager.GetString("UAR_859_PopulateUsersTableFromAccountsTables_DOWN", resourceCulture); + } + } + } +} diff --git a/DigitalLearningSolutions.Data.Migrations/Scripts/TD-4878-Alter_GetActivitiesForDelegateEnrolment_Down.sql b/DigitalLearningSolutions.Data.Migrations/Scripts/TD-4878-Alter_GetActivitiesForDelegateEnrolment_Down.sql new file mode 100644 index 0000000000..b1711f67e6 Binary files /dev/null and b/DigitalLearningSolutions.Data.Migrations/Scripts/TD-4878-Alter_GetActivitiesForDelegateEnrolment_Down.sql differ diff --git a/DigitalLearningSolutions.Data.Migrations/Scripts/TD-4878-Alter_GetActivitiesForDelegateEnrolment_Up.sql b/DigitalLearningSolutions.Data.Migrations/Scripts/TD-4878-Alter_GetActivitiesForDelegateEnrolment_Up.sql new file mode 100644 index 0000000000..59f5f1b3ec Binary files /dev/null and b/DigitalLearningSolutions.Data.Migrations/Scripts/TD-4878-Alter_GetActivitiesForDelegateEnrolment_Up.sql differ diff --git a/DigitalLearningSolutions.Data/DataServices/CourseDataService.cs b/DigitalLearningSolutions.Data/DataServices/CourseDataService.cs index 1ab2ad05e3..364b640a95 100644 --- a/DigitalLearningSolutions.Data/DataServices/CourseDataService.cs +++ b/DigitalLearningSolutions.Data/DataServices/CourseDataService.cs @@ -136,7 +136,8 @@ int EnrolOnActivitySelfAssessment(int selfAssessmentId, int candidateId, int sup public IEnumerable GetDelegateCourseStatisticsAtCentre(string searchString, int centreId, int? categoryId, bool allCentreCourses, bool? hideInLearnerPortal, string isActive, string categoryName, string courseTopic, string hasAdminFields); - public IEnumerable GetDelegateAssessmentStatisticsAtCentre(string searchString, int centreId, string categoryName, string isActive); + public IEnumerable GetDelegateAssessmentStatisticsAtCentre(string searchString, int centreId, string categoryName, string isActive, int? categoryId); + bool IsSelfEnrollmentAllowed(int customisationId); Customisation? GetCourse(int customisationId); } @@ -1976,7 +1977,7 @@ AND ap.DefaultContentTypeID <> 4 return courseStatistics; } - public IEnumerable GetDelegateAssessmentStatisticsAtCentre(string searchString, int centreId, string categoryName, string isActive) + public IEnumerable GetDelegateAssessmentStatisticsAtCentre(string searchString, int centreId, string categoryName, string isActive, int? categoryId) { string assessmentStatisticsSelectQuery = $@"SELECT sa.Name AS Name, @@ -2006,11 +2007,12 @@ from CentreSelfAssessments AS csa WHERE csa.CentreID= @centreId AND sa.[Name] LIKE '%' + @searchString + '%' AND ((@categoryName = 'Any') OR (cc.CategoryName = @categoryName)) + AND (ISNULL(@categoryId, 0) = 0 OR sa.CategoryID = @categoryId) AND ((@isActive = 'Any') OR (@isActive = 'true' AND sa.ArchivedDate IS NULL) OR (@isActive = 'false' AND sa.ArchivedDate IS NOT NULL)) "; IEnumerable delegateAssessmentStatistics = connection.Query(assessmentStatisticsSelectQuery, - new { searchString, centreId, categoryName, isActive }, commandTimeout: 3000); + new { searchString, centreId, categoryName, isActive, categoryId }, commandTimeout: 3000); return delegateAssessmentStatistics; } diff --git a/DigitalLearningSolutions.Data/DataServices/SelfAssessmentDataService/SelfAssessmentDataService.cs b/DigitalLearningSolutions.Data/DataServices/SelfAssessmentDataService/SelfAssessmentDataService.cs index dcd7923df3..e10185bf18 100644 --- a/DigitalLearningSolutions.Data/DataServices/SelfAssessmentDataService/SelfAssessmentDataService.cs +++ b/DigitalLearningSolutions.Data/DataServices/SelfAssessmentDataService/SelfAssessmentDataService.cs @@ -120,7 +120,7 @@ int candidateAssessmentSupervisorId SupervisorComment? GetSupervisorComments(int delegateUserId, int resultId); - IEnumerable GetValidSupervisorsForActivity(int centreId, int selfAssessmentId, int delegateUserId); + IEnumerable GetValidSupervisorsForActivity(int selfAssessmentId, int delegateUserId); Administrator GetSupervisorByAdminId(int supervisorAdminId); @@ -172,6 +172,7 @@ int GetSelfAssessmentActivityDelegatesExportCount(string searchString, string so bool IsUnsupervisedSelfAssessment(int selfAssessmentId); bool IsCentreSelfAssessment(int selfAssessmentId, int centreId); bool HasMinimumOptionalCompetencies(int selfAssessmentId, int delegateUserId); + int GetSelfAssessmentCategoryId(int selfAssessmentId); } public partial class SelfAssessmentDataService : ISelfAssessmentDataService @@ -229,13 +230,13 @@ FROM SelfAssessments sa.SupervisorSelfAssessmentReview, sa.SupervisorResultsReview"; - var fromTableQuery = $@" FROM dbo.SelfAssessments AS sa + var fromTableQuery = $@" FROM dbo.SelfAssessments AS sa INNER JOIN dbo.CandidateAssessments AS ca WITH (NOLOCK) ON sa.ID = ca.SelfAssessmentID INNER JOIN dbo.CentreSelfAssessments AS csa WITH (NOLOCK) ON sa.ID = csa.SelfAssessmentID INNER JOIN dbo.DelegateAccounts da WITH (NOLOCK) ON ca.CentreID = da.CentreID AND ca.DelegateUserID = da.UserID AND da.CentreID = csa.CentreID INNER JOIN dbo.Users u WITH (NOLOCK) ON DA.UserID = u.ID LEFT JOIN UserCentreDetails AS ucd WITH (NOLOCK) ON ucd.UserID = da.UserID AND ucd.centreID = da.CentreID - LEFT OUTER JOIN AdminAccounts AS aaEnrolledBy WITH (NOLOCK) ON aaEnrolledBy.ID = ca.EnrolledByAdminID + LEFT OUTER JOIN AdminAccounts AS aaEnrolledBy WITH (NOLOCK) ON aaEnrolledBy.ID = ca.EnrolledByAdminID LEFT OUTER JOIN Users AS uEnrolledBy WITH (NOLOCK) ON uEnrolledBy.ID = aaEnrolledBy.UserID LEFT JOIN dbo.CandidateAssessmentSupervisors AS cas WITH (NOLOCK) ON ca.ID = cas.CandidateAssessmentID LEFT JOIN dbo.CandidateAssessmentSupervisorVerifications AS casv WITH (NOLOCK) ON cas.ID = casv.CandidateAssessmentSupervisorID AND @@ -760,5 +761,13 @@ INNER JOIN SelfAssessments AS SA new { selfAssessmentId, delegateUserId } ); } + + public int GetSelfAssessmentCategoryId(int selfAssessmentId) + { + return connection.ExecuteScalar( + @"SELECT CategoryID FROM SelfAssessments WHERE ID = @selfAssessmentId", + new { selfAssessmentId } + ); + } } } diff --git a/DigitalLearningSolutions.Data/DataServices/SelfAssessmentDataService/SelfAssessmentSupervisorDataService.cs b/DigitalLearningSolutions.Data/DataServices/SelfAssessmentDataService/SelfAssessmentSupervisorDataService.cs index 9aad94a56b..8ae5e54133 100644 --- a/DigitalLearningSolutions.Data/DataServices/SelfAssessmentDataService/SelfAssessmentSupervisorDataService.cs +++ b/DigitalLearningSolutions.Data/DataServices/SelfAssessmentDataService/SelfAssessmentSupervisorDataService.cs @@ -57,7 +57,8 @@ LEFT OUTER JOIN AdminUsers AS au ON sd.SupervisorAdminID = au.AdminID INNER JOIN DelegateAccounts da ON sd.DelegateUserID = da.UserID AND au.CentreID = da.CentreID AND da.Active=1 LEFT OUTER JOIN SelfAssessmentSupervisorRoles AS sasr - ON cas.SelfAssessmentSupervisorRoleID = sasr.ID"; + ON cas.SelfAssessmentSupervisorRoleID = sasr.ID + LEFT OUTER JOIN SelfAssessments sa ON sa.id = ca.SelfAssessmentID AND sa.CategoryID = au.CategoryID"; public SelfAssessmentSupervisor? GetSupervisorForSelfAssessmentId(int selfAssessmentId, int delegateUserId) { @@ -76,7 +77,9 @@ int delegateUserId { return connection.Query( @$"{SelectSelfAssessmentSupervisorQuery} - WHERE (sd.Removed IS NULL) AND (cas.Removed IS NULL) AND (ca.DelegateUserID = @delegateUserId) AND (ca.SelfAssessmentID = @selfAssessmentId) + WHERE (sd.Removed IS NULL) AND (cas.Removed IS NULL) AND (ca.DelegateUserID = @delegateUserId) + AND (ca.SelfAssessmentID = @selfAssessmentId) + AND (au.CategoryID = 0 OR au.CategoryID IN (select CategoryID from SelfAssessments where ID = @selfAssessmentId)) ORDER BY SupervisorName", new { selfAssessmentId, delegateUserId } ); @@ -122,6 +125,7 @@ FROM SupervisorDelegates AS sd WHERE (sd.Removed IS NULL) AND (cas.Removed IS NULL) AND (sd.SupervisorAdminID IS NOT NULL) AND (sd.DelegateUserID = @delegateUserId) AND (au.Supervisor = 1 OR au.NominatedSupervisor = 1) AND (au.Active = 1) AND (ca.SelfAssessmentID <> @selfAssessmentId) + AND (au.CategoryID = 0 OR au.CategoryID IN (select CategoryID from SelfAssessments where ID = @selfAssessmentId)) ORDER BY SupervisorName", new { selfAssessmentId, delegateUserId } ); @@ -148,7 +152,8 @@ int delegateUserId WHERE (sd.Removed IS NULL) AND (cas.Removed IS NULL) AND (sd.DelegateUserID = @delegateUserId) AND (ca.SelfAssessmentID = @selfAssessmentId) AND (sd.SupervisorAdminID IS NOT NULL) AND (coalesce(sasr.SelfAssessmentReview, 1) = 1) AND (cas.ID NOT IN (SELECT CandidateAssessmentSupervisorID FROM CandidateAssessmentSupervisorVerifications WHERE Verified IS NULL)) - AND au.Active = 1 + AND au.Active = 1 + AND (au.CategoryID = 0 OR au.CategoryID IN (select CategoryID from SelfAssessments where ID = @selfAssessmentId)) ORDER BY SupervisorName", new { selfAssessmentId, delegateUserId } ); @@ -204,7 +209,6 @@ FROM SelfAssessmentResultSupervisorVerifications AS sasv INNER JOIN } public IEnumerable GetValidSupervisorsForActivity( - int centreId, int selfAssessmentId, int delegateUserId ) @@ -242,7 +246,7 @@ INNER JOIN CandidateAssessments AS ca ) AND (Supervisor = 1 OR NominatedSupervisor = 1) AND (Active = 1) AND (Email LIKE '%@%') ORDER BY Forename, Surname", - new { centreId, selfAssessmentId, delegateUserId } + new { selfAssessmentId, delegateUserId } ); } diff --git a/DigitalLearningSolutions.Data/DataServices/SupervisorDataService.cs b/DigitalLearningSolutions.Data/DataServices/SupervisorDataService.cs index 854ef44c4d..2ed662f6f2 100644 --- a/DigitalLearningSolutions.Data/DataServices/SupervisorDataService.cs +++ b/DigitalLearningSolutions.Data/DataServices/SupervisorDataService.cs @@ -14,16 +14,16 @@ public interface ISupervisorDataService { //GET DATA DashboardData? GetDashboardDataForAdminId(int adminId); - IEnumerable GetSupervisorDelegateDetailsForAdminId(int adminId); + IEnumerable GetSupervisorDelegateDetailsForAdminId(int adminId, int? adminIdCategoryID); SupervisorDelegateDetail GetSupervisorDelegateDetailsById(int supervisorDelegateId, int adminId, int delegateUserId); SupervisorDelegate GetSupervisorDelegate(int adminId, int delegateUserId); int? ValidateDelegate(int centreId, string delegateEmail); - IEnumerable GetSelfAssessmentsForSupervisorDelegateId(int supervisorDelegateId, int adminId); - DelegateSelfAssessment? GetSelfAssessmentByCandidateAssessmentId(int candidateAssessmentId, int adminId); + IEnumerable GetSelfAssessmentsForSupervisorDelegateId(int supervisorDelegateId, int? adminIdCategoryId); + DelegateSelfAssessment? GetSelfAssessmentByCandidateAssessmentId(int candidateAssessmentId, int adminId, int? adminIdCategoryId); IEnumerable GetSupervisorDashboardToDoItemsForRequestedSignOffs(int adminId); IEnumerable GetSupervisorDashboardToDoItemsForRequestedReviews(int adminId); DelegateSelfAssessment? GetSelfAssessmentBaseByCandidateAssessmentId(int candidateAssessmentId); - IEnumerable GetAvailableRoleProfilesForDelegate(int candidateId, int centreId); + IEnumerable GetAvailableRoleProfilesForDelegate(int candidateId, int centreId, int? categoryId); RoleProfile? GetRoleProfileById(int selfAssessmentId); IEnumerable GetSupervisorRolesForSelfAssessment(int selfAssessmentId); IEnumerable GetSupervisorRolesBySelfAssessmentIdForSupervisor(int selfAssessmentId); @@ -160,7 +160,7 @@ FROM CandidateAssessmentSupervisors AS cas INNER JOIN ).FirstOrDefault(); } - public IEnumerable GetSupervisorDelegateDetailsForAdminId(int adminId) + public IEnumerable GetSupervisorDelegateDetailsForAdminId(int adminId, int? adminIdCategoryID) { return connection.Query( $@"SELECT sd.ID, @@ -179,7 +179,9 @@ FROM CandidateAssessments AS ca LEFT JOIN CandidateAssessmentSupervisors AS cas ON cas.CandidateAssessmentID = ca.ID AND cas.Removed IS NULL AND cas.SupervisorDelegateId = sd.ID INNER JOIN SelfAssessments AS sa ON sa.ID = ca.SelfAssessmentID WHERE (ca.RemovedDate IS NULL) AND (ca.DelegateUserID=sd.DelegateUserID) AND (cas.SupervisorDelegateId = sd.ID OR (cas.CandidateAssessmentID IS NULL) - AND ((sa.SupervisorSelfAssessmentReview = 1) OR (sa.SupervisorResultsReview = 1)))) AS CandidateAssessmentCount, + AND ((sa.SupervisorSelfAssessmentReview = 1) OR (sa.SupervisorResultsReview = 1))) + AND (ISNULL(@adminIdCategoryID, 0) = 0 OR sa.CategoryID = @adminIdCategoryID) + ) AS CandidateAssessmentCount, CAST(COALESCE (au2.IsNominatedSupervisor, 0) AS Bit) AS DelegateIsNominatedSupervisor, CAST(COALESCE (au2.IsSupervisor, 0) AS Bit) AS DelegateIsSupervisor, da.ID AS Expr1 @@ -212,6 +214,62 @@ LEFT OUTER JOIN AdminAccounts AS au2 WHERE (sd.SupervisorAdminID = @adminId) AND (sd.Removed IS NULL) AND (u.ID = da.UserID OR sd.DelegateUserID IS NULL) ORDER BY u.LastName, COALESCE (u.FirstName, sd.DelegateEmail) + ", new { adminId, adminIdCategoryID } + ); + } + + public IEnumerable GetSupervisorDelegateDetailsForAdminIdWithoutRemovedClause(int adminId) + { + return connection.Query( + $@"SELECT sd.ID, + sd.SupervisorEmail, sd.SupervisorAdminID, sd.DelegateEmail, sd.DelegateUserID,da.Active, + sd.Added, sd.AddedByDelegate, sd.NotificationSent, sd.Removed, sd.InviteHash, + u.FirstName, u.LastName, u.ProfessionalRegistrationNumber, u.PrimaryEmail AS CandidateEmail, + jg.JobGroupName, + da.Answer1, da.Answer2, da.Answer3, da.Answer4, da.Answer5, da.Answer6, da.CandidateNumber, + cp1.CustomPrompt AS CustomPrompt1, cp2.CustomPrompt AS CustomPrompt2, + cp3.CustomPrompt AS CustomPrompt3, cp4.CustomPrompt AS CustomPrompt4, + cp5.CustomPrompt AS CustomPrompt5, cp6.CustomPrompt AS CustomPrompt6, + COALESCE (au.CentreID, da.CentreID) AS CentreID, + au.Forename + ' ' + au.Surname AS SupervisorName, + (SELECT COUNT(ca.ID) AS Expr1 + FROM CandidateAssessments AS ca LEFT JOIN + CandidateAssessmentSupervisors AS cas ON cas.CandidateAssessmentID = ca.ID AND cas.Removed IS NULL AND cas.SupervisorDelegateId = sd.ID INNER JOIN + SelfAssessments AS sa ON sa.ID = ca.SelfAssessmentID + WHERE (ca.RemovedDate IS NULL) AND (ca.DelegateUserID=sd.DelegateUserID) AND (cas.SupervisorDelegateId = sd.ID OR (cas.CandidateAssessmentID IS NULL) + AND ((sa.SupervisorSelfAssessmentReview = 1) OR (sa.SupervisorResultsReview = 1)))) AS CandidateAssessmentCount, + CAST(COALESCE (au2.IsNominatedSupervisor, 0) AS Bit) AS DelegateIsNominatedSupervisor, + CAST(COALESCE (au2.IsSupervisor, 0) AS Bit) AS DelegateIsSupervisor, + da.ID AS Expr1 + FROM CustomPrompts AS cp6 + RIGHT OUTER JOIN CustomPrompts AS cp5 + RIGHT OUTER JOIN DelegateAccounts AS da + RIGHT OUTER JOIN SupervisorDelegates AS sd + INNER JOIN AdminUsers AS au + ON sd.SupervisorAdminID = au.AdminID + INNER JOIN Centres AS ct + ON au.CentreID = ct.CentreID + ON da.CentreID = ct.CentreID + AND da.UserID = sd.DelegateUserID + LEFT OUTER JOIN Users AS u + LEFT OUTER JOIN JobGroups AS jg + ON u.JobGroupID = jg.JobGroupID + ON da.UserID = u.ID + LEFT OUTER JOIN CustomPrompts AS cp1 + ON ct.CustomField1PromptID = cp1.CustomPromptID + LEFT OUTER JOIN CustomPrompts AS cp2 + ON ct.CustomField2PromptID = cp2.CustomPromptID + LEFT OUTER JOIN CustomPrompts AS cp3 + ON ct.CustomField3PromptID = cp3.CustomPromptID + LEFT OUTER JOIN CustomPrompts AS cp4 + ON ct.CustomField4PromptID = cp4.CustomPromptID + ON cp5.CustomPromptID = ct.CustomField5PromptID + ON cp6.CustomPromptID = ct.CustomField6PromptID + LEFT OUTER JOIN AdminAccounts AS au2 + ON da.UserID = au2.UserID AND da.CentreID = au2.CentreID + WHERE (sd.SupervisorAdminID = @adminId) AND + (u.ID = da.UserID OR sd.DelegateUserID IS NULL) + ORDER BY u.LastName, COALESCE (u.FirstName, sd.DelegateEmail) ", new { adminId } ); } @@ -480,7 +538,7 @@ LEFT JOIN UserCentreDetails ucd } } - public IEnumerable GetSupervisorForEnrolDelegate(int CustomisationID, int CentreID) + public IEnumerable GetSupervisorForEnrolDelegate(int CentreID, int CategoryID) { return connection.Query( $@"SELECT aa.ID AS AdminID, @@ -491,14 +549,11 @@ FROM AdminAccounts AS aa INNER JOIN Centres AS c ON aa.CentreID = c.CentreID LEFT OUTER JOIN UserCentreDetails AS ucd ON u.ID = ucd.UserID AND c.CentreID = ucd.CentreID WHERE (aa.IsSupervisor = 1) AND (c.CentreID = @CentreID) AND - (ISNULL(aa.CategoryID, 0) = 0 OR CategoryID = - (SELECT aa.CategoryID FROM Applications AS a INNER JOIN - Customisations AS c ON a.ApplicationID = c.ApplicationID - WHERE (c.CustomisationID = @CustomisationID))) AND + (ISNULL(aa.CategoryID, 0) = 0 OR aa.CategoryID = @CategoryID) AND (aa.Active = 1) GROUP BY aa.ID, u.LastName, u.FirstName, COALESCE(ucd.Email, u.PrimaryEmail), CentreName ORDER BY u.FirstName, u.LastName", - new { CentreID, CustomisationID }); + new { CentreID, CategoryID }); } public bool ConfirmSupervisorDelegateById(int supervisorDelegateId, int delegateUserId, int adminId) @@ -552,7 +607,7 @@ public bool RemoveSupervisorDelegateById(int supervisorDelegateId, int delegateU return true; } - public IEnumerable GetSelfAssessmentsForSupervisorDelegateId(int supervisorDelegateId, int adminId) + public IEnumerable GetSelfAssessmentsForSupervisorDelegateId(int supervisorDelegateId, int? adminIdCategoryId) { return connection.Query( @$"SELECT {delegateSelfAssessmentFields}, COALESCE(ca.LastAccessed, ca.StartedDate) AS LastAccessed, ca.CompleteByDate, ca.LaunchCount, ca.CompletedDate, r.RoleProfile, sg.SubGroup, pg.ProfessionalGroup,CONVERT(BIT, IIF(cas.CandidateAssessmentID IS NULL, 0, 1)) AS IsAssignedToSupervisor,ca.DelegateUserID, @@ -573,7 +628,8 @@ FROM CandidateAssessments AS ca LEFT JOIN RIGHT OUTER JOIN SupervisorDelegates AS sd ON sd.ID=@supervisorDelegateId RIGHT OUTER JOIN AdminAccounts AS au ON au.ID = sd.SupervisorAdminID WHERE (ca.RemovedDate IS NULL) AND (ca.DelegateUserID=sd.DelegateUserID) AND (cas.SupervisorDelegateId = @supervisorDelegateId OR (cas.CandidateAssessmentID IS NULL) AND ((sa.SupervisorSelfAssessmentReview = 1) OR - (sa.SupervisorResultsReview = 1)))", new { supervisorDelegateId } + (sa.SupervisorResultsReview = 1))) AND + (ISNULL(@adminIdCategoryId, 0) = 0 OR sa.CategoryID = @adminIdCategoryId) ", new { supervisorDelegateId, adminIdCategoryId } ); } public DelegateSelfAssessment? GetSelfAssessmentBySupervisorDelegateSelfAssessmentId(int selfAssessmentId, int supervisorDelegateId) @@ -640,8 +696,11 @@ public IEnumerable GetSupervisorDashboardToDoItemsF SelfAssessments AS sa ON ca.SelfAssessmentID = sa.ID INNER JOIN SupervisorDelegates AS sd ON cas.SupervisorDelegateId = sd.ID INNER JOIN CandidateAssessmentSupervisorVerifications AS casv ON cas.ID = casv.CandidateAssessmentSupervisorID INNER JOIN - Users AS u ON ca.DelegateUserID = u.ID - WHERE (sd.SupervisorAdminID = @adminId) AND (casv.Verified IS NULL) AND (cas.Removed IS NULL) AND (sd.Removed IS NULL)", new { adminId } + Users AS u ON ca.DelegateUserID = u.ID INNER JOIN + AdminAccounts As aa ON sd.SupervisorAdminID = aa.ID + WHERE (sd.SupervisorAdminID = @adminId) AND (casv.Verified IS NULL) AND (cas.Removed IS NULL) + AND (sd.Removed IS NULL) + AND (aa.CategoryID is null or sa.CategoryID = aa.CategoryID)", new { adminId } ); } public IEnumerable GetSupervisorDashboardToDoItemsForRequestedReviews(int adminId) @@ -659,13 +718,15 @@ public IEnumerable GetSupervisorDashboardToDoItemsF SELECT TOP 1 sar2.DateTime FROM SelfAssessmentResults AS sar2 WHERE sar2.ID = sar.ID AND sar2.SelfAssessmentID = sar.SelfAssessmentID AND sar2.CompetencyID = co.ID AND sar2.Result != 0 ORDER BY sar2.ID DESC - ) + ) INNER JOIN + AdminAccounts AS aa ON sd.SupervisorAdminID = aa.ID WHERE (sd.SupervisorAdminID = @adminId) AND (cas.Removed IS NULL) AND (sasv.Verified IS NULL) AND (sd.Removed IS NULL) + AND (aa.CategoryID is null or sa.CategoryID = aa.CategoryID) GROUP BY sa.ID, ca.ID, sd.ID, u.FirstName, u.LastName, sa.Name,cast(sasv.Requested as date)", new { adminId } ); } - public DelegateSelfAssessment? GetSelfAssessmentByCandidateAssessmentId(int candidateAssessmentId, int adminId) + public DelegateSelfAssessment? GetSelfAssessmentByCandidateAssessmentId(int candidateAssessmentId, int adminId, int? adminIdCategoryId) { return connection.Query( @$"SELECT ca.ID, sa.ID AS SelfAssessmentID, sa.Name AS RoleName, sa.SupervisorSelfAssessmentReview, sa.SupervisorResultsReview, sa.ReviewerCommentsLabel, COALESCE (sasr.RoleName, 'Supervisor') AS SupervisorRoleTitle, ca.StartedDate, ca.LastAccessed, ca.CompleteByDate, ca.LaunchCount, ca.CompletedDate, r.RoleProfile, sg.SubGroup, pg.ProfessionalGroup, sa.SupervisorResultsReview AS IsSupervisorResultsReviewed, @@ -685,8 +746,8 @@ FROM CandidateAssessmentSupervisors AS cas INNER JOIN NRPSubGroups AS sg ON sa.NRPSubGroupID = sg.ID LEFT OUTER JOIN NRPRoles AS r ON sa.NRPRoleID = r.ID LEFT OUTER JOIN SelfAssessmentSupervisorRoles AS sasr ON cas.SelfAssessmentSupervisorRoleID = sasr.ID - WHERE (ca.ID = @candidateAssessmentId) AND (cas.Removed IS NULL) AND (sd.SupervisorAdminID = @adminId)", - new { candidateAssessmentId, adminId } + WHERE (ca.ID = @candidateAssessmentId) AND (cas.Removed IS NULL) AND (sd.SupervisorAdminID = @adminId) AND (ISNULL(@adminIdCategoryID, 0) = 0 OR sa.CategoryID = @adminIdCategoryId)", + new { candidateAssessmentId, adminId, adminIdCategoryId } ).FirstOrDefault(); } public bool UpdateSelfAssessmentResultSupervisorVerifications(int selfAssessmentResultSupervisorVerificationId, string? comments, bool signedOff, int adminId) @@ -736,7 +797,7 @@ public int RemoveSelfAssessmentResultSupervisorVerificationById(int id) } return numberOfAffectedRows; } - public IEnumerable GetAvailableRoleProfilesForDelegate(int delegateUserId, int centreId) + public IEnumerable GetAvailableRoleProfilesForDelegate(int delegateUserId, int centreId, int? categoryId) { return connection.Query( $@"SELECT rp.ID, rp.Name AS RoleProfileName, rp.Description, rp.BrandID, rp.ParentSelfAssessmentID, rp.[National], rp.[Public], rp.CreatedByAdminID AS OwnerAdminID, rp.NRPProfessionalGroupID, rp.NRPSubGroupID, rp.NRPRoleID, rp.PublishStatusID, 0 AS UserRole, rp.CreatedDate, @@ -757,8 +818,10 @@ FROM SelfAssessments AS rp INNER JOIN WHERE (rp.ArchivedDate IS NULL) AND (rp.ID NOT IN (SELECT SelfAssessmentID FROM CandidateAssessments AS CA - WHERE (DelegateUserID = @delegateUserId) AND (RemovedDate IS NULL) AND (CompletedDate IS NULL))) AND ((rp.SupervisorSelfAssessmentReview = 1) OR - (rp.SupervisorResultsReview = 1))", new { delegateUserId, centreId } + WHERE (DelegateUserID = @delegateUserId) AND (RemovedDate IS NULL) + AND (CompletedDate IS NULL))) + AND ((rp.SupervisorSelfAssessmentReview = 1) OR (rp.SupervisorResultsReview = 1)) + AND (ISNULL(@categoryId, 0) = 0 OR rp.CategoryID = @categoryId)", new { delegateUserId, centreId, categoryId } ); } diff --git a/DigitalLearningSolutions.Data/Models/Courses/AvailableCourse.cs b/DigitalLearningSolutions.Data/Models/Courses/AvailableCourse.cs index e3fb915ad0..94ce609017 100644 --- a/DigitalLearningSolutions.Data/Models/Courses/AvailableCourse.cs +++ b/DigitalLearningSolutions.Data/Models/Courses/AvailableCourse.cs @@ -17,6 +17,7 @@ public string? Topic } public int DelegateStatus { get; set; } public bool HideInLearnerPortal { get; set; } + public int CategoryID { get; set; } private string? category; private string? topic; diff --git a/DigitalLearningSolutions.Data/Models/SessionData/Tracking/Delegate/Enrol/SessionEnrolDelegate.cs b/DigitalLearningSolutions.Data/Models/SessionData/Tracking/Delegate/Enrol/SessionEnrolDelegate.cs index c63ec525d8..6f53abf300 100644 --- a/DigitalLearningSolutions.Data/Models/SessionData/Tracking/Delegate/Enrol/SessionEnrolDelegate.cs +++ b/DigitalLearningSolutions.Data/Models/SessionData/Tracking/Delegate/Enrol/SessionEnrolDelegate.cs @@ -16,5 +16,6 @@ public class SessionEnrolDelegate public string? SupervisorEmail { get; set; } public bool IsSelfAssessment { get; set; } public int AssessmentVersion { get; set; } + public int? AssessmentCategoryID { get; set; } } } diff --git a/DigitalLearningSolutions.Data/Models/User/AdminEntity.cs b/DigitalLearningSolutions.Data/Models/User/AdminEntity.cs index 89f9301f7a..e070aca124 100644 --- a/DigitalLearningSolutions.Data/Models/User/AdminEntity.cs +++ b/DigitalLearningSolutions.Data/Models/User/AdminEntity.cs @@ -57,6 +57,7 @@ public override string SearchableName UserCentreDetails?.Email ); + public int? CategoryId => AdminAccount.CategoryId; public string? CategoryName => AdminAccount.CategoryName; public bool IsLocked => UserAccount.FailedLoginCount >= AuthHelper.FailedLoginThreshold; public bool IsUserActive => UserAccount.Active; diff --git a/DigitalLearningSolutions.Web.Tests/Controllers/SupervisorController/SupervisorControllerTests.cs b/DigitalLearningSolutions.Web.Tests/Controllers/SupervisorController/SupervisorControllerTests.cs index 9b68b22c92..0185928855 100644 --- a/DigitalLearningSolutions.Web.Tests/Controllers/SupervisorController/SupervisorControllerTests.cs +++ b/DigitalLearningSolutions.Web.Tests/Controllers/SupervisorController/SupervisorControllerTests.cs @@ -71,6 +71,7 @@ public void Setup() clockUtility = A.Fake(); candidateAssessmentDownloadFileService = A.Fake(); pdfService = A.Fake(); + courseCategoriesService = A.Fake(); A.CallTo(() => candidateAssessmentDownloadFileService.GetCandidateAssessmentDownloadFileForCentre(A._, A._, A._)) .Returns(new byte[] { }); @@ -136,7 +137,8 @@ public void ExportCandidateAssessment_should_return_file_object_with_file_name_i emailService, candidateAssessmentDownloadFileService, clockUtility, - pdfService + pdfService, + courseCategoriesService ); string expectedFileName = $"{((selfAssessmentName.Length > 30) ? selfAssessmentName.Substring(0, 30) : selfAssessmentName)} - {delegateName} - {clockUtility.UtcNow:yyyy-MM-dd}.xlsx"; diff --git a/DigitalLearningSolutions.Web.Tests/Controllers/TrackingSystem/Delegates/CourseDelegatesControllerTests.cs b/DigitalLearningSolutions.Web.Tests/Controllers/TrackingSystem/Delegates/CourseDelegatesControllerTests.cs index 02b664d8d3..9db876b8b9 100644 --- a/DigitalLearningSolutions.Web.Tests/Controllers/TrackingSystem/Delegates/CourseDelegatesControllerTests.cs +++ b/DigitalLearningSolutions.Web.Tests/Controllers/TrackingSystem/Delegates/CourseDelegatesControllerTests.cs @@ -23,6 +23,7 @@ public class CourseDelegatesControllerTests { private const int UserCentreId = 3; + private const int selfAssessmentId = 3; private ActivityDelegatesController controller = null!; private ICourseDelegatesDownloadFileService courseDelegatesDownloadFileService = null!; private ICourseDelegatesService courseDelegatesService = null!; @@ -94,7 +95,7 @@ public void Index_shows_index_page_when_no_selfAssessmentId_supplied() var selfAssessmentDelegate = new SelfAssessmentDelegate(6, "Lname"); A.CallTo(() => selfAssessmentDelegatesService.GetSelfAssessmentDelegatesPerPage("", 0, 10, "SearchableName", "Ascending", - 6, UserCentreId, null, null, null, null)) + 6, UserCentreId, null, null, null, null, null)) .Returns((new SelfAssessmentDelegatesData( new List { selfAssessmentDelegate } ), 1) @@ -123,7 +124,7 @@ public void CourseDelegates_Index_returns_Not_Found_when_service_returns_null() ); // When - var result = controller.Index(2); + var result = controller.Index(2, selfAssessmentId); // Then result.Should().BeNotFoundResult(); @@ -136,7 +137,7 @@ public void SelfAssessmentDelegates_Index_returns_ViewResult_with_EmptyDelegates var selfAssessmentDelegate = new SelfAssessmentDelegate(6, "Lname"); A.CallTo(() => selfAssessmentDelegatesService.GetSelfAssessmentDelegatesPerPage("", 0, 10, "SearchableName", "Ascending", - 10, UserCentreId, null, null, null, null)) + 10, UserCentreId, null, null, null, null, null)) .Returns((new SelfAssessmentDelegatesData( new List { selfAssessmentDelegate } ), 0) @@ -146,8 +147,7 @@ public void SelfAssessmentDelegates_Index_returns_ViewResult_with_EmptyDelegates var result = controller.Index(null, 10); // Then - result.Should().BeViewResult().ModelAs() - .DelegatesDetails?.Delegates?.Should().BeEmpty(); + result.Should().BeRedirectToActionResult(); } [Test] @@ -207,7 +207,7 @@ public void Index_should_default_to_Active_filter() ); // When - var result = courseDelegatesController.Index(customisationId); + var result = courseDelegatesController.Index(customisationId, selfAssessmentId); // Then using (new AssertionScope()) diff --git a/DigitalLearningSolutions.Web.Tests/Controllers/TrackingSystem/Delegates/DelegateCoursesControllerTests.cs b/DigitalLearningSolutions.Web.Tests/Controllers/TrackingSystem/Delegates/DelegateCoursesControllerTests.cs index 469ba1b907..c5f511d1a3 100644 --- a/DigitalLearningSolutions.Web.Tests/Controllers/TrackingSystem/Delegates/DelegateCoursesControllerTests.cs +++ b/DigitalLearningSolutions.Web.Tests/Controllers/TrackingSystem/Delegates/DelegateCoursesControllerTests.cs @@ -99,7 +99,9 @@ public void Index_calls_expected_methods_and_returns_view() var delegateCourses = Builder.CreateListOfSize(5).Build(); A.CallTo(() => courseService.GetDelegateCourses(string.Empty, 1, 1, true, true, string.Empty, string.Empty, string.Empty, string.Empty)).Returns(delegateCourses); - A.CallTo(() => courseService.GetDelegateAssessments(A._, A._, A._, A._)).MustHaveHappened(); + + var delegateSelfAssessments = Builder.CreateListOfSize(5).Build(); + A.CallTo(() => courseService.GetDelegateAssessments(A._, A._, A._, A._, A._)).Returns(delegateSelfAssessments); A.CallTo( () => paginateService.Paginate(A>._, A._, diff --git a/DigitalLearningSolutions.Web.Tests/Services/CourseServiceTests.cs b/DigitalLearningSolutions.Web.Tests/Services/CourseServiceTests.cs index 6349ad43e9..15c1e584c4 100644 --- a/DigitalLearningSolutions.Web.Tests/Services/CourseServiceTests.cs +++ b/DigitalLearningSolutions.Web.Tests/Services/CourseServiceTests.cs @@ -982,15 +982,15 @@ public void GetDelegateAssessments_GetDelegateAssessments_ShouldBeInvokedAndRetu { // Given var delegateAssessments = Builder.CreateListOfSize(5).Build(); - A.CallTo(() => courseDataService.GetDelegateAssessmentStatisticsAtCentre(string.Empty, 1, string.Empty, string.Empty)).Returns(delegateAssessments); + A.CallTo(() => courseDataService.GetDelegateAssessmentStatisticsAtCentre(string.Empty, 1, string.Empty, string.Empty, 1)).Returns(delegateAssessments); // When - var result = courseService.GetDelegateAssessments(string.Empty, 1, string.Empty, string.Empty); + var result = courseService.GetDelegateAssessments(string.Empty, 1, string.Empty, string.Empty, 1); // Then using (new AssertionScope()) { - A.CallTo(() => courseDataService.GetDelegateAssessmentStatisticsAtCentre(string.Empty, 1, string.Empty, string.Empty)) + A.CallTo(() => courseDataService.GetDelegateAssessmentStatisticsAtCentre(string.Empty, 1, string.Empty, string.Empty, 1)) .MustHaveHappenedOnceExactly(); result.Count().Should().BeGreaterOrEqualTo(0); } diff --git a/DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs b/DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs index 6b959dfc50..3b39ac4361 100644 --- a/DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs +++ b/DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs @@ -694,7 +694,6 @@ public IActionResult StartAddNewSupervisor(int selfAssessmentId) ); var distinctSupervisorCentres = selfAssessmentService.GetValidSupervisorsForActivity( - User.GetCentreIdKnownNotNull(), selfAssessmentId, User.GetUserIdKnownNotNull() ).Select(c => new { c.CentreID, c.CentreName }).Distinct().OrderBy(o => o.CentreName).ToList(); @@ -728,7 +727,6 @@ public IActionResult AddNewSupervisor(int selfAssessmentId, TempData ); var supervisors = selfAssessmentService.GetValidSupervisorsForActivity( - User.GetCentreIdKnownNotNull(), selfAssessmentId, User.GetUserIdKnownNotNull() ).ToList(); @@ -776,7 +774,6 @@ public IActionResult GetAllSupervisors(int selfAssessmentId) TempData ); var supervisors = selfAssessmentService.GetValidSupervisorsForActivity( - User.GetCentreIdKnownNotNull(), selfAssessmentId, User.GetUserIdKnownNotNull() ); @@ -873,7 +870,6 @@ public IActionResult SelectSupervisorCentre(int selfAssessmentId) TempData ); var distinctCentres = selfAssessmentService.GetValidSupervisorsForActivity( - User.GetCentreIdKnownNotNull(), selfAssessmentId, User.GetUserIdKnownNotNull() ).Select(c => new { c.CentreID, c.CentreName }).Distinct().OrderBy(o => o.CentreName).ToList(); @@ -911,7 +907,6 @@ public IActionResult SelectSupervisorCentre(SupervisorCentresViewModel model) if (!ModelState.IsValid) { var distinctCentres = selfAssessmentService.GetValidSupervisorsForActivity( - User.GetCentreIdKnownNotNull(), model.SelfAssessmentID, User.GetUserIdKnownNotNull() ).Select(c => new { c.CentreID, c.CentreName }).Distinct().OrderBy(o => o.CentreName).ToList(); @@ -1072,7 +1067,6 @@ public IActionResult AddSupervisorSummary(int selfAssessmentId) var roles = supervisorService.GetDelegateNominatableSupervisorRolesForSelfAssessment(selfAssessmentId); var supervisor = selfAssessmentService.GetSupervisorByAdminId(sessionAddSupervisor.SupervisorAdminId); var distinctCentres = selfAssessmentService.GetValidSupervisorsForActivity( - User.GetCentreIdKnownNotNull(), selfAssessmentId, User.GetUserIdKnownNotNull() ).Select(c => new { c.CentreID, c.CentreName }).Distinct().OrderBy(o => o.CentreName).ToList(); @@ -1756,7 +1750,7 @@ public async Task DownloadCertificate(int candidateAssessmentId) { return RedirectToAction("StatusCode", "LearningSolutions", new { code = 403 }); } - if (userId != competencymaindata.LearnerId) return RedirectToAction("StatusCode", "LearningSolutions", new { code = 403 }); + if (userId != competencymaindata.LearnerId) return RedirectToAction("StatusCode", "LearningSolutions", new { code = 403 }); var delegateUserId = competencymaindata.LearnerId; var competencycount = selfAssessmentService.GetCompetencyCountSelfAssessmentCertificate(candidateAssessmentId); var accessors = selfAssessmentService.GetAccessor(competencymaindata.SelfAssessmentID, competencymaindata.LearnerId); diff --git a/DigitalLearningSolutions.Web/Controllers/SupervisorController/Supervisor.cs b/DigitalLearningSolutions.Web/Controllers/SupervisorController/Supervisor.cs index f9fe3ec0c3..7424e62878 100644 --- a/DigitalLearningSolutions.Web/Controllers/SupervisorController/Supervisor.cs +++ b/DigitalLearningSolutions.Web/Controllers/SupervisorController/Supervisor.cs @@ -325,7 +325,7 @@ public IActionResult DelegateProfileAssessments(int supervisorDelegateId, int de var superviseDelegate = supervisorService.GetSupervisorDelegateDetailsByIdWithoutRemoveClause(supervisorDelegateId, adminId, delegateUserId); var loggedInUserId = User.GetAdminId(); var loggedInAdminUser = userService.GetAdminUserById(loggedInUserId!.GetValueOrDefault()); - var delegateSelfAssessments = supervisorService.GetSelfAssessmentsForSupervisorDelegateId(supervisorDelegateId, adminId); + var delegateSelfAssessments = supervisorService.GetSelfAssessmentsForSupervisorDelegateId(supervisorDelegateId, loggedInAdminUser.CategoryId); var model = new DelegateSelfAssessmentsViewModel() { IsNominatedSupervisor = loggedInAdminUser?.IsSupervisor == true ? false : loggedInAdminUser?.IsNominatedSupervisor ?? false, @@ -341,8 +341,9 @@ public IActionResult AllStaffList() var adminId = GetAdminId(); var centreId = GetCentreId(); var loggedInUserId = User.GetUserId(); + var loggedInAdminUser = userService.GetAdminUserById(adminId); var centreCustomPrompts = centreRegistrationPromptsService.GetCentreRegistrationPromptsByCentreId(centreId); - var supervisorDelegateDetails = supervisorService.GetSupervisorDelegateDetailsForAdminId(adminId) + var supervisorDelegateDetails = supervisorService.GetSupervisorDelegateDetailsForAdminId(adminId, loggedInAdminUser.CategoryId) .Select(supervisor => { return supervisor; @@ -358,12 +359,15 @@ public IActionResult AllStaffList() public IActionResult ReviewDelegateSelfAssessment(int supervisorDelegateId, int candidateAssessmentId, int? selfAssessmentResultId = null, SearchSupervisorCompetencyViewModel searchModel = null) { var adminId = GetAdminId(); + var loggedInAdminUser = userService.GetAdminUserById(adminId); var superviseDelegate = supervisorService.GetSupervisorDelegateDetailsById(supervisorDelegateId, GetAdminId(), 0); + if (superviseDelegate == null) return RedirectToAction("StatusCode", "LearningSolutions", new { code = 403 }); var reviewedCompetencies = PopulateCompetencyLevelDescriptors( selfAssessmentService.GetCandidateAssessmentResultsById(candidateAssessmentId, adminId, selfAssessmentResultId).ToList() ); - var delegateSelfAssessment = supervisorService.GetSelfAssessmentByCandidateAssessmentId(candidateAssessmentId, adminId); + var delegateSelfAssessment = supervisorService.GetSelfAssessmentByCandidateAssessmentId(candidateAssessmentId, adminId, loggedInAdminUser.CategoryId); + if (delegateSelfAssessment == null) return RedirectToAction("StatusCode", "LearningSolutions", new { code = 403 }); var competencyIds = reviewedCompetencies.Select(c => c.Id).ToArray(); var competencyFlags = frameworkService.GetSelectedCompetencyFlagsByCompetecyIds(competencyIds); var competencies = SupervisorCompetencyFilterHelper.FilterCompetencies(reviewedCompetencies, competencyFlags, searchModel); @@ -380,7 +384,7 @@ public IActionResult ReviewDelegateSelfAssessment(int supervisorDelegateId, int IsSupervisorResultsReviewed = delegateSelfAssessment.IsSupervisorResultsReviewed, SearchViewModel = searchModel, CandidateAssessmentId = candidateAssessmentId, - ExportToExcelHide = delegateSelfAssessment.SupervisorRoleTitle.Contains("Assessor"), + ExportToExcelHide = delegateSelfAssessment.SupervisorRoleTitle?.Contains("Assessor") ?? false, }; var flags = frameworkService.GetSelectedCompetencyFlagsByCompetecyIds(reviewedCompetencies.Select(c => c.Id).ToArray()); @@ -723,12 +727,14 @@ public IActionResult EnrolDelegateOnProfileAssessment(int supervisorDelegateId) MultiPageFormDataFeature.EnrolDelegateOnProfileAssessment, TempData ); + var loggedInAdmin = userService.GetAdminById(GetAdminId()); var supervisorDelegate = supervisorService.GetSupervisorDelegateDetailsById(supervisorDelegateId, GetAdminId(), 0); var roleProfiles = supervisorService.GetAvailableRoleProfilesForDelegate( (int)supervisorDelegate.DelegateUserID, - GetCentreId() + GetCentreId(), + loggedInAdmin.CategoryId ); var model = new EnrolDelegateOnProfileAssessmentViewModel() { @@ -748,6 +754,8 @@ public IActionResult EnrolSetRoleProfile(int supervisorDelegateId, int selfAsses TempData ).GetAwaiter().GetResult(); + var loggedInAdmin = userService.GetAdminById(GetAdminId()); + if (selfAssessmentID < 1) { ModelState.AddModelError("selfAssessmentId", "You must select a self assessment"); @@ -760,7 +768,8 @@ public IActionResult EnrolSetRoleProfile(int supervisorDelegateId, int selfAsses supervisorService.GetSupervisorDelegateDetailsById(supervisorDelegateId, GetAdminId(), 0); var roleProfiles = supervisorService.GetAvailableRoleProfilesForDelegate( (int)supervisorDelegate.DelegateUserID, - GetCentreId() + GetCentreId(), + loggedInAdmin.CategoryId ); var model = new EnrolDelegateOnProfileAssessmentViewModel() { @@ -1274,9 +1283,13 @@ public IActionResult SignOffHistory(int supervisorDelegateId, int candidateAsses [Route("/Supervisor/Staff/{supervisorDelegateId}/NominateSupervisor")] public IActionResult NominateSupervisor(int supervisorDelegateId, ReturnPageQuery returnPageQuery) { + var centreId = User.GetCentreIdKnownNotNull(); + var loggedInAdmin = userService.GetAdminById(GetAdminId()); var superviseDelegate = supervisorService.GetSupervisorDelegateDetailsById(supervisorDelegateId, GetAdminId(), 0); - var model = new SupervisorDelegateViewModel(superviseDelegate, returnPageQuery); + var categories = courseCategoriesService.GetCategoriesForCentreAndCentrallyManagedCourses(centreId); + categories = categories.Prepend(new Category { CategoryName = "All", CourseCategoryID = 0 }); + var model = new SupervisorDelegateViewModel(superviseDelegate, returnPageQuery, categories, loggedInAdmin.CategoryId); if (TempData["NominateSupervisorError"] != null) { if (Convert.ToBoolean(TempData["NominateSupervisorError"].ToString())) @@ -1301,13 +1314,13 @@ public IActionResult ConfirmNominateSupervisor(SupervisorDelegateViewModel super supervisorDelegateDetail.DelegateUserID, (int)User.GetCentreId() ); - + supervisorDelegate.SelfAssessmentCategory = supervisorDelegate.SelfAssessmentCategory == 0 ? adminUser.CategoryId.Value : supervisorDelegate.SelfAssessmentCategory; var centreName = adminUser.CentreName; var adminRoles = new AdminRoles(false, false, true, false, false, false, false, false); if (supervisorDelegateDetail.DelegateUserID != null) { - registrationService.PromoteDelegateToAdmin(adminRoles, categoryId, (int)supervisorDelegateDetail.DelegateUserID, (int)User.GetCentreId(), true); + registrationService.PromoteDelegateToAdmin(adminRoles, supervisorDelegate.SelfAssessmentCategory, (int)supervisorDelegateDetail.DelegateUserID, (int)User.GetCentreId(), true); if (delegateUser != null && adminUser != null) { @@ -1384,12 +1397,13 @@ public IActionResult CompetencySelfAssessmentCertificatesupervisor(int candidate { var adminId = User.GetAdminId(); User.GetUserIdKnownNotNull(); + var loggedInAdminUser = userService.GetAdminUserById(adminId.Value); var competencymaindata = selfAssessmentService.GetCompetencySelfAssessmentCertificate(candidateAssessmentId); if ((competencymaindata == null) || (candidateAssessmentId == 0)) { return RedirectToAction("StatusCode", "LearningSolutions", new { code = 403 }); } - var supervisorDelegateDetails = supervisorService.GetSupervisorDelegateDetailsForAdminId(adminId.Value); + var supervisorDelegateDetails = supervisorService.GetSupervisorDelegateDetailsForAdminId(adminId.Value, loggedInAdminUser.CategoryId); var checkSupervisorDelegate = supervisorDelegateDetails.Where(x => x.DelegateUserID == competencymaindata.LearnerId).FirstOrDefault(); if ((checkSupervisorDelegate == null)) { @@ -1420,6 +1434,7 @@ public async Task DownloadCertificate(int candidateAssessmentId) PdfReportStatusResponse pdfReportStatusResponse = new PdfReportStatusResponse(); var delegateId = User.GetCandidateIdKnownNotNull(); var adminId = User.GetAdminId(); + var loggedInAdminUser = userService.GetAdminUserById(adminId.Value); var competencymaindata = selfAssessmentService.GetCompetencySelfAssessmentCertificate(candidateAssessmentId); if (competencymaindata == null || candidateAssessmentId == 0 || adminId == 0) { diff --git a/DigitalLearningSolutions.Web/Controllers/SupervisorController/SupervisorController.cs b/DigitalLearningSolutions.Web/Controllers/SupervisorController/SupervisorController.cs index 459bbe7f0e..476000816f 100644 --- a/DigitalLearningSolutions.Web/Controllers/SupervisorController/SupervisorController.cs +++ b/DigitalLearningSolutions.Web/Controllers/SupervisorController/SupervisorController.cs @@ -27,6 +27,7 @@ public partial class SupervisorController : Controller private readonly ICandidateAssessmentDownloadFileService candidateAssessmentDownloadFileService; private readonly IClockUtility clockUtility; private readonly IPdfService pdfService; + private readonly ICourseCategoriesService courseCategoriesService; public SupervisorController( ISupervisorService supervisorService, @@ -47,7 +48,8 @@ public SupervisorController( IEmailService emailService, ICandidateAssessmentDownloadFileService candidateAssessmentDownloadFileService, IClockUtility clockUtility, - IPdfService pdfService + IPdfService pdfService, + ICourseCategoriesService courseCategoriesService ) { this.supervisorService = supervisorService; @@ -65,6 +67,7 @@ IPdfService pdfService this.candidateAssessmentDownloadFileService = candidateAssessmentDownloadFileService; this.clockUtility = clockUtility; this.pdfService = pdfService; + this.courseCategoriesService = courseCategoriesService; } private int GetCentreId() diff --git a/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/ActivityDelegatesController.cs b/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/ActivityDelegatesController.cs index b8f86fa872..bfa04cd271 100644 --- a/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/ActivityDelegatesController.cs +++ b/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/ActivityDelegatesController.cs @@ -132,6 +132,7 @@ public IActionResult Index( var centreId = User.GetCentreIdKnownNotNull(); var adminCategoryId = User.GetAdminCategoryId(); + bool? isDelegateActive, isProgressLocked, removed, hasCompleted, submitted, signedOff; isDelegateActive = isProgressLocked = removed = hasCompleted = submitted = signedOff = null; @@ -210,7 +211,7 @@ public IActionResult Index( { var courseDelegatesData = new CourseDelegatesData(); var selfAssessmentDelegatesData = new SelfAssessmentDelegatesData(); - var resultCount = 0; + int? resultCount; if (isCourseDelegate) { (courseDelegatesData, resultCount) = courseDelegatesService.GetCoursesAndCourseDelegatesPerPageForCentre(searchString ?? string.Empty, offSet, itemsPerPage ?? 0, sortBy, sortDirection, @@ -232,14 +233,20 @@ public IActionResult Index( else { (selfAssessmentDelegatesData, resultCount) = selfAssessmentService.GetSelfAssessmentDelegatesPerPage(searchString ?? string.Empty, offSet, itemsPerPage ?? 0, sortBy, sortDirection, - selfAssessmentId, centreId, isDelegateActive, removed, submitted, signedOff); + selfAssessmentId, centreId, isDelegateActive, removed, submitted, signedOff, adminCategoryId); + + if (selfAssessmentDelegatesData?.Delegates == null && resultCount == null) + { + //redirect as unauthorized through null comparisions when category Id is a mismatch. + return RedirectToAction("StatusCode", "LearningSolutions", new { code = 403 }); + } if (selfAssessmentDelegatesData?.Delegates?.Count() == 0 && resultCount > 0) { page = 1; offSet = 0; (selfAssessmentDelegatesData, resultCount) = selfAssessmentService.GetSelfAssessmentDelegatesPerPage(searchString ?? string.Empty, offSet, itemsPerPage ?? 0, sortBy, sortDirection, - selfAssessmentId, centreId, isDelegateActive, removed, submitted, signedOff); - } + selfAssessmentId, centreId, isDelegateActive, removed, submitted, signedOff, adminCategoryId); + } var adminId = User.GetCustomClaimAsRequiredInt(CustomClaimTypes.UserAdminId); @@ -274,7 +281,7 @@ public IActionResult Index( { var result = paginateService.Paginate( courseDelegatesData.Delegates, - resultCount, + (int)resultCount, new PaginationOptions(page, itemsPerPage), new FilterOptions(existingFilterString, availableFilters, CourseDelegateAccountStatusFilterOptions.Active.FilterValue), searchString, @@ -292,7 +299,7 @@ public IActionResult Index( { var result = paginateService.Paginate( selfAssessmentDelegatesData.Delegates, - resultCount, + (int)resultCount, new PaginationOptions(page, itemsPerPage), new FilterOptions(existingFilterString, availableFilters, CourseDelegateAccountStatusFilterOptions.Active.FilterValue), searchString, diff --git a/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/DelegateCoursesController.cs b/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/DelegateCoursesController.cs index 0cbcd2c2bf..70040ebb9c 100644 --- a/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/DelegateCoursesController.cs +++ b/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/DelegateCoursesController.cs @@ -156,13 +156,13 @@ public IActionResult Index( { delegateActivities = courseService.GetDelegateCourses(searchString, centreId, categoryId, true, null, isActive, categoryName, courseTopic, hasAdminFields).ToList(); if (courseTopic == "Any" && hasAdminFields == "Any") - delegateAssessments = courseService.GetDelegateAssessments(searchString, centreId, categoryName, isActive); + delegateAssessments = courseService.GetDelegateAssessments(searchString, centreId, categoryName, isActive, categoryId); } if (isCourse == "true") delegateActivities = courseService.GetDelegateCourses(searchString ?? string.Empty, centreId, categoryId, true, null, isActive, categoryName, courseTopic, hasAdminFields).ToList(); if (isSelfAssessment == "true" && courseTopic == "Any" && hasAdminFields == "Any") - delegateAssessments = courseService.GetDelegateAssessments(searchString, centreId, categoryName, isActive); + delegateAssessments = courseService.GetDelegateAssessments(searchString, centreId, categoryName, isActive, categoryId); delegateAssessments = UpdateCompletedCount(delegateAssessments); diff --git a/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/EnrolController.cs b/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/EnrolController.cs index 9307e300b5..146aebe824 100644 --- a/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/EnrolController.cs +++ b/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/EnrolController.cs @@ -122,6 +122,7 @@ public IActionResult Index(int delegateId, EnrolCurrentLearningViewModel enrolCu sessionEnrol.IsSelfAssessment = selectedCourse.IsSelfAssessment; sessionEnrol.AssessmentVersion = selectedCourse.CurrentVersion.GetValueOrDefault(); sessionEnrol.AssessmentName = selectedCourse.Name; + sessionEnrol.AssessmentCategoryID = selectedCourse.CategoryID; multiPageFormService.SetMultiPageFormData( sessionEnrol, @@ -201,7 +202,7 @@ public IActionResult EnrolDelegateSupervisor(int delegateId) var sessionEnrol = multiPageFormService.GetMultiPageFormData( MultiPageFormDataFeature.EnrolDelegateInActivity, TempData).GetAwaiter().GetResult(); - var supervisorList = supervisorService.GetSupervisorForEnrolDelegate(sessionEnrol.AssessmentID.GetValueOrDefault(), centreId.Value); + var supervisorList = supervisorService.GetSupervisorForEnrolDelegate(centreId.Value, sessionEnrol.AssessmentCategoryID.Value); if (!sessionEnrol.IsSelfAssessment) { var model = new EnrolSupervisorViewModel( @@ -233,7 +234,7 @@ public IActionResult EnrolDelegateSupervisor(int delegateId, EnrolSupervisorView { var centreId = GetCentreId(); var sessionEnrol = multiPageFormService.GetMultiPageFormData(MultiPageFormDataFeature.EnrolDelegateInActivity, TempData).GetAwaiter().GetResult(); - var supervisorList = supervisorService.GetSupervisorForEnrolDelegate(sessionEnrol.AssessmentID.Value, centreId.Value); + var supervisorList = supervisorService.GetSupervisorForEnrolDelegate(centreId.Value, sessionEnrol.AssessmentCategoryID.Value); var roles = supervisorService.GetSupervisorRolesBySelfAssessmentIdForSupervisor(sessionEnrol.AssessmentID.GetValueOrDefault()).ToArray(); if (!ModelState.IsValid) diff --git a/DigitalLearningSolutions.Web/Services/CourseDelegatesDownloadFileService.cs b/DigitalLearningSolutions.Web/Services/CourseDelegatesDownloadFileService.cs index 3699b665ff..8606d1b0c4 100644 --- a/DigitalLearningSolutions.Web/Services/CourseDelegatesDownloadFileService.cs +++ b/DigitalLearningSolutions.Web/Services/CourseDelegatesDownloadFileService.cs @@ -227,12 +227,12 @@ string sortDirection { courses = GetCoursesToExport(centreId, adminCategoryId, searchString, sortBy, filterString, sortDirection); if (courseTopic == "Any" && hasAdminFields == "Any") - selfAssessments = courseService.GetDelegateAssessments(searchString, centreId, categoryName, isActive); + selfAssessments = courseService.GetDelegateAssessments(searchString, centreId, categoryName, isActive, adminCategoryId); } if (isCourse == "true") courses = GetCoursesToExport(centreId, adminCategoryId, searchString, sortBy, filterString, sortDirection); if (isSelfAssessment == "true" && courseTopic == "Any" && hasAdminFields == "Any") - selfAssessments = courseService.GetDelegateAssessments(searchString, centreId, categoryName, isActive); + selfAssessments = courseService.GetDelegateAssessments(searchString, centreId, categoryName, isActive, adminCategoryId); if (selfAssessments.Any()) { diff --git a/DigitalLearningSolutions.Web/Services/CourseService.cs b/DigitalLearningSolutions.Web/Services/CourseService.cs index 5a9bc2d86a..9c255baf2e 100644 --- a/DigitalLearningSolutions.Web/Services/CourseService.cs +++ b/DigitalLearningSolutions.Web/Services/CourseService.cs @@ -120,7 +120,7 @@ int diagCompletionThreshold string isActive, string categoryName, string courseTopic, string hasAdminFields); public IEnumerable GetDelegateCourses(string searchString, int centreId, int? categoryId, bool allCentreCourses, bool? hideInLearnerPortal, string isActive, string categoryName, string courseTopic, string hasAdminFields); - public IEnumerable GetDelegateAssessments(string searchString, int centreId, string categoryName, string isActive); + public IEnumerable GetDelegateAssessments(string searchString, int centreId, string categoryName, string isActive, int? categoryId); IEnumerable GetAvailableCourses(int delegateId, int? centreId, int categoryId); bool IsCourseCompleted(int candidateId, int customisationId); bool IsCourseCompleted(int candidateId, int customisationId, int progressID); @@ -563,9 +563,9 @@ public IEnumerable GetDelegateCour ); } - public IEnumerable GetDelegateAssessments(string searchString, int centreId, string categoryName, string isActive) + public IEnumerable GetDelegateAssessments(string searchString, int centreId, string categoryName, string isActive, int? categoryId) { - return courseDataService.GetDelegateAssessmentStatisticsAtCentre(searchString, centreId, categoryName, isActive); + return courseDataService.GetDelegateAssessmentStatisticsAtCentre(searchString, centreId, categoryName, isActive, categoryId); } public IEnumerable GetAvailableCourses(int delegateId, int? centreId, int categoryId) diff --git a/DigitalLearningSolutions.Web/Services/SelfAssessmentService.cs b/DigitalLearningSolutions.Web/Services/SelfAssessmentService.cs index ff7ef8d53a..61e92bb72b 100644 --- a/DigitalLearningSolutions.Web/Services/SelfAssessmentService.cs +++ b/DigitalLearningSolutions.Web/Services/SelfAssessmentService.cs @@ -87,7 +87,7 @@ int delegateUserId IEnumerable GetOtherSupervisorsForCandidate(int selfAssessmentId, int delegateUserId); - IEnumerable GetValidSupervisorsForActivity(int centreId, int selfAssessmentId, int delegateUserId); + IEnumerable GetValidSupervisorsForActivity(int selfAssessmentId, int delegateUserId); Administrator GetSupervisorByAdminId(int supervisorAdminId); @@ -128,8 +128,8 @@ int delegateUserId ); void RemoveEnrolment(int selfAssessmentId, int delegateUserId); - public (SelfAssessmentDelegatesData, int) GetSelfAssessmentDelegatesPerPage(string searchString, int offSet, int itemsPerPage, string sortBy, string sortDirection, - int? selfAssessmentId, int centreId, bool? isDelegateActive, bool? removed, bool? submitted, bool? signedOff); + public (SelfAssessmentDelegatesData, int?) GetSelfAssessmentDelegatesPerPage(string searchString, int offSet, int itemsPerPage, string sortBy, string sortDirection, + int? selfAssessmentId, int centreId, bool? isDelegateActive, bool? removed, bool? submitted, bool? signedOff, int? adminCategoryId); public SelfAssessmentDelegatesData GetSelfAssessmentActivityDelegatesExport(string searchString, int itemsPerPage, string sortBy, string sortDirection, int? selfAssessmentId, int centreId, bool? isDelegateActive, bool? removed, int currentRun, bool? submitted, bool? signedOff); public int GetSelfAssessmentActivityDelegatesExportCount(string searchString, string sortBy, string sortDirection, @@ -149,6 +149,7 @@ public int GetSelfAssessmentActivityDelegatesExportCount(string searchString, st IEnumerable GetCandidateAssessments(int delegateUserId, int selfAssessmentId); bool IsCentreSelfAssessment(int selfAssessmentId, int centreId); bool HasMinimumOptionalCompetencies(int selfAssessmentId, int delegateUserId); + public int GetSelfAssessmentCategoryId(int selfAssessmentId); } @@ -253,12 +254,11 @@ int delegateUserId } public IEnumerable GetValidSupervisorsForActivity( - int centreId, int selfAssessmentId, int delegateUserId ) { - return selfAssessmentDataService.GetValidSupervisorsForActivity(centreId, selfAssessmentId, delegateUserId).Where(c => !Guid.TryParse(c.Email, out _)); + return selfAssessmentDataService.GetValidSupervisorsForActivity(selfAssessmentId, delegateUserId).Where(c => !Guid.TryParse(c.Email, out _)); } public Administrator GetSupervisorByAdminId(int supervisorAdminId) @@ -448,9 +448,18 @@ public void RemoveEnrolment(int selfAssessmentId, int delegateUserId) return selfAssessmentDataService.GetSelfAssessmentNameById(selfAssessmentId); } - public (SelfAssessmentDelegatesData, int) GetSelfAssessmentDelegatesPerPage(string searchString, int offSet, int itemsPerPage, string sortBy, string sortDirection, - int? selfAssessmentId, int centreId, bool? isDelegateActive, bool? removed, bool? submitted, bool? signedOff) + public (SelfAssessmentDelegatesData, int?) GetSelfAssessmentDelegatesPerPage(string searchString, int offSet, int itemsPerPage, string sortBy, string sortDirection, + int? selfAssessmentId, int centreId, bool? isDelegateActive, bool? removed, bool? submitted, bool? signedOff, int? adminCategoryId) { + + var selfAssessmentCategoryId = selfAssessmentDataService.GetSelfAssessmentCategoryId((int)selfAssessmentId); + + if (adminCategoryId > 0 && adminCategoryId != selfAssessmentCategoryId) + { + // return null variants of the object when the categoryID mismatches + return (new SelfAssessmentDelegatesData(), null); + } + (var delegateselfAssessments, int resultCount) = selfAssessmentDataService.GetSelfAssessmentDelegates(searchString, offSet, itemsPerPage, sortBy, sortDirection, selfAssessmentId, centreId, isDelegateActive, removed, submitted, signedOff); @@ -558,5 +567,10 @@ public bool HasMinimumOptionalCompetencies(int selfAssessmentId, int delegateUse { return selfAssessmentDataService.HasMinimumOptionalCompetencies(selfAssessmentId, delegateUserId); } + + public int GetSelfAssessmentCategoryId(int selfAssessmentId) + { + return selfAssessmentDataService.GetSelfAssessmentCategoryId(selfAssessmentId); + } } } diff --git a/DigitalLearningSolutions.Web/Services/SupervisorService.cs b/DigitalLearningSolutions.Web/Services/SupervisorService.cs index 387e23c63c..174c9ae778 100644 --- a/DigitalLearningSolutions.Web/Services/SupervisorService.cs +++ b/DigitalLearningSolutions.Web/Services/SupervisorService.cs @@ -11,16 +11,16 @@ public interface ISupervisorService { //GET DATA DashboardData? GetDashboardDataForAdminId(int adminId); - IEnumerable GetSupervisorDelegateDetailsForAdminId(int adminId); + IEnumerable GetSupervisorDelegateDetailsForAdminId(int adminId, int? adminIdCategoryID); SupervisorDelegateDetail GetSupervisorDelegateDetailsById(int supervisorDelegateId, int adminId, int delegateUserId); SupervisorDelegate GetSupervisorDelegate(int adminId, int delegateUserId); int? ValidateDelegate(int centreId, string delegateEmail); - IEnumerable GetSelfAssessmentsForSupervisorDelegateId(int supervisorDelegateId, int adminId); - DelegateSelfAssessment? GetSelfAssessmentByCandidateAssessmentId(int candidateAssessmentId, int adminId); + IEnumerable GetSelfAssessmentsForSupervisorDelegateId(int supervisorDelegateId, int? adminIdCategoryId); + DelegateSelfAssessment? GetSelfAssessmentByCandidateAssessmentId(int candidateAssessmentId, int adminId, int? adminIdCategoryId); IEnumerable GetSupervisorDashboardToDoItemsForRequestedSignOffs(int adminId); IEnumerable GetSupervisorDashboardToDoItemsForRequestedReviews(int adminId); DelegateSelfAssessment? GetSelfAssessmentBaseByCandidateAssessmentId(int candidateAssessmentId); - IEnumerable GetAvailableRoleProfilesForDelegate(int candidateId, int centreId); + IEnumerable GetAvailableRoleProfilesForDelegate(int candidateId, int centreId, int? categoryId); RoleProfile? GetRoleProfileById(int selfAssessmentId); IEnumerable GetSupervisorRolesForSelfAssessment(int selfAssessmentId); IEnumerable GetSupervisorRolesBySelfAssessmentIdForSupervisor(int selfAssessmentId); @@ -79,9 +79,9 @@ public int EnrolDelegateOnAssessment(int delegateUserId, int supervisorDelegateI return supervisorDataService.EnrolDelegateOnAssessment(delegateUserId, supervisorDelegateId, selfAssessmentId, completeByDate, selfAssessmentSupervisorRoleId, adminId, centreId, isLoggedInUser); } - public IEnumerable GetAvailableRoleProfilesForDelegate(int candidateId, int centreId) + public IEnumerable GetAvailableRoleProfilesForDelegate(int candidateId, int centreId, int? categoryId) { - return supervisorDataService.GetAvailableRoleProfilesForDelegate(candidateId, centreId); + return supervisorDataService.GetAvailableRoleProfilesForDelegate(candidateId, centreId, categoryId); } public CandidateAssessmentSupervisor? GetCandidateAssessmentSupervisor(int candidateAssessmentID, int supervisorDelegateId, int selfAssessmentSupervisorRoleId) @@ -119,9 +119,9 @@ public IEnumerable GetDelegateNominatableSuperviso return supervisorDataService.GetSelfAssessmentBaseByCandidateAssessmentId(candidateAssessmentId); } - public DelegateSelfAssessment? GetSelfAssessmentByCandidateAssessmentId(int candidateAssessmentId, int adminId) + public DelegateSelfAssessment? GetSelfAssessmentByCandidateAssessmentId(int candidateAssessmentId, int adminId, int? adminIdCategoryId) { - return supervisorDataService.GetSelfAssessmentByCandidateAssessmentId(candidateAssessmentId, adminId); + return supervisorDataService.GetSelfAssessmentByCandidateAssessmentId(candidateAssessmentId, adminId, adminIdCategoryId); } public DelegateSelfAssessment? GetSelfAssessmentBySupervisorDelegateCandidateAssessmentId(int candidateAssessmentId, int supervisorDelegateId) @@ -139,9 +139,9 @@ public IEnumerable GetDelegateNominatableSuperviso return supervisorDataService.GetSelfAssessmentResultSummary(candidateAssessmentId, supervisorDelegateId); } - public IEnumerable GetSelfAssessmentsForSupervisorDelegateId(int supervisorDelegateId, int adminId) + public IEnumerable GetSelfAssessmentsForSupervisorDelegateId(int supervisorDelegateId, int? adminIdCategoryId) { - return supervisorDataService.GetSelfAssessmentsForSupervisorDelegateId(supervisorDelegateId, adminId); + return supervisorDataService.GetSelfAssessmentsForSupervisorDelegateId(supervisorDelegateId, adminIdCategoryId); } public IEnumerable GetSupervisorDashboardToDoItemsForRequestedReviews(int adminId) @@ -169,14 +169,14 @@ public SupervisorDelegateDetail GetSupervisorDelegateDetailsById(int supervisorD return supervisorDataService.GetSupervisorDelegateDetailsById(supervisorDelegateId, adminId, delegateUserId); } - public IEnumerable GetSupervisorDelegateDetailsForAdminId(int adminId) + public IEnumerable GetSupervisorDelegateDetailsForAdminId(int adminId, int? adminIdCategoryID) { - return supervisorDataService.GetSupervisorDelegateDetailsForAdminId(adminId); + return supervisorDataService.GetSupervisorDelegateDetailsForAdminId(adminId, adminIdCategoryID); } - public IEnumerable GetSupervisorForEnrolDelegate(int CustomisationID, int CentreID) + public IEnumerable GetSupervisorForEnrolDelegate(int CentreID, int CategoryID) { - return supervisorDataService.GetSupervisorForEnrolDelegate(CustomisationID, CentreID); + return supervisorDataService.GetSupervisorForEnrolDelegate(CentreID, CategoryID); } public SelfAssessmentSupervisorRole? GetSupervisorRoleById(int id) diff --git a/DigitalLearningSolutions.Web/ViewModels/Supervisor/SupervisorDelegateViewModel.cs b/DigitalLearningSolutions.Web/ViewModels/Supervisor/SupervisorDelegateViewModel.cs index a461c41988..53fd39ee54 100644 --- a/DigitalLearningSolutions.Web/ViewModels/Supervisor/SupervisorDelegateViewModel.cs +++ b/DigitalLearningSolutions.Web/ViewModels/Supervisor/SupervisorDelegateViewModel.cs @@ -3,10 +3,29 @@ using DigitalLearningSolutions.Data.Models.SearchSortFilterPaginate; using DigitalLearningSolutions.Data.Models.Supervisor; using DigitalLearningSolutions.Web.Attributes; + using Microsoft.AspNetCore.Mvc.Rendering; + using System.Collections.Generic; using System.ComponentModel; + using DigitalLearningSolutions.Data.Models.Common; + using DigitalLearningSolutions.Web.Helpers; + using System.Linq; public class SupervisorDelegateViewModel { + public SupervisorDelegateViewModel(SupervisorDelegateDetail detail, ReturnPageQuery returnPageQuery, IEnumerable categories, int? adminCategoryId) + { + Id = detail.ID; + FirstName = detail.FirstName; + LastName = detail.LastName; + DelegateEmail = detail.DelegateEmail; + CandidateAssessmentCount = detail.CandidateAssessmentCount; + ReturnPageQuery = returnPageQuery; + SelfAssessmentCategory = AdminCategoryHelper.CategoryIdToAdminCategory(adminCategoryId); + SelfAssessmentCategories = SelectListHelper.MapOptionsToSelectListItems( + categories.Select(c => (c.CourseCategoryID, c.CategoryName)), + adminCategoryId + ); + } public SupervisorDelegateViewModel(SupervisorDelegateDetail detail, ReturnPageQuery returnPageQuery) { Id = detail.ID; @@ -23,10 +42,11 @@ public SupervisorDelegateViewModel() { } public int CandidateAssessmentCount { get; set; } public string DelegateEmail { get; set; } public ReturnPageQuery ReturnPageQuery { get; set; } - [BooleanMustBeTrue(ErrorMessage = "Please tick the checkbox to confirm you wish to perform this action")] public bool ActionConfirmed { get; set; } [DefaultValue(false)] public bool ConfirmedRemove { get; set; } + public int SelfAssessmentCategory { get; set; } + public IEnumerable SelfAssessmentCategories { get; set; } } } diff --git a/DigitalLearningSolutions.Web/Views/Supervisor/NominateSupervisor.cshtml b/DigitalLearningSolutions.Web/Views/Supervisor/NominateSupervisor.cshtml index 204ddabb71..81772ef40c 100644 --- a/DigitalLearningSolutions.Web/Views/Supervisor/NominateSupervisor.cshtml +++ b/DigitalLearningSolutions.Web/Views/Supervisor/NominateSupervisor.cshtml @@ -3,53 +3,65 @@ @model SupervisorDelegateViewModel; @inject IConfiguration Configuration; @{ - var errorHasOccurred = !ViewData.ModelState.IsValid; - ViewData["Application"] = "Supervisor"; - ViewData["Title"] = "Confirm Nominated supervisor"; - ViewData["HeaderPath"] = $"{Configuration["AppRootPath"]}/Supervisor/MyStaff"; - ViewData["HeaderPathName"] = "My Staff"; + var errorHasOccurred = !ViewData.ModelState.IsValid; + ViewData["Application"] = "Supervisor"; + ViewData["Title"] = "Confirm Nominated supervisor"; + ViewData["HeaderPath"] = $"{Configuration["AppRootPath"]}/Supervisor/MyStaff"; + ViewData["HeaderPathName"] = "My Staff"; } @section NavMenuItems { - + } -
+
- @if (errorHasOccurred) - { - - } -

@ViewData["Title"]

-
-
-
- Staff member: + @if (errorHasOccurred) + { + + } +

@ViewData["Title"]

+
+
+
+ Staff member: +
+
+
+ @Model.FirstName @Model.LastName (@Model.DelegateEmail) +
-
-
- @Model.FirstName @Model.LastName (@Model.DelegateEmail) -
-
-

By promoting this member of staff to the Nominated supervisor role, you are confirming their competence to assess the capability of others.

-

Once the Nominated supervisor role has been assigned, it can only be removed by a Centre Manager or Clinical Centre Manager.

-
-
- -
- - @Html.HiddenFor(m => m.Id) - @Html.HiddenFor(m => m.FirstName) - @Html.HiddenFor(m => m.LastName) - @Html.HiddenFor(m => m.DelegateEmail) - @Html.HiddenFor(m => m.CandidateAssessmentCount) - @Html.HiddenFor(m => m.ReturnPageQuery) -
+

By promoting this member of staff to the Nominated supervisor role, you are confirming their competence to assess the capability of others.

+

Once the Nominated supervisor role has been assigned, it can only be removed by a Centre Manager or Clinical Centre Manager.

+
+
+ +
+ @if(Model.SelfAssessmentCategory == 0) + { + + } + + @Html.HiddenFor(m => m.Id) + @Html.HiddenFor(m => m.FirstName) + @Html.HiddenFor(m => m.LastName) + @Html.HiddenFor(m => m.DelegateEmail) + @Html.HiddenFor(m => m.CandidateAssessmentCount) + @Html.HiddenFor(m => m.ReturnPageQuery) + @Html.HiddenFor(m => m.SelfAssessmentCategories) + - -
+ +