authPeriodTimeCardByFileKey() 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. Related Methods

Function

  • Authorize a specific employee’s time card for selected pay period

Syntax

  • AeXMLBridge.authPeriodTimeCardByFileKey(Filekey, PayPeriodEnum, AuthTimeCardOptionEnum);

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

int filekey = 1234;
// using employee# 1234

TPayPeriodEnum payPeriod = TPayPeriodEnum.ppePrevious;
// set Pay Period to Previous

TAuthTimeCardOptionEnum auth = TAuthTimeCardOptionEnum.atcoSupervisor;
// set authorization to Supervisor

try
{
ws.authPeriodTimeCardByFilekey(filekey, payPeriod, auth);
}
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 filekey As Integer = 1234
' using employee# 1234

Dim payPeriod As TPayPeriodEnum = TPayPeriodEnum.ppePrevious
' set Pay Period to Previous

Dim auth As TAuthTimeCardOptionEnum = TAuthTimeCardOptionEnum.atcoSupervisor
' set authorization to Supervisor

Try
ws.authPeriodTimeCardByFilekey(filekey, payPeriod, auth)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • None

Possible Errors

  • No such employee with Filekey

Preferred Method

authPeriodTimeCardByIDNum

cancelTimeCardEdit
deleteTimeCardEdit
performTimeCardEdit
unAuthPeriodTimeCardByIDNum

Back to Top