Well, BC_Programmer, that was a very useful post.
Here is the image of an invoice, so we can base ourselves on that:
invoiceNow let's sum up the fields and entities, with Windows Forms and UML notation::
- company label : Label
Company : Entity (class)
- Company name : String
- Street address : String
- City, State, Zip code : String
- Phone number, web address, e-mail : String
- Date : Date
- Invoice # : int (or auto-int or whatever)
Bill To : Label, TextArea
- CompanyID : int
- Company name : String
- Street address : String
- City, State, Zip code : String
- Country : String
Ship To: : Label, TextArea
- Company name : String
- Street address : String
- City, State, Zip code : String
- P.O.# : GridView.Header/ListBox.Header
- Sales Rep. Name : GridView.Header/ListBox.Header
- Ship Date : GridView.Header/ListBox.Header
- Ship Via : GridView.Header/ListBox.Header
- Terms : GridView.Header/ListBox.Header
- Due date : GridView.Header/ListBox.Header
Product : (Entity, class)
- Product ID : GridView.Header/ListBox.Header
- Description : GridView.Header/ListBox.Header
- Quantity : GridView.Header/ListBox.Header
- Unit price : GridView.Header/ListBox.Header
- Line Total (calc field) : Label
- Subtotal (calc field) : Label
- price PST% : Label
- price GST% : Label
- Shipping & handling : Label
- Total : Label
- Paid : Label
- Due (calc field) : Label
- Notes : Label, TextArea
- endlabel : Label
Now that we have these things, we can conclude a few things, OO related:
Requirements Elicitation:classes-
Product -
fields - Product ID
- Description
- Quantity
- Unit price
-
Company -
fields - Company name
- Street address
- City, State, Zip code
- Phone number
- web address
- e-mail
-
Receiver -
fields - Name
- Address
- City
- State
- CityState = (concatenated String)
- Country
Then there is the bill to company. Maybe with some overloads.
Now let's see if anyone else cares to answer.
Give some comments if you want, so we can help this person further.