Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends,
I am doing a school management project.but unfortunately i struggle with designing a time table. I searched google for reference,but i didnt get desired result.please help me to design the timetable.
Posted

Perhaps this[^] article would be a good starting point for you. Only once you understand what a relational database can you design something within it.
As far as your specific table structures, the basic point is to list out all the data you want to store and then break it down into relational bits until it is as normalized as it can get.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 27-Sep-12 15:37pm    
Good point, a 5.
The OP's main problem right now is mixing up the time table (data) and the UI representation, which is not good. I elaborated this in my answer, please see.
--SA
Don't design time table using grid view. Use time table separately, and separately the UI presentation for it. It's really important to isolate UI from other aspects of the application, and to isolate the data model from everything else. Other part of applications can be aware of data model, but the data model should be agnostic to application, so it would be one of the fundamental functional units, on the very bottom of the dependency diagram.

I suggest you learn and analyze applicability of the following architectural patterns (http://en.wikipedia.org/wiki/Architectural_pattern_(computer_science)[^]):

MVVM — Model View View Model,
http://en.wikipedia.org/wiki/Model_View_ViewModel[^],

MVC — Model-View-Controller,
http://en.wikipedia.org/wiki/Model-view-controller[^]),

MVA — Model-View-Adapter,
http://en.wikipedia.org/wiki/Model–view–adapter[^],

MVP — Model-View-Presenter,
http://en.wikipedia.org/wiki/Model-view-presenter[^].
Pay attention for the motivation of those architectures. If you understand it, you would be able to create better design ideas.

As to the isolation of the UI and data model, you should better understand loose coupling and separation of concerns:
http://en.wikipedia.org/wiki/Loose_coupling[^],
http://en.wikipedia.org/wiki/Separation_of_concerns[^].

Good luck,
—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900