📄 app_005fcancel_jsp.java
字号:
package org.apache.jsp.patient;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import java.util.Vector;
import com.hospital.web.patient;
public final class app_005fcancel_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
String use=(String)session.getAttribute("username");
if ( use == null || use.equals("") ){
response.sendRedirect("login.jsp");
}
out.write('\r');
out.write('\n');
com.hospital.web.patient app = null;
synchronized (_jspx_page_context) {
app = (com.hospital.web.patient) _jspx_page_context.getAttribute("app", PageContext.PAGE_SCOPE);
if (app == null){
app = new com.hospital.web.patient();
_jspx_page_context.setAttribute("app", app, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
String mess="";
String did2="";
int day2=0;
int week2=0;
int isam2=0;
if (request.getParameter("action")!=null &&request.getParameter("action").equals("del")){
did2=request.getParameter("did1");
week2=Integer.parseInt(request.getParameter("week1"));
day2=Integer.parseInt(request.getParameter("day1"));
isam2=Integer.parseInt(request.getParameter("isam1"));
app.setIc(use);
mess=app.delapp(did2,week2,day2,isam2);
if (mess=="") {
mess = "删除操作成功";
}
}
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>患者页面</title>\r\n");
out.write("\r\n");
out.write("ID号:");
out.print(use);
out.write('\r');
out.write('\n');
out.print(mess);
out.write('\r');
out.write('\n');
out.print(app.datetime());
out.write("\r\n");
out.write("</head>\r\n");
out.write("<body >\r\n");
out.write(" <td align=\"left\" width=\"23%\" valign=\"center\"> \r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"left\"><a href=\"main.jsp\">回病人首页</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td align=\"left\"><a href=\"updateinfo.jsp\">修改个人信息</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td align=\"left\"><a href=\"doctorsearch.jsp\">医生预约查询</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td align=\"left\"><a href=\"app_cancel.jsp\">患者预约信息</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td align=\"left\"><a href=\"logout.jsp\">退出</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write(" <table width=\"40%\" border=\"1\" cellspacing=\"1\" cellpadding=\"1\" align=center>\r\n");
out.write(" <tr align=\"center\"> \r\n");
out.write(" <td>Doctor ID</td>\r\n");
out.write(" <td>周次</td>\r\n");
out.write(" <td>星期几</td>\r\n");
out.write("\t\t\t<td>上下午</td>\r\n");
out.write("\t\t\t<td>操作</td>\r\n");
out.write(" </tr>\r\n");
String mesf="";
String str1="";
String str2="";
int j=0;
app.setIc(use);
mesf=app.appinfo();
if(mesf==""){
for(j=0;j<app.getSearchlist_1().size();j++){
patient applist=(patient)app.getSearchlist_1().elementAt(j);
if(applist.getWeek()==0)
str1="本周";
else
str1="下周";
if(applist.getIsam()==0)
str2="上午";
else
str2="下午";
out.write("\r\n");
out.write("\r\n");
out.write(" \t <tr>\r\n");
out.write(" <td align=center>");
out.print(applist.getDid());
out.write("</td>\r\n");
out.write(" <td align=center>");
out.print(str1);
out.write("</td>\r\n");
out.write(" <td align=center>周");
out.print(applist.getDay());
out.write("</td>\r\n");
out.write(" <td align=center>");
out.print(str2);
out.write("</td>\r\n");
out.write(" <td align=center><a href=\"app_cancel.jsp?week1=");
out.print(applist.getWeek());
out.write("&isam1=");
out.print(applist.getIsam());
out.write("&day1=");
out.print(applist.getDay());
out.write("&did1=");
out.print(applist.getDid());
out.write("&action=del\" onclick=\"return(confirm('你真的要删除这个用户?'))\">删除</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" \t");
}
}
out.write("\r\n");
out.write("</table>\r\n");
out.write(" \r\n");
out.write("</body>\r\n");
out.write("</html>");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -