Class CaseValue
The payroll case value client object (immutable)
Inherited Members
Namespace: PayrollEngine.Client.Model
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class CaseValue : ModelBase, ICaseValue, IModel, IAttributeObject, IEquatable<ICaseValue>
Constructors
CaseValue()
Initializes a new instance
Declaration
public CaseValue()
CaseValue(CaseValue)
Initializes a new instance from a copy
Declaration
public CaseValue(CaseValue copySource)
Parameters
| Type | Name | Description |
|---|---|---|
| CaseValue | copySource | The copy source |
Properties
Attributes
Declaration
[JsonPropertyOrder(116)]
public Dictionary<string, object> Attributes { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, object> |
CancellationDate
Cancellation date
Declaration
[JsonPropertyOrder(111)]
public DateTime? CancellationDate { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
CaseFieldName
The associated case field name
Declaration
[Required]
[StringLength(128)]
[JsonPropertyOrder(102)]
public string CaseFieldName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CaseFieldNameLocalizations
The localized case field names
Declaration
[JsonPropertyOrder(103)]
public Dictionary<string, string> CaseFieldNameLocalizations { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
CaseName
The associated case name
Declaration
[StringLength(128)]
[JsonPropertyOrder(100)]
public string CaseName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CaseNameLocalizations
The localized case names
Declaration
[JsonPropertyOrder(101)]
public Dictionary<string, string> CaseNameLocalizations { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
CaseRelation
The case relation
Declaration
[JsonPropertyOrder(110)]
public CaseRelationReference CaseRelation { get; set; }
Property Value
| Type | Description |
|---|---|
| CaseRelationReference |
CaseSlot
The case slot
Declaration
[StringLength(128)]
[JsonPropertyOrder(104)]
public string CaseSlot { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CaseSlotLocalizations
The localized case slots
Declaration
[JsonPropertyOrder(105)]
public Dictionary<string, string> CaseSlotLocalizations { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
Culture
The case value culture name based on RFC 4646
Declaration
[JsonPropertyOrder(109)]
public string Culture { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DivisionId
The division id (immutable), Mandatory for case values with local value scope ValueScope
Declaration
[JsonPropertyOrder(118)]
public int? DivisionId { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
DivisionName
The associated case field name
Declaration
[StringLength(128)]
[JsonPropertyOrder(117)]
public string DivisionName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EmployeeId
The employee id, mandatory for employee case changes (immutable)
Declaration
[JsonPropertyOrder(119)]
public int? EmployeeId { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
End
The ending date for the value
Declaration
[JsonPropertyOrder(113)]
public DateTime? End { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
Forecast
The forecast name
Declaration
[StringLength(128)]
[JsonPropertyOrder(114)]
public string Forecast { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NumericValue
The case numeric value
Declaration
[JsonPropertyOrder(108)]
public decimal? NumericValue { get; set; }
Property Value
| Type | Description |
|---|---|
| decimal? |
Start
The starting date for the value
Declaration
[JsonPropertyOrder(112)]
public DateTime? Start { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
Tags
The case value tags
Declaration
[JsonPropertyOrder(115)]
public List<string> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> |
Value
The case value (JSON format)
Declaration
[JsonPropertyOrder(107)]
public string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ValueType
The type of the value
Declaration
[JsonPropertyOrder(106)]
public ValueType ValueType { get; set; }
Property Value
| Type | Description |
|---|---|
| ValueType |
Methods
Equals(ICaseValue)
Declaration
public virtual bool Equals(ICaseValue compare)
Parameters
| Type | Name | Description |
|---|---|---|
| ICaseValue | compare |
Returns
| Type | Description |
|---|---|
| bool |
GetUiString()
The object UI string
Declaration
public override string GetUiString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
ToString()
Returns a string that represents this instance
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents this instance |