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

  • Reverses (unauthorizes) a previously authorized time card for the selected pay period

Syntax

  • AeXMLBridge.unAuthPeriodTimeCardByIDNum(IDNum, PayPeriodEnum);

Parameters

Return Value

  • None

Sample Code

C#

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

TPayPeriodEnum payPeriod = TPayPeriodEnum.ppePrevious;
// using the previous pay period

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

Sample Code VB.Net

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

Dim payPeriod As TPayPeriodEnum = TPayPeriodEnum.ppePrevious
' using the previous pay period

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

Remarks

  • None

Possible Errors

  • Unable to locate employee with filekey

Preferred Method

unAuthPeriodTimeCardByIDNum

authPeriodTimeCardByIDNum
cancelTimeCardEdit
deleteTimeCardEdit
performTimeCardEdit

Back to Top