| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method Generate ( |  |   FinancialSalesSearch search, |  |   Factorys factorys, |  |   Strings productids |  | ) |  | { |  |   TextBody: |  |   [* |  |     // 甄兰鸽 Jun-25-2024 (created) |  |     table                   := selectobject( this, FinancialSalesSource.FinancialSalesReport, report, not report.IsShow() ); |  |     //清空之前存储的显示数据 |  |     this.Clear(); |  |     //年汇总 |  |     yearcolumn                := this.FinancialSalesColumn( relnew, Name := '汇总', Period := search.MacroPlan().StartOfPlanning().StartOfNextYear().Date() ); |  |     traverse( factorys, Elements, factory ){ |  |       this.GenerateShow( table, yearcolumn, productids, factory.ID() ); |  |     } |  |     rows                    := selectsortedset( this, FinancialSalesRow, row, row.Name() ); |  |     i                       := 0; |  |     traverse( rows, Elements, e ){ |  |       e.RowNr( i ); |  |       i                     := i + 1; |  |     } |  |   *] |  | } | 
 |