【JSP开源代码栏目提醒】:本文主要为网学会员提供finishHistory.jsp,希望对需要finishHistory.jsp网友有所帮助,学习一下!
<%@ page contentType="text/html; charset=gbk"%><%@ include file = "../include/ccs.inc" %>
<%@ page import="hospital.db.dboperation.*" %>
<%@ page import="hospital.db.*" %>
<%@ page import="java.sql.*" %>
<html>
<head>
<title>医院门诊预约系统-结束治疗</title>
</head>
<%
String _finishHistory="";
Doctor doctor=(Doctor)session.getAttribute("doctor");
int hid=Integer.parseInt(request.getParameter("hid"));
if(doctor==null)
_finishHistory="请先<a href=\"/hospital/doctor/login.jsp\">登录</a>";
else
{
int u=doctor.finishHistory(hid);
switch(u){
case 1:
_finishHistory="修改成功";
break;
case 0:
_finishHistory="一般异常";
break;
case -1:
_finishHistory="数据库异常";
break;
case -2:
_finishHistory="非法HID值或无权结束该病人病历";
break;
}
}
%>
<body bgcolor="#FFFFFF">
<table width="770" height="423" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr>
<td height="421" bgcolor="#FFFFFF"><%@ include file = "../include/head.inc" %>
<table width="770" height="290" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%@ include file = "../include/doctor.inc" %>
<td width="603" align="center" valign="top">
<table width="100%" height="85%" border="0" cellpadding="3" cellspacing="1" bgcolor="#666666">
<tr>
<td width="488" height="257" align="center" valign="top" bgcolor="E3EDFF"><br>
<%=_finishHistory%>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<%
if(doctor!=null)
doctor.closeConnection();
%>