Class ReportEndRuntime
Runtime for the report end function
Inherited Members
Namespace: PayrollEngine.Client.Scripting.Runtime.Api
Assembly: PayrollEngine.Client.Services.dll
Syntax
public class ReportEndRuntime : ReportRuntime, IReportEndRuntime, IReportRuntime, IRuntime
Constructors
View SourceReportEndRuntime(PayrollHttpClient, int, int, ReportSet, ReportRequest, DataSet)
Initializes a new instance of the ReportEndRuntime class
Declaration
public ReportEndRuntime(PayrollHttpClient httpClient, int tenantId, int userId, ReportSet report, ReportRequest reportRequest, DataSet dataSet = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PayrollHttpClient | httpClient | The Payroll http client |
| int | tenantId | The tenant id |
| int | userId | The user id |
| ReportSet | report | The report |
| ReportRequest | reportRequest | The report request |
| DataSet | dataSet | The report data set |
Properties
View SourceDataSet
Gets the report data set
Declaration
public DataSet DataSet { get; }
Property Value
| Type | Description |
|---|---|
| DataSet |
LogOwnerType
The log owner type
Declaration
protected override string LogOwnerType { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
View SourceExecuteMergeQuery(string, string, string, string, Dictionary<string, string>, int)
Execute a query on the Api web method and merge the table to the set
Declaration
public DataTable ExecuteMergeQuery(string tableName, string methodName, string culture, string mergeColumn, Dictionary<string, string> parameters, int schemaChange)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tableName | Target table name |
| string | methodName | The query name |
| string | culture | The content culture |
| string | mergeColumn | The column used to merge (primary key column) |
| Dictionary<string, string> | parameters | The method parameters |
| int | schemaChange | Action to take when the required data column is missing DataMergeSchemaChange |
Returns
| Type | Description |
|---|---|
| DataTable | New or expanded data table |
ExecuteQuery(string, string, string, Dictionary<string, string>, bool)
Execute a query on the Api web method and add the table to the set
Declaration
public DataTable ExecuteQuery(string tableName, string methodName, string culture, Dictionary<string, string> parameters, bool resultQuery)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tableName | Target table name |
| string | methodName | The query name |
| string | culture | The content culture |
| Dictionary<string, string> | parameters | The method parameters |
| bool | resultQuery | Add query table to the data set |
Returns
| Type | Description |
|---|---|
| DataTable | Resulting data table, existing will be removed |