大家好,今天小强给大家分享一个JavaWeb社区医院远程挂号系统,源码开源给大家了。
链接:https://pan.baidu.com/s/1NQDvGPcoE03tutcYoMhwDg? 提取码:htzg
该系统采用java来实现主体功能,且实现了普通用户与个管理员用户不同的权限操作功能,普通用户可以在登录后实现用户信息管理、挂号系统管理、挂号报表统计;管理员登录后可以实现用户信息管理,挂号系统管理,挂号报表统计,注销登录
数据库采用MySQL,分别设计有用户表,病人信息表,挂号系统表三个主要的表
服务器采用Tomcat进行部署
前端由原生html实现
整套系统基本实现了一个完整毕业设计该有增删改查功能,用来作为毕业设计,进行一些简单的修改与调试,用作毕业设计还是很nice的
系统界面展示:
java核心代码:
用户对象设计:
package org.com.model;
/**
* User类 id userName password
* @author Administrator
*
*/
public class User {
private int userId;
private String userName;
private String password;
private int role;
public User() {
super();
// TODO Auto-generated constructor stub
}
public User(String userName, String password) {
super();
this.userName = userName;
this.password = password;
}
public String getPassword() {
return password;
}
public int getUserId() {
return userId;
}
public String getUserName() {
return userName;
}
public void setPassword(String password) {
this.password = password;
}
public void setUserId(int userId) {
this.userId = userId;
}
public void setUserName(String userName) {
this.userName = userName;
}
public int getRole() {
return role;
}
public void setRole(int role) {
this.role = role;
}
}
病人对象设计:
package org.com.model;
import java.util.Date;
public class Patient {
private int patientId;
private int userId=-1;//防止发生空指针错误,特殊处理
private String patientName;
private String sex;
private Date birthday;
private String patientDesc;
private String idNumber;
private String tel;
private String userName;
public Patient() {
super();
// TODO Auto-generated constructor stub
}
public Date getBirthday() {
return birthday;
}
public String getIdNumber() {
return idNumber;
}
public String getPatientDesc() {
return patientDesc;
}
public int getPatientId() {
return patientId;
}
public String getPatientName() {
return patientName;
}
public String getSex() {
return sex;
}
public String getTel() {
return tel;
}
public int getUserId() {
return userId;
}
public String getUserName() {
return userName;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public void setIdNumber(String idNumber) {
this.idNumber = idNumber;
}
public void setPatientDesc(String patientDesc) {
this.patientDesc = patientDesc;
}
public void setPatientId(int patientId) {
this.patientId = patientId;
}
public void setPatientName(String patientName) {
this.patientName = patientName;
}
public void setSex(String sex) {
this.sex = sex;
}
public void setTel(String tel) {
this.tel = tel;
}
public void setUserId(int userId) {
this.userId = userId;
}
public void setUserName(String userName) {
this.userName = userName;
}
}
挂号对象设计:
package org.com.model;
import java.util.Date;
public class GuaHao {
private int ghId;
private int patientId=-1;
private Date date;
private String officeName;
private String ghDesc;
private String patientName;
public int getGhId() {
return ghId;
}
public void setGhId(int ghId) {
this.ghId = ghId;
}
public int getPatientId() {
return patientId;
}
public void setPatientId(int patientId) {
this.patientId = patientId;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public String getGhDesc() {
return ghDesc;
}
public void setGhDesc(String ghDesc) {
this.ghDesc = ghDesc;
}
public String getPatientName() {
return patientName;
}
public void setPatientName(String patientName) {
this.patientName = patientName;
}
public String getOfficeName() {
return officeName;
}
public void setOfficeName(String officeName) {
this.officeName = officeName;
}
public GuaHao() {
super();
// TODO Auto-generated constructor stub
}
}
源码在上面已经分享,希望大家多多支持小强,欢迎大家点赞收藏加关注。
谢谢大家了,更多干货在不断的整理中!
|