Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Best desgin

Best desgin

Scheduled Pinned Locked Moved ASP.NET
businessquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kjosh
    wrote on last edited by
    #1

    Hi, In my aspx page, I have 3 tabs. tab1, Ownership, Location. first tab: tab1 entity shows the fields some x, y, z. Second tab: Ownership: this owner of the above business may be some xxx company, and person. Ownership tab display details like the below: Owner Type: dropdownlist: Person or business if person is selected take them to the Person.aspx page, there he can add the person details like name,ssn, firstname, lastname, middlename,... If Business is selected, take them to another page, there he can enter, details regarding the business. The Ownership may contain up to x number of businesses(each buisness have details), y number of persons(each person have the above details). Third tab: Location: stores the physical address, mailing address. Now, I have to define the classes in business layer for the above scenario: a) tab1 class b) Defined one class i.e business contain the details of the busienss. Person class having the fields for name, ssn, lastname, middle name. c) defined class Address: having the fields, properties for street address, city, state, country, zipcode. They can have multiple businesses, persons, adresses. Now defined another class like the below: Class Application //this class is to store the above details of 3 tabs. { #region fields //Tab1 entity tab1 t; //Business class entities Collection<Business> bus; //Person class entities Collection<Person> Persons; //Address tab Collection<Address> PhysicalAddress; Collection<Address> MailingAddress; } I am using the collection to store the multiple values of the class objects. So In presentation layer I can bind the collection to GridView. Could anyone specify above approach is good enough? Any other areas I have to take care of? Thanks in advance.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups