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

  • Sets (updates) an employee’s ESS PIN

Syntax

  • AeXMLBridge.setEmployeeESSPINByIDNum(IDNum, PIN);

Parameters

  • String - employee ID
  • String - employee PIN

Return Value

  • None

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
string empID = "1234";                                                            
// using employee with ID 1234

string essPIN = “4321”;
// set PIN to 4321

try
{
ws.setEmployeeESSPINByIDNum(empID, essPIN);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

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

Dim essPIN As String = “4321
' set the PIN to 4321

Try
ws.setEmployeeESSPINByIDNum(empID, essPIN)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

Possible Errors

  • Invalid employee ID

Preferred Method

maintainEmployeeDetail2

Alternate Method

setEmployeeESSPINByFilekey

getEmployeeESSEMailByIDNum
getEmployeeESSPINByIDNum
setEmployeeESSEMailByIDNum
setEmployeeTZByIDNum

Back to Top