USP_DATAFORMTEMPLATE_PRELOAD_ADD_JOBOCCURRENCE_1_1
The load procedure used by the edit dataform template "Job Occurrence Add Form 1.1"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@JOBID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
@SITEREQUIRED | bit | INOUT | Site required |
@SITEID | uniqueidentifier | INOUT | Site |
@ESTIMATEDVALUE | money | INOUT | Estimated value |
@BASECURRENCYID | uniqueidentifier | INOUT | Base currency |
Definition
Copy
CREATE procedure dbo.[USP_DATAFORMTEMPLATE_PRELOAD_ADD_JOBOCCURRENCE_1_1]
(
@CURRENTAPPUSERID uniqueidentifier,
@JOBID uniqueidentifier,
@SITEREQUIRED bit = null output,
@SITEID uniqueidentifier = null output,
@ESTIMATEDVALUE money = null output,
@BASECURRENCYID uniqueidentifier = null output
)
as
begin
set nocount on;
select
@SITEID = [SITEID],
@SITEREQUIRED = dbo.[UFN_SITEREQUIREDFORUSER](@CURRENTAPPUSERID),
@BASECURRENCYID = [BASECURRENCYID],
@ESTIMATEDVALUE = [ESTIMATEDVALUE]
from dbo.[JOB]
where [ID] = @JOBID;
return 0;
end