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

Inserts a new timesheet into the database.

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

Syntax

C#
public int InsertTimesheetInfo(
	TimesheetInfo ti,
	int currentGroupId,
	int currentUserId
)
Visual Basic (Declaration)
Public Function InsertTimesheetInfo ( _
	ti As TimesheetInfo, _
	currentGroupId As Integer, _
	currentUserId As Integer _
) As Integer
Visual C++
public:
int InsertTimesheetInfo(
	TimesheetInfo^ ti, 
	int currentGroupId, 
	int currentUserId
)

Parameters

ti
Type: OfficeClip.BusinessLayer.TE..::.TimesheetInfo
Instance of the TimesheetInfo object containing all the information related to a particular timesheet. TimesheetInfo
currentGroupId
Type: System..::.Int32
Unique id of the current group
currentUserId
Type: System..::.Int32
Unique id of the current user

Return Value

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

See Also