USP_DATAFORMTEMPLATE_EDITLOAD_MARKSTEPCOMPLETE
The load procedure used by the edit dataform template "Mark Step Complete 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. |
@OBJECTIVE | nvarchar(100) | INOUT | Objective |
@ACTUALDATE | datetime | INOUT | Actual date |
@STATUSCODE | tinyint | INOUT | Status |
@ISINTERACTION | bit | INOUT | Is interaction |
@ACTUALSTARTTIME | UDT_HOURMINUTE | INOUT | Actual start time |
@ACTUALENDTIME | UDT_HOURMINUTE | INOUT | Actual end time |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_MARKSTEPCOMPLETE (
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@OBJECTIVE nvarchar(100) = null output,
@ACTUALDATE datetime = null output,
@STATUSCODE tinyint = null output,
@ISINTERACTION bit = null output,
@ACTUALSTARTTIME dbo.UDT_HOURMINUTE = null output,
@ACTUALENDTIME dbo.UDT_HOURMINUTE = null output
) as begin
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@TSLONG = TSLONG,
@OBJECTIVE = OBJECTIVE,
@ACTUALDATE = dbo.UFN_DATE_GETEARLIESTTIME(getdate()),
@STATUSCODE = STATUSCODE,
@ISINTERACTION = ISINTERACTION,
@ACTUALSTARTTIME = ACTUALSTARTTIME,
@ACTUALENDTIME = ACTUALENDTIME
from
dbo.INTERACTION
where
ID = @ID
return 0;
end