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


EntityType: TimesheetClass (ProjectData service)

In this article
Definition
Parent element
Child elements

Contains the properties that define the reporting data for a timesheet class in the ProjectData service.

Example

The following REST query uses the TimesheetLineClasses entity set and the TimesheetClassType property to get the specified timesheet class properties. The query is all on one line.

https://<pwa_url>/_api/ProjectData/TimesheetClasses
    ?$filter=TimesheetClassType eq 1
    &$select=TimesheetClassName,TimesheetClassId

Definition

<EntityType Name="TimesheetClass">
  <Key>
    <PropertyRef Name="TimesheetClassId" />
    <PropertyRef Name="DepartmentId" />
  </Key>
  <Property Name="TimesheetClassId" Type="Edm.Guid" Nullable="false" />
  . . .
</EntityType>

Parent element

Element

Description

ReportingData

The schema for the reporting data in the ProjectData service.

Child elements

Child elements are properties of a timesheet class. Attributes of the Property elements specify the property name and type, and whether the property can be a null value. Unlike most entity types, there are no NavigationProperty child elements for the TimesheetClass entity type.

The Key elements specify the properties that are the primary keys for a timesheet class query. TimesheetClassId is the timesheet class GUID and DepartmentId is the department GUID.

Property elements

The following table lists the Property elements for the TimesheetClass entity. The Name, Type, and Nullable columns contain attribute values for each property.

Attribute values for the Property elements

Name

Type

Nullable

Description

DepartmentId

Edm.Guid

false

Key
The GUID of the timesheet department.

DepartmentName

Edm.String

true

The name of the timesheet class department.

Description

Edm.String

true

The description of the timesheet class. (For example, a description that states that the timesheet class records vacation time.)

LCID

Edm.Int32

true

The locale identifier.

TimesheetClassId

Edm.Guid

false

Key
The GUID of the timesheet class.

TimesheetClassName

Edm.String

true

The name of the timesheet class.

TimesheetClassType

Edm.Byte

false

A numerical value that represents the type of the timesheet class (for example, sick time).

There are no NavigationProperty child elements associated with a timesheet class.

See also

Reference

TimesheetLineClasses

ReportingData

Concepts

Querying OData feeds for Project 2013 reporting data