-
大小: 11.44MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-07-25
- 语言: Java
- 标签:
资源简介
里面的数据流程比较的清晰.界面也比较的朴素.适合做宠物医院的同学参考...
代码片段和文件信息
package com.jb.cdjj.x25.create.pethospital.action.czh;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.jb.cdjj.x25.create.pethospital.bean.PetIllResumebean;
import com.jb.cdjj.x25.create.pethospital.dao.czh.PetIllResumeDAO;
import com.jb.cdjj.x25.create.pethospital.util.Tool;
/**
*
* 描述:前台添加病历表
*
* @author Dtscal
*
* 创建日期:2008-11-2
*
*/
public class AddpetIllResumeservlet extends javax.servlet.http.HttpServlet
implements javax.servlet.Servlet {
static final long serialVersionUID = 1L;
/*
* (non-Java-doc)
*
* @see javax.servlet.http.HttpServlet#HttpServlet()
*/
public AddpetIllResumeservlet() {
super();
}
protected void doGet(HttpServletRequest request
HttpServletResponse response) throws ServletException IOException {
}
protected void doPost(HttpServletRequest request
HttpServletResponse response) throws ServletException IOException {
//中文处理
request.setCharacterEncoding(“UTF-8“);
response.setCharacterEncoding(“UTF-8“);
//接受文本框
int hostId = Tool.strToInt(request.getParameter(“hostId“));
int petId = Tool.strToInt(request.getParameter(“petId“));
int employeeId = Tool.strToInt(request.getParameter(“employeeId“));
String petIll = request.getParameter(“petIll“);
String petIllDeal = request.getParameter(“petIllDeal“);
int roomId = Tool.strToInt(request.getParameter(“roomId“));
//封装实体
PetIllResumebean illbean = new PetIllResumebean();
illbean.setHostId(hostId);
illbean.setPetId(petId);
illbean.setEmployeeId(employeeId);
illbean.setPetIll(petIll);
illbean.setPetIllDeal(petIllDeal);
illbean.setRoomId(roomId);
PetIllResumeDAO illdao = new PetIllResumeDAO();
//如果成功
if(illdao.addPetIllReaume(illbean)){
request.setAttribute(“info“ “诊断完毕!“);
request.getRequestDispatcher(“/admin/succeed.jsp“).forward(request response);
return;
}else{
request.setAttribute(“eror“ “诊断未完成请稍后...“);
request.getRequestDispatcher(“/admin/errorpage.jsp“).forward(request response);
return;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 548 2008-10-26 18:28 PetHospital\.classpath
文件 856 2008-11-04 10:38 PetHospital\.project
文件 386 2008-11-07 10:50 PetHospital\.settings\org.eclipse.core.resources.prefs
文件 330 2008-10-26 18:28 PetHospital\.settings\org.eclipse.jdt.core.prefs
文件 288 2008-10-26 18:28 PetHospital\.settings\org.eclipse.jst.common.project.facet.core.prefs
文件 450 2008-10-26 18:28 PetHospital\.settings\org.eclipse.wst.common.component
文件 269 2008-10-26 18:28 PetHospital\.settings\org.eclipse.wst.common.project.facet.core.xm
目录 0 2008-11-01 13:29 PetHospital\.settings
文件 2752 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\AddpetIllResumeservlet.class
文件 2003 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\DeleteOneMessageservlet.class
文件 3990 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\DoRegister.class
文件 2240 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\GetOneAdminMessageservlet.class
文件 3129 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\GetPetIllResumeInfoByFarrierId.class
文件 2862 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\MessageInfoservlet.class
文件 1651 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\PetLogoutservlet.class
文件 2267 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\PetUpdateservlet.class
文件 2054 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\PetUpdateShowservlet.class
文件 2642 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\Revertservlet.class
文件 3057 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\ShowMessageservlet.class
文件 2179 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\ShowOneMessageservlet.class
文件 1953 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh\ShowTopicservlet.class
目录 0 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\czh
文件 3996 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\fgw\AddEmployeeInfoservlet.class
文件 1782 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\fgw\AddRoomservlet.class
文件 2111 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\fgw\DelectEmployeeInfoservlet.class
文件 2209 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\fgw\GetAllRoomInfoservlet.class
文件 2727 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\fgw\SelectByNameEmployeeservlet.class
文件 2830 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\fgw\SelectEmployeeservlet.class
文件 2889 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\fgw\UpdateEmployeeInfoservlet.class
文件 4133 2008-11-07 02:06 PetHospital\build\classes\com\jb\cdjj\x25\create\pethospital\action\fgw\UpdateEmployeeservlet.class
............此处省略671个文件信息
评论
共有 条评论