# GC.Spread.Report

## Content

# Namespace: Report

[GC](GC).[Spread](GC.Spread).Report

## Table of contents

### Classes

- [ReportSheet](../classes/GC.Spread.Report.ReportSheet)
- [TemplateSheet](../classes/GC.Spread.Report.TemplateSheet)

### Interfaces

- [IColumnLayoutSetting](../interfaces/GC.Spread.Report.IColumnLayoutSetting)
- [IConditionRuleCellType](../interfaces/GC.Spread.Report.IConditionRuleCellType)
- [IConditionRuleDataColumnType](../interfaces/GC.Spread.Report.IConditionRuleDataColumnType)
- [IConditionRuleFormulaType](../interfaces/GC.Spread.Report.IConditionRuleFormulaType)
- [IConditionRuleParameterType](../interfaces/GC.Spread.Report.IConditionRuleParameterType)
- [IConditionRuleValueType](../interfaces/GC.Spread.Report.IConditionRuleValueType)
- [IDataCell](../interfaces/GC.Spread.Report.IDataCell)
- [IDataCellBase](../interfaces/GC.Spread.Report.IDataCellBase)
- [IDataColumn](../interfaces/GC.Spread.Report.IDataColumn)
- [IEntityFieldInfo](../interfaces/GC.Spread.Report.IEntityFieldInfo)
- [IFailedRecord](../interfaces/GC.Spread.Report.IFailedRecord)
- [IField](../interfaces/GC.Spread.Report.IField)
- [IFilter](../interfaces/GC.Spread.Report.IFilter)
- [IFilterConditionAndRelationType](../interfaces/GC.Spread.Report.IFilterConditionAndRelationType)
- [IFilterConditionOrRelationType](../interfaces/GC.Spread.Report.IFilterConditionOrRelationType)
- [IGroupBin](../interfaces/GC.Spread.Report.IGroupBin)
- [IPaginationSetting](../interfaces/GC.Spread.Report.IPaginationSetting)
- [IParameterChangedArgs](../interfaces/GC.Spread.Report.IParameterChangedArgs)
- [IRecord](../interfaces/GC.Spread.Report.IRecord)
- [IReportOptions](../interfaces/GC.Spread.Report.IReportOptions)
- [IReportSheetDataChangedEventArgs](../interfaces/GC.Spread.Report.IReportSheetDataChangedEventArgs)
- [IReportSheetDataChangingEventArgs](../interfaces/GC.Spread.Report.IReportSheetDataChangingEventArgs)
- [IReportSheetRecordsSubmittedEventArgs](../interfaces/GC.Spread.Report.IReportSheetRecordsSubmittedEventArgs)
- [IReportSheetRecordsSubmittingEventArgs](../interfaces/GC.Spread.Report.IReportSheetRecordsSubmittingEventArgs)
- [IRowLayoutSetting](../interfaces/GC.Spread.Report.IRowLayoutSetting)
- [ITemplateCellCommonSetting](../interfaces/GC.Spread.Report.ITemplateCellCommonSetting)
- [ITemplateOptions](../interfaces/GC.Spread.Report.ITemplateOptions)
- [IWriteBackRule](../interfaces/GC.Spread.Report.IWriteBackRule)

### Type aliases

- [Binding](GC.Spread.Report#binding)
- [CellAddress](GC.Spread.Report#celladdress)
- [Change](GC.Spread.Report#change)
- [ChartCell](GC.Spread.Report#chartcell)
- [ConditionRule](GC.Spread.Report#conditionrule)
- [ConditionRuleOperator](GC.Spread.Report#conditionruleoperator)
- [DataEntrySetting](GC.Spread.Report#dataentrysetting)
- [DataType](GC.Spread.Report#datatype)
- [FieldState](GC.Spread.Report#fieldstate)
- [FilterCondition](GC.Spread.Report#filtercondition)
- [FilterConditionFormulaRule](GC.Spread.Report#filterconditionformularule)
- [Formula](GC.Spread.Report#formula)
- [GroupCell](GC.Spread.Report#groupcell)
- [InitParametersUIFunctionType](GC.Spread.Report#initparametersuifunctiontype)
- [LayoutSetting](GC.Spread.Report#layoutsetting)
- [ListCell](GC.Spread.Report#listcell)
- [OnChangeFunctionType](GC.Spread.Report#onchangefunctiontype)
- [PaginationOrder](GC.Spread.Report#paginationorder)
- [RenderMode](GC.Spread.Report#rendermode)
- [SheetNameGenerator](GC.Spread.Report#sheetnamegenerator)
- [SortOption](GC.Spread.Report#sortoption)
- [SpillDirection](GC.Spread.Report#spilldirection)
- [StaticCell](GC.Spread.Report#staticcell)
- [SummaryAggregate](GC.Spread.Report#summaryaggregate)
- [SummaryCell](GC.Spread.Report#summarycell)
- [TemplateCell](GC.Spread.Report#templatecell)

## Type aliases

### <a id="binding" name="binding"></a> Binding

Ƭ **Binding**: `string`

___

### <a id="celladdress" name="celladdress"></a> CellAddress

Ƭ **CellAddress**: `string`

___

### <a id="change" name="change"></a> Change

Ƭ **Change**: `Object`

**`property`** {GC.Spread.Report.IRecord[]} records - 更新的和插入的记录。

**`property`** {GC.Spread.Report.IRecord[]} deleteRecords - 删除的记录。

**`property`** {GC.Spread.Report.IWriteBackRule} rule - 报告表数据条目写回规则。

#### Type declaration

| Name | Type | Description |
| :------ | :------ | :------ |
| `deleteRecords` | [`IRecord`](../interfaces/GC.Spread.Report.IRecord)[] | 删除的记录。 |
| `records` | [`IRecord`](../interfaces/GC.Spread.Report.IRecord)[] | 更新的和插入的记录。 |
| `rule` | [`IWriteBackRule`](../interfaces/GC.Spread.Report.IWriteBackRule) | 报告表数据条目写回规则。 |

___

### <a id="chartcell" name="chartcell"></a> ChartCell

Ƭ **ChartCell**: `Object`

#### Type declaration

| Name | Type |
| :------ | :------ |
| `chartPreviewVisible?` | `boolean` |
| `dataChartName` | `string` |
| `type` | ``"Chart"`` |

___

### <a id="conditionrule" name="conditionrule"></a> ConditionRule

Ƭ **ConditionRule**: { `column`: `string` ; `operator`: [`ConditionRuleOperator`](GC.Spread.Report#conditionruleoperator)  } & [`IConditionRuleValueType`](../interfaces/GC.Spread.Report.IConditionRuleValueType) \| [`IConditionRuleCellType`](../interfaces/GC.Spread.Report.IConditionRuleCellType) \| [`IConditionRuleDataColumnType`](../interfaces/GC.Spread.Report.IConditionRuleDataColumnType) \| [`IConditionRuleParameterType`](../interfaces/GC.Spread.Report.IConditionRuleParameterType) \| [`IConditionRuleFormulaType`](../interfaces/GC.Spread.Report.IConditionRuleFormulaType)

___

### <a id="conditionruleoperator" name="conditionruleoperator"></a> ConditionRuleOperator

Ƭ **ConditionRuleOperator**: ``"Equal"`` \| ``"NotEqual"`` \| ``"GreaterThanOrEqual"`` \| ``"GreaterThan"`` \| ``"LessThanOrEqual"`` \| ``"LessThan"`` \| ``"StartWith"`` \| ``"NotStartWith"`` \| ``"EndWith"`` \| ``"NotEndWith"`` \| ``"Contains"`` \| ``"NotContains"`` \| ``"In"`` \| ``"NotIn"``

___

### <a id="dataentrysetting" name="dataentrysetting"></a> DataEntrySetting

Ƭ **DataEntrySetting**: [`IWriteBackRule`](../interfaces/GC.Spread.Report.IWriteBackRule)[]

___

### <a id="datatype" name="datatype"></a> DataType

Ƭ **DataType**: `number` \| `string` \| `Date` \| `boolean`

___

### <a id="fieldstate" name="fieldstate"></a> FieldState

Ƭ **FieldState**: ``"normal"`` \| ``"new"`` \| ``"updated"`` \| ``"deleted"``

___

### <a id="filtercondition" name="filtercondition"></a> FilterCondition

Ƭ **FilterCondition**: [`ConditionRule`](GC.Spread.Report#conditionrule) \| [`FilterConditionFormulaRule`](GC.Spread.Report#filterconditionformularule) \| [`IFilterConditionAndRelationType`](../interfaces/GC.Spread.Report.IFilterConditionAndRelationType) \| [`IFilterConditionOrRelationType`](../interfaces/GC.Spread.Report.IFilterConditionOrRelationType)

___

### <a id="filterconditionformularule" name="filterconditionformularule"></a> FilterConditionFormulaRule

Ƭ **FilterConditionFormulaRule**: `Object`

#### Type declaration

| Name | Type |
| :------ | :------ |
| `formula` | `string` |

___

### <a id="formula" name="formula"></a> Formula

Ƭ **Formula**: `string`

___

### <a id="groupcell" name="groupcell"></a> GroupCell

Ƭ **GroupCell**: [`IDataCellBase`](../interfaces/GC.Spread.Report.IDataCellBase) & { `bins?`: [`IGroupBin`](../interfaces/GC.Spread.Report.IGroupBin)[] ; `fixedFillCount?`: `number` ; `formula?`: [`Formula`](GC.Spread.Report#formula) ; `type`: ``"Group"``  }

___

### <a id="initparametersuifunctiontype" name="initparametersuifunctiontype"></a> InitParametersUIFunctionType

Ƭ **InitParametersUIFunctionType**: (`sheet`: [`Worksheet`](../classes/GC.Spread.Sheets.Worksheet)) => `void`

#### Type declaration

▸ (`sheet`): `void`

**`description`** 当参数面板渲染时回调。

##### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `sheet` | [`Worksheet`](../classes/GC.Spread.Sheets.Worksheet) | 初始化参数面板，用户可以在此更新参数面板。 |

##### Returns

`void`

___

### <a id="layoutsetting" name="layoutsetting"></a> LayoutSetting

Ƭ **LayoutSetting**: [`IRowLayoutSetting`](../interfaces/GC.Spread.Report.IRowLayoutSetting) \| [`IColumnLayoutSetting`](../interfaces/GC.Spread.Report.IColumnLayoutSetting)

___

### <a id="listcell" name="listcell"></a> ListCell

Ƭ **ListCell**: [`IDataCellBase`](../interfaces/GC.Spread.Report.IDataCellBase) & { `fixedFillCount?`: `number` ; `spillMode?`: ``"Insert"`` \| ``"Overwrite"`` ; `type`: ``"List"``  }

___

### <a id="onchangefunctiontype" name="onchangefunctiontype"></a> OnChangeFunctionType

Ƭ **OnChangeFunctionType**: (`sheet`: [`ReportSheet`](../classes/GC.Spread.Report.ReportSheet), `changedArgs`: [`IParameterChangedArgs`](../interfaces/GC.Spread.Report.IParameterChangedArgs)) => `void`

#### Type declaration

▸ (`sheet`, `changedArgs`): `void`

**`description`** 当参数面板值更改时回调。

##### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `sheet` | [`ReportSheet`](../classes/GC.Spread.Report.ReportSheet) | 参数面板绑定的报告表。 |
| `changedArgs` | [`IParameterChangedArgs`](../interfaces/GC.Spread.Report.IParameterChangedArgs) | 更改的参数值。 |

##### Returns

`void`

___

### <a id="paginationorder" name="paginationorder"></a> PaginationOrder

Ƭ **PaginationOrder**: ``"DownThenOver"`` \| ``"OverThenDown"``

___

### <a id="rendermode" name="rendermode"></a> RenderMode

Ƭ **RenderMode**: ``"Design"`` \| ``"PaginatedPreview"`` \| ``"Preview"``

___

### <a id="sheetnamegenerator" name="sheetnamegenerator"></a> SheetNameGenerator

Ƭ **SheetNameGenerator**: (`pageIndex`: `number`) => `string`

#### Type declaration

▸ (`pageIndex`): `string`

##### Parameters

| Name | Type |
| :------ | :------ |
| `pageIndex` | `number` |

##### Returns

`string`

___

### <a id="sortoption" name="sortoption"></a> SortOption

Ƭ **SortOption**: { `asc`: `string`  } \| { `desc`: `string`  } & { `list?`: `string`[]  }

___

### <a id="spilldirection" name="spilldirection"></a> SpillDirection

Ƭ **SpillDirection**: ``"Horizontal"`` \| ``"Vertical"`` \| ``"None"``

___

### <a id="staticcell" name="staticcell"></a> StaticCell

Ƭ **StaticCell**: `Object`

#### Type declaration

| Name | Type |
| :------ | :------ |
| `autoExpand?` | ``"Both"`` \| ``"Horizontal"`` \| ``"Vertical"`` \| ``"None"`` |
| `initialExpansionState?` | ``"Expanded"`` \| ``"Collapsed"`` |
| `pin?` | ``"None"`` \| ``"Row"`` \| ``"Column"`` \| ``"Both"`` |
| `preserveFormulaInExport?` | `boolean` |
| `showCollapseButton?` | `boolean` |
| `type` | ``"Static"`` |

___

### <a id="summaryaggregate" name="summaryaggregate"></a> SummaryAggregate

Ƭ **SummaryAggregate**: ``"Sum"`` \| ``"Avg"`` \| ``"Max"`` \| ``"Min"`` \| ``"Count"``

___

### <a id="summarycell" name="summarycell"></a> SummaryCell

Ƭ **SummaryCell**: [`IDataCellBase`](../interfaces/GC.Spread.Report.IDataCellBase) & { `aggregate`: [`SummaryAggregate`](GC.Spread.Report#summaryaggregate) ; `type`: ``"Summary"``  }

___

### <a id="templatecell" name="templatecell"></a> TemplateCell

Ƭ **TemplateCell**: [`ListCell`](GC.Spread.Report#listcell) \| [`GroupCell`](GC.Spread.Report#groupcell) \| [`SummaryCell`](GC.Spread.Report#summarycell) \| [`StaticCell`](GC.Spread.Report#staticcell) \| [`ChartCell`](GC.Spread.Report#chartcell) & [`ITemplateCellCommonSetting`](../interfaces/GC.Spread.Report.ITemplateCellCommonSetting)
