EntryTimesheetTimeEntry Examples

Add Time Entry with Cell UDF Values

Set Cell UDFs on a time entry.

[
  {
    "Action": "Edit",
    "Type": "Replicon.Suite.Domain.EntryTimesheet",
    "Identity": "1",
    "Operations": [
      {
        "__operation": "CollectionAdd",
        "Collection": "TimeEntries",
        "Operations": [
          {
            "__operation": "SetCellUdfValues",
            "CellLevelUDF1": "10"
          },
          {
            "__operation": "SetProperties",
            "CalculationModeObject": {
              "__type": "Replicon.TimeSheet.Domain.CalculationModeObject",
              "Identity": "CalculateDuration"
            },
            "EntryDate": {
              "__type": "Date",
              "Year": 2011,
              "Month": 5,
              "Day": 12
            },
            "TimeIn": {
              "__type": "Time",
              "Hour": 8,
              "Minute": 0
            },
            "TimeOut": {
              "__type": "Time",
              "Hour": 11,
              "Minute": 0
            },
            "Comments": "hello 123",
            "Task": {
              "Identity": "1"
            },
            "Activity": {
              "Identity": "1"
            }
          },
          {
            "__operation": "SetTimeEntryBilling",
            "BillingType": {
              "__type": "Replicon.Project.Domain.Timesheets.TimesheetBillingType",
              "Identity": "ProjectRate"
            },
            "Project": {
              "__type": "Replicon.Project.Domain.Project",
              "Identity": "1"
            }
          }
        ]
      }
    ]
  }
]

Add Time Entry with Row UDF Values

Set Row UDFs on a time entry.

[
  {
    "Action": "Edit",
    "Type": "Replicon.Suite.Domain.EntryTimesheet",
    "Identity": "1",
    "Operations": [
      {
        "__operation": "CollectionAdd",
        "Collection": "TimeEntries",
        "Operations": [
          {
            "__operation": "SetRowUdfValues",
            "RowLevelUDF1": "10"
          },
          {
            "__operation": "SetProperties",
            "CalculationModeObject": {
              "__type": "Replicon.TimeSheet.Domain.CalculationModeObject",
              "Identity": "CalculateDuration"
            },
            "EntryDate": {
              "__type": "Date",
              "Year": 2011,
              "Month": 5,
              "Day": 3
            },
            "TimeIn": {
              "__type": "Time",
              "Hour": 8,
              "Minute": 0
            },
            "TimeOut": {
              "__type": "Time",
              "Hour": 11,
              "Minute": 0
            },
            "Comments": "hello 123",
            "Task": {
              "Identity": "1"
            },
            "Activity": {
              "Identity": "1"
            }
          },
          {
            "__operation": "SetTimeEntryBilling",
            "BillingType": {
              "__type": "Replicon.Project.Domain.Timesheets.TimesheetBillingType",
              "Identity": "ProjectRate"
            },
            "Project": {
              "__type": "Replicon.Project.Domain.Project",
              "Identity": "1"
            }
          }
        ]
      }
    ]
  }
]

Add Time Entry with Project Rate Billing

Set the Project Rate Billing on a Time Entry.

[
  {
    "Action": "Edit",
    "Type": "Replicon.Suite.Domain.EntryTimesheet",
    "Identity": "1",
    "Operations": [
      {
        "__operation": "CollectionAdd",
        "Collection": "TimeEntries",
        "Operations": [
          {
            "__operation": "SetProperties",
            "CalculationModeObject": {
              "__type": "Replicon.TimeSheet.Domain.CalculationModeObject",
              "Identity": "CalculateDuration"
            },
            "EntryDate": {
              "__type": "Date",
              "Year": 2011,
              "Month": 5,
              "Day": 12
            },
            "TimeIn": {
              "__type": "Time",
              "Hour": 8,
              "Minute": 0
            },
            "TimeOut": {
              "__type": "Time",
              "Hour": 11,
              "Minute": 0
            },
            "Comments": "hello 123",
            "Task": {
              "Identity": "1"
            },
            "Activity": {
              "Identity": "1"
            }
          },
          {
            "__operation": "SetTimeEntryBilling",
            "BillingType": {
              "__type": "Replicon.Project.Domain.Timesheets.TimesheetBillingType",
              "Identity": "ProjectRate"
            },
            "Project": {
              "__type": "Replicon.Project.Domain.Project",
              "Identity": "1"
            }
          }
        ]
      }
    ]
  }
]

Add Time Entry with User Rate Billing

Set the User Rate Billing on a Time Entry.

[
  {
    "Action": "Edit",
    "Type": "Replicon.Suite.Domain.EntryTimesheet",
    "Identity": "1",
    "Operations": [
      {
        "__operation": "CollectionAdd",
        "Collection": "TimeEntries",
        "Operations": [
          {
            "__operation": "SetProperties",
            "CalculationModeObject": {
              "__type": "Replicon.TimeSheet.Domain.CalculationModeObject",
              "Identity": "CalculateDuration"
            },
            "EntryDate": {
              "__type": "Date",
              "Year": 2011,
              "Month": 5,
              "Day": 12
            },
            "TimeIn": {
              "__type": "Time",
              "Hour": 8,
              "Minute": 0
            },
            "TimeOut": {
              "__type": "Time",
              "Hour": 11,
              "Minute": 0
            },
            "Comments": "hello 123",
            "Task": {
              "Identity": "1"
            },
            "Activity": {
              "Identity": "1"
            }
          },
          {
            "__operation": "SetTimeEntryBilling",
            "BillingType": {
              "__type": "Replicon.Project.Domain.Timesheets.TimesheetBillingType",
              "Identity": "UserOverrideRate"
            },
            "Project": {
              "__type": "Replicon.Project.Domain.Project",
              "Identity": "1"
            }
          }
        ]
      }
    ]
  }
]

Add Time Entry with Project Role Rate Billing

Set the Project Role Rate Billing on a Time Entry.

[
  {
    "Action": "Edit",
    "Type": "Replicon.Suite.Domain.EntryTimesheet",
    "Identity": "1",
    "Operations": [
      {
        "__operation": "CollectionAdd",
        "Collection": "TimeEntries",
        "Operations": [
          {
            "__operation": "SetProperties",
            "CalculationModeObject": {
              "__type": "Replicon.TimeSheet.Domain.CalculationModeObject",
              "Identity": "CalculateDuration"
            },
            "EntryDate": {
              "__type": "Date",
              "Year": 2011,
              "Month": 5,
              "Day": 12
            },
            "TimeIn": {
              "__type": "Time",
              "Hour": 8,
              "Minute": 0
            },
            "TimeOut": {
              "__type": "Time",
              "Hour": 11,
              "Minute": 0
            },
            "Comments": "hello 123",
            "Task": {
              "Identity": "1"
            },
            "Activity": {
              "Identity": "1"
            }
          },
          {
            "__operation": "SetTimeEntryBilling",
            "BillingType": {
              "__type": "Replicon.Project.Domain.Timesheets.TimesheetBillingType",
              "Identity": "RoleRate"
            },
            "Project": {
              "__type": "Replicon.Project.Domain.Project",
              "Identity": "1"
            },
            "ProjectRole": {
              "Identity": "1"
            }
          }
        ]
      }
    ]
  }
]

Add Time Entry with Department Rate Billing

Set the Department Rate Billing on a Time Entry.

[
  {
    "Action": "Edit",
    "Type": "Replicon.Suite.Domain.EntryTimesheet",
    "Identity": "1",
    "Operations": [
      {
        "__operation": "CollectionAdd",
        "Collection": "TimeEntries",
        "Operations": [
          {
            "__operation": "SetProperties",
            "CalculationModeObject": {
              "__type": "Replicon.TimeSheet.Domain.CalculationModeObject",
              "Identity": "CalculateDuration"
            },
            "EntryDate": {
              "__type": "Date",
              "Year": 2011,
              "Month": 5,
              "Day": 12
            },
            "TimeIn": {
              "__type": "Time",
              "Hour": 8,
              "Minute": 0
            },
            "TimeOut": {
              "__type": "Time",
              "Hour": 11,
              "Minute": 0
            },
            "Comments": "hello 123",
            "Task": {
              "Identity": "1"
            },
            "Activity": {
              "Identity": "1"
            }
          },
          {
            "__operation": "SetTimeEntryBilling",
            "BillingType": {
              "__type": "Replicon.Project.Domain.Timesheets.TimesheetBillingType",
              "Identity": "DepartmentOverrideRate"
            },
            "Project": {
              "__type": "Replicon.Project.Domain.Project",
              "Identity": "1"
            },
            "BillingDepartment": {
              "Identity": "1"
            }
          }
        ]
      }
    ]
  }
]