USP_DATAFORMTEMPLATE_EDITLOAD_LIFECYCLEPROSEPECTCRITERIA

The load procedure used by the edit dataform template "Donor Lifecycle Prospect Criteria Edit Data Form"

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN The input ID parameter used to load the fields defined on the form.
@DATALOADED bit INOUT Output parameter indicating whether or not data was actually loaded.
@TSLONG bigint INOUT Output parameter indicating the TSLONG value of the record being edited. This is used to manage multi-user concurrency issues when multiple users access the same record.
@NOAFFINITYPERIOD int INOUT Number of years
@DONORPERIOD int INOUT Number of years
@DONORFILTERTYPECODE int INOUT DONORFILTERTYPECODE
@DONORASOFDATE datetime INOUT As of date

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_LIFECYCLEPROSEPECTCRITERIA
(
    @ID uniqueidentifier,
    @DATALOADED bit = 0 output,
    @TSLONG bigint = 0 output,
    @NOAFFINITYPERIOD int = null output,
    @DONORPERIOD int = null output,
    @DONORFILTERTYPECODE int = null output,
    @DONORASOFDATE datetime = null output
)
as

    set nocount on;

    set @DATALOADED = 0
    set @TSLONG = 0

    select
        @DATALOADED = 1,
        @TSLONG = TSLONG,
        @NOAFFINITYPERIOD = NOAFFINITYPERIOD,
        @DONORPERIOD = DONORPERIOD,
        @DONORFILTERTYPECODE = DONORFILTERTYPECODE,
        @DONORASOFDATE = DONORASOFDATE
    from 
        dbo.REVENUELIFECYCLECRITERIA
    where 
        ID = @ID

    return 0;