Поделиться через


TimeSheet Class

Includes methods for managing timesheets in Microsoft Office Project Server 2007.

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:  ProjectServerWebServices (in ProjectServerWebServices.dll)

Syntax

'Declaration
<WebServiceBindingAttribute(Name := "TimeSheetSoap", Namespace := "http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/")> _
Public Class TimeSheet _
    Inherits SoapHttpClientProtocol
'Usage
Dim instance As TimeSheet
[WebServiceBindingAttribute(Name = "TimeSheetSoap", Namespace = "http://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 Access Administration section (as 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 ID of the user who reviews timesheets submitted by that user. If the timesheet manager has the ApproveTimesheets permission, he or she can accept or reject timesheets 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 considered 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 a null reference (Nothing in Visual Basic), the resource is considered an optional timesheet user. Timesheets are not required for optional timesheet users. They 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 no longer 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