[This is preliminary documentation and is subject to change.]

Inserts a new timesheet into the database and routes it to a particular user as defined in the workflow.

Namespace:  OfficeClip.DBLayer.TE
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public int InsertTimesheet(
	TimesheetInfo ti,
	WorkflowAction wa,
	int routeToUserId,
	int stageId,
	ConfigureInfo session
)
Visual Basic (Declaration)
Public Function InsertTimesheet ( _
	ti As TimesheetInfo, _
	wa As WorkflowAction, _
	routeToUserId As Integer, _
	stageId As Integer, _
	session As ConfigureInfo _
) As Integer
Visual C++
public:
int InsertTimesheet(
	TimesheetInfo^ ti, 
	WorkflowAction wa, 
	int routeToUserId, 
	int stageId, 
	ConfigureInfo^ session
)

Parameters

ti
Type: OfficeClip.BusinessLayer.TE..::.TimesheetInfo
Instance of the TimesheetInfo object containing all the information related to the timesheet. TimesheetInfo
wa
Type: OfficeClip.Utils..::.WorkflowAction
Workflow action to be applied after inserting the new timesheet.
routeToUserId
Type: System..::.Int32
Id of the user to whom the timesheet should be routed.
stageId
Type: System..::.Int32
Stage Id of the user as defined in the workflow who is creating the new timesheet.
session
Type: OfficeClip.Utils..::.ConfigureInfo
The session settings for the user

Return Value

Id of the newly created timesheet if successful, -1 in case of an error.

See Also