setEmployeeESSPINByFilekey() 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.setEmployeeESSPINByFilekey(Filekey, PIN);

Parameters

  • Integer - employee filekey
  • String - employee PIN

Return Value

  • None

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
int filekey = 1234;                                                            
// using employee with filekey 1234

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

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

VB.Net

1
2
3
4
5
6
7
8
9
10
11
Dim filekey As Integer = 1234
' using employee with filekey 1234

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

Try
ws.setEmployeeESSPINByFilekey(filekey, essPIN)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

Possible Errors

  • Invalid employee filekey

Preferred Method

maintainEmployeeDetail2

Alternate Method

setEmployeeESSPINByIDNum

getEmployeeESSEMailByIDNum
getEmployeeESSPINByIDNum
setEmployeeESSEMailByIDNum
setEmployeeTZByIDNum

Back to Top