Skip to content

Commit

Permalink
Merge pull request #43 from WyattBest/scheduled_actions
Browse files Browse the repository at this point in the history
Scheduled actions
  • Loading branch information
WyattBest authored Jun 22, 2021
2 parents 36d4450 + 0df296a commit 9500e23
Show file tree
Hide file tree
Showing 10 changed files with 464 additions and 145 deletions.
Binary file modified PowerSlate Integration Fields.docx
Binary file not shown.
28 changes: 28 additions & 0 deletions SQL/[custom].[PS_delAction].sql
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


32 changes: 32 additions & 0 deletions SQL/[custom].[PS_selActionDefinition].sql
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


38 changes: 38 additions & 0 deletions SQL/[custom].[PS_selActions].sql
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


Loading

0 comments on commit 9500e23

Please sign in to comment.