学生管理系统课设报告

1、 课程设计概述android

1.1任务背景

学生信息管理是学校管理中异常重要的一个环节,做为学校,除了育人,就是育知,学生信息管理的计算机化是整个学校教务管理中的重要一部分,可否实现这一步关系到学校办学总体效率的高低,因为它的重要性,学生信息管理系统的开发与应用就逐渐提入议程,并占着愈来愈重要的分量。  运用学生信息管理系统能够减轻学院教学人员的工做量,缩小开支,提升工做效率与准确率,可以合理安排时间,可以尽快的知道本身的考试成绩,投入新的课程的学习或复习此次没有考过的课程。而学生信息管理系统的应用也为今天的民办教育在将来市场的竞争力有所提升。从大的方向说,就是为了加速我国四化建设的发展,实现所有的自动化,使我国发展成为通信网络化,决策科学化,办公自动化的国家。  在现代,高科技的飞跃发展,人们工做习惯的改变,特别是电脑的大量普及,人们生活节奏愈来愈快,怎样提升工做效率是人们首先考虑的问题。学生信息管理是一个很是繁琐与复杂的一项工做,一个缘由就是工做量大很差管。对于一个学校而言,更应该运用一些本地资源,提升管理的力度,对学生负责,对国家负责。数据库

开发学生信息管理系统手机客户端旨在方便管理学生信息,使同窗android智能手机就能够管理学生信息,真正作到互联网的全方位覆盖。管理学生信息系统适用于具备android智能手机的用户,在使用本软件后,学生信息管理将更加方便快捷。编程

1.2开发环境

开发环境:eclipse网络

运行环境:Android智能手机eclipse

 

 

 

 

需求分析数据库设计

2.1功能需求

本系统扮演着提供用户直接查询业务的重要角色。它主要提供友好的、方便的用户操做界面。接受用户的注册、各项查询以及密码的修改,具体的功能以下:学习

用户功能:测试

1.查询信息功能:管理员经过登录帐户密码,能够查看全部用户信息。spa

2增长信息功能:管理员能够增长用户。开放源代码

3.修改信息功能:管理员能够修改用户注册的信息。

4.删除信息功能:管理员能够删除用户注册的信息

2.2 UML需求用例图 

 

                                                                                     

                                                                             UML需求用例图

三 系统设计与实现

3.1系统整体设计

  系统数据流程图以下图所示:

 

 

                                            图3.1   学生管理系统数据流图

 

3.2 数据库设计与实现

 

3.2.1数据库E-R图

 

学生信息窗口中包括姓名、性别、民族、学号、备注、电话、生日,详细如图3.2数据库E-R图:

3.3 功能详细设计与实现

3.3.1 注册界面

 

3.3.2 登陆界面

 

3.3.3 查询界面

 

3.3.4 添加界面

 

3.3.5 删除界面

 

3.4 开发源代码

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/bg" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".MainActivity">

<AutoCompleteTextView //创建输入用户名文本框 android:id="@+id/userName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBaseline="@+id/textView2" android:layout_alignBottom="@+id/textView2" android:layout_alignRight="@+id/userPassword" android:layout_toRightOf="@+id/textView2" android:ems="10" android:hint="请输入用户名" />

<EditText //创建密码文本框 android:id="@+id/userPassword" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBottom="@+id/textView1" android:layout_toRightOf="@+id/textView2" android:ems="10" android:hint="请输入密码" android:inputType="textPassword" />

<TextView // android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignRight="@+id/textView2" android:layout_below="@+id/userName" android:layout_marginTop="21dp" android:text="密 码:" android:textColor="#ffffff" android:textSize="20sp" />

<Button //创建注册按钮 android:id="@+id/register" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBaseline="@+id/login" android:layout_alignBottom="@+id/login" android:layout_alignLeft="@+id/textView1" android:text="注册" android:background="@drawable/login_btn_click" />

<Button //退出按钮 android:id="@+id/exit" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignRight="@+id/userPassword" android:layout_below="@+id/userPassword" android:layout_marginTop="42dp" android:text="退出" android:background="@drawable/login_btn_click" />

<TextView //输入用户名文本框 android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/imageView1" android:layout_marginLeft="22dp" android:layout_marginTop="50dp" android:text="用户名:" android:textColor="#ffffff" android:textSize="20sp" />

<ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_marginTop="72dp" android:src="@drawable/student" />

<Button android:id="@+id/login" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBaseline="@+id/exit" android:layout_alignBottom="@+id/exit" android:layout_alignRight="@+id/imageView1" android:background="@drawable/login_btn_click" android:text="登陆" />

</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">

<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal">

<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="用户名 :" />

<EditText android:id="@+id/editText1" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="请输入用户名" />
</LinearLayout>

<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal">

<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="密 码:" />

<EditText android:id="@+id/editText2" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="请输入密码" android:inputType="textPassword" />
</LinearLayout>

<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal">

<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="确认密码:" />

<EditText android:id="@+id/editText3" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="请再输入密码" android:inputType="textPassword" />
</LinearLayout>

<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content">

<Button //确认按钮 android:id="@+id/btn_confirm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/login_btn_click" android:text="确认" />

<Button //返回按钮 android:id="@+id/btn_back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/login_btn_click" android:text="返回" />
</LinearLayout>

</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">

<EditText android:layout_width="match_parent" android:layout_height="wrap_content" />

<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content">

<Button //完成按钮 android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="完成" />

<Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="取消" />

</LinearLayout>
</LinearLayout>

4、系统测试

4.1测试环境

测试环境即测试的实施环境,包括:

1.软件测试设计环境:编制测试计划说明等有关文件所基于的设备和支持。

2.软件测试实施环境:对软件系统进行各级测试所基于的软、硬件设备和支持。

3.软件测试管理环境:管理测试资源所基于的软、硬件设备和支持

本系统主要使用的是Eclipse(一个开放源代码的、基于 Java 的可扩展开发平台)以及Android手机。

4.2模块测试

4.2.1 注册模块测试

注册时须要输入用户名、密码、肯定密码。若是该用户名已被存在或者两次密码输入不同,测试结果以下图:

                           用户已被注册图

                         两次密码不同图

                                 注册成功图

4.2.2  用户登陆模块测试

用户登陆模块须要输入用户名以及密码,不然不能登陆并有请输入用户名的提示。若登陆时用户名和密码错误,则会提示您输入的用户名或密码错误,不然提示成功。以下图:

            

4.2.4 用户增添模块测试

输入用户信息,对用户模块测试,以下图:

                                 用户添加信息图

                                            

                                                   成功添加用户图

 

5、项目总结

这个程序做完不难,关键是调试,修改的过程很难。还有一点,一个细心的人做程序可能少走弯路。通常做程序不是从头至尾做完再调试,这样很难调好,由于每编一句均可能出错,这样错误越积越多,最好的方法是每做完一个小段调试一次,一步一步按部就班地做完,到最后不至于出了不少错误,不知如何寻找,一样少了不少的麻烦。编程多了,天然地经验多了,调程序就不以为那么难了。

   要想编好、快速完成任务,就必须有严谨的科学态度,好比说一个字母,甚至一个标点符号的错误都会致使错误,这种错误在编程中咱们常常出现,有时系统能让你很快找出,你能顺利往下进行,但有时它提示的错误信息和标点一点关系都没有,然后你把编的程序从头至尾看了一遍, 结果花了大量的时间, 大大下降了效率。其它的粗枝大叶错误更是五花八门,调试起来就更加困难了,因此在编程时必定要心细。编程要有耐心,由于编程是件很繁琐的工做,若是没有耐心恐怕是编不下去的,好比有的人,有好几处错误,就放弃了,结果一事无成。

最后一点,就是编程时思路必定要清楚。由于编程自己就是一个严密的逻辑过程,实现每一步的操做须要那些命令,哪些条件都是清清楚楚,明明了了的,来不得半点遗漏。
总的来讲,编程是件复杂的脑力劳动,要有科学严谨的科学态度,细心的习惯和耐心才能做好,要作到以上的要求咱们还要作许多许多。

 

课程设计的过程当中,我遇到了不少问题,经过查阅参考书和的指导,都获得了解决。这不只仅锻炼了我分析问题和解决问题的能力,也使我意识到本身对知识的了解程度远了,知识的缺少也在不少方面。之后我必定会努力提升本身的理论水平,同时尽量多地读一些科学书籍,提升本身的理论水平和动手实践能力。因为时间的限制,解决这个问题和本文不能被称为完美。在许多地方还有待阐述,修改和完善