USP_DATAFORMTEMPLATE_VIEW_BENEFITDETAILFULFILLMENT
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | |
@DATALOADED | bit | INOUT | |
@BENEFITVENDORNAME | nvarchar(255) | INOUT | |
@FULFILLMENTVENDORNAME | nvarchar(255) | INOUT | |
@BENEFITDESC | nvarchar(100) | INOUT | |
@COST | money | INOUT | |
@BASECURRENCYID | uniqueidentifier | INOUT |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_BENEFITDETAILFULFILLMENT
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@BENEFITVENDORNAME nvarchar(255) = null output,
@FULFILLMENTVENDORNAME nvarchar(255) = null output,
@BENEFITDESC nvarchar(100) = null output,
@COST money = null output,
@BASECURRENCYID uniqueidentifier = null output
)
as
set nocount on;
-- be sure to set this, in case the select returns no rows
set @DATALOADED = 0;
-- populate the output parameters, which correspond to fields on the form. Note that
-- we set @DATALOADED = 1 to indicate that the load was successful. Otherwise, the system
-- will display a "no data loaded" message.
select @DATALOADED = 1,
@BENEFITVENDORNAME = BV.NAME,
@FULFILLMENTVENDORNAME = FV.NAME,
@BENEFITDESC = BENEFITDESC,
@COST = COST,
@BASECURRENCYID = BASECURRENCYID
from dbo.BENEFIT
outer apply dbo.UFN_CONSTITUENT_DISPLAYNAME(BENEFITVENDORID) BV
outer apply dbo.UFN_CONSTITUENT_DISPLAYNAME(FULFILLMENTVENDORID) FV
where ID = @ID
return 0;