Class CaseRelationValidateRuntime
Runtime for the case relation validate function
Inherited Members
Namespace: PayrollEngine.Client.Scripting.Runtime.Api
Assembly: PayrollEngine.Client.Services.dll
Syntax
public class CaseRelationValidateRuntime : CaseRelationRuntimeBase, ICaseRelationValidateRuntime, ICaseRelationRuntime, IPayrollRuntime, IRuntime
Constructors
View SourceCaseRelationValidateRuntime(PayrollHttpClient, ScriptContext, int, int, int, CaseSet, CaseSet, int?)
Initializes a new instance of the CaseRelationValidateRuntime class
Declaration
public CaseRelationValidateRuntime(PayrollHttpClient httpClient, ScriptContext scriptContext, int tenantId, int payrollId, int userId, CaseSet sourceCaseSet, CaseSet targetCaseSet, int? employeeId = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PayrollHttpClient | httpClient | The Payroll http client |
| ScriptContext | scriptContext | The script context |
| int | tenantId | The tenant id |
| int | payrollId | The payroll id |
| int | userId | The user id |
| CaseSet | sourceCaseSet | The source case set |
| CaseSet | targetCaseSet | The target case set |
| int? | employeeId | The employee id |
Properties
View SourceIssues
The validation issues
Declaration
public List<CaseValidationIssue> Issues { get; }
Property Value
| Type | Description |
|---|---|
| List<CaseValidationIssue> |
LogOwnerType
The log owner type
Declaration
protected override string LogOwnerType { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
View SourceAddCaseFieldIssue(string, string, int)
Add a new case field issue
Declaration
public void AddCaseFieldIssue(string caseFieldName, string message, int number)
Parameters
| Type | Name | Description |
|---|---|---|
| string | caseFieldName | Name of the case field |
| string | message | The issue message |
| int | number | The issue number |
AddCaseIssue(string, int)
Add a new case issue
Declaration
public void AddCaseIssue(string message, int number)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The issue message |
| int | number | The issue number |
HasIssues()
Test for issues
Declaration
public bool HasIssues()
Returns
| Type | Description |
|---|---|
| bool |