Class Script
The payroll script client object
Inherited Members
Namespace: PayrollEngine.Client.Model
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class Script : ModelBase, IScript, IModel, IKeyEquatable<IScript>, IEquatable<IScript>, INameObject
Constructors
Script()
Initializes a new instance
Declaration
public Script()
Script(Script)
Initializes a new instance from a copy
Declaration
public Script(Script copySource)
Parameters
| Type | Name | Description |
|---|---|---|
| Script | copySource | The copy source |
Properties
FunctionTypes
The scripting function types
Declaration
[JsonPropertyOrder(101)]
public List<FunctionType> FunctionTypes { get; set; }
Property Value
| Type | Description |
|---|---|
| List<FunctionType> |
Name
The script name
Declaration
[Required]
[StringLength(128)]
[JsonPropertyOrder(100)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OverrideType
The override type
Declaration
[JsonPropertyOrder(104)]
public OverrideType OverrideType { get; set; }
Property Value
| Type | Description |
|---|---|
| OverrideType |
Value
The script content
Declaration
[JsonPropertyOrder(102)]
public string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ValueFile
The script file name
Declaration
[JsonPropertyOrder(103)]
public string ValueFile { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
EqualKey(IScript)
Test for the same item key
Declaration
public virtual bool EqualKey(IScript compare)
Parameters
| Type | Name | Description |
|---|---|---|
| IScript | compare |
Returns
| Type | Description |
|---|---|
| bool |
Equals(IScript)
Declaration
public virtual bool Equals(IScript compare)
Parameters
| Type | Name | Description |
|---|---|---|
| IScript | compare |
Returns
| Type | Description |
|---|---|
| bool |
GetUiString()
The object UI string
Declaration
public override string GetUiString()
Returns
| Type | Description |
|---|---|
| string |