USP_DATAFORMTEMPLATE_VIEW_SOLICITORS
The load procedure used by the view dataform template "Revenue Solicitors View 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. |
@TYPE | nvarchar(20) | INOUT | TYPE |
@AMOUNT | money | INOUT | AMOUNT |
@SOLICITORS | xml | INOUT | SOLICITORS |
@BASECURRENCYID | uniqueidentifier | INOUT | BASECURRENCYID |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_SOLICITORS
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TYPE nvarchar(20) = null output,
@AMOUNT money = null output,
@SOLICITORS XML= null output,
@BASECURRENCYID uniqueidentifier = null output
)
as
begin
set nocount on;
select @DATALOADED = 1,
@TYPE = TRANSACTIONTYPE,
@AMOUNT = REVENUESPLIT.AMOUNT,
@SOLICITORS = dbo.UFN_REVENUE_GETSOLICITORS_2_TOITEMLISTXML(@ID),
@BASECURRENCYID = REVENUESPLIT.BASECURRENCYID
from dbo.REVENUESPLIT
inner join dbo.REVENUE on REVENUESPLIT.REVENUEID = REVENUE.ID
where REVENUESPLIT.ID = @ID
return 0;
end