云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 航空订票系统详细设计

航空订票系统详细设计

  • 62 次阅读
  • 3 次下载
  • 2025/12/2 22:36:31

北京 上海 价格:¥450

北京 哈尔滨 价格:¥500

北京 西安 价格:¥700

北京 济南 价格:¥300

本月12日发往东京的k8888航班取消,请旅行社尽快与相关旅客取得联系,更改航班。

本月20日发往济南的k7777航班取消,请旅行社尽快与相关旅客取得联系,更改航班。

<%if (use.equals(\)){%>

src=\ width=\ height=\ border=\ usemap=\><%}else if(use.equals(\)){%>

<%}else{%><%}%>

主要代码:

<%

Show show=new Show(); Str str=new Str(); Conn con=new Conn();

String planeno=(String)request.getParameter(\); String planedate=(String)request.getParameter(\); String fromplace=(String)request.getParameter(\); String toplace=(String)request.getParameter(\); String planetime=(String)request.getParameter(\); String economyseat=(String)request.getParameter(\); String businessseat=(String)request.getParameter(\); String economyprice=(String)request.getParameter(\); String businessprice=(String)request.getParameter(\); if(planeno.equals(\)||planedate.equals(\)||fromplace.equals(\)||toplace.equals(\)||planetime.equals(\)||economyseat.equals(\)||businessseat.equals(\\)||economyprice.equals(\)||businessseat.equals(\)) {out.print(\对不起,你需要将信息填写完整!\);} else {

int flag=0; int length;

String fdate1,fdate2,fdate3; length=planedate.length();

if(length>=8) {

fdate1=planedate.substring(4,5); fdate2=planedate.substring(6,7); fdate3=planedate.substring(7,8);

if(fdate1.equals(\)&&(fdate2.equals(\)||fdate3.equals(\))) {

flag=1; } }

if(flag==0) {

out.print(\对不起,你输入的日期格式不正确!\); } else {

int intT1=0;

intT1=data.insert(\

plane(planeno,toplace,fromplace,planedate,planetime,economyseat,businessseat,economyprice,businessprice)

VALUES('\+planeno+\+toplace+\+fromplace+\+planedate+\+planetime

+\+economyseat+\+businessseat+\+economyprice+\+businessprice+\)\);

if(intT1<=0) {

out.print(show.errorBox(\添加失败!\,\错误信息\)); return; } else {

out.print(show.errorBox(\添加成功!\,\航班生成信息\)); } } } %>

返回上页

3.5测试要点:

在测试过程中,首先需要对各子单元过程进行测试。在各子单元过程测试完毕后,再对各模块(包括各子单元过程之间的接口)进行测试,处理好各模块之间的接口,最后对系统进行测试和维护。

主要通过测试部分,发现开发人员忽视的部分,通过测试人员和编码人员的沟通和协作,可以不断的改进系统,不断提高系统的性能以及安全性。

附录

主要代码:package com.common;

package com.commom;

import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException;

public class DBUtils { static{ try {

Class.forName(\); } catch (ClassNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } }

public static Connection getConnection() throws SQLException{

Connection conn = DriverManager.getConnection(\\, \, \);

return conn; }

// public static void main(String[] args) { // DBUtils dbUtils = new DBUtils(); // try {

// Connection conn = dbUtils.getConnection(); // } catch (SQLException e) {

// // TODO Auto-generated catch block // e.printStackTrace(); // } // } }

package com.commom;

import java.io.IOException;

import javax.servlet.Filter;

import javax.servlet.FilterChain; import javax.servlet.FilterConfig;

import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse;

public class CharacterEncodingFilter implements Filter {

public void doFilter(ServletRequest request, ServletResponse response,

FilterChain chain) throws IOException, ServletException {

request.setCharacterEncoding(\); response.setCharacterEncoding(\); chain.doFilter(request, response); // TODO Auto-generated method stub }

搜索更多关于: 航空订票系统详细设计 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

北京 上海 价格:¥450 北京 哈尔滨 价格:¥500 北京 西安 价格:¥700

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com