Show / Hide Table of Contents

Class Case

The payroll case client object

Inheritance
object
ModelBase
Case
CaseSet
Implements
ICase
IModel
IAttributeObject
IKeyEquatable<ICase>
IEquatable<ICase>
INameObject
Inherited Members
ModelBase.ToString()
ModelBase.Id
ModelBase.IsExistingObject
ModelBase.IsNewObject
ModelBase.Status
ModelBase.Created
ModelBase.Updated
ModelBase.UpdateMode
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Model
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class Case : ModelBase, ICase, IModel, IAttributeObject, IKeyEquatable<ICase>, IEquatable<ICase>, INameObject

Constructors

Case()

Initializes a new instance

Declaration
public Case()

Case(Case)

Initializes a new instance from a copy

Declaration
public Case(Case copySource)
Parameters
Type Name Description
Case copySource

The copy source

Properties

Attributes

Declaration
[JsonPropertyOrder(125)]
public Dictionary<string, object> Attributes { get; set; }
Property Value
Type Description
Dictionary<string, object>

AvailableActions

The case available actions

Declaration
[JsonPropertyOrder(119)]
public List<string> AvailableActions { get; set; }
Property Value
Type Description
List<string>

AvailableExpression

The expression used to build a case

Declaration
[JsonPropertyOrder(113)]
public string AvailableExpression { get; set; }
Property Value
Type Description
string

AvailableExpressionFile

The expression used to build a case file

Declaration
[JsonPropertyOrder(114)]
public string AvailableExpressionFile { get; set; }
Property Value
Type Description
string

BaseCase

The base case name

Declaration
[JsonPropertyOrder(108)]
public string BaseCase { get; set; }
Property Value
Type Description
string

BaseCaseFields

The base case fields

Declaration
[JsonPropertyOrder(109)]
public List<CaseFieldReference> BaseCaseFields { get; set; }
Property Value
Type Description
List<CaseFieldReference>

BuildActions

The case build actions

Declaration
[JsonPropertyOrder(120)]
public List<string> BuildActions { get; set; }
Property Value
Type Description
List<string>

BuildExpression

The expression used to build a case

Declaration
[JsonPropertyOrder(115)]
public string BuildExpression { get; set; }
Property Value
Type Description
string

BuildExpressionFile

The expression used to build a case file

Declaration
[JsonPropertyOrder(116)]
public string BuildExpressionFile { get; set; }
Property Value
Type Description
string

CancellationType

The cancellation type

Declaration
[JsonPropertyOrder(111)]
public CaseCancellationType CancellationType { get; set; }
Property Value
Type Description
CaseCancellationType

CaseType

The type of he case (immutable)

Declaration
[Required]
[JsonPropertyOrder(101)]
public CaseType CaseType { get; set; }
Property Value
Type Description
CaseType

Clusters

The case clusters

Declaration
[JsonPropertyOrder(124)]
public List<string> Clusters { get; set; }
Property Value
Type Description
List<string>

DefaultReason

The default case change reason

Declaration
[JsonPropertyOrder(106)]
public string DefaultReason { get; set; }
Property Value
Type Description
string

DefaultReasonLocalizations

The localized default case change reasons

Declaration
[JsonPropertyOrder(107)]
public Dictionary<string, string> DefaultReasonLocalizations { get; set; }
Property Value
Type Description
Dictionary<string, string>

Description

The case description

Declaration
[JsonPropertyOrder(104)]
public string Description { get; set; }
Property Value
Type Description
string

DescriptionLocalizations

The localized case descriptions

Declaration
[JsonPropertyOrder(105)]
public Dictionary<string, string> DescriptionLocalizations { get; set; }
Property Value
Type Description
Dictionary<string, string>

Hidden

Hidden case (default: false)

Declaration
[JsonPropertyOrder(112)]
public bool Hidden { get; set; }
Property Value
Type Description
bool

Lookups

The case lookups

Declaration
[JsonPropertyOrder(122)]
public List<string> Lookups { get; set; }
Property Value
Type Description
List<string>

Name

The case name

Declaration
[Required]
[StringLength(128)]
[JsonPropertyOrder(100)]
public string Name { get; set; }
Property Value
Type Description
string

NameLocalizations

The localized case names

Declaration
[JsonPropertyOrder(102)]
public Dictionary<string, string> NameLocalizations { get; set; }
Property Value
Type Description
Dictionary<string, string>

NameSynonyms

Synonyms for the case name

Declaration
[JsonPropertyOrder(103)]
public List<string> NameSynonyms { get; set; }
Property Value
Type Description
List<string>

OverrideType

The override type

Declaration
[JsonPropertyOrder(110)]
public OverrideType OverrideType { get; set; }
Property Value
Type Description
OverrideType

Slots

The case slots

Declaration
[JsonPropertyOrder(123)]
public List<CaseSlot> Slots { get; set; }
Property Value
Type Description
List<CaseSlot>

ValidateActions

The case validate actions

Declaration
[JsonPropertyOrder(121)]
public List<string> ValidateActions { get; set; }
Property Value
Type Description
List<string>

ValidateExpression

The case validate expression

Declaration
[JsonPropertyOrder(117)]
public string ValidateExpression { get; set; }
Property Value
Type Description
string

ValidateExpressionFile

The case validate expression file

Declaration
[JsonPropertyOrder(118)]
public string ValidateExpressionFile { get; set; }
Property Value
Type Description
string

Methods

EqualKey(ICase)

Test for the same item key

Declaration
public virtual bool EqualKey(ICase compare)
Parameters
Type Name Description
ICase compare
Returns
Type Description
bool

Equals(ICase)

Declaration
public virtual bool Equals(ICase compare)
Parameters
Type Name Description
ICase compare
Returns
Type Description
bool

GetUiString()

The object UI string

Declaration
public override string GetUiString()
Returns
Type Description
string
Overrides
ModelBase.GetUiString()

Implements

ICase
IModel
IAttributeObject
IKeyEquatable<T>
IEquatable<T>
INameObject

Extension Methods

ScriptExtensions.HasAnyScript(Case)
ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
☀
☾
Back to top Generated by DocFX