如何使用gridview设计时间表 [英] How time table design using gridview

查看:84
本文介绍了如何使用gridview设计时间表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,
我正在做一个学校管理项目.但不幸的是,我在设计时间表方面遇到了困难.我在Google上搜索了参考,但是没有得到想要的结果.请帮助我设计时间表.

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.

推荐答案

也许
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.


不要使用网格视图设计时间表.单独使用时间表,并分别使用时间表.将UI与应用程序的其他方面隔离开来,并将数据模型与其他所有方面隔离开来,确实非常重要.应用程序的其他部分可以知道数据模型,但是数据模型对于应用程序是不可知的,因此它将成为依赖关系图最底部的基本功能单元之一.

我建议您学习并分析以下建筑模式的适用性(
http://en.wikipedia .org/wiki/Architectural_pattern_(computer_science) [^ ]):

MVVM —模型视图视图模型,
http://en.wikipedia.org/wiki/Model_View_ViewModel [> http://en.wikipedia.org/wiki/Model-view-controller [ ^ ]),

MVA —模型视图适配器,
http://en.wikipedia.org/wiki/Model–view–adapter [ ^ ],

MVP —模型视图呈现器,
> http://en.wikipedia.org/wiki/Model-view-presenter [ ^ ].
请注意这些架构的动机.如果您了解它,就可以提出更好的设计思路.

关于UI和数据模型的隔离,您应该更好地理解松散耦合关注点分离:
http://en.wikipedia.org/wiki/Loose_coupling [ http://en.wikipedia.org/wiki/Separation_of_concerns [
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


这篇关于如何使用gridview设计时间表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆