USP_DATAFORMTEMPLATE_ADD_EVENTPRICE_2
The save procedure used by the add dataform template "Registration Option Add Form 2".
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @ID | uniqueidentifier | INOUT | The output parameter indicating the ID of the record added. |
| @CHANGEAGENTID | uniqueidentifier | IN | Input parameter indicating the ID of the change agent invoking the procedure. |
| @EVENTID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
| @EVENTREGISTRATIONTYPEID | uniqueidentifier | IN | Registration type |
| @AMOUNT | money | IN | Registration fee |
| @RECEIPTAMOUNT | money | IN | Receipt amount |
| @BENEFIT | xml | IN | Benefits |
| @COST | money | IN | Cost |
| @NAME | nvarchar(100) | IN | Name |
| @REGISTRATIONCOUNT | int | IN | Registration count |
| @CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADD_EVENTPRICE_2
(
@ID uniqueidentifier = null output,
@CHANGEAGENTID uniqueidentifier = null,
@EVENTID uniqueidentifier,
@EVENTREGISTRATIONTYPEID uniqueidentifier = null,
@AMOUNT money = 0,
@RECEIPTAMOUNT money = 0,
@BENEFIT xml = null,
@COST money = 0,
@NAME nvarchar(100),
@REGISTRATIONCOUNT int = 1,
--@DESIGNATIONAMOUNT money = 0,
--@DESIGNATION xml = null
@CURRENTAPPUSERID uniqueidentifier = null
)
as
set nocount on;
begin try
exec dbo.USP_EVENTPRICE_ADD
@ID output,
@CHANGEAGENTID,
@EVENTID,
@EVENTREGISTRATIONTYPEID,
@AMOUNT,
@RECEIPTAMOUNT,
@BENEFIT,
@COST,
@NAME,
@REGISTRATIONCOUNT,
@CURRENTAPPUSERID
end try
begin catch
exec dbo.USP_RAISE_ERROR;
return 1;
end catch
return 0;