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

  • Used to add or update an employee’s payroll information

Syntax

  • String = AeXMLBridge.maintainPayrollEmployee(AePayrollEmployee);

Parameters

Return Value

  • Returns a string containing the GUID

Sample Code

C#

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

TAePayrollEmployee payrollEmp = ws.getPayrollEmployee(empID);

payrollEmp.ActiveStatus = TAePayrollActiveStatusEnum.pasActive;
payrollEmp.NoReview = TAePayrollACANoReviewOptions.epnrNormal;
payrollEmp.Seasonal = TAePayrollACASeasonalOptions.epsNormal;
payrollEmp.StartOfServiceDate = payrollEmp.DateOfHire;

try
{
string returnValue = ws.maintainPayrollEmployee(payrollEmployee);
}
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 empID As String = "1234"
' working with existing employee ID 1234

Dim payrollEmp As TAePayrollEmployee = ws.getPayrollEmployee(empID)

payrollEmp.ActiveStatus = TAePayrollActiveStatusEnum.pasActive
payrollEmp.NoReview = TAePayrollACANoReviewOptions.epnrNormal
payrollEmp.Seasonal = TAePayrollACASeasonalOptions.epsNormal
payrollEmp.StartOfServiceDate = payrollEmp.DateOfHire

Try
Dim returnValue As String = ws.maintainPayrollEmployee(payrollEmployee)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • None

Possible Errors

  • employee id does not exist
  • invalid date structure

getEmptyPayrollEmployee
getPayPeriodClosureEmployees
getPayPeriodClosureStats
getPayrollEmployee
getPayrollEmployeesList
submitPayrollEmployees

Back to Top