Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How would you design this?
Message
From
22/10/2002 22:39:52
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
How would you design this?
Miscellaneous
Thread ID:
00714210
Message ID:
00714210
Views:
41
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...
Next
Reply
Map
View

Click here to load this message in the networking platform