java系统课程设计_Java课程设计——学生信息系统(团队)

团队名称、团队成员介绍

1.1 团队名称

1.2 团队成员

李晓冬 网络1514 201521123113 组长

龚厦彬 网络1514 201521123115 组员

2.项目git地址

3.项目git提交记录截图(要体现出每个人的提交记录、提交说明),老师将点击进去重点考核。

717a19a96ee6b2cddd0a62e678db0cf9.png

e0a241953e956e087205f375caa80671.png

4.项目功能架构图与主要功能流程图

f26a2778309765e5727777839a47e285.png

5.项目运行截图

界面

c91131c6ecd0992375092a0bc8b9822e.png

密码输入错误时

d4f9cbe3e6def8e2052b64e7f23942b4.png

查询信息

eb3a333779b899dd6ea9db30d4b060fb.png

9abacd728855b0ba4bfa658bf5c0f9fd.png

增添信息

17482ec7b957704bd22917462e4c128a.png

c7263336dcbadcc5e16b3c37fdcc5e70.png

7c314ed071dbb8cba5b4a2b99f965a6a.png

修改信息

7c314ed071dbb8cba5b4a2b99f965a6a.png

e86dd8af389334a97f00cf1f58c90d06.png

ebb04750fdc6bda5feef1cb5a6cad649.png

b77ffcecfb4e803d1935d546e7b2886a.png

6b45443b6cd20471298dabb3a8a493ed.png

删除信息

6b45443b6cd20471298dabb3a8a493ed.png

7ac14b6fd70b67fa0d9e3d7bb2ce70dd.png

105f01b7d4566b5de3c2ee0efccc70ee.png

4e9bfe4237e2cbb872bd56e8c9b3ab1f.png

3d6e218bfb4d664b57a73d74258609d0.png

6.项目关键代码

界面

private void LoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LoginActionPerformed

String user = Username.getText().trim();

@SuppressWarnings("deprecation")

String pass = Password.getText();

if(user.length() == 0){

JOptionPane.showMessageDialog(null, "用户名不能为空");

}

else if(pass.length() == 0){

JOptionPane.showMessageDialog(null, "密码不能为空");

}

else if(user.equals("admin")&&pass.equals("123456")){

AdminFrame L1 = new AdminFrame();

L1.setVisible(true);

this.setVisible(false);

}

else if(user.equals("113")&&pass.equals("123456")){

StuFrame L = new StuFrame();

L.setVisible(true);

this.setVisible(false);

}

else{

JOptionPane.showMessageDialog(null, "登录失败 请重新登录");

Username.setText("");

Password.setText("");

}

查询

private void SearchButActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LoginActionPerformed

String[][] strs = Search.serach(Searchname.getText(),Searchstuno.getText());

if(strs[0][0]==null){

JOptionPane.showMessageDialog(null, "查无此人");

Searchname.setText("");

Searchstuno.setText("");

}

else{

new SInfor(strs).setVisible(true);

this.setVisible(false);

}

添加

private void InsertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed

String[] str = bir.getText().split("-");

String birthday = "" ;

for (int i = 0; i < str.length; i++) {

birthday += str[i];

}

String istuno = stuno.getText().trim();

String iname = name.getText().trim();

String igender = gender.getText().trim();

String ibirthdate = bir.getText().trim();

String ipoutlook = po.getText().trim();

String iaddress = add.getText().trim();

String iphone = tel.getText().trim();

String idormitory = dn.getText().trim();

if(istuno.length()==0)

JOptionPane.showMessageDialog(null, "学号不能为空!");

else if(Search.isNumer(istuno)==false)

JOptionPane.showMessageDialog(null, "学号格式有误,请重新输入");

else if(iname.length()==0)

JOptionPane.showMessageDialog(null, "姓名不能为空!");

else if(igender.length()==0)

JOptionPane.showMessageDialog(null, "性别不能为空!");

else if(igender.length()>1){

JOptionPane.showMessageDialog(null, "性别格式有误,请输入m/f");

}

else if (ibirthdate.length()==0){

JOptionPane.showMessageDialog(null, "生日不能为空!");

}

else if((bir.getText().length()!=0&&Search.isNumer(birthday)==false)||bir.getText().length()!=10){

JOptionPane.showMessageDialog(null, "生日格式有误,请输xxxx-xx-xx格式");

bir.setText("");

} else if(Integer.parseInt(str[1])>12){

JOptionPane.showMessageDialog(null, "月份输入有误");

bir.setText("");

}

else if(Integer.parseInt(str[2])>31){

JOptionPane.showMessageDialog(null, "日期输入有误");

bir.setText("");

}

else if(Search.isNumer(iphone)==false){

JOptionPane.showMessageDialog(null, "电话号码格式有误!");

tel.setText("");

}

else{

InsertDB.Insert(istuno, iname, igender, birthday, ipoutlook, iaddress, iphone, idormitory);

stuno.setText("");name.setText("");gender.setText("");bir.setText("");

po.setText("");add.setText("");tel.setText("");dn.setText("");

}

}

修改

private void modifyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_modifyActionPerformed

String[] str = bir.getText().split("-");

String birthday = "" ;

for (int i = 0; i < str.length; i++) {

birthday += str[i];

}

if(stuno.getText().length()==0)

JOptionPane.showMessageDialog(null, "学号不能为空!");

else if(Search.isNumer(stuno.getText())==false)

JOptionPane.showMessageDialog(null, "学号格式有误,请重新输入");

else if(name.getText().length()==0)

JOptionPane.showMessageDialog(null, "姓名不能为空!");

else if(gender.getText().length()==0)

JOptionPane.showMessageDialog(null, "性别不能为空!");

else if(gender.getText().length()>1){

JOptionPane.showMessageDialog(null, "性别格式有误,请输入m/f");

gender.setText("");

}

else if (bir.getText().length()==0){

JOptionPane.showMessageDialog(null, "生日不能为空!");

}

else if((bir.getText().length()!=0&&Search.isNumer(birthday)==false)||bir.getText().length()!=10){

JOptionPane.showMessageDialog(null, "生日格式有误,请输xxxx-xx-xx格式");

bir.setText("");

}else if(Integer.parseInt(str[1])>12){

JOptionPane.showMessageDialog(null, "月份输入有误");

bir.setText("");

}

else if(Integer.parseInt(str[2])>31){

JOptionPane.showMessageDialog(null, "日期输入有误");

bir.setText("");

}

else if(Search.isNumer(phone.getText())==false){

JOptionPane.showMessageDialog(null, "电话号码格式有误!");

phone.setText("");

} else{

int yes =JOptionPane.showConfirmDialog(this, "确认修改?", "提示",JOptionPane.YES_NO_OPTION);

if(yes==JOptionPane.YES_OPTION){

Modify.modify(stuno.getText(), name.getText(), gender.getText(),birthday,

poutlook.getText(), address.getText(), phone.getText(), dormitory.getText());

}

else{

}

}

}

删除

private void deleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteActionPerformed

int yes =JOptionPane.showConfirmDialog(this, "确认删除?", "提示",JOptionPane.YES_NO_OPTION);

if(yes==JOptionPane.YES_OPTION){

Delete.delete(getstuno1.getText());

}

else{

}

}

7.尚待改进或者新的想法

登录界面不够完善,只能有两个账号登录。——改进想法:可以实现自行注册用户,管理员可以给用户分配权限。

插入操作只能一条一条插入,尚不能实现批量插入。——改进想法:可以批量插入,或者导入表格插入。

操作界面不够完善。

8.团队成员任务分配,团队成员课程设计博客链接(以表格形式呈现),标明组长。

| 成员 | 任务 | 博客链接 |

| -------- | -----: | :----: |

| 李晓冬(组长)| 登录界面,插入操作,删除操作| http://www.cnblogs.com/leexd/p/7077083.html|

| 龚厦彬| GUI设计,查询操作,修改操作 |http://www.cnblogs.com/handsome321/p/7067041.html|

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值