USP_DATAFORMTEMPLATE_EDITLOAD_CURRENCYEXCHANGERATE
The load procedure used by the edit dataform template "Currency Exchange Rate 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. |
@FROMCURRENCYID | uniqueidentifier | INOUT | From currency |
@TOCURRENCYID | uniqueidentifier | INOUT | To currency |
@RATE | decimal(20, 8) | INOUT | Rate |
@ASOFDATETIME | datetime | INOUT | As of date/time |
@TYPECODE | tinyint | INOUT | Type |
@SOURCECODEID | uniqueidentifier | INOUT | Source |
@TYPE | nvarchar(9) | INOUT | Type |
@TIMEZONEENTRYID | uniqueidentifier | INOUT | Time zone |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_CURRENCYEXCHANGERATE (
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@FROMCURRENCYID uniqueidentifier = null output,
@TOCURRENCYID uniqueidentifier = null output,
@RATE decimal(20,8) = null output,
@ASOFDATETIME datetime = null output,
@TYPECODE tinyint = null output,
@SOURCECODEID uniqueidentifier = null output,
@TYPE nvarchar(9) = null output,
@TIMEZONEENTRYID uniqueidentifier = null output
) as
set nocount on;
select
@DATALOADED = 1,
@TSLONG = TSLONG,
@FROMCURRENCYID = FROMCURRENCYID,
@TOCURRENCYID = TOCURRENCYID,
@RATE = RATE,
@ASOFDATETIME = ASOFDATE,
@TYPECODE = TYPECODE,
@SOURCECODEID = SOURCECODEID,
@TYPE = TYPE,
@TIMEZONEENTRYID = TIMEZONEENTRYID
from dbo.CURRENCYEXCHANGERATE
where ID = @ID;
return 0;