USP_DATAFORMTEMPLATE_EDITLOAD_BATCHMEMBERSHIPBATCHROW
The load procedure used by the edit dataform template "Membership Batch Row 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. |
@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. |
@SEQUENCE | int | INOUT | Sequence |
@MEMBERSHIPPROGRAMID | uniqueidentifier | INOUT | Program |
@COMMENTS | nvarchar(1000) | INOUT | Comments |
@TRANSACTIONS | xml | INOUT | Transactions |
@MEMBERS | xml | INOUT | Members |
@STATUSCODE | int | INOUT | Status |
@SENDRENEWALCODE | int | INOUT | Send renewal notice to |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_BATCHMEMBERSHIPBATCHROW
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@SEQUENCE int = null output,
@MEMBERSHIPPROGRAMID uniqueidentifier = null output,
@COMMENTS nvarchar(1000) = null output,
@TRANSACTIONS xml = null output,
@MEMBERS xml = null output,
@STATUSCODE int = null output,
@SENDRENEWALCODE int = null output
)
as
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@TSLONG = [BATCHMEMBERSHIP].[TSLONG],
@SEQUENCE = [BATCHMEMBERSHIP].[SEQUENCE],
@MEMBERSHIPPROGRAMID = [BATCHMEMBERSHIP].[MEMBERSHIPPROGRAMID],
@COMMENTS = [BATCHMEMBERSHIP].[COMMENTS],
@TRANSACTIONS = dbo.[UFN_BATCHMEMBERSHIP_GETTRANSACTIONS_TOITEMLISTXML](ID),
@MEMBERS = dbo.[UFN_BATCHMEMBERSHIP_GETMEMBERS_TOITEMLISTXML](ID),
@STATUSCODE = [BATCHMEMBERSHIP].[STATUSCODE],
@SENDRENEWALCODE = [BATCHMEMBERSHIP].[SENDRENEWALCODE]
from
dbo.[BATCHMEMBERSHIP]
where
[BATCHMEMBERSHIP].[ID] = @ID;
return 0;