USP_DATAFORMTEMPLATE_EDITSAVE_TIMESHEETBATCHROW

The save procedure used by the edit dataform template "Timesheet Batch Row Edit Form".

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN The input ID parameter indicating the ID of the record being edited.
@CHANGEAGENTID uniqueidentifier IN Input parameter indicating the ID of the change agent invoking the procedure.
@VOLUNTEERID uniqueidentifier IN Volunteer
@JOBOCCURRENCEID uniqueidentifier IN Job occurrence
@HOURSWORKED decimal(20, 2) IN Hours worked
@STARTDATE datetime IN Start date
@ENDDATE datetime IN End date
@SEQUENCE int IN Sequence

Definition

Copy


CREATE procedure USP_DATAFORMTEMPLATE_EDITSAVE_TIMESHEETBATCHROW
(
    @ID uniqueidentifier,
    @CHANGEAGENTID uniqueidentifier,
    @VOLUNTEERID uniqueidentifier,
    @JOBOCCURRENCEID uniqueidentifier,
    @HOURSWORKED decimal(20, 2),
    @STARTDATE datetime,
    @ENDDATE datetime,
    @SEQUENCE int
)

as
  set nocount on;

    declare @VOLUNTEER_IMPORTLOOKUPID nvarchar(100);

  exec dbo.USP_DATAFORMTEMPLATE_EDITLOAD_TIMESHEETBATCHROW
        @ID = @ID,
        @VOLUNTEER_IMPORTLOOKUPID = @VOLUNTEER_IMPORTLOOKUPID output

  exec dbo.USP_DATAFORMTEMPLATE_EDITSAVE_TIMESHEETBATCHROW_2
        @ID,
        @CHANGEAGENTID,
        @VOLUNTEERID,
        @JOBOCCURRENCEID,
        @HOURSWORKED,
        @STARTDATE,
        @ENDDATE,
        @SEQUENCE,
        @VOLUNTEER_IMPORTLOOKUPID

  return 0;