第一范文网 - 专业文章范例文档资料分享平台

航空订票系统详细设计

来源:用户分享 时间:2025/6/6 0:00:26 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

北京 上海 价格:¥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 }

搜索更多关于: 航空订票系统详细设计 的文档
航空订票系统详细设计.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c2owf99irs20zdc523xwm17c19373ml00grz_5.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top