USP_SCREENPLAN_DELETE_PROMPT
Provides the prompt for the "Screening Plan: Delete" record operation.
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | Represents information to be displayed in the record operation prompt. |
@PROMPT | nvarchar(1024) | INOUT |
Definition
Copy
CREATE procedure dbo.USP_SCREENPLAN_DELETE_PROMPT
(
@ID uniqueidentifier,
@PROMPT nvarchar(1024) output
)
as
set nocount on;
if exists(select top 1 ID from dbo.VOLUNTEERSCREENPLAN where SCREENPLANID = @ID)
set @PROMPT = 'Are you sure you want to delete a screening plan currently in use?'
else
if exists(select top 1 ID from dbo.VOLUNTEERTYPE where SCREENPLANID = @ID)
set @PROMPT = 'Are you sure you want to delete a screening plan currently in use?'
else
set @PROMPT = 'Are you sure you want to delete this screening plan?'
return 0;