资源简介
北大青鸟ssh航班查询系统ajax异步查询
代码片段和文件信息
package com.flight.action;
import java.util.Date;
import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;
import com.flight.biz.FlightBiz;
import com.flight.entity.FlightTickets;
import com.flight.entity.Flights;
import com.opensymphony.xwork2.ActionSupport;
public class FlightAction extends ActionSupport {
private Date flightriqi; //起飞日期
private String cityA; //起飞地
private String cityB; //降落地
private FlightBiz iflightBiz;
private List flightsList;
private FlightTickets flightTickets; //航空公司
private int id;
private String msg;
public FlightTickets getFlightTickets() {
return flightTickets;
}
public void setFlightTickets(FlightTickets flightTickets) {
this.flightTickets = flightTickets;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public Date getFlightriqi() {
return flightriqi;
}
public void setFlightriqi(Date flightriqi) {
this.flightriqi = flightriqi;
}
public String getCityA() {
return cityA;
}
public void setCityA(String cityA) {
this.cityA = cityA;
}
public String getCityB() {
return cityB;
}
public void setCityB(String cityB) {
this.cityB = cityB;
}
public FlightBiz getIflightBiz() {
return iflightBiz;
}
public void setIflightBiz(FlightBiz iflightBiz) {
this.iflightBiz = iflightBiz;
}
public List getFlightsList() {
return flightsList;
}
public void setFlightsList(List flightsList) {
this.flightsList = flightsList;
}
@Override
public String execute() throws Exception {
// TODO Auto-generated method stub
System.out.println(flightriqi);
System.out.println(cityA);
System.out.println(cityB);
DetachedCriteria dc = DetachedCriteria.forClass(Flights.class “d“)
.createAlias(“d.airportsByTakeAirportId“ “t“)
.createAlias(“d.airportsByLandingAirportId“ “l“);
if (flightriqi != null) {
dc.add(Restrictions.eq(“d.flightDate“ flightriqi));
}
if (cityA != null) {
dc.add(Restrictions.eq(“t.cityName“ cityA));
}
if (cityB != null) {
dc.add(Restrictions.eq(“l.cityName“ cityB));
}
flightsList = iflightBiz.findAllSearch(dc);
System.out.println(flightsList.size());
if (flightsList.size() > 0) {
return SUCCESS;
}else {
msg = “没有查到相关内容!“;
return INPUT;
}
}
public String findIdInfo(){
try {
System.out.println(id);
flightTickets = iflightBiz.findIdByFlightTicketsInfo(id);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return SUCCESS;
}
public String findflight(){
flightsList = iflightBiz.findAllflight();
return SUCCESS;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2792 2016-07-20 09:19 filght.sql
目录 0 2016-11-06 17:43 FlightInformation\
文件 586 2016-07-21 14:14 FlightInformation\.classpath
文件 1050 2016-07-21 14:14 FlightInformation\.project
目录 0 2016-11-06 17:43 FlightInformation\.settings\
文件 503 2016-07-21 14:14 FlightInformation\.settings\.jsdtscope
文件 364 2016-07-21 14:14 FlightInformation\.settings\org.eclipse.jdt.core.prefs
文件 503 2016-07-21 14:14 FlightInformation\.settings\org.eclipse.wst.common.component
文件 305 2016-07-21 14:14 FlightInformation\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2016-07-21 14:14 FlightInformation\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2016-07-21 14:14 FlightInformation\.settings\org.eclipse.wst.jsdt.ui.superType.name
目录 0 2016-11-06 17:43 FlightInformation\WebContent\
目录 0 2016-11-06 17:43 FlightInformation\WebContent\me
文件 39 2016-07-21 14:14 FlightInformation\WebContent\me
目录 0 2016-11-06 17:43 FlightInformation\WebContent\WEB-INF\
目录 0 2016-11-06 17:46 FlightInformation\WebContent\WEB-INF\lib\
文件 1750 2016-07-21 14:50 FlightInformation\WebContent\WEB-INF\web.xm
文件 599 2016-07-21 18:56 FlightInformation\WebContent\ajax.jsp
文件 3121 2016-07-21 18:58 FlightInformation\WebContent\index.jsp
目录 0 2016-11-06 17:43 FlightInformation\WebContent\js\
文件 275529 2016-07-21 14:14 FlightInformation\WebContent\js\jquery-1.8.3.js
目录 0 2016-11-06 17:43 FlightInformation\build\
目录 0 2016-11-06 17:43 FlightInformation\build\classes\
文件 2548 2016-07-21 14:29 FlightInformation\build\classes\beans.xm
目录 0 2016-11-06 17:43 FlightInformation\build\classes\com\
目录 0 2016-11-06 17:43 FlightInformation\build\classes\com\flight\
目录 0 2016-11-06 17:43 FlightInformation\build\classes\com\flight\action\
文件 4325 2016-09-22 11:05 FlightInformation\build\classes\com\flight\action\FlightAction.class
目录 0 2016-11-06 17:43 FlightInformation\build\classes\com\flight\biz\
文件 556 2016-09-22 11:05 FlightInformation\build\classes\com\flight\biz\FlightBiz.class
目录 0 2016-11-06 17:43 FlightInformation\build\classes\com\flight\biz\impl\
............此处省略43个文件信息
- 上一篇:基于LabView的摄像采集和图像处理程序
- 下一篇:QCustomPlot
相关资源
- ssh框架教师工作量管理系统
- 北大青鸟S2项目案例-论坛短消息
- 网络计费系统
- ssh框架CRM综合项目开发资料.txt
- 北大青鸟ACCP8.0全套课件随书答案及代
- openssh-6.6p1-1.x86_64.rpm
- libssh2 1.8.0 32位动态库
- secureCRT注册机
- 动力节点 SSM和SSH视频,源码及讲义
- 华为 h3c 3com ras转16进制工具 sshkey.ex
- OA权限管理系统的论文开题报告
- sshkey.exe
- Tamir.SharpSSH类库及使用
- SharpSSH Demo
- Grasshopper for Rhino5简体中文汉化版
- GH 插件合集及安装说明2019最新集合版
- openssh for windows--setupssh-7.9p1-1
- setupssh-7.3p1-1
- CentOS7 1804 OpenSSH8.3p1打包RPM、安装升级
- LePutty SSH Connection 串口联机serial
- SecureCRT中文版
- Xftp 6.0.0115 FTP/SFTP客户端绿色版保证安
- 杰信商贸管理平台传智播客SSH+SSM视频
- 北大青鸟消防编程软件V4.0
- grasshopper插件elk
- ubuntu 16.04 离线安装openssh
- OpenSSH for Windows
- Windows ssh客户端
- 北大青鸟全套课程电子书高清
- ssh secure shell client-3.2.9.zip
评论
共有 条评论