다음을 통해 공유


TimeSheet class

Includes methods for managing timesheets in Project Web App.

Inheritance hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      System.Web.Services.Protocols.WebClientProtocol
        System.Web.Services.Protocols.HttpWebClientProtocol
          System.Web.Services.Protocols.SoapHttpClientProtocol
            WebSvcTimeSheet.TimeSheet

Namespace:  WebSvcTimeSheet
Assembly:  ProjectServerServices (in ProjectServerServices.dll)

Syntax

'Declaration
<WebServiceBindingAttribute(Name := "TimeSheetSoap", Namespace := "https://schemas.microsoft.com/office/project/server/webservices/TimeSheet/")> _
Public Class TimeSheet _
    Inherits SoapHttpClientProtocol
'Usage
Dim instance As TimeSheet
[WebServiceBindingAttribute(Name = "TimeSheetSoap", Namespace = "https://schemas.microsoft.com/office/project/server/webservices/TimeSheet/")]
public class TimeSheet : SoapHttpClientProtocol

Remarks

The timesheet service can import information from projects and server settings, and can optionally provide updates to the Statusing subsystem.

Before you can use the timesheet subsystem, you must create time periods. You can use the Project Web App Administration section (documented in Maintain Projects) or the UpdateReportingPeriods method. You can also define financial periods, but these are not required.

After the time periods are created, you can create timesheets. Timesheet behavior is affected by server settings and user configuration. The RES_TIMESHEET_MGR_UID property contains the unique identifier of the user who reviews timesheets that are submitted by that user. If the timesheet manager has the ApproveTimesheets permission, he or she can accept or reject timesheets that are submitted by that user. If the timesheet manager does not have the ApproveTimesheets category permission for that user, he or she is a timesheet reviewer.

When a timesheet manager accepts a timesheet, it is routed to the next timesheet manager for acceptance. If the value of the RES_TIMESHEET_MGR_UID property is the same as RES_UID, the user is an auto-approve timesheet user. When the user submits a timesheet, it is approved automatically.

If an enterprise resource has the RES_TIMESHEET_MGR_UID property set to nulla null value, the resource is an optional timesheet user. Timesheets are not required for optional timesheet users. Timesheets for optional timesheet users do not appear on late timesheet reports, and other related automatic features are not enabled.

When a timesheet is finalized and should not be changed, the TS_IS_PROCESSED property should be set to true. When TS_IS_PROCESSED is true, the timesheet can not be recalled or deleted.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

TimeSheet members

WebSvcTimeSheet namespace

Statusing

Admin

Other resources

Maintain Projects