10087基于JSP开发的电影票预订系统

代码:
鏈-椄:https://pan@baidu@com/s/11qEwMtFAmmwMDLQO_Pbk2Q (把@换成 . 就可正常访问)
趧-紶-碼:6886
f/u枝此段-吶傛打开baidu網盤手机App,caozuo更方便哦

技术
JAVA + JSP

工具
eclipse + tomact + mysql + jdk

功能详情

前台功能 后台功能
系统首页 系统属性
我的订票车 修改密码
我的订票 用户管理
我的信息 电影类别
留言板 电影票管理
进入后台 订单管理
留言管理
退出系统

系统相关截图

● 系统首页


● 后台首页

package com.service.impl;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.dao.DepartmentDao;
import com.entity.Department;
import com.entity.PageBean;
import com.service.DepartmentService;
/**

  • 部门管理的业务层实现类
  • @author hope
    */

@Transactional
public class DepartmentServiceImpl implements DepartmentService {
// 注入serviceDao
private DepartmentDao departmentDao;

public void setDepartmentDao(DepartmentDao departmentDao) {this.departmentDao = departmentDao;
}@Override
/*** 分页查询部门的方法*/
public PageBean<Department> findByPage(Integer currPage) {PageBean<Department> pageBean = new PageBean<Department>();// 封装当前页数pageBean.setCurrPage(currPage);// 封装每页记录数int pageSize = 3;pageBean.setPageSize(pageSize);// 封装总记录数int totalCount = departmentDao.findCount();pageBean.setTotalCount(totalCount);// 封装页数int totalPage;if(totalCount%pageSize == 0){totalPage = totalCount/pageSize;}else{totalPage = totalCount/pageSize+1; }pageBean.setTotalPage(totalPage);// 封装当前页记录int begin= (currPage - 1)*pageSize;List<Department> list = departmentDao.findByPage(begin, pageSize);pageBean.setList(list);return pageBean;
}@Override
/*** 添加部门的业务层实现*/
public void save(Department department) {// TODO Auto-generated method stubdepartmentDao.save(department);
}@Override
/*** 根据id查询部门的业务层实现*/
public Department findById(Integer did) {// TODO Auto-generated method stubreturn departmentDao.findById(did);
}@Override
/*** 更新部门的业务层实现*/
public void update(Department department) {// TODO Auto-generated method stubdepartmentDao.update(department);
}@Override
/*** 删除部门的业务层实现*/
public void delete(Department department) {// TODO Auto-generated method stubdepartmentDao.delete(department);
}@Override
/*** 业务层查询所有部门*/
public List<Department> findAll() {// TODO Auto-generated method stubreturn departmentDao.findAll();
}

}
package com.service.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.transaction.annotation.Transactional;

import com.dao.DepartmentDao;
import com.dao.EmployeeDao;
import com.entity.Department;
import com.entity.Employee;
import com.entity.PageBean;
import com.service.EmployeeService;
@Transactional
public class EmployeeServiceImpl implements EmployeeService {
private EmployeeDao employeeDao;

public void setEmployeeDao(EmployeeDao employeeDao) {this.employeeDao = employeeDao;
}@Override
/*** 业务层登录方法*/
public Employee login(Employee employee) {// TODO Auto-generated method stubEmployee eEmployee = employeeDao.findByUsernameAndPassword(employee);return eEmployee;
}@Override
/*** 业务层查询指定页面方法*/
public PageBean<Employee> findByPage(Integer currPage) {// TODO Auto-generated method stubPageBean<Employee> pageBean = new PageBean<Employee>();// 封装当前页数pageBean.setCurrPage(currPage);// 封装每页记录数int pageSize = 3;pageBean.setPageSize(pageSize);// 封装总记录数int totalCount = employeeDao.findCount();pageBean.setTotalCount(totalCount);// 封装页数int totalPage;if(totalCount%pageSize==0){totalPage = totalCount/pageSize;}else{totalPage = totalCount/pageSize + 1; }pageBean.setTotalPage(totalPage);// 封装当前页记录int begin= (currPage - 1)*pageSize;List<Employee> list = employeeDao.findByPage(begin, pageSize);pageBean.setList(list);return pageBean;
}@Override
/*** 业务层添加员工的方法*/
public void save(Employee employee) {// TODO Auto-generated method stubemployeeDao.save(employee);}@Override
/*** 业务层根据id查询员工的方法*/
public Employee findById(Integer eid) {// TODO Auto-generated method stubreturn employeeDao.findById(eid);
}@Override
/*** 编辑员工的业务层实现方法*/
public void update(Employee employee) {// TODO Auto-generated method stubemployeeDao.update(employee);
}@Override
/*** 业务层员工删除*/
public void delete(Employee employee) {// TODO Auto-generated method stubemployeeDao.delete(employee);
}

}
package com.service;

import java.util.List;

import com.entity.Department;
import com.entity.PageBean;
/**

  • 部门管理的业务层接口实现类

  • @author hope
    */
    public interface DepartmentService {

    PageBean findByPage(Integer currPage);

    void save(Department department);

    void update(Department department);

    Department findById(Integer did);

    void delete(Department department);

    List findAll();

}
package com.service;

import com.entity.Department;
import com.entity.Employee;
import com.entity.PageBean;

public interface EmployeeService {

Employee login(Employee employee);PageBean<Employee> findByPage(Integer currPage);void save(Employee employee);void update(Employee employee);Employee findById(Integer eid);void delete(Employee employee);

}

<?xml version="1.0"?> package com.entity;

import java.util.HashSet;
import java.util.Set;

/**

  • Department entity. @hope Eclipse Tools
    */

public class Department implements java.io.Serializable {

private static final long serialVersionUID = 1L;
private Integer did;
private String dname;
private String ddesc;
private Set<Employee> employees = new HashSet<Employee>();// Constructors/** default constructor */
public Department() {
}/** full constructor */
public Department(String dname, String ddesc, Set employees) {this.dname = dname;this.ddesc = ddesc;this.employees = employees;
}// Property accessorspublic Integer getDid() {return this.did;
}public void setDid(Integer did) {this.did = did;
}public String getDname() {return this.dname;
}public void setDname(String dname) {this.dname = dname;
}public String getDdesc() {return this.ddesc;
}public void setDdesc(String ddesc) {this.ddesc = ddesc;
}public Set getEmployees() {return this.employees;
}public void setEmployees(Set employees) {this.employees = employees;
}

}package com.entity;

import java.util.List;
/**

  • 封装页面显示所需要的数据
  • @author hope
  • @param
    */
    public class PageBean {
    // 当前页数
    private int currPage;
    // 每页显示数量
    private int pageSize;
    // 总页数
    private int totalPage;
    // 总记录数
    private int totalCount;
    // 每页显示的数据
    private List list;
    // 当前页数,每页记录数,总记录数,总页数,每页显示数据

public int getCurrPage() {
return currPage;
}
public void setCurrPage(int currPage) {
this.currPage = currPage;
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public int getTotalPage() {
return totalPage;
}
public void setTotalPage(int totalPage) {
this.totalPage = totalPage;
}
public int getTotalCount() {
return totalCount;
}
public void setTotalCount(int totalCount) {
this.totalCount = totalCount;
}
public List getList() {
return list;
}
public void setList(List list) {
this.list = list;
}

}
package com.entity;

import java.util.Date;

/**

  • Employee entity. @hope Eclipse Tools
    */

public class Employee implements java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
// 员工id
private Integer eid;
// 员工部门
private Department department;
// 员工name
private String ename;
// 员工sex
private String sex;
// 生日
private Date birthday;
// 加入时间
private Date joinDate;
// 员工编号
private String eno;
private String username;
private String password;

// Constructors/** default constructor */
public Employee() {
}/** full constructor */
public Employee(Department department, String ename, String sex,Date birthday, Date joinDate, String eno, String username,String password) {this.department = department;this.ename = ename;this.sex = sex;this.birthday = birthday;this.joinDate = joinDate;this.eno = eno;this.username = username;this.password = password;
}// Property accessorspublic Integer getEid() {return this.eid;
}public void setEid(Integer eid) {this.eid = eid;
}public Department getDepartment() {return this.department;
}public void setDepartment(Department department) {this.department = department;
}public String getEname() {return this.ename;
}public void setEname(String ename) {this.ename = ename;
}public String getSex() {return this.sex;
}public void setSex(String sex) {this.sex = sex;
}public Date getBirthday() {return this.birthday;
}public void setBirthday(Date birthday) {this.birthday = birthday;
}public Date getJoinDate() {return this.joinDate;
}public void setJoinDate(Date joinDate) {this.joinDate = joinDate;
}public String getEno() {return this.eno;
}public void setEno(String eno) {this.eno = eno;
}public String getUsername() {return this.username;
}public void setUsername(String username) {this.username = username;
}public String getPassword() {return this.password;
}public void setPassword(String password) {this.password = password;
}

}

基于JSP开发的电影票预订系统 JAVA MySQL相关推荐

  1. 基于SSM的电影票预订系统 JAVA MYSQL

    10197_基于SSM的电影票预订系统 技术 SSM 工具 eclipse + tomcat + mysql + jdk 功能详情 用户:首页.电影.影院.榜单.选座购票 管理员:用户管理.电影管理. ...

  2. 基于SSM开发的电视节目管理系统 JAVA MySQL

    10081基于SSM开发的电视节目管理系统 技术 Spring + SpringMVC + Mybatis 工具 eclipse + tomact + mysql + jdk 功能详情 前台功能 后台 ...

  3. 基于SSM的医院预约挂号系统 JAVA MYSQL

    10187_基于SSM的医院预约挂号系统 技术 SSM 工具 eclipse + tomcat + mysql + jdk 功能详情 前台界面:

  4. Qt开发:基于Qt开发的机票预订系统

    不做过多的介绍直接上图展示效果 首界面展示: 用户界面展示: 管理员界面展示: 已上传到github,需要的可到github下载,详细介绍在github中 github地址:https://githu ...

  5. 【数据库课设】机票预订系统 java+mysql实现 附源码

      个人简介

  6. javaweb JSP JAVA 电影院在线订票系统(ssm电影购票系统 电影售票 电影票预订系统)(支持在线选座)

    JSP JAVA 电影院在线订票系统(ssm电影购票系统 电影售票 电影票预订系统)(支持在线选座)

  7. javaweb JAVA JSP电影院在线订票系统 JSP电影购票系统 JSP电影售票系统 JSP电影票预订系统)

    javaweb JAVA JSP电影院在线订票系统 JSP电影购票系统  JSP电影售票系统  JSP电影票预订系统) protected void doGet(HttpServletRequest ...

  8. javaweb JAVA JSP电影院在线订票系统JSP电影购票系统 JSP电影售票 JSP电影票预订系统支持在线选座jsp电影票预订系统

    javaweb JAVA JSP电影院在线订票系统JSP电影购票系统 JSP电影售票 JSP电影票预订系统支持在线选座jsp电影票预订系统 protected void doGet(HttpServl ...

  9. javaweb JSP JAVA 电影院在线订票系统(电影购票系统 电影售票 电影票预订系统)

    javaweb JSP 电影院在线订票系统(电影购票系统 电影售票 电影票预订系统)(支持在线选座)

最新文章

  1. Ubuntu、CentOS 解决docker命令权限问题(sudo)
  2. 少儿编程python线上课程-北京Python程序开发课程
  3. P1288 取数游戏II
  4. 微软DevWow博客达人征文大赛
  5. [SDOI2016]生成魔咒
  6. redis 内存不足 排查_排查redis占用内存达90%以上
  7. localStorage/cookie 用法分析与简单封装
  8. 异步fifo_跨时钟域同步(异步FIFO)
  9. fscanf不读取_NCNN-Breakdown(3) 读取网络的proto信息
  10. matplotlib中改变字体的方法
  11. python字典用法大全
  12. Sql Plus 操作
  13. php备份网站程序,使用PHP备份整个网站
  14. Gitlab错误: You must use a personal access token with 'api' scope for Git over HTTP.
  15. quartz job基本运用
  16. [2018.11.05 T2] 买牛奶
  17. python 百度翻译官方api和破解版方法
  18. 计算机c盘内部图片,C盘爆满?教你如何释放系统盘空间,瞬间多出10个G!
  19. html5 逐帧播放 代码,html5-video – 使用媒体源扩展进行逐帧解码
  20. 从三方面分析,Java程序员如何晋升为高薪Java架构师?

热门文章

  1. 新仙剑奇侠传H5上线测试了
  2. N多计算机精品免费视频下载
  3. 什么是适应能力?如何提高适应能力?
  4. 蒙特卡洛模拟方法的matlab实现(2)
  5. 王者农药新模式——智慧王者 树形递归
  6. word表格导出html代码,(网页源代码中的表格数据怎么导出excel)如何将把从WORD、EXCEL中复制的内容转换成HTML源代码,再通过网页表单提交上传到数据库?...
  7. nohup 执行mysql命令_Linux nohup命令:后台命令脱离终端运行
  8. 又1家互联网公司倒闭了,失业来得太突然…
  9. 考研政治——马克思三大原理之对立统一
  10. 蓝桥杯 算法提高 我们的征途是星辰大海