• 大小: 22.28MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-04
  • 语言: Java
  • 标签: 网上订票  

资源简介

基于JSP+SQL技术的飞机票网上订票系统,使用了javabean,源码公开,仅供学习使用。打开eclipse导入即可运行!

资源截图

代码片段和文件信息

package com.beacon.sms.action;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSON;
import com.beacon.sms.bean.Course;
import com.beacon.sms.bean.CourseSearchBean;
import com.beacon.sms.bean.DatagridBean;
import com.beacon.sms.service.CourseService;
import com.beacon.sms.utils.JsonUtil;

/**
 * 
 * 作者:beacon
 * 创建日期:2017年10月31日下午9:20:12
 * 描述:课程Action
 */
public class CourseAction {
private Course course;
private CourseService courseService;

private String idString;

private JsonUtil jsonUtil;

private int courseId;

private int page;
private int rows;

private CourseSearchBean courseSearchBean;

public CourseSearchBean getCourseSearchBean() {
return courseSearchBean;
}

public void setCourseSearchBean(CourseSearchBean courseSearchBean) {
this.courseSearchBean = courseSearchBean;
}

public int getPage() {
return page;
}

public void setPage(int page) {
this.page = page;
}

public int getRows() {
return rows;
}

public void setRows(int rows) {
this.rows = rows;
}

public int getCourseId() {
return courseId;
}

public void setCourseId(int courseId) {
this.courseId = courseId;
}

public JsonUtil getJsonUtil() {
return jsonUtil;
}

public void setJsonUtil(JsonUtil jsonUtil) {
this.jsonUtil = jsonUtil;
}

public String getIdString() {
return idString;
}

public void setIdString(String idString) {
this.idString = idString;
}

public CourseService getCourseService() {
return courseService;
}

public void setCourseService(CourseService courseService) {
this.courseService = courseService;
}

public Course getCourse() {
return course;
}

public void setCourse(Course course) {
this.course = course;
}
public void list(){
if(courseSearchBean==null){
courseSearchBean=new CourseSearchBean();
}
courseSearchBean.setPage(page);
courseSearchBean.setRows(rows);
List list=courseService.getCourseList(courseSearchBean);
int total=courseService.getCourseListSize(courseSearchBean);
DatagridBean datagridBean=new DatagridBean();
datagridBean.setRows(list);
datagridBean.setTotal(total);
String result=JSON.toJSONString(datagridBean);
jsonUtil.writeJson(result);
System.out.println(result);

}
public void add(){
courseService.addCourse(course);
}
public void update(){
courseService.updateCourse(course);
}
public void delete(){
List list=new ArrayList();
String[] ids=idString.split(““);
for(int i=0;i list.add(Integer.parseInt(ids[i]));
}
courseService.deleteCourse(list);
}
public void getCourseList(){
String result=JSON.toJSONString(courseService.getCourseList());
jsonUtil.writeJson(result);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-11-12 15:54  airplane-ticket-master\
     文件         817  2019-11-12 15:54  airplane-ticket-master\.classpath
     文件        1221  2019-11-12 15:54  airplane-ticket-master\.project
     目录           0  2019-11-12 15:54  airplane-ticket-master\.settings\
     文件         555  2019-11-12 15:54  airplane-ticket-master\.settings\.jsdtscope
     文件          52  2019-11-12 15:54  airplane-ticket-master\.settings\org.eclipse.core.resources.prefs
     文件         357  2019-11-12 15:54  airplane-ticket-master\.settings\org.eclipse.jdt.core.prefs
     文件         458  2019-11-12 15:54  airplane-ticket-master\.settings\org.eclipse.wst.common.component
     文件         335  2019-11-12 15:54  airplane-ticket-master\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2019-11-12 15:54  airplane-ticket-master\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2019-11-12 15:54  airplane-ticket-master\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件           6  2019-11-12 15:54  airplane-ticket-master\.tern-project
     文件        4558  2019-11-12 15:54  airplane-ticket-master\README.md
     目录           0  2019-11-12 15:54  airplane-ticket-master\WebContent\
     目录           0  2019-11-12 15:54  airplane-ticket-master\WebContent\meta-INF\
     文件          36  2019-11-12 15:54  airplane-ticket-master\WebContent\meta-INF\MANIFEST.MF
     目录           0  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\
     目录           0  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\
     文件        4467  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\aopalliance-1.0.jar
     文件       43578  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\asm-3.3.jar
     文件       38275  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\asm-commons-3.3.jar
     文件       21503  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\asm-tree-3.3.jar
     文件     1627874  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\aspectjweaver-1.6.8.jar
     文件       73098  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\commons-codec-1.5.jar
     文件       69002  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\commons-fileupload-1.3.1.jar
     文件      173587  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\commons-io-2.2.jar
     文件      315805  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\commons-lang3-3.1.jar
     文件       60686  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\commons-logging-1.1.1.jar
     文件      463020  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\fastjson-1.2.31.jar
     文件      931168  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\freemarker-2.3.19.jar
     文件      614203  2019-11-12 15:54  airplane-ticket-master\WebContent\WEB-INF\lib\javassist-3.11.0.GA.jar
............此处省略307个文件信息

评论

共有 条评论