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

Updates all the information related to a particular 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 UpdateTimesheet(
	TimesheetInfo ti,
	WorkflowAction wa,
	int routeToUserId,
	int stageId,
	bool isDCAA,
	ConfigureInfo session
)
Visual Basic (Declaration)
Public Function UpdateTimesheet ( _
	ti As TimesheetInfo, _
	wa As WorkflowAction, _
	routeToUserId As Integer, _
	stageId As Integer, _
	isDCAA As Boolean, _
	session As ConfigureInfo _
) As Integer
Visual C++
public:
int UpdateTimesheet(
	TimesheetInfo^ ti, 
	WorkflowAction wa, 
	int routeToUserId, 
	int stageId, 
	bool isDCAA, 
	ConfigureInfo^ session
)

Parameters

ti
Type: OfficeClip.BusinessLayer.TE..::.TimesheetInfo
Instance of the TimesheetInfo object containing all the information related to a particular timesheet.
wa
Type: OfficeClip.Utils..::.WorkflowAction
Workflow action to be applied after inserting the new expense.
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 expense.
isDCAA
Type: System..::.Boolean
Is the DCAA logging is activated
session
Type: OfficeClip.Utils..::.ConfigureInfo
The session settings for the user

Return Value

Id of the timesheet being updated when successful, -1 in case of an error.

See Also