Class CaseAvailableFunction
Test if a case is available (default: true), optionally considering related source case values
Implements
Inherited Members
Namespace: PayrollEngine.Client.Scripting.Function
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public class CaseAvailableFunction : CaseFunction, IDisposable
Examples
// Example with case value
(int)Employee["Level"] >= 2
// Example with related case value
HasCaseValue("Wage")
// Example with optional related case value
HasCaseValue("Wage") ? (int)Employee["Level"] >= 2 : false
Constructors
CaseAvailableFunction(object)
Initializes a new instance with the function runtime
Declaration
public CaseAvailableFunction(object runtime)
Parameters
| Type | Name | Description |
|---|---|---|
| object | runtime | The runtime |
CaseAvailableFunction(string)
New function instance without runtime (scripting development)
Declaration
protected CaseAvailableFunction(string sourceFileName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sourceFileName | The name of the source file |
Remarks
Use GetSourceFileName(string) in your constructor for the source file name
Methods
IsAvailable()
Entry point for the runtime
Declaration
public bool? IsAvailable()
Returns
| Type | Description |
|---|---|
| bool? |
Remarks
Internal usage only, do not call this method