1. 병원장(id : boss)이 로그인할 경우 임직원 List 노출

2. 임직원이 로그인할 경우 근무기록 List 노출
3. 환자 외래 or 입원 예약 DB에 Input(pio_ok에 1값 입력) = 로그인 시 사용했던 ID, name값 해당 테이블에 저장
4. 환자 외래 or 입원 예약 기록 List 노출
5. 환자 건강검진 예약 DB에 Input (pt_state에 1값 입력) = 로그인 시 사용했던 ID, name값 해당 테이블에 저장
6. 환자 건강검진 예약 기록 List 노출
This commit is contained in:
mcutegs2
2020-06-28 03:56:19 +09:00
parent 78e29d6686
commit e7ade55c25
32 changed files with 1008 additions and 150 deletions

View File

@@ -4,7 +4,6 @@ import java.sql.SQLException;
import java.util.ArrayList;
import DB.BasicDao;
import UserJoin.UserJoinVo;
public class UserJoinDao extends BasicDao {
private final String UserJoin_LIST = "SELECT * FROM user_tbl";

View File

@@ -0,0 +1,37 @@
package UserMyList;
import java.sql.SQLException;
import java.util.ArrayList;
import DB.BasicDao;
public class UserMyListDao extends BasicDao {
private final String UserMyList = "SELECT * FROM user_work_tbl WHERE uw_ID = ?";
public ArrayList<UserMyListVo> select(UserMyListVo member) {
ArrayList<UserMyListVo> list = new ArrayList<UserMyListVo>();
try {
this.psmt = this.conn.prepareStatement("SELECT * FROM user_work_tbl WHERE uw_ID = ?");
this.psmt.setString(1, member.getUw_ID());
this.rs = this.psmt.executeQuery();
while(this.rs.next()) {
UserMyListVo vo = new UserMyListVo();
vo.setUw_num(this.rs.getString("uw_num"));
vo.setUw_ID(this.rs.getString("uw_ID"));
vo.setUw_name(this.rs.getString("uw_name"));
vo.setUw_start(this.rs.getString("uw_start"));
vo.setUw_finish(this.rs.getString("uw_finish"));
vo.setUw_state(this.rs.getString("uw_state"));
vo.setUw_ok(this.rs.getString("uw_ok"));
list.add(vo);
}
} catch (SQLException var3) {
var3.printStackTrace();
}
return list;
}
}

View File

@@ -0,0 +1,56 @@
package UserMyList;
public class UserMyListVo {
public String uw_num;
public String uw_ID;
public String uw_name;
public String uw_start;
public String uw_finish;
public String uw_state;
public String uw_ok;
public String getUw_num() {
return uw_num;
}
public void setUw_num(String uw_num) {
this.uw_num = uw_num;
}
public String getUw_ID() {
return uw_ID;
}
public void setUw_ID(String uw_ID) {
this.uw_ID = uw_ID;
}
public String getUw_name() {
return uw_name;
}
public void setUw_name(String uw_name) {
this.uw_name = uw_name;
}
public String getUw_start() {
return uw_start;
}
public void setUw_start(String uw_start) {
this.uw_start = uw_start;
}
public String getUw_finish() {
return uw_finish;
}
public void setUw_finish(String uw_finish) {
this.uw_finish = uw_finish;
}
public String getUw_state() {
return uw_state;
}
public void setUw_state(String uw_state) {
this.uw_state = uw_state;
}
public String getUw_ok() {
return uw_ok;
}
public void setUw_ok(String uw_ok) {
this.uw_ok = uw_ok;
}
}

View File

@@ -5,6 +5,7 @@ import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import UserJoin.UserJoinDao;
import UserJoin.UserJoinVo;
@@ -12,6 +13,7 @@ import UserJoin.UserJoinVo;
public class UserLoginCheckCommand implements Command {
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
UserJoinDao dao = new UserJoinDao();
UserJoinVo member = null;
String id = request.getParameter("u_ID");
@@ -24,10 +26,19 @@ public class UserLoginCheckCommand implements Command {
member.setU_ID(id); // 동일
member.setU_psw(pw); // 동일
member = dao.selectMember(member);
request.setAttribute("member", member);
String path;
if (member != null) {
path = "loginOk.jsp";
path = "loginOk.jsp";
session.setAttribute("id",id);
if( id.equals("boss")) {
session.setAttribute("auth", "admin" );
}else {
session.setAttribute("auth", "user" );
}
} else {
path = "UserLogin.jsp"; // 실패 시 로그인 화면으로
}

View File

@@ -0,0 +1,34 @@
package command;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import UserMyList.UserMyListDao;
import UserMyList.UserMyListVo;
public class UserMyListCommand implements Command {
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
String loginId = (String)session.getAttribute("id");
UserMyListDao dao = new UserMyListDao();
UserMyListVo vo = new UserMyListVo();
vo.setUw_ID(loginId);
ArrayList<UserMyListVo> list = dao.select(vo);
request.setAttribute("vo", list);
String path = "UserMyList.jsp";
return path;
}
}

View File

@@ -0,0 +1,56 @@
package command;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import patientInout.patientInoutDao;
import patientInout.patientInoutVo;
import patientJoin.patientJoinDao;
import patientJoin.patientJoinVo;
public class patientInoutCheckCommand implements Command {
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
String loginId = (String)session.getAttribute("id");
patientJoinVo vo = new patientJoinVo();
patientJoinDao dao = new patientJoinDao();
vo.setP_ID(loginId);
patientJoinVo result = dao.selectOne(vo);
System.out.println(loginId);
String pio_ID =loginId;
String pio_name = result.getP_name();
String pio_state = request.getParameter("pio_state");
String pio_divi = request.getParameter("pio_divi");
String pio_date = request.getParameter("pio_date");
String pio_time = request.getParameter("pio_time");
int n;
String path;
patientInoutVo member = new patientInoutVo();
member.setPio_ID(pio_ID);
member.setPio_name(pio_name);
member.setPio_state(pio_state);
member.setPio_divi(pio_divi);
member.setPio_date(pio_date);
member.setPio_time(pio_time);
patientInoutDao pdao = new patientInoutDao();
n = pdao.patientInoutInsert(member);
if (n != 0) {
request.setAttribute("joinName", pio_ID);
path = "patientInoutPass.jsp";
} else {
path = "joinFail.jsp";
}
return path;
}
}

View File

@@ -0,0 +1,14 @@
package command;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class patientInoutCommand implements Command {
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
return "patientInout.jsp";
}
}

View File

@@ -0,0 +1,32 @@
package command;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import UserMyList.UserMyListVo;
import patientInout.patientInoutDao;
import patientInout.patientInoutVo;
public class patientInoutResCommand implements Command {
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
String loginId = (String)session.getAttribute("id");
patientInoutDao dao = new patientInoutDao();
patientInoutVo vo = new patientInoutVo();
vo.setPio_ID(loginId);
ArrayList<patientInoutVo> list = dao.select(vo);
request.setAttribute("vo", list);
String path = "patientInoutRes.jsp";
return path;
}
}

View File

@@ -5,6 +5,7 @@ import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import patientJoin.patientJoinDao;
import patientJoin.patientJoinVo;
@@ -12,6 +13,7 @@ import patientJoin.patientJoinVo;
public class patientLoginCheckCommand implements Command {
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
patientJoinDao dao = new patientJoinDao();
patientJoinVo member = null;
String id = request.getParameter("p_ID");
@@ -27,6 +29,9 @@ public class patientLoginCheckCommand implements Command {
request.setAttribute("member", member);
String path;
if (member != null) {
session.setAttribute("id",id);
path = "patientOK.jsp";
} else {
path = "patientLogin.jsp"; // 실패 시 로그인 화면으로

View File

@@ -0,0 +1,52 @@
package command;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import patientJoin.patientJoinDao;
import patientJoin.patientJoinVo;
import patientTest.patientTestDao;
import patientTest.patientTestVo;
public class patientTestCheckCommand implements Command {
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
String loginId = (String)session.getAttribute("id");
patientJoinVo vo = new patientJoinVo();
patientJoinDao dao = new patientJoinDao();
vo.setP_ID(loginId);
patientJoinVo result = dao.selectOne(vo);
System.out.println(loginId);
String pt_ID =loginId;
String pt_name = result.getP_name();
String pt_date = request.getParameter("pt_date");
String pt_time = request.getParameter("pt_time");
int n;
String path;
patientTestVo member = new patientTestVo();
member.setPt_ID(pt_ID);
member.setPt_name(pt_name);
member.setPt_date(pt_date);
member.setPt_time(pt_time);
patientTestDao pdao = new patientTestDao();
n = pdao.patientTestInsert(member);
if (n != 0) {
request.setAttribute("joinName", pt_ID);
path = "patientTestPass.jsp";
} else {
path = "joinFail.jsp";
}
return path;
}
}

View File

@@ -0,0 +1,14 @@
package command;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class patientTestCommand implements Command {
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
return "patientTest.jsp";
}
}

View File

@@ -0,0 +1,31 @@
package command;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import patientTest.patientTestDao;
import patientTest.patientTestVo;
public class patientTestResCommand implements Command {
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
String loginId = (String)session.getAttribute("id");
patientTestDao dao = new patientTestDao();
patientTestVo vo = new patientTestVo();
vo.setPt_ID(loginId);
ArrayList<patientTestVo> list = dao.select(vo);
request.setAttribute("vo", list);
String path = "patientTestRes.jsp";
return path;
}
}

View File

@@ -18,11 +18,18 @@ import command.UserJoinCommand;
import command.UserListCommand;
import command.UserLoginCheckCommand;
import command.UserLoginCommand;
import command.UserMyListCommand;
import command.UserRegCommand;
import command.patientInoutCheckCommand;
import command.patientInoutCommand;
import command.patientInoutResCommand;
import command.patientJoinCommand;
import command.patientLoginCheckCommand;
import command.patientLoginCommand;
import command.patientRegCommand;
import command.patientTestCheckCommand;
import command.patientTestCommand;
import command.patientTestResCommand;
@WebServlet("/Fcontroller")
public class Fcontroller extends HttpServlet {
@@ -48,6 +55,14 @@ public class Fcontroller extends HttpServlet {
list.put("/patientCheck.do", new patientLoginCheckCommand()); // 환자 로그인 체크
list.put("/boardView.do", new BoardViewCommand()); // 데이터 보기 test 페이지
list.put("/UserList.do", new UserListCommand()); // 유저 리스트 보여주는 페이지
list.put("/patientInout.do", new patientInoutCommand()); // 외래입원 예약
list.put("/patientInoutCheck.do", new patientInoutCheckCommand()); // 외래입원 예약 체크
list.put("/patientInoutRes.do", new patientInoutResCommand()); // 입원외래 진료 결과
list.put("/patientTest.do", new patientTestCommand()); // 건강검진 검사 예약
list.put("/patientTestRes.do", new patientTestResCommand()); // 건강검진 검사 결과
list.put("/patientTestCheck.do", new patientTestCheckCommand()); // 건강검진 검사 결과
list.put("/UserMyList.do", new UserMyListCommand()); // 직원 개인 출퇴근 항목
//이 부분에 계속적으로 매핑을 추가하면 됨
}

View File

@@ -0,0 +1,57 @@
package patientInout;
import java.sql.SQLException;
import java.util.ArrayList;
import DB.BasicDao;
public class patientInoutDao extends BasicDao {
private final String patientInoutList = "SELECT * FROM patient_inout_tbl WHERE uw_ID = ?";
public ArrayList<patientInoutVo> select(patientInoutVo member) {
ArrayList<patientInoutVo> list = new ArrayList<patientInoutVo>();
try {
this.psmt = this.conn.prepareStatement("SELECT * FROM patient_inout_tbl WHERE pio_ID = ?");
this.psmt.setString(1, member.getPio_ID());
this.rs = this.psmt.executeQuery();
while(this.rs.next()) {
patientInoutVo vo = new patientInoutVo();
vo.setPio_ID(this.rs.getString("pio_ID"));
vo.setPio_name(this.rs.getString("pio_name"));
vo.setPio_state(this.rs.getString("pio_state"));
vo.setPio_divi(this.rs.getString("pio_divi"));
vo.setPio_date(this.rs.getString("pio_date"));
vo.setPio_time(this.rs.getString("pio_time"));
vo.setPio_res(this.rs.getString("pio_res"));
vo.setPio_ok(this.rs.getString("pio_ok"));
list.add(vo);
}
} catch (SQLException var3) {
var3.printStackTrace();
}
return list;
}
public int patientInoutInsert(patientInoutVo member) {
int n = 0;
try {
this.psmt = this.conn.prepareStatement("INSERT into patient_inout_tbl(pio_ID,pio_name,pio_state,pio_divi,pio_date,pio_time,pio_ok) values(?,?,?,?,?,?,1)");
this.psmt.setString(1, member.getPio_ID());
this.psmt.setString(2, member.getPio_name());
this.psmt.setString(3, member.getPio_state());
this.psmt.setString(4, member.getPio_divi());
this.psmt.setString(5, member.getPio_date());
this.psmt.setString(6, member.getPio_time());
n = this.psmt.executeUpdate();
} catch (SQLException var4) {
var4.printStackTrace();
}
return n;
}
}

View File

@@ -0,0 +1,61 @@
package patientInout;
public class patientInoutVo {
public String pio_ID;
public String pio_name;
public String pio_state;
public String pio_divi;
public String pio_date;
public String pio_time;
public String pio_res;
public String pio_ok;
public String getPio_ID() {
return pio_ID;
}
public void setPio_ID(String pio_ID) {
this.pio_ID = pio_ID;
}
public String getPio_name() {
return pio_name;
}
public void setPio_name(String pio_name) {
this.pio_name = pio_name;
}
public String getPio_state() {
return pio_state;
}
public void setPio_state(String pio_state) {
this.pio_state = pio_state;
}
public String getPio_divi() {
return pio_divi;
}
public void setPio_divi(String pio_divi) {
this.pio_divi = pio_divi;
}
public String getPio_date() {
return pio_date;
}
public void setPio_date(String pio_date) {
this.pio_date = pio_date;
}
public String getPio_time() {
return pio_time;
}
public void setPio_time(String pio_time) {
this.pio_time = pio_time;
}
public String getPio_res() {
return pio_res;
}
public void setPio_res(String pio_res) {
this.pio_res = pio_res;
}
public String getPio_ok() {
return pio_ok;
}
public void setPio_ok(String pio_ok) {
this.pio_ok = pio_ok;
}
}

View File

@@ -4,7 +4,6 @@ import java.sql.SQLException;
import java.util.ArrayList;
import DB.BasicDao;
import UserJoin.UserJoinVo;
public class patientJoinDao extends BasicDao {
private final String patientJoinJoin_LIST = "SELECT * FROM patient_tbl";
@@ -59,6 +58,27 @@ public class patientJoinDao extends BasicDao {
return vo;
}
public patientJoinVo selectOne(patientJoinVo member) {
patientJoinVo vo = null;
try {
this.psmt = this.conn.prepareStatement("SELECT * FROM patient_tbl WHERE p_ID =?");
this.psmt.setString(1, member.getP_ID());
this.rs = this.psmt.executeQuery();
if (this.rs.next()) {
vo = new patientJoinVo();
String id = this.rs.getString("p_ID");
String name = this.rs.getString("p_name");
vo.setP_ID(id);
vo.setP_name(name);
}
} catch (SQLException var5) {
var5.printStackTrace();
}
return vo;
}
public int memberInsert(patientJoinVo member) {
int n = 0;
@@ -78,24 +98,7 @@ public class patientJoinDao extends BasicDao {
} catch (SQLException var4) {
var4.printStackTrace();
}
try {
this.psmt = this.conn.prepareStatement("INSERT into patient_test_tbl(pt_ID,pt_name) values(?,?)");
this.psmt.setString(1, member.getP_ID());
this.psmt.setString(2, member.getP_name());
n = this.psmt.executeUpdate();
} catch (SQLException var4) {
var4.printStackTrace();
}
try {
this.psmt = this.conn.prepareStatement("INSERT into patient_inout_tbl(pio_ID,pio_name) values(?,?)");
this.psmt.setString(1, member.getP_ID());
this.psmt.setString(2, member.getP_name());
n = this.psmt.executeUpdate();
} catch (SQLException var4) {
var4.printStackTrace();
}
return n;
}
}

View File

@@ -0,0 +1,59 @@
package patientTest;
import java.sql.SQLException;
import java.util.ArrayList;
import DB.BasicDao;
import patientInout.patientInoutVo;
public class patientTestDao extends BasicDao {
private final String patientTestList = "SELECT * FROM patient_test_tbl WHERE pt_ID = ?";
public ArrayList<patientTestVo> select(patientTestVo member) {
ArrayList<patientTestVo> list = new ArrayList<patientTestVo>();
try {
this.psmt = this.conn.prepareStatement("SELECT * FROM patient_test_tbl WHERE pt_ID = ?");
this.psmt.setString(1, member.getPt_ID());
this.rs = this.psmt.executeQuery();
while(this.rs.next()) {
patientTestVo vo = new patientTestVo();
vo.setPt_ID(this.rs.getString("pt_ID"));
vo.setPt_name(this.rs.getString("pt_name"));
vo.setPt_xray(this.rs.getString("pt_xray"));
vo.setPt_blood(this.rs.getString("pt_blood"));
vo.setPt_urine(this.rs.getString("pt_urine"));
vo.setPt_ct(this.rs.getString("pt_ct"));
vo.setPt_date(this.rs.getString("pt_date"));
vo.setPt_time(this.rs.getString("pt_time"));
vo.setPt_res(this.rs.getString("pt_res"));
vo.setPt_state(this.rs.getString("pt_state"));
list.add(vo);
}
} catch (SQLException var3) {
var3.printStackTrace();
}
return list;
}
public int patientTestInsert(patientTestVo member) {
int n = 0;
try {
this.psmt = this.conn.prepareStatement("INSERT into patient_test_tbl(pt_ID,pt_name,pt_date,pt_time,pt_state) values(?,?,?,?,1)");
this.psmt.setString(1, member.getPt_ID());
this.psmt.setString(2, member.getPt_name());
this.psmt.setString(3, member.getPt_date());
this.psmt.setString(4, member.getPt_time());
n = this.psmt.executeUpdate();
} catch (SQLException var4) {
var4.printStackTrace();
}
return n;
}
}

View File

@@ -0,0 +1,83 @@
package patientTest;
public class patientTestVo {
public String pt_num;
public String pt_ID;
public String pt_name;
public String pt_xray;
public String pt_blood;
public String pt_urine;
public String pt_ct;
public String pt_date;
public String pt_time;
public String pt_res;
public String pt_state;
public String getPt_num() {
return pt_num;
}
public void setPt_num(String pt_num) {
this.pt_num = pt_num;
}
public String getPt_ID() {
return pt_ID;
}
public void setPt_ID(String pt_ID) {
this.pt_ID = pt_ID;
}
public String getPt_name() {
return pt_name;
}
public void setPt_name(String pt_name) {
this.pt_name = pt_name;
}
public String getPt_xray() {
return pt_xray;
}
public void setPt_xray(String pt_xray) {
this.pt_xray = pt_xray;
}
public String getPt_blood() {
return pt_blood;
}
public void setPt_blood(String pt_blood) {
this.pt_blood = pt_blood;
}
public String getPt_urine() {
return pt_urine;
}
public void setPt_urine(String pt_urine) {
this.pt_urine = pt_urine;
}
public String getPt_ct() {
return pt_ct;
}
public void setPt_ct(String pt_ct) {
this.pt_ct = pt_ct;
}
public String getPt_date() {
return pt_date;
}
public void setPt_date(String pt_date) {
this.pt_date = pt_date;
}
public String getPt_time() {
return pt_time;
}
public void setPt_time(String pt_time) {
this.pt_time = pt_time;
}
public String getPt_res() {
return pt_res;
}
public void setPt_res(String pt_res) {
this.pt_res = pt_res;
}
public String getPt_state() {
return pt_state;
}
public void setPt_state(String pt_state) {
this.pt_state = pt_state;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

View File

@@ -95,24 +95,23 @@
</div>
</td>
</tr>
<tr>
<th scope="row">직책</th>
<td colspan="3">
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="u_post_0" name="u_post" value="사원">&nbsp;&nbsp;&nbsp;
<td>
<div class="custom-control custom-radio custom-control-inline">
<input class="custom-control-input" type="radio" id="u_post_0" name="u_post" value="사원" checked>
<label class="custom-control-label" for="u_post_0">사원</label>
</div>
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="u_post_1" name="u_post" value="주임">&nbsp;&nbsp;&nbsp;
<div class="custom-control custom-radio custom-control-inline">
<input class="custom-control-input" type="radio" id="u_post_1" name="u_post"value="주임">
<label class="custom-control-label" for="u_post_1">주임</label>
</div>
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="u_post_2" name="u_post" value="대리">&nbsp;&nbsp;&nbsp;
<div class="custom-control custom-radio custom-control-inline">
<input class="custom-control-input" type="radio" id="u_post_2" name="u_post"value="대리">
<label class="custom-control-label" for="u_post_2">대리</label>
</div>
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="u_post_3" name="u_post" value="과장">&nbsp;&nbsp;&nbsp;
<div class="custom-control custom-radio custom-control-inline">
<input class="custom-control-input" type="radio" id="u_post_3" name="u_post"value="과장">
<label class="custom-control-label" for="u_post_3">과장</label>
</div>
</td>

View File

@@ -32,6 +32,9 @@
<tr>
<th scope="col">아이디</th>
<th scope="col">이름</th>
<th scope="col">부서</th>
<th scope="col">직책</th>
<th scope="col">생년월일</th>
<th scope="col">주소</th>
<th scope="col">전화</th>
<th scope="col">성별</th>
@@ -43,6 +46,9 @@
<tr>
<td>${member.u_ID}</td>
<td>${member.u_name}</td>
<td>${member.u_divi}</td>
<td>${member.u_post}</td>
<td>${member.u_birth}</td>
<td>${member.u_addr}</td>
<td>${member.u_phone}</td>
<td>${member.u_gender}</td>

View File

@@ -0,0 +1,62 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<jsp:include page="menu.jsp" />
<html>
<head>
<title>병원 종합 관리 시스템</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<div class="row d-flex justify-content-center">
<div class="col-md-6">
<br/>
<h1 class="text-center">근무 기록</h1>
<br/>
</div>
</div>
<div class="row d-flex justify-content-center">
<div class="col-12">
<table id="tb" class="table table-hover">
<c:choose>
<c:when test="${empty vo}">
<tr>
<td colspan="6" align="center"> 데이터가 없습니다.</td>
</tr>
</c:when>
<c:otherwise>
<thead class="thead-dark">
<tr>
<th scope="col">ID</th>
<th scope="col">이름</th>
<th scope="col">근무 시작 시간</th>
<th scope="col">근무 종료 시간</th>
<th scope="col">상태</th>
</tr>
</thead>
<tbody>
<c:forEach items="${vo}" var = "member">
<tr>
<td>${member.uw_ID}</td>
<td>${member.uw_name}</td>
<td>${member.uw_start}</td>
<td>${member.uw_finish}</td>
<td>${member.uw_state}</td>
</tr>
</c:forEach>
</tbody>
</c:otherwise>
</c:choose>
</table>
</div>
</div>
</div>
<br/>
<br/>
</body>
</html>
<jsp:include page="tail.jsp" />

View File

@@ -4,14 +4,35 @@
<html>
<head>
<meta charset="UTF-8">
<title>병원 관리 시스템</title>
<title> 병원 관리 시스템</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script type="text/javascript"></script>
<style>
body{
background-size:100%;
}
.main{
text-align :center;
}
</style>
</head>
<h1>A 병원</h1>
<input class="btn btn-UserJoin" type="button" value="임직원가입하기" onclick="location.href='UserReg.do'">&nbsp;&nbsp;
<input class="btn btn-UserLogin" type="button" value="임직원로그인" onclick="location.href='UserLogin.do'" >
<br>
<br>
<input class="btn btn-UserJoin" type="button" value="환자가입하기" onclick="location.href='patientReg.do'">&nbsp;&nbsp;
<input class="btn btn-UserLogin" type="button" value="환자로그인" onclick="location.href='patientlogin.do'" >
<body background = "KakaoTalk_20200624_145231741.jpg">
<div class="container">
<div class="row">
<div class="col-12 main">
<h1>병원 종합 관리 시스템</h1>
<input class="btn btn-success" type="button" value="임직원가입하기" onclick="location.href='UserReg.do'">&nbsp;&nbsp;
<input class="btn btn-success" type="button" value="임직원로그인" onclick="location.href='UserLogin.do'" >
<br>
<br>
<input class="btn btn-success" type="button" value="환자가입하기" onclick="location.href='patientReg.do'">&nbsp;&nbsp;
<input class="btn btn-success" type="button" value="환자로그인" onclick="location.href='patientlogin.do'" >
</div>
</div>
</div>
</body>
</html>

View File

@@ -1,5 +1,6 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
@@ -18,12 +19,16 @@
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="home.do">메인 <span class="sr-only">(current)</span></a>
</li>
<c:if test="${sessionScope.auth eq 'admin' }" >
<li class="nav-item">
<a class="nav-link" href="UserList.do">회원리스트</a>
</li>
</c:if>
<c:if test="${sessionScope.auth ne 'admin' }" >
<li class="nav-item">
<a class="nav-link" href="UserMyList.do">근무기록</a>
</li>
</c:if>
</ul>
<form class="form-inline my-2 my-lg-0">
</form>

View File

@@ -1,31 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Insert title here</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<link rel="stylesheet" href="css/menu.css">
<style>
.text-white{
font: 37px 'Nanum Gothic', sans-serif;
font-weight : bold;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col" style="background-color: #0289FF"><a class="text-white" href="home.do">홈</a></div>
<div class="col" style="background-color: #0289FF"><a class="text-white" href="memberList.do">회원 리스트</a></div>
<div class="col" style="background-color: #0289FF"><a class="text-white" href="boardList.do">자유게시판</a></div>
<div class="col" style="background-color: #0289FF"><a class="text-white" href="#">MENU03</a></div>
<div class="col" style="background-color: #0289FF"><a class="text-white" href="memberJoin.do">회원가입</a></div>
</div>
</div>
</body>
</html>

View File

@@ -1,106 +1,74 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<jsp:include page="patientMenu.jsp" />
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title> 환자 회원가입</title>
<title> 외래 or 입원</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script type="text/javascript">
function idValidCheck(){
document.getElementById('exampleModal').modal();
}
function formDataCheck(){
var form = document.frm;
if(form.name.value==""){
alert("사용자 이름을 입력하세요.");
form.p_name.focus();
return false;
}
if(form.id.value==""){
alert("사용자 아이디를 입력하세요.");
form.p_ID.focus();
return false;
}
if(form.pw.value==""){
alert("사용자 비밀번호를 입력하세요.");
form.p_psw.focus();
return false;
}
if(form.pwCheck.value==""){
alert("사용자 비밀번호 확인값을 입력하세요.");
form.p_pswCheck.focus();
return false;
}
<!-- form.submit(); button type -->
return true; <!-- submit type -->
}
</script>
<script type="text/javascript"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-12">
<br/>
<div><h1>환자 회원 가입</h1></div>
<div><h1>외래 or 입원</h1></div>
<br/>
<div>
<form id="frm" name="frm" action="patientJoin.do" method="post" onsubmit="return formDataCheck()">
<form id="frm" name="frm" action="patientInoutCheck.do" method="post" onsubmit="return formDataCheck()">
<div>
<table class="table">
<tbody>
<tr>
<th scope="row">환자성명</th><td colspan="3"><input class="form-control" style="width:30%" type="text" id="p_name" name="p_name" maxlength="10"></td>
</tr>
<tr>
<th scope="row">회원ID</th><td colspan="3"> <input class="form-control d-inline" style="width:30%" type="text" id="p_ID" name="p_ID" maxlength="10">&nbsp;&nbsp;<input class="btn btn-info" type="button" value="중복확인" onclick="idValidCheck()"></td>
</tr>
<tr>
<th scope="row">패스워드</th><td colspan="3"><input class="form-control" style="width:30%" id="p_psw" name="p_psw" type="password" size="10"></td>
</tr>
<tr>
<th scope="row">패스워드확인</th><td colspan="3"><input class="form-control" style="width:30%" id="p_pswCheck" name="p_pswCheck" type="password" size="10"></td>
</tr>
<tr>
<th scope="row">주소</th><td colspan="3"><input class="form-control" id="p_addr" name="p_addr" type="text" maxlength="50"></td>
</tr>
<tr>
<th scope="row">전화번호</th><td><input class="form-control" id="p_phone" name="p_phone" type="tel" style="width:30%" maxlength="15"></td>
</tr>
<tr>
<th scope="row">차량번호</th><td><input class="form-control" id="p_car_num" name="p_car_num" type="text" style="width:30%" maxlength="15"></td>
</tr>
<tr>
<th scope="row">생년월일</th><td><input class="form-control" id="p_birthYear" name="p_birthYear" type="date" style="width:30%" maxlength="6"></td>
</tr>
<tr>
<th scope="row">나이</th><td><input class="form-control" id="p_age" name="p_age" type="number" style="width:30%" maxlength="3"></td>
</tr>
<tr>
<th scope="row">성별</th>
<th scope="row">외래 or 입원</th>
<td>
<div class="custom-control custom-radio custom-control-inline">
<input class="custom-control-input" type="radio" id="male" name="p_gender" value="남성" checked>
<label class="custom-control-label" for="male">남성</label>
<input class="custom-control-input" type="radio" id="out" name="pio_state" value="외래" checked>
<label class="custom-control-label" for="out">외래</label>
</div>
<div class="custom-control custom-radio custom-control-inline">
<input class="custom-control-input" type="radio" id="female" name="p_gender"value="여성">
<label class="custom-control-label" for="female">여성</label>
<input class="custom-control-input" type="radio" id="in" name="pio_state"value="입원">
<label class="custom-control-label" for="in">입원</label>
</div>
</td>
</tr>
<tr>
<th scope="row">병과</th>
<td>
<div class="custom-control custom-radio custom-control-inline">
<input class="custom-control-input" type="radio" id="divi-1" name="pio_divi" value="내과" checked>
<label class="custom-control-label" for="divi-1">내과</label>
</div>
<div class="custom-control custom-radio custom-control-inline">
<input class="custom-control-input" type="radio" id="divi-2" name="pio_divi"value="외과">
<label class="custom-control-label" for="divi-2">외과</label>
</div>
<div class="custom-control custom-radio custom-control-inline">
<input class="custom-control-input" type="radio" id="divi-3" name="pio_divi"value="안과">
<label class="custom-control-label" for="divi-3">안과</label>
</div>
<div class="custom-control custom-radio custom-control-inline">
<input class="custom-control-input" type="radio" id="divi-4" name="pio_divi"value="치과">
<label class="custom-control-label" for="divi-4">치과</label>
</div>
</td>
</tr>
<tr>
<th scope="row">예약일</th><td><input class="form-control" id="pio_date" name="pio_date" type="date" style="width:30%" maxlength="6"></td>
</tr>
<tr>
<th scope="row">예약시간</th><td><input class="form-control" id="pio_time" name="pio_time" type="time" style="width:30%" maxlength="6"></td>
</tr>
</tbody>
</table>
</div>
<div>
<br/>
<input class="btn btn-success" type="submit" value="가입하기" >&nbsp;&nbsp;<input class="btn btn-danger" type="reset" value="취소" >&nbsp;&nbsp;<input class="btn btn-primary" type="button" value="홈" onclick="location.href='home.do'">
<input class="btn btn-success" type="submit" value="예약하기" >&nbsp;&nbsp;<input class="btn btn-danger" type="reset" value="취소" >&nbsp;&nbsp;
<br/>
<br/>
</div>
@@ -110,4 +78,5 @@
</div>
</div>
</body>
</html>
</html>
<jsp:include page="tail.jsp" />

View File

@@ -0,0 +1,12 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<jsp:forward page="/patientInoutRes.do"></jsp:forward>
</body>
</html>

View File

@@ -0,0 +1,65 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<jsp:include page="patientMenu.jsp" />
<html>
<head>
<title>병원 종합 관리 시스템</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<div class="row d-flex justify-content-center">
<div class="col-md-6">
<br/>
<h1 class="text-center">외래 or 입원 결과</h1>
<br/>
</div>
</div>
<div class="row d-flex justify-content-center">
<div class="col-12">
<table id="tb" class="table table-hover">
<c:choose>
<c:when test="${empty vo}">
<tr>
<td colspan="6" align="center"> 데이터가 없습니다.</td>
</tr>
</c:when>
<c:otherwise>
<thead class="thead-dark">
<tr>
<th scope="col">이름</th>
<th scope="col">외래 or 입원</th>
<th scope="col">병과</th>
<th scope="col">일자</th>
<th scope="col">시간</th>
<th scope="col">결과</th>
<th scope="col">비고</th>
</tr>
</thead>
<tbody>
<c:forEach items="${vo}" var = "member">
<tr>
<td>${member.pio_name}</td>
<td>${member.pio_state}</td>
<td>${member.pio_divi}</td>
<td>${member.pio_date}</td>
<td>${member.pio_time}</td>
<td>${member.pio_res}</td>
<td>${member.pio_ok}</td>
</tr>
</c:forEach>
</tbody>
</c:otherwise>
</c:choose>
</table>
</div>
</div>
</div>
<br/>
<br/>
</body>
</html>
<jsp:include page="tail.jsp" />

View File

@@ -15,23 +15,24 @@
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="home.do">메인 <span class="sr-only">(current)</span></a>
<li class="nav-item">
<a class="nav-link" href="patientInout.do">외래 or 입원</a>
</li>
<li class="nav-item">
<a class="nav-link" href="patientInoutRes.do">외래 or 입원 결과</a>
</li>
<li class="nav-item">
<a class="nav-link" href="UserList.do">일반병실</a>
<a class="nav-link" href="patientTest.do">건강검진</a>
</li>
<li class="nav-item">
<a class="nav-link" href="UserList.do">건강검진</a>
<li class="nav-item">
<a class="nav-link" href="patientTestRes.do">건강검진 결과</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
</form>
</div>
</nav>
</body>
</html>

View File

@@ -0,0 +1,49 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="patientMenu.jsp" />
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title> 건강검진</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script type="text/javascript"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-12">
<br/>
<div><h1>건강검진</h1></div>
<br/>
<div>
<form id="frm" name="frm" action="patientTestCheck.do" method="post" onsubmit="return formDataCheck()">
<div>
<table class="table">
<tbody>
<tr>
<th scope="row">예약일</th><td><input class="form-control" id="pt_date" name="pt_date" type="date" style="width:30%" maxlength="6"></td>
</tr>
<tr>
<th scope="row">예약시간</th><td><input class="form-control" id="pt_time" name="pt_time" type="time" style="width:30%" maxlength="6"></td>
</tr>
</tbody>
</table>
</div>
<div>
<br/>
<input class="btn btn-success" type="submit" value="예약하기" >&nbsp;&nbsp;<input class="btn btn-danger" type="reset" value="취소" >&nbsp;&nbsp;
<br/>
<br/>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
<jsp:include page="tail.jsp" />

View File

@@ -0,0 +1,12 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<jsp:forward page="/patientTestRes.do"></jsp:forward>
</body>
</html>

View File

@@ -0,0 +1,69 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<jsp:include page="patientMenu.jsp" />
<html>
<head>
<title>병원 종합 관리 시스템</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<div class="row d-flex justify-content-center">
<div class="col-md-6">
<br/>
<h1 class="text-center">건강검진 결과</h1>
<br/>
</div>
</div>
<div class="row d-flex justify-content-center">
<div class="col-12">
<table id="tb" class="table table-hover">
<c:choose>
<c:when test="${empty vo}">
<tr>
<td colspan="6" align="center"> 데이터가 없습니다.</td>
</tr>
</c:when>
<c:otherwise>
<thead class="thead-dark">
<tr>
<th scope="col">이름</th>
<th scope="col">예약일</th>
<th scope="col">예약 시간</th>
<th scope="col">엑스레이</th>
<th scope="col">피검사</th>
<th scope="col">소변검사</th>
<th scope="col">CT촬영</th>
<th scope="col">결과</th>
<th scope="col">비고</th>
</tr>
</thead>
<tbody>
<c:forEach items="${vo}" var = "member">
<tr>
<td>${member.pt_name}</td>
<td>${member.pt_date}</td>
<td>${member.pt_time}</td>
<td>${member.pt_xray}</td>
<td>${member.pt_blood}</td>
<td>${member.pt_urine}</td>
<td>${member.pt_ct}</td>
<td>${member.pt_res}</td>
<td>${member.pt_state}</td>
</tr>
</c:forEach>
</tbody>
</c:otherwise>
</c:choose>
</table>
</div>
</div>
</div>
<br/>
<br/>
</body>
</html>
<jsp:include page="tail.jsp" />