TimePunch TimeEntry Service
TimeEntryDto : TimeEntrySaveDto
This class contains all data of a time-entry.
Datatype | Name | Description |
---|---|---|
String | ProjectName | Name of the project that is used by the time entry |
String | TaskName | Name of the task that is used by the time entry. |
Double | WorkTime | Amount of work time in hours |
Double | Duration | Complete duration of the time entry |
Double | Leave | Amount of leave in hours |
Double | Sick | Amount of sick time in hours |
Double | DrivingTime | Amount of driving time in hours |
Double | TakenOvertime | Amount of taken overtime in hours |
Long | BackgroundColor | Background colour of the project that gets tracked. |
Long | TextColor | Text colour of the project that gets tracked. |
Guid | UserId | Id of the user dependent TimePunch Profile |
String | CustomerName | Name of the customer that has been set for the time entry. |
String | CustomerRefNr | Ref.Nr. of the customer that has been set for the time entry |
Guid | CustomerId | Unique customer Id |
Bool | IsVirtual | True, if the time entry is only a virtual entry, like weekend, missing workday etc. |
Double | DurationAsDay | Duration of the time entry in relation to the workday |
String | ProjectDescription | Description of the project referenced by the time entry |
String | TaskNameId | Business driven task id |
String | TaskDescription | Description of the task referenced by the time entry |
UserProfileDto | CreatedBy | Information about the user who created the time entry. |
UserProfileDto | LastUpdatedBy | Information about the user who last updated the time entry. |
TimeEntryFilterSearchDto
This class is used to search for time entry filters.
Datatype | Name | Description |
---|---|---|
Confidentiality | Confidentiality | Searches for time entry filters with the following confidentiality. Undefined = 0 (search private and public) Private = 1 Public = 2 |
Bool | DeepLoad | True, if the filter shall be returned with all dependencies (projects/tasks/customers) |
TimeEntryRestrictedSaveDto
This class contains the relevant data in order to execute a restricted time entry modification. That means the user does not need elevated permissions.
Datatype | Name | Description |
---|---|---|
Guid | Id | Unique ID of the active time entry |
DateTime | LastUpdate | Time stamp of the last update |
Guid | ProjectId | Unique project Id of the time entry |
Guid | TaskId | Unique Task Id of the time entry |
String | Description | The description of the time entry |
Guid | CustomerId | Unique customer Id |
Bool | IsImportant | True, if the time entry has been marked as important. This will force the project report to show the description. |
Bool | IsOnSite | True, if the time entry has been marked as onsite. |
Bool | IsNotInvoiced | True, if the current entry gets not invoiced at all. |
TimeEntryResultDto
This class is returned by save operations. It contains the result of the operation, as well as the data itself.
Datatype | Name | Description |
---|---|---|
TimeEntrySaveResult | Result | The result of the save operation. NotSaved = -1, Ok = 0, BreakEnforced = 1, EmptyBreakEntry = 2 |
List\<TimeEntryDto> | TimeEntries | List that contains the stored time entries. |
TimeEntrySaveDto
This class contains all base data in order to save a time-entry.
Datatype | Name | Description |
---|---|---|
Guid | ProjectId | Unique project Id of the time entry |
Guid | TaskId | Unique Task Id of the time entry |
String | LogonName | Dependent TimePunch Profile |
DateTime | LogonTime | Logon time stamp of the time entry |
DateTime | LogoffTime | Logoff time stamp of the time entry |
Double | Duration | Complete duration of the time entry |
String | Description | The description of the time entry |
Bool | HasBeenPaid | Flag that defines if the time entry has been marked as paid. |
TimeEntryType | Usage | Define the type of the time entry (WorkTime, DrivingTime, Leave, Sickness, TakeOvertime, BankHoliday, OfficialBankHoliday, Weekend) |
Double | BreakTime | Amount of break time in hours |
Guid | CustomerId | Unique customer Id |
Bool | IsImportant | True, if the time entry has been marked as important. This will force the project report to show the description. |
Bool | IsOnSite | True, if the time entry has been marked as onsite. |
Bool | IsNotInvoiced | True, if the time entry gets not invoiced at all. |
String | LogonOrigin | Defines the system with that the user logged in to TimePunch |
String | LogoffOrigin | Defines the system with that the user logged of from TimePunch |
Double? | LogonLatitude | GPS Latitude of the Logon |
Double? | LogonLongitude | GPS Longitude of the Logon |
Double? | LogonGeoAccuracy | GPS Accuracy in meters |
String | LogonGeoAddress | GPS Logon Address |
Double? | LogoffLatitude | GPS Latitude of the Logoff |
Double? | LogoffLongitude | GPS Longitude of the Logoff |
Double? | LogoffGeoAccuracy | GPS Accuracy in meters |
String | LogoffGeoAddress | GPS Logoff Address |
Double | CutTime | The cutted time of the time entry |
Guid | SiblingId | The id of a sibling entry used for merging time entries |
String | TechnicalTags | This field can be used by modules to mark a time entry or add additional info to the entry. |
TimeEntrySearchDto : PagingContextDto
With this class a filter can be defined in order to search time entries. This class is derived from the PagingContextDto
Datatype | Name | Description |
---|---|---|
String | ReportTitle | Title of the time entry search filter |
Confidentiality | Confidentiality | Defines if the time entry search filter is private or public – means only accessible by the person who created it, or accessible for all users. |
DateTime | LogonTime | Search time entries starting with the given logon time |
DateTime | LogoffTime | Search time entries through the given logoff time |
TimeEntry-SearchPayment | Payment | Defines the type of the entries to search (SearchAllEntries, PaidEntries, NonPaidEntries) |
List\<Guid> | FilteredProjects | If null, all projects will be returned. If the collection is empty, nothing will be returned. If the collection is filled with project ids, only entries with the given project ids will be returned. |
List\<Guid> | FilteredTasks | If null, all tasks will be returned. If the collection is empty, nothing will be returned. If the collection is filled with task ids, only entries with the given task ids will be returned. |
List\<Guid> | FilteredUsers | If null or empty, the data of the current user will be returned. If the collection is filled, only entries with the given user ids will be returned. |
Bool | ShowPublicHolidays | True, if public holidays shall be returned for the given time frame. |
Bool | ShowWeekends | True, if the weekends shall be returned for the given time frame. |
Bool | ShowBreaks | True, if the break times shall be shown. |
Bool | ShowWorkingTime | True, if the working times shall be shown. |
List\<Guid> | FilteredCustomers | If null or empty, the data of the all customers will be returned. If the collection is filled, only entries with the given customer ids will be returned. |
Bool | ShowWeekdays | True, if also weekdays shall be returned. |
Bool | ShowMissingdays | True, if also missing workdays shall be returned. Missing workdays are weekdays that are marked as working days. But for that working days are no time entry bookings available in the database. |
DateTime? | FirstModificationTime | It defines the first modification date to search for time entries. Means all time entries that are amended after the given date. |
DateTime? | LastModificationTime | It defines the latest modification date to search for time entries. Means all time entries that are amended before the given date. |
Bool? | IsImportant | NULL to search both important and unimportant time entries. True to search for important and False to search for unimportant time entries |
Bool? | IsOnSite | NULL to search both on site and offsite entries. True to search for onsite entries and false to search for offsite entries |
Bool? | IsNotInvoiced | NULL to search both invoiced and not invoiced entries. True to search only not invoiced entries. |
Bool | EnhanceWithAuditTrail | True, if the result shall be enhanced with information about who changed or who created the time entries. |
TimeEntrySearch TimeFrame | TimeFrame | Used to set the logon/logoff time automatically with a constant value AllEntries = 0 UserDefined = 1 CurrentWeek = 2 CurrentMonth = 3 CurrentYear = 4 PreviousWeek = 5 PreviousMonth = 6 PreviousYear = 7 Last30Days = 8 Last3Month = 9 Last6Month = 10 Today = 11 |
TimeEntrySeriesDto
Time entry series can be created using this class. Time entry series start with a specific time, but with time of day. The concrete time is taken from the work time model by TimePunch for the given user.
Datatype | Name | Description |
---|---|---|
Guid | ProjectId | Unique project Id of the time entry |
Guid | TaskId | Unique Task Id of the time entry |
String | LogonName | Dependent TimePunch Profile |
DateTime | LogonDate | Logon date of the time entry |
DateTime | LogoffDate | Logoff date of the time entry |
TimeOfDay | LogonTimeOfDay | Time of day to start the time entry Morning = 0, Midday = 1, Evening = 2 |
TimeOfDay | LogoffTimeOfDay | Time of day to end the time entry Morning = 0, Midday = 1, Evening = 2 |
String | Description | The description of the time entry |
TimeEntryType | Usage | Define the type of the time entry (WorkTime, DrivingTime, Leave, Sickness, TakeOvertime, BankHoliday, OfficialBankHoliday, Weekend) |
Double | BreakTime | Amount of break time in hours |
Guid | CustomerId | Unique customer Id |