|
-
Jun 8th, 2008, 08:18 AM
#1
Thread Starter
Fanatic Member
purchase order and supplier class modelling
how are you going to model a Purchase Order Class and a Supplier Class associated to the Purchase Order Class?
-
Jun 8th, 2008, 08:34 AM
#2
Re: purchase order and supplier class modelling
I'm afraid that none of us can do ANYTHING with the information you've given.
-
Jun 8th, 2008, 08:39 AM
#3
Thread Starter
Fanatic Member
Re: purchase order and supplier class modelling
hmmm bad... let say in your opinion how are you going to model a Purchase Order Class and a Supplier Class... hope this make sense I was thinking what will are the fields, property and methods to be included for each class.
-
Jun 8th, 2008, 10:04 AM
#4
Re: purchase order and supplier class modelling
Purchase Order:
1. Fields: OrderID, SupplierID, OrderDate, RequiredDate, ShippedDate
2. Methods: GetPurchaseOrderDetails, AddOrder, UpdateOrder, DeleteOrder
Supplier:
1. Fields: SupplierID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Phone, Fax
You can start with these things.
-
Jun 8th, 2008, 10:28 AM
#5
Thread Starter
Fanatic Member
Re: purchase order and supplier class modelling
thanks quite interesting. do i need to add the following methods (addorder, updateorder and deleteorder) in the cllass instead of doing that directly to database?
-
Jun 8th, 2008, 10:41 AM
#6
Re: purchase order and supplier class modelling
 Originally Posted by jlbantang
thanks quite interesting. do i need to add the following methods (addorder, updateorder and deleteorder) in the cllass instead of doing that directly to database?
Not really... it all depends on how you are going to design the class. If you are going to write stored procedure for these tasks then there should be some way to call it from your application. You can create separate procedure for every operation addorder, updateorder and deleteorder. If you don't want to go this way then you can create a common method (e.g ExecuteStoredProc) that will execute any procedure.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|