Results 1 to 6 of 6

Thread: purchase order and supplier class modelling

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    617

    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?

  2. #2
    Frenzied Member MaximilianMayrhofer's Avatar
    Join Date
    Aug 2007
    Location
    IM IN YR LOOP
    Posts
    2,001

    Re: purchase order and supplier class modelling

    I'm afraid that none of us can do ANYTHING with the information you've given.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    617

    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.

  4. #4
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    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.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    617

    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?

  6. #6
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Re: purchase order and supplier class modelling

    Quote 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
  •  



Click Here to Expand Forum to Full Width