USP_DATAFORMTEMPLATE_EDITLOAD_REGISTRANTREGISTRATION
The load procedure used by the edit dataform template "Registrant Registration Edit 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. |
@EVENTID | uniqueidentifier | INOUT | |
@EVENTPRICEID | uniqueidentifier | INOUT | Registration option |
@QUANTITY | int | INOUT | Quantity |
@AMOUNT | money | INOUT | Registration fee |
@RECEIPTAMOUNT | money | INOUT | Receipt amount |
@DATEPURCHASED | datetime | INOUT | Date |
@PRICES | xml | INOUT | |
@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. |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_REGISTRANTREGISTRATION
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@EVENTID uniqueidentifier = null output,
@EVENTPRICEID uniqueidentifier = null output,
@QUANTITY int = null output,
@AMOUNT money = null output,
@RECEIPTAMOUNT money = null output,
@DATEPURCHASED datetime = null output,
@PRICES xml = null output,
@TSLONG bigint = 0 output
)
as
begin
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
declare @REGISTRANTID uniqueidentifier
select
@DATALOADED = 1,
@TSLONG = TSLONG,
@EVENTPRICEID = EVENTPRICEID,
@QUANTITY = QUANTITY,
@DATEPURCHASED = DATEPURCHASED,
@AMOUNT = AMOUNT,
@RECEIPTAMOUNT = RECEIPTAMOUNT,
@REGISTRANTID = REGISTRANTID
from
dbo.REGISTRANTREGISTRATION
where
ID = @ID;
IF @DATALOADED = 1 begin
select
@EVENTID = REGISTRANT.EVENTID
from
dbo.REGISTRANT
where
REGISTRANT.ID = @REGISTRANTID;
set @PRICES = dbo.UFN_EVENTPRICE_GETPRICES_TOITEMLISTXML(@EVENTID);
end
return 0;
end