毕业设计论文基于android系统的人事管理系统设计与实现.docx

上传人:b****5 文档编号:6687533 上传时间:2023-01-09 格式:DOCX 页数:65 大小:1.33MB
下载 相关 举报
毕业设计论文基于android系统的人事管理系统设计与实现.docx_第1页
第1页 / 共65页
毕业设计论文基于android系统的人事管理系统设计与实现.docx_第2页
第2页 / 共65页
毕业设计论文基于android系统的人事管理系统设计与实现.docx_第3页
第3页 / 共65页
毕业设计论文基于android系统的人事管理系统设计与实现.docx_第4页
第4页 / 共65页
毕业设计论文基于android系统的人事管理系统设计与实现.docx_第5页
第5页 / 共65页
点击查看更多>>
下载资源
资源描述

毕业设计论文基于android系统的人事管理系统设计与实现.docx

《毕业设计论文基于android系统的人事管理系统设计与实现.docx》由会员分享,可在线阅读,更多相关《毕业设计论文基于android系统的人事管理系统设计与实现.docx(65页珍藏版)》请在冰豆网上搜索。

毕业设计论文基于android系统的人事管理系统设计与实现.docx

毕业设计论文基于android系统的人事管理系统设计与实现

基于Android的人事管理系统设计与实现

第一章绪论

1.1项目的来源及背景

智能手机有Symbian、Windows Phone、Android、IOS、BlackBerry 10这些系统。

Android系统鹤立鸡群占据着巨大的市场份额,随着人们接触的手机时间越来越长,针对Android系统的程序层出不穷。

每个手机都有APK程序,是人们简单方便的使用方式,而因为Android的巨大市场份额,Android平台下的手机程序更是受到青睐。

手机程序不仅操作方便,还能更快的使用,让用户在休闲的同时也能进行查询和工作。

 

与电脑的体积相比,手机的小巧便捷,方便的特性成为我们日常生活中必备通讯工具。

拥有巨大市场空间的手机平台程序会着智能手机的普及和应用必然会迎来新一轮的热潮。

在新一轮的热潮中,Android手机客户量大,所以手机程序的发展空间很可观。

1.2项目的功能

Android平台下的人事管理系统方便简洁,可以对员工进行增、删、改;部门管理的增、删、改、查,工资情况和员工信息的管理查询。

本文围绕着人事管理展开Java和Android的相关技术介绍,并把整个Android平台下人事管理系统的设计展示出来。

 

把整个人事管理系统设计分为登录模块、主控制模块、人员管理模块、工资管理模块、部门管理模块和综合管理模块。

各个模块分工不同,但有有相似之处,把整个系统完善起来。

设计的重点是各个模块的增、删、查、改功能,进而实现录入、修改、查询和删除的功能。

第二章概要设计

2.1开发工具

现在常用的Java项目开发环境有:

JBuilder、VisualAge for Java、Forte for Java, Visual Cafe、Eclipse、IDE、JCreator +J2SDK、JDK+记事本、J2SDK等等。

2.2Eclipse的开发环境

现今Eclipse应用广泛、功能强大,而且还可已按自己的需要下载各种插件来扩展它的功能,所以本设计选用的工具是Eclipse。

 Eclipse 是一个开放源代码的、基于Java的可扩展开发平台。

Eclipse是利用各种插件来建立开放环境从而提供框架和服务的。

Eclipse 附带了一个标准的插件集,包括Java开发工具JDK。

被应用最多的Java SDK就是JDK了。

Java的运行环境、工具、基础类库都需要以JDK为基础

2.3运行环境

Android4.3及以上版本。

2.4项目的文档结构

WindowsXP、Eclipse、Android模拟机4.3等。

系统结构图如图2.1所示:

 

 

图2.1:

系统的文档结构图

2.5总体设计

该设计是Android平台下的人事管理系统。

包括职工信息的管理、个人工资信息的管理、部门管理和一个综合的查询功能,所有的信息都是储存在手机上的SQLite中,如果想让其可以联网真正的使用可以把数据信息转移到bmob平台上,更改以后应该可以适应简单的多用户管理。

本项目管理员默认用户名是admin,密码是123456。

项目默认编码GBK编译版本4.4.2本系统通过登陆界面登陆进入程序主界面。

系统的测试运行图2.2

登陆模块

录、修、删、查

部门管理

添、查、修、删

添、查、修、删

系统

综合管理

添、改、删

安全退出

人员管理

管理员工资信息

管理员工资信息

工资管理

图2.2测试运行图

该系统分为以下几个模块功能:

登录模块、主控制模块、人员管理 、管理员工资信息模块、工资管理模块、综合管理模块、部门管理模块和安全退出模块。

其中模块用有增删查改的功能如上测试运行图2.2所示。

第三章人事管理系统的详细实现

3.1系统的登陆界面功能模块

图3.1登陆界面运行效果图

3.1.1登陆界面的界面xml源文件

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

orientation="vertical">

android:

id="@+id/textView5"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text=""/>

android:

id="@+id/textView3"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text="欢迎进入人事管理系统"

android:

textSize="23dp"/>

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text=""/>

android:

layout_width="match_parent"

android:

layout_height="wrap_content">

android:

layout_width="wrap_content"

android:

layout_height="match_parent">

android:

id="@+id/Information"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text="用户名:

"/>

android:

id="@+id/userName"

android:

layout_width="match_parent"

android:

layout_height="wrap_content"

android:

layout_weight="1"

android:

ems="10"

android:

hint="请输入用户名"

android:

inputType="textPersonName"/>

android:

layout_width="match_parent"

android:

layout_height="wrap_content"

android:

orientation="vertical">

android:

layout_width="match_parent"

android:

layout_height="wrap_content">

android:

id="@+id/hh"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text="密码:

"/>

android:

id="@+id/password"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

ems="10"

android:

hint="请输入密码"

android:

inputType="textPassword">

android:

layout_width="match_parent"

android:

layout_height="wrap_content"

android:

orientation="vertical">

android:

id="@+id/textView8"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text=""/>

android:

layout_width="306dp"

android:

layout_height="wrap_content"

android:

orientation="vertical">

android:

layout_width="match_parent"

android:

layout_height="wrap_content">

android:

id="@+id/textView6"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text=""/>

android:

id="@+id/login"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text="登录"/>

android:

id="@+id/textView7"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text=""/>

android:

id="@+id/reset2"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text="重置"/>

3.1.2登陆界面的Java源文件

publicvoidonCreate(BundlesavedInstanceState){

super.onCreate(savedInstanceState);

setContentView(R.layout.logininterface);

getWindow().setBackgroundDrawableResource(R.drawable.activitybg);

//引入组件

userName=(EditText)findViewById(R.id.userName);

password=(EditText)findViewById(R.id.password);

login=(Button)findViewById(R.id.login);

reset=(Button)findViewById(R.id.reset2);

title=(TextView)findViewById(R.id.textView3);

title.setTextColor(Color.BLUE);

finalPersonDAOpersonDAO=newPersonDAO(this);

login.setOnClickListener(newButton.OnClickListener(){

Intentintent=null;

@Override

publicvoidonClick(Viewarg0){Personperson=personDAO.findName(userName.getText().toString());

if(userName.getText().toString().equals("admin")

&&password.getText().toString().equals("123456")){

USER=userName.getText().toString();

person=personDAO.findName("admin");

if(person==null){

person=newPerson("1130070131","admin","男",22,"admin","学生","人事部","管理员");personDAO.add(person);}

intent=newIntent(LoginActivity.this,MainActivity.class);

try{Toast.makeText(LoginActivity.this,"正在登录,请稍等.....",Toast.LENGTH_LONG).show();Thread.sleep(3000);}

catch(InterruptedExceptione){e.printStackTrace();}

Toast.makeText(LoginActivity.this,"登录成功!

^_^",Toast.LENGTH_LONG).show();startActivity(intent);}

elseif(person!

=null){if(password.getText().toString().equals(person.getPassword())&&person.getPower().equals("管理员")){intent=newIntent(LoginActivity.this,MainActivity.class);

USER=userName.getText().toString();

try{Toast.makeText(LoginActivity.this,"正在登录,请稍等.....",Toast.LENGTH_LONG).show();Thread.sleep(3000);}

catch(InterruptedExceptione){e.printStackTrace();}

Toast.makeText(LoginActivity.this,"登录成功!

^_^",Toast.LENGTH_LONG).show();startActivity(intent);}

elseif(password.getText().toString().equals(person.getPassword())&&person.getPower().equals("普通员工")){intent=newIntent(LoginActivity.this,CommonActivity.class);

USER=userName.getText().toString();

try{Toast.makeText(LoginActivity.this,"正在登录,请稍等.....",Toast.LENGTH_LONG).show();Thread.sleep(3000);}

catch(InterruptedExceptione){e.printStackTrace();}

Toast.makeText(LoginActivity.this,"登录成功!

^_^",Toast.LENGTH_LONG).show();startActivity(intent);

LoginActivity.this.finish();}

else{Toast.makeText(LoginActivity.this,"用户名或密码不正确!

",Toast.LENGTH_LONG).show();}}

else{Toast.makeText(LoginActivity.this,"用户名或密码不正确!

",Toast.LENGTH_LONG).show();}}});

reset.setOnClickListener(newButton.OnClickListener(){

publicvoidonClick(Viewarg0){userName.setText("");

password.setText("");}});}

3.2构成主页面设计的功能模块

3.2.1主界面的界面xml源文件

android:

id="@+id/linearLayout1"

android:

layout_width="match_parent"

android:

layout_height="match_parent"

android:

layout_alignParentLeft="true"

android:

layout_alignParentTop="true"

android:

orientation="vertical">

android:

id="@+id/staffmanagement"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

layout_marginTop="27dp"

android:

text="人员管理"/>

android:

id="@+id/managementInfo"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text="管理员工资信息"/>

android:

id="@+id/salarymanagement"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text="工资管理"/>

android:

id="@+id/departmentmanegement"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text="部门管理"/>

android:

id="@+id/update1"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text="综合管理"/>

android:

id="@+id/close"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text="安全退出"/>

android:

id="@+id/Information"

android:

layout_width="wrap_content"

android:

layout_height="wrap_content"

android:

text=""/>

3.2.2主界面的界面java源文件

publicvoidonCreate(BundlesavedInstanceState){

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);

getWindow().setBackgroundDrawableResource(R.drawable.activitybg);

//*引入组件

staffmanagement=(Button)findViewById(R.id.staffmanagement);

salarymanagement=(Button)findViewById(R.id.salarymanagement);departmentmanegement=(Button)findViewById(R.id.departmentmanegement)integratedManagement=(Button)findViewById(R.id.update1);

managementInfo=(Button)findViewById(R.id.managementInfo);

close=(Button)findViewById(R.id.close);

Information=(TextView)findViewById(R.id.Information);

PersonDAOpersonDAO=newPersonDAO(this);

Personperson=personDAO.findName(LoginActivity.USER);

System.out.println(person);

if(person!

=null){Information.setText(

"\n姓名:

"+person.getName()+"\n性别:

"+person.getSex()

+"\n年龄:

"+person.getAge()+"\n密码:

"+person.getPassword()

+"\n职务:

"+person.getJob()+"\n部门:

"+person.getDepartment());}

//人员管理

staffmanagement.setOnClickListener(newButton.OnClickListener(){Intentintent=null;

@Override

publicvoidonClick(Viewarg0){intent=newIntent(MainActivity.this,PersonActivity.class);startActivity(intent);}});//工资管理

salarymanagement.setOnClickListener(newButton.OnClickListener(){

Intentintent=null;

@Override

publicvoidonClick(Viewarg0){intent=newIntent();

intent.setClass(M

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 哲学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1