mardi 26 mai 2015

How to solve the issue. Do you use a design pattern here?

We have many institutions and users. The task here is that to generate a report for the institution.

Depending on user permissions is displayed in the window view option A and option B.

In the report window option A and option B have shared always two widgets: a ComboBox and the button "Create report". However, the operation of these buttons differs depending on the institution and of user rights (roles).

I add a picture to illustrate the problem.

enter image description here

Abstract factory design pattern will be here the best? Whether it is pointless and use only inheritance? What is the best way to approach this?

Aucun commentaire:

Enregistrer un commentaire