91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 5.01MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-11-06
  • 語言: Java
  • 標(biāo)簽: 會(huì)議??

資源簡介

JSP會(huì)議室預(yù)約系統(tǒng)的用戶分為管理員、員工兩個(gè)角色,管理員的主要功能有:管理部門信息、員工信息、會(huì)議室信息及系統(tǒng)公告信息;員工的主要功能有:查看系統(tǒng)公告,預(yù)訂會(huì)議室及取消相關(guān)預(yù)訂操作。

資源截圖

代碼片段和文件信息

package?com.action;

import?java.io.IOException;
import?java.sql.ResultSet;
import?java.util.ArrayList;
import?java.util.List;

import?javax.servlet.RequestDispatcher;
import?javax.servlet.ServletConfig;
import?javax.servlet.ServletException;
import?javax.servlet.http.HttpServlet;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;

import?com.dao.DB;
import?com.orm.TAdmin;
public?class?admin_servlet?extends?HttpServlet
{
public?void?service(HttpServletRequest?reqHttpServletResponse?res)throws?ServletException?IOException?
{
????????String?type=req.getParameter(“type“);

if(type.endsWith(“adminMana“))
{
adminMana(req?res);
}
if(type.endsWith(“adminAdd“))
{
adminAdd(req?res);
}
if(type.endsWith(“adminDel“))
{
adminDel(req?res);
}
}

public?void?adminMana(HttpServletRequest?reqHttpServletResponse?res)?throws?ServletException?IOException
{
List?adminList=new?ArrayList();
String?sql=“select?*?from?t_admin“;
object[]?params={};
DB?mydb=new?DB();
try
{
mydb.doPstm(sql?params);
ResultSet?rs=mydb.getRs();
while(rs.next())
{
TAdmin?admin=new?TAdmin();
admin.setUserId(rs.getInt(“userId“));
admin.setUserName(rs.getString(“userName“));
admin.setUserPw(rs.getString(“userPw“));
adminList.add(admin);
????}
rs.close();
}
catch(Exception?e)
{
e.printStackTrace();
}
mydb.closed();

req.setAttribute(“adminList“?adminList);
req.getRequestDispatcher(“admin/admin/adminMana.jsp“).forward(req?res);
}
public?void?adminAdd(HttpServletRequest?reqHttpServletResponse?res)
{
String?userName=req.getParameter(“userName“);
String?userPw=req.getParameter(“userPw“);
String?sql=“insert?into?t_admin?values(??)“;
object[]?params={userNameuserPw};
DB?mydb=new?DB();
mydb.doPstm(sql?params);
mydb.closed();

req.setAttribute(“message“?“操作成功“);
req.setAttribute(“path“?“admin?type=adminMana“);

????????String?targetURL?=?“/common/success.jsp“;
dispatch(targetURL?req?res);
}

public?void?adminDel(HttpServletRequest?reqHttpServletResponse?res)
{
System.out.println(req.getParameter(“userId“)+“**“);
String?sql=“delete?from?t_admin?where?userId=“+Integer.parseInt(req.getParameter(“userId“));
object[]?params={};
DB?mydb=new?DB();
mydb.doPstm(sql?params);
mydb.closed();

req.setAttribute(“message“?“操作成功“);
req.setAttribute(“path“?“admin?type=adminMana“);

????????String?targetURL?=?“/common/success.jsp“;
dispatch(targetURL?req?res);
}

public?void?dispatch(String?targetURIHttpServletRequest?requestHttpServletResponse?response)?
{
RequestDispatcher?dispatch?=?getServletContext().getRequestDispatcher(targetURI);
try?
{
????dispatch.forward(request?response);
????return;
}?
catch?(ServletException?e)?
{
????????????????????e.printStackTrace();
}?
ca

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件???????2290??2018-06-09?06:23??會(huì)議預(yù)約系統(tǒng)\db_hysyd.sql

?????文件???????1632??2018-06-03?04:10??會(huì)議預(yù)約系統(tǒng)\hysyd\.classpath

?????文件????????552??2018-06-03?15:09??會(huì)議預(yù)約系統(tǒng)\hysyd\.externalToolBuilders\org.eclipse.wst.common.project.facet.core.builder?(2).launch

?????文件????????548??2018-06-04?05:38??會(huì)議預(yù)約系統(tǒng)\hysyd\.externalToolBuilders\org.eclipse.wst.jsdt.core.javascriptValidator?(8).launch

?????文件????????288??2018-06-02?22:32??會(huì)議預(yù)約系統(tǒng)\hysyd\.mymetadata

?????文件???????2218??2018-06-09?15:49??會(huì)議預(yù)約系統(tǒng)\hysyd\.project

?????文件????????500??2018-06-05?00:55??會(huì)議預(yù)約系統(tǒng)\hysyd\.settings\.jsdtscope

?????文件????????629??2018-06-02?17:32??會(huì)議預(yù)約系統(tǒng)\hysyd\.settings\org.eclipse.jdt.core.prefs

?????文件????????453??2018-06-01?23:55??會(huì)議預(yù)約系統(tǒng)\hysyd\.settings\org.eclipse.wst.common.component

?????文件????????252??2018-06-10?06:37??會(huì)議預(yù)約系統(tǒng)\hysyd\.settings\org.eclipse.wst.common.project.facet.core.xml

?????文件?????????49??2018-06-03?18:13??會(huì)議預(yù)約系統(tǒng)\hysyd\.settings\org.eclipse.wst.jsdt.ui.superType.container

?????文件??????????6??2018-06-07?14:32??會(huì)議預(yù)約系統(tǒng)\hysyd\.settings\org.eclipse.wst.jsdt.ui.superType.name

?????文件???????3217??2018-06-11?01:36??會(huì)議預(yù)約系統(tǒng)\hysyd\src\com\action\admin_servlet.java

?????文件???????2124??2018-06-03?04:18??會(huì)議預(yù)約系統(tǒng)\hysyd\src\com\dao\DB.java

?????文件????????477??2018-06-05?01:20??會(huì)議預(yù)約系統(tǒng)\hysyd\src\com\orm\Huiyishi.java

?????文件???????1214??2018-06-01?09:32??會(huì)議預(yù)約系統(tǒng)\hysyd\src\com\util\EncodingFilter.java

?????文件???????2854??2018-06-06?19:02??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\admin\gonggao\gonggaoAdd.jsp

?????文件???????2544??2018-06-09?08:18??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\admin\gonggao\gonggaoAll.jsp

?????文件????????883??2018-06-08?14:07??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\admin\gonggao\gonggaoDetail.jsp

?????文件???????3329??2018-06-08?09:00??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\admin\gonggao\gonggaoMana.jsp

?????文件???????1214??2018-06-05?19:46??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\admin\index.jsp

?????文件???????5648??2018-06-04?03:57??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\admin\left.jsp

?????文件???????1735??2018-06-09?11:40??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\admin\org\addOrg.jsp

?????文件???????1985??2018-06-07?18:28??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\admin\org\orgAll.jsp

?????文件???????3853??2018-06-05?12:50??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\admin\org\orgAll1.jsp

?????文件???????3068??2018-06-08?17:48??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\admin\org\orgMana.jsp

?????文件??????????0??2018-06-06?17:33??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\admin\right.jsp

?????文件??????10334??2018-06-09?11:01??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\admin\top.jsp

?????文件????????821??2018-06-10?20:44??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\common\msg.jsp

?????文件????????975??2018-06-05?01:56??會(huì)議預(yù)約系統(tǒng)\hysyd\WebRoot\common\none.jsp

............此處省略835個(gè)文件信息

評(píng)論

共有 條評(píng)論