removeEmployeeTransferRate() Method

Table of Contents

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

Function

  • Removes an existing transfer rate for an employee

Syntax

  • AeXMLBridge.removeEmployeeTransferRate(UniqueID);

Parameters

Return Value

  • None

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
int filekey = 1234;                                                      
// using employee with filekey 1234

TAeEmpTranRate[] rates = ws.getEmployeeTransferRatesByFilekey(filekey);
// get a list of employee transfer rates

if (rates.Length > 0)
// make sure we have at least one records
{
try
{
ws.removeEmployeeTransferRate(rates[0].UniqueID);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Dim filekey As Integer = 1234
' using employee with filekey 1234

Dim rates As TAeEmpTranRate() = ws.getEmployeeTransferRatesByFilekey(filekey)
' get a list of employee transfer rates

If rates.Length > 0 Then
' make sure we have at least one records

Try
ws.removeEmployeeTransferRate(rates(0).UniqueID)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End If

Remarks

  • You cannot remove an employee’s rate if they only have one rate entry

Possible Errors

  • No such employee transfer rate ID

addEmployeeTransferRate
appendEmployeeTransferByIDNum
getEmployeeTransferRate
getEmployeeTransferRatesByIDNum
transferEmployeeNowBYIDNum
updateEmployeeTransferRate

Back to Top