资源简介
简单的酒店预订系统,可以完成酒店预订和客房查询工作,jsp,mysql(需自行修改),struts
http://blog.sina.com.cn/msl1121
代码片段和文件信息
package com.hnkj.hm.action;
import com.hnkj.hm.dao.IAdminDAO;
import com.hnkj.hm.dao.impl.AdminDAO;
import com.hnkj.hm.vo.AdminVO;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
/**
*
* title: HM System 客房预定
*
*
*
* Description: AdminAction 逻辑层的交互
*
*
*
* Copyright: Copyright (c) 2009
*
*
*
* Company:
*
×
*
* Author: tjy
*
*
* @version 1.0
* @createDate 2009-5-2 下午17:47:40
* @updateDate
* @updateDes
*/
public class AdminAction extends ActionSupport implements ModelDriven {
private static final long serialVersionUID = 7985088648255987874L;
private AdminVO adminVo = new AdminVO();
/**
* 获取模型驱动BEAN
*
* @return AdminVO
*/
public AdminVO getModel() {
return adminVo;
}
/**
*
* @return String SUCCESS 表示成功 INPUT 表示失败
* @throws Exception
*/
public String adminLogin() throws Exception {
String userName = adminVo.getUserName();
String password = adminVo.getPassword();
if (null == userName || ““.equals(userName)) {
return INPUT;
}
if (null == password || ““.equals(password)) {
return INPUT;
}
IAdminDAO admindao = new AdminDAO();
boolean isSuccess = admindao.findAdminById(userName password);
if (isSuccess) {
return SUCCESS;
} else {
return INPUT;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1094 2009-05-18 20:35 HotelManager\HotelManager\.classpath
文件 309 2009-05-18 20:35 HotelManager\HotelManager\.myme
文件 1230 2009-04-28 22:05 HotelManager\HotelManager\.project
文件 5147 2009-04-27 22:43 HotelManager\HotelManager\.settings\org.eclipse.jdt.ui.prefs
文件 1453 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\action\AdminAction.java
文件 5547 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\action\AdminHotelAction.java
文件 2393 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\action\AdminReserveAction.java
文件 3144 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\action\AdminRoomAction.java
文件 1326 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\action\AdminUserAction.java
文件 1817 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\action\HotelAction.java
文件 3428 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\action\ReserveAction.java
文件 1179 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\action\RoomAction.java
文件 1723 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\action\UserAction.java
文件 188 2009-12-25 18:15 HotelManager\HotelManager\src\com\hnkj\hm\bean\ep_schedule_task.txt
文件 1598 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\bean\GenericTable.java
文件 3550 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\bean\PageBean.java
文件 310 2009-05-02 13:45 HotelManager\HotelManager\src\com\hnkj\hm\bean\PageNum.java
文件 1973 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\bean\TableSummary.java
文件 989 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\dao\IAdminDAO.java
文件 1063 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\dao\IEmployeeDAO.java
文件 1091 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\dao\IHotelDAO.java
文件 1733 2010-04-02 20:53 HotelManager\HotelManager\src\com\hnkj\hm\dao\impl\AdminDAO.java
文件 770 2009-05-03 09:47 HotelManager\HotelManager\src\com\hnkj\hm\dao\impl\EeployeeDAO.java
文件 9911 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\dao\impl\HotelDAO.java
文件 5053 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\dao\impl\ReserveDAO.java
文件 5806 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\dao\impl\RoomDAO.java
文件 4141 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\dao\impl\UserDAO.java
文件 1101 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\dao\IReserveDAO.java
文件 1057 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\dao\IRoomDAO.java
文件 1339 2009-12-31 11:01 HotelManager\HotelManager\src\com\hnkj\hm\dao\IUserDAO.java
............此处省略192个文件信息
评论
共有 条评论