Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How would you design this?
Message
De
22/10/2002 22:39:52
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
How would you design this?
Divers
Thread ID:
00714210
Message ID:
00714210
Vues:
43
Hi,
I am developing front end POS system. In my application, it may required to print receipt/invoice based on different printers using direct print/??? to improve the printing speed. The printers used could be dot matrix with A4 paper or EPSON receipt printer.

To do this, I am using Strategy design pattern that will have a printmanager, it will create the corresponding object based on printmethod request. The classes are dotmatrixA4 and epsonreceipt. Each class will have hardcoded ??? command to print.
Is it the way to design?

Also, I have problem of different client may request different format of receipt/invoice. How should I design this ?

Pls advise

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform