大学生社团信息管理系统(8)

2020-02-21 20:57

}

this.organization=organization; this.position=position;

public peopleInformation(String name,String sex,String brithday,String address,String tel,String organization,String position) { super();

this.name=name; this.sex=sex;

this.brithday=brithday; this.address=address; this.tel=tel;

this.organization=organization; this.position=position;

}

public peopleInformation(String name) {

this.name=name;

}

public peopleInformation() { super();

}

public int getId() { return Id;

}

public void setId(int id) { Id = id;

}

public String getName() {

32

return name;

}

public void setName(String name) { this.name = name;

}

public String getSex() { return sex;

}

public void setSex(String sex) { this.sex = sex;

}

public String getAddress() { return address;

}

public void setAddress(String address) { this.address = address;

}

public String getBrithday() { return brithday;

}

public void setBrithday(String brithday) { this.brithday = brithday;

}

public String getTel() { return tel;

}

public void setTel(String tel) { this.tel = tel;

}

public String getOrganization() {

33

}

return organization;

public void setOrganization(String organization) { }

public String getPosition() { }

public void setPosition(String position) { }

public String getPaint() { }

public void setPaint(String paint) { }

public String getBrithYear() { }

public void setBrithYear(String brithYear) { }

public String getBrithMonth() { }

public void setBrithMonth(String brithMonth) { }

public String getBrithDay() {

34

this.organization = organization;

return position;

this.position = position;

return paint;

this.paint = paint;

return brithYear;

this.brithYear = brithYear;

return brithMonth;

this.brithMonth = brithMonth;

}

return brithDay;

public void setBrithDay(String brithDay) { } }

(2)人员信息维护

当单击人员信息维护,则系统会跳出人员信息维护窗口。具体运行的结果如图5.5所示。

this.brithDay = brithDay;

图5.5 人员信息维护窗体运行结果

该窗体实现了数据库中人员信息的修改,查询,删除等功能。当该窗口运行,表格中就会显示所有社团人员的信息,当单击任意一名社团人员信息,则表格下面的文本框中就会对应显示其信息,在任意文本框中修改信息,单击修改,则社团人员信息就会被修改,如果单击删除按钮,则该社团人员的信息就会被删除。

还可以在表格上方的文本框中输入姓名关键字,单击查询按钮,则表格中就会显示查询的结果。相应的具体代码如下所示: 人员信息维护代码: package com.zky.www.view;

35

public class bookTypeQMDIFrame extends JInternalFrame {

protected static final peopleInformation peopleinformation = null; private JPanel jContentPane = null; private JLabel lbTip = null; private JLabel lbSBookName = null; private JTextField txtSBookTypeName = null; private JButton btnQuery = null; private JScrollPane scroll = null; private JTable table = null; private JLabel Id = null;

private JTextField txtBookTypeId = null; private JLabel Name = null;

private JTextField txtBookTypeName = null; private JLabel lbBookTypeDesc = null; private JButton btnModify = null; private JButton btnDelete = null;

private JTextField sexInput=new JTextField(); private JLabel brithday=new JLabel(\出生日期:\private JTextField brithInput=new JTextField(); private ButtonGroup group=new ButtonGroup(); private JLabel address=new JLabel(\家庭住址:\private JTextField inputAdress=new JTextField(); private JLabel tel=new JLabel(\联系电话:\private JTextField inputTel=new JTextField(); private JLabel organization=new JLabel(\所在社团:\

private JTextField organizationInput=new JTextField();

private JLabel position=new JLabel(\担任职务:\private JTextField positionInput=new JTextField();

private DefaultTableModel model=new DefaultTableModel(){

public boolean isCellEditable(int row, int column) {

36


大学生社团信息管理系统(8).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:小学数学

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: