UFN_BATCHINTERACTION_STATUSCODE_GETID
Return
Return Type |
---|
tinyint |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(9) | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 2/1/2011 8:58:26 AM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.9.1001.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_BATCHINTERACTION_STATUSCODE_GETID(@Description nvarchar(9))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
return case @Description
when 'Pending' then 1
when 'Completed' then 2
when 'Canceled' then 4
when 'Declined' then 5
else -1
end
end