資源簡介
醫院管理系統 可用于掛號 收費等功能 可以查詢 修改 插入 信息

代碼片段和文件信息
package?hospital;
import?java.io.IOException;
import?java.io.PrintWriter;
import?java.sql.ResultSet;
import?java.sql.SQLException;
import?java.util.Date;
import?javax.servlet.ServletException;
import?javax.servlet.http.HttpServlet;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;
import?javax.servlet.http.HttpSession;
public?class?Charge?extends?HttpServlet?{
/**
?*?Constructor?of?the?object.
?*/
public?Charge()?{
super();
}
/**
?*?Destruction?of?the?servlet.?
?*/
public?void?destroy()?{
super.destroy();?//?Just?puts?“destroy“?string?in?log
//?Put?your?code?here
}
/**
?*?The?doGet?method?of?the?servlet.?
?*
?*?This?method?is?called?when?a?form?has?its?tag?value?method?equals?to?get.
?*?
?*?@param?request?the?request?send?by?the?client?to?the?server
?*?@param?response?the?response?send?by?the?server?to?the?client
?*?@throws?ServletException?if?an?error?occurred
?*?@throws?IOException?if?an?error?occurred
?*/
public?void?doGet(HttpServletRequest?request?HttpServletResponse?response)
throws?ServletException?IOException?{
response.setContentType(“text/html“);
PrintWriter?out?=?response.getWriter();
out
.println(““);
out.println(““);
out.println(“??tle>A?Servlet tle>“);
out.println(“??“);
out.print(“????This?is?“);
out.print(this.getClass());
out.println(“?using?the?GET?method“);
out.println(“??“);
out.println(““);
out.flush();
out.close();
}
/**
?*?The?doPost?method?of?the?servlet.?
?*
?*?This?method?is?called?when?a?form?has?its?tag?value?method?equals?to?post.
?*?
?*?@param?request?the?request?send?by?the?client?to?the?server
?*?@param?response?the?response?send?by?the?server?to?the?client
?*?@throws?ServletException?if?an?error?occurred
?*?@throws?IOException?if?an?error?occurred
?*/
public?void?doPost(HttpServletRequest?request?HttpServletResponse?response)
throws?ServletException?IOException?{
request.setCharacterEncoding(“gb2312“);
String?chargeid=request.getParameter(“chargeid“);
String?regid=request.getParameter(“regid“);
String?name=request.getParameter(“name“);
Date?date=new?Date();
String?chargetime=date.toLocaleString();
double?money=Double.parseDouble(request.getParameter(“money“));
HttpSession?session=request.getSession();
ResultSet?rss=(ResultSet)session.getAttribute(“res“);
String?sql=“insert?into?hospital.charge(chargeidregidnamemoneychargetime)?values?(‘“+chargeid+“‘‘“+regid+“‘‘“+name+“‘‘“+money+“‘‘“+chargetime+“‘)“;
Dbconn?db=new?Dbconn();
db.execute(sql);
db.charge(rss);
response.sendRedirect(“/hospital/ins/charge_complete.jsp“);
}
/*try?{
rss.beforeFirst();
if(rss.next())
{
response.sendRedirect(“/hospital/ins/11.jsp“);
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????8212??2006-06-04?12:51??醫院管理系統\hospital\web.xm
?????文件????????720??2006-05-31?07:45??醫院管理系統\hospital\admin.jsp
?????文件???????1152??2006-05-31?07:45??醫院管理系統\hospital\room_regnum.jsp
?????文件???????1172??2006-05-31?11:19??醫院管理系統\hospital\drug_num.jsp
?????文件???????1782??2006-06-06?16:22??醫院管理系統\hospital\loginok.jsp
?????文件????????897??2006-06-04?15:02??醫院管理系統\hospital\news_view.jsp
?????文件???????1808??2006-06-07?00:33??醫院管理系統\hospital\index.jsp
?????文件???????1546??2006-05-29?14:00??醫院管理系統\hospital\loginerror.jsp
?????文件????????607??2006-05-30?14:01??醫院管理系統\hospital\ins\drugadd_error.jsp
?????文件????????607??2006-05-30?14:02??醫院管理系統\hospital\ins\drugadd_ok.jsp
?????文件???????1254??2006-06-04?13:54??醫院管理系統\hospital\ins\doc_reg.jsp
?????文件????????558??2006-05-29?11:39??醫院管理系統\hospital\ins\index_login.jsp
?????文件???????1976??2006-05-30?17:29??醫院管理系統\hospital\ins\drug_queryok.jsp
?????文件????????440??2006-05-30?16:28??醫院管理系統\hospital\ins\drug_queryerror.jsp
?????文件???????2135??2006-05-30?17:06??醫院管理系統\hospital\ins\drug_change.jsp
?????文件????????542??2006-05-30?15:53??醫院管理系統\hospital\ins\loginok_drug.jsp
?????文件???????1025??2006-05-30?16:27??醫院管理系統\hospital\ins\drug_query.jsp
?????文件????????467??2006-05-30?20:56??醫院管理系統\hospital\ins\doc_drug.jsp
?????文件???????1513??2006-06-06?17:13??醫院管理系統\hospital\ins\register.jsp
?????文件????????626??2006-05-31?08:21??醫院管理系統\hospital\ins\loginok_doc.jsp
?????文件????????648??2006-05-31?10:04??醫院管理系統\hospital\ins\loginok_charge.jsp
?????文件???????2193??2006-06-04?14:00??醫院管理系統\hospital\ins\loginok_reg.jsp
?????文件????????613??2006-05-31?08:28??醫院管理系統\hospital\ins\doc_regerror.jsp
?????文件????????619??2006-05-31?08:28??醫院管理系統\hospital\ins\charge_error.jsp
?????文件????????333??2006-05-29?16:07??醫院管理系統\hospital\ins\login_loginok.jsp
?????文件???????2055??2006-06-04?13:56??醫院管理系統\hospital\ins\charge_ok.jsp
?????文件????????601??2006-05-31?09:59??醫院管理系統\hospital\ins\charge_complete.jsp
?????文件???????1659??2006-06-04?13:57??醫院管理系統\hospital\ins\drug_add.jsp
?????文件????????397??2006-06-04?15:22??醫院管理系統\hospital\ins\ins_1.jsp
?????文件????????613??2006-05-29?21:52??醫院管理系統\hospital\ins\patient_error.jsp
............此處省略45個文件信息
- 上一篇:青鳥租房網系統
- 下一篇:開源3D游戲引擎 HXEngine
評論
共有 條評論