recomputeEmployeeIncidentsByIDNum() 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

  • Recomputes a selected employee’s incidents for a selected date range

Syntax

  • AeXMLBridge.recomputeEmployeeIncidentsByIDNum(IDNum, DateRangeEnum);

Parameters

Return Value

  • None

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

TDateRangeEnum dateRange = TDateRangeEnum.drCurrPeriod;
// using the current period

try
{
ws.recomputeEmployeeIncidentsByIDNum(empID, dateRange);
}
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 dateRange As TDateRangeEnum = TDateRangeEnum.drCurrPeriod
' using the current period

Try
ws.recomputeEmployeeIncidentsByIDNum(empID, dateRange)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • For this method, drCustom is not an acceptable value for the TDateRangeEnum parameter

Possible Errors

  • No Such Employee with identifier
  • If inadvertently using TDateRangeEnum.drCustom, method will throw an integer overflow error

Alternate Method

recomputeEmployeeIncidentsByFilekey

adjustEmployeeBenefitBalanceByIDNum
employeeBenefitBalanceAsOfByIDNum
extractEmployeeBenefitActivityByIDNum
extractEmployeeBenefitBalancesAsOfUsingHyperQuery
getCorrectiveActionsSimple
getEmployeeBenefitBalancesAsOfByIDNum
recomputeEmployeeAccrualsByIDNum
removeEmployeeBenefitAdjustmentsByIDNum

Back to Top