-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from WyattBest/scheduled_actions
Scheduled actions
- Loading branch information
Showing
10 changed files
with
464 additions
and
145 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
USE [Campus6] | ||
GO | ||
|
||
/****** Object: StoredProcedure [custom].[PS_updSMSOptIn] Script Date: 2021-06-10 16:41:06 ******/ | ||
SET ANSI_NULLS ON | ||
GO | ||
|
||
SET QUOTED_IDENTIFIER ON | ||
GO | ||
|
||
-- ============================================= | ||
-- Author: Wyatt Best | ||
-- Create date: 2021-06-10 | ||
-- Description: Deletes a Scheduled Action by ACTIONSCHEDULE_ID | ||
-- | ||
-- ============================================= | ||
CREATE PROCEDURE [custom].[PS_delAction] @Actionschedule_Id INT | ||
AS | ||
BEGIN | ||
SET NOCOUNT ON; | ||
|
||
DELETE | ||
FROM ACTIONSCHEDULE | ||
WHERE ACTIONSCHEDULE_ID = @Actionschedule_Id | ||
END | ||
GO | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
USE [Campus6] | ||
GO | ||
|
||
/****** Object: StoredProcedure [custom].[PS_updSMSOptIn] Script Date: 2021-06-10 16:41:06 ******/ | ||
SET ANSI_NULLS ON | ||
GO | ||
|
||
SET QUOTED_IDENTIFIER ON | ||
GO | ||
|
||
-- ============================================= | ||
-- Author: Wyatt Best | ||
-- Create date: 2021-06-11 | ||
-- Description: Select action definition by ACTION_ID. Limited to only active actions. | ||
-- | ||
-- ============================================= | ||
CREATE PROCEDURE [custom].[PS_selActionDefinition] @ActionId NVARCHAR(8) | ||
AS | ||
BEGIN | ||
SET NOCOUNT ON; | ||
|
||
SELECT ACTION_ID | ||
,ACTION_NAME | ||
,OFFICE | ||
,[TYPE] | ||
FROM [ACTION] | ||
WHERE ACTION_ID = @ActionId | ||
AND [STATUS] = 'A' | ||
END | ||
GO | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
USE [Campus6] | ||
GO | ||
|
||
/****** Object: StoredProcedure [custom].[PS_updSMSOptIn] Script Date: 2021-06-10 16:41:06 ******/ | ||
SET ANSI_NULLS ON | ||
GO | ||
|
||
SET QUOTED_IDENTIFIER ON | ||
GO | ||
|
||
-- ============================================= | ||
-- Author: Wyatt Best | ||
-- Create date: 2021-06-10 | ||
-- Description: Select scheduled actions by person, CREATE_OPID, and YTS. | ||
-- | ||
-- ============================================= | ||
CREATE PROCEDURE [custom].[PS_selActions] @PCID NVARCHAR(10) | ||
,@Opid NVARCHAR(8) | ||
,@AcademicYear NVARCHAR(4) | ||
,@AcademicTerm NVARCHAR(10) | ||
,@AcademicSession NVARCHAR(10) | ||
AS | ||
BEGIN | ||
SET NOCOUNT ON; | ||
|
||
SELECT ACTION_ID [action_id] | ||
,ACTION_NAME [item] | ||
,ACTIONSCHEDULE_ID | ||
FROM ACTIONSCHEDULE | ||
WHERE PEOPLE_ORG_CODE_ID = @PCID | ||
AND CREATE_OPID = @Opid | ||
AND ACADEMIC_YEAR = @AcademicYear | ||
AND ACADEMIC_TERM = @AcademicTerm | ||
AND ACADEMIC_SESSION = @AcademicSession | ||
END | ||
GO | ||
|
||
|
Oops, something went wrong.