setEmployeeDetail() Method

Table of Contents

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

Function

  • Updates an employee’s detail level information

Syntax

  • AeXMLBridge.setEmployeeDetail(AeEmployeeDetail);

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
19
string empID = “1234”;                                                         
// using employee with ID 1234

TAeEmployeeDetail empDetail = ws.getEmployeeDetailByIDNum(empID);
// Updating some of the fields from the TAeEmpDetail structure
empDetail.Address1 = “1234 Elm Street”;
empDetail.AddressCity = “Chicago”;
empDetail.AddressStateProv = “IL”;
empDetail.AddressZIPPC = “60606”;
empDetail.AvgWeeklyHrs = 40;

try
{
ws.setEmployeeDetail(empDetail);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Dim empID As String = “1234
' using employee with ID 1234

Dim empDetail As TAeEmployeeDetail = ws.getEmployeeDetailByIDNum(empID)
' Updating some of the fields from the TAeEmpDetail structure

empDetail.Address1 = “1234 Elm Street”
empDetail.AddressCity = “Chicago”
empDetail.AddressStateProv = “IL”
empDetail.AddressZIPPC = “60606
empDetail.AvgWeeklyHrs = 40

Try
ws.setEmployeeDetail(empDetail)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

Possible Errors

  • Either Filekey and/or EmpID value must be set

Preferred Method

maintainEmployeeDetail2

Alternate Method

maintainEmployeeBasic

maintainEmployeeDetail

getEmployeeBasicByIDNum
getEmployeeDetailByIDNum
setEmployeeBasic
setEmployeeDetail2
setEmployeeESSEmailByIDNum
setEmployeeESSPINByIDNum
setEmployeeTZByIDNum
setManuallySelectedEmployeeData

Back to Top