USP_DATAFORMTEMPLATE_EDITLOAD_CHARITYCLAIMREFERENCENUMBER
The load procedure used by the edit dataform template "Charity Claim Information Edit Form"
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
| @REFERENCENUMBER | nvarchar(20) | INOUT | Reference number |
| @DESCRIPTION | nvarchar(50) | INOUT | Description |
| @CLASSIFICATIONCODE | tinyint | INOUT | Classification |
| @WAITINGPERIOD | smallint | INOUT | Days to wait |
| @SITEREQUIRED | bit | INOUT | Site Required |
| @SITES | xml | INOUT | Sites |
| @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. |
| @CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_CHARITYCLAIMREFERENCENUMBER
(
@ID uniqueidentifier,
@REFERENCENUMBER nvarchar(20) = null output,
@DESCRIPTION nvarchar(50) = null output,
@CLASSIFICATIONCODE tinyint = null output,
@WAITINGPERIOD smallint = null output,
@SITEREQUIRED bit = null output,
@SITES xml = null output,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@CURRENTAPPUSERID uniqueidentifier
)
as
begin
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@TSLONG = TSLONG,
@REFERENCENUMBER = REFERENCENUMBER,
@DESCRIPTION = DESCRIPTION,
@CLASSIFICATIONCODE = CLASSIFICATIONCODE,
@WAITINGPERIOD = WAITINGPERIOD,
@SITES = dbo.UFN_CHARITYCLAIMREFERENCENUMBER_GETSITES_TOITEMLISTXML(CHARITYCLAIMREFERENCENUMBER.ID)
from
CHARITYCLAIMREFERENCENUMBER
where
CHARITYCLAIMREFERENCENUMBER.ID = @ID
return 0;
end