Sum adjustment values started
This commit is contained in:
parent
49d82eaf86
commit
03bc94ff81
8
table.ts
8
table.ts
@ -1,6 +1,7 @@
|
||||
export class Sum
|
||||
{
|
||||
ColumnIndex: number;
|
||||
Table: Table;
|
||||
|
||||
Original: number;
|
||||
Adjustment: number;
|
||||
@ -8,10 +9,13 @@ export class Sum
|
||||
FromChildren: number;
|
||||
FromOutside: number;
|
||||
|
||||
constructor(inIndex: number)
|
||||
constructor(inIndex: number, inTable: Table)
|
||||
{
|
||||
this.ColumnIndex = inIndex;
|
||||
this.Table = inTable;
|
||||
this.Original = 0;
|
||||
this.Adjustment = 1;
|
||||
this.FromParents = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,7 +33,7 @@ export class Table
|
||||
this.Rows = inRows;
|
||||
this.Parent = null;
|
||||
this.Children = [];
|
||||
this.Columns = inColumns.map( (inIndex: number) => new Sum(inIndex) );
|
||||
this.Columns = inColumns.map( (inIndex: number) => new Sum(inIndex, this) );
|
||||
}
|
||||
|
||||
Pivot(inColumnPivot: number)
|
||||
|
Loading…
Reference in New Issue
Block a user