USP_DATAFORMTEMPLATE_VIEW_APPEALBASECURRENCY
The load procedure used by the view dataform template "Appeal Base Currency 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. |
@CURRENCYID | uniqueidentifier | INOUT | Currency ID |
@CURRENCYNAME | nvarchar(110) | INOUT | Currency |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_APPEALBASECURRENCY
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@CURRENCYID uniqueidentifier = null output,
@CURRENCYNAME nvarchar(110) = null output
) as begin
set nocount on;
set @DATALOADED = 0;
select
@DATALOADED = 1,
@CURRENCYID = APPEAL.BASECURRENCYID,
@CURRENCYNAME = dbo.UFN_CURRENCY_GETDESCRIPTION(APPEAL.BASECURRENCYID)
from
dbo.APPEAL
where
APPEAL.ID = @ID;
return 0;
end