getEmployeeRateHistoryByIDNum() Method

Table of Contents

  1. Function
  2. Syntax
  3. Parameters
  4. Return Value
  5. Sample Code
  6. Remarks
  7. Possible Errors
  8. Alternate Method
  9. Related Methods

Function

  • Returns the employee’s rate history for the specified time period

Syntax

  • AeRateAssignmentAry = AeXMLBridge.getEmployeeRateHistoryByIDNum(IDNum, MinDate, MaxDate);

Parameters

  • String - employee ID
  • String - begin date (yyyy-mm-dd format)
  • String - end date (yyyy-mm-dd format)

Return Value

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
string empID = "1234";                                                    
// using employee with ID "1234"

string beginDate = DateTime.Now.AddDays(-365).ToString("yyyy-MM-dd");
string endDate = DateTime.Now.ToString("yyyy-MM-dd");
// set date range

try
{
TAeRateAssignment[] rates = ws.getEmployeeRateHistoryByIDNum(empID, beginDate, endDate);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
12
Dim empID As String = "1234"
' using employee with ID "1234"

Dim beginDate As String = DateTime.Now.AddDays(-365).ToString("yyyy-MM-dd")
' set date range
Dim endDate As String = DateTime.Now.ToString("yyyy-MM-dd")

Try
Dim rates As TAeRateAssignment() = ws.getEmployeeRateHistoryByIDNum(empID, beginDate, endDate)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • Set both dates to an empty string value to view the complete rate assignment history
  • If setting dates, they must be in the yyyy-mm-dd format

Possible Errors

  • Unable to locate employee with identifier
  • yyyy-mm-dd is required (Date supplied in invalid format)

Alternate Method

getEmployeeRateHistoryByFilekey

addEmployeeTransferRate
extractEmployeeRatePayTypeAssignmentByIDNum
getEmployeeTransferRate
getEmptyRatePayTypeAssignment
reassignEmployeeRatePayType
removeEmployeeRateHistoryByIDNum
removeEmployeeRateHistoryEntry
removeEmployeeTransferRate
updateEmployeeTransferRate

Back to Top