Could you please recommend a design pattern for pages with tables.
There are three page types - AgeReport, PositionReport, SalaryReport.
Each page type has its own columns.
Columns have the same attributes (title, type, desc) across all page types.
So, probably it's better to create a list of Columns and use it across all page types.
It should be possible to:
- get titles of all columns for specific page type
- get titles of columns with specific type (int, double, string) for specific page type.
- get all table data for specific column for specific page type.
Image is attached.
I found only this solution:
- Columns should be as enum with attributes.
- Each page type should have List of Columns and in the constructor to define this list.
Aucun commentaire:
Enregistrer un commentaire