extractEmployeeSummsByIDNum() 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 a day by day list of employee summary calculations for an employee and a specified date range

Syntax

  • AePayLineAry: = AeXMLBridge.extractEmployeeSummsByIDNum(IDNum, DateRangeEnum, MinDate, MaxDate);

Parameters

  • String - employee ID
  • Enumeration - TDateRangeEnum
  • 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
16
string empID = "1234";                                                     
// using employee 1234

TDateRangeEnum dateRange = TDateRangeEnum.drPrevWeek;
// when not using drCustom value, we the begin and end date parameters to nothing
string beginDate = string.Empty;
string endDate = string.Empty;

try
{
TAePayLine[] paylines = ws.extractEmployeeSummsByIDNum(empID, dateRange, beginDate, endDate);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

Sample Code

VB.Net

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

Dim dateRange As TDateRangeEnum = TDateRangeEnum.drPrevWeek
' when not using drCustom value, we the begin and end date parameters to nothing
Dim beginDate As String = String.Empty
Dim endDate As String = String.Empty

Try
Dim paylines As TAePayLine() = ws.extractEmployeeSummsByIDNum(empID, dateRange, beginDate, endDate)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • When using drCustom as the enum value for TDateRangeEnum, you must set the begin and end date parameters. Otherwise set the dates to nothing

Possible Errors

  • Unable to locate employee with identifier
  • yyyy-mm-dd required [Date supplied in invalid format]

Alternate Method

extractEmployeeSummsByFilekey

extractAttendanceMultiFormActivityUsingHyperQuery
extractEmployeeDailySummsByIDNum
extractEmployeeDailySummsInPeriodByIDNum
extractEmployeeDurationTotalsByIDNum
extractEmployeeEditsByIDNum
extractEmployeePeriodFrameByIDNum
extractEmployeePeriodShiftDetailsByIDNum
extractEmployeePeriodShiftsByIDNum
extractEmployeePeriodShiftTransactionsByIDNum
extractEmployeePeriodSummsByIDNum
extractEmployeeTransactionsByIDNum
extractPayPeriodSummaries
extractRangedTransactionsUsingHyperQuery
getManuallySelectedCalculatedData

Back to Top