网站地图| 免费获取|
毕业论文网
  • 网站首页|
  • 论文范文|
  • 论文降重|
  • 职称论文发表|
  • 合作期刊|
  • 论文下载|
  • 计算机论文|
  • 外文翻译|
  • 免费论文|
  • 论文资料|
  • 论文开题报告
搜索

当前位置:毕业论文网 -> 免费论文 -> 计算机论文 -> 机票预订系统(四)
计算机论文资料| ASP设计| Delphi| VB设计| JSP设计| ASP.NET设计| VB.NET| java设计| VC| pb| VS| dreamweaver| c#.net| vf| VC++| 计算机论文范文| 论文下载| 自动化论文

机票预订系统(四)

最新活动:微信集50个赞就可获取任意一篇钻石会员文档。详情见微信集赞换文档
机票预订系统(四) sagebox("提示:","没有到达此地的航班!")
 return 1
end if

12.登录界面登录按钮 clicked()
string pwd,username

username=sle_name1.text
pwd=sle_pwd.text

SQLCA.LogId = username
SQLCA.LogPass =pwd

connect using sqlca;
if sqlca.sqlcode=-1 then
 messageBox("口令错误,请重新输入!",SQLCA.SQLErrText)
 close(parent)
else
 open(w_main)
end if

13航班信息查询界面w_plane1 open()
disconnect using sqlca;
// Profile xuwei
/*SQLCA.DBMS = "O90 Oracle9i (9.0.1)"
SQLCA.LogPass = 'manager'
SQLCA.ServerName = "lab_b14"
SQLCA.LogId = "system"
SQLCA.AutoCommit = true*/

// Profile fly
SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = False
SQLCA.DBParm = "ConnectString='DSN=plane;UID=sa;PWD=sa'"


connect using sqlca;
dw_7.settransobject(sqlca)
dw_7.retrieve ()

14.航班信息维护界面w_planeinfo open()
dw_4.settransobject (SQLCA)
dw_4.retrieve ()

15.航班信息维护界面添加按钮 clicked()
long net
net=dw_4.insertrow(0)
dw_4.ScrollToRow(net)

16.航班信息维护界面删除按钮 clicked()
dw_4.deleterow(0)
dw_4.update()
dw_4.retrieve()

17机票信息登记界面确定插入按钮 clicked()
int num
String flightnumber,airlinecompany,startstation,middlestation,endstation,memo,takeofftime,landingtime,no1
String err

double price1
string mysql

/*SQLCA.DBMS = "O90 Oracle9i (9.0.1)"
SQLCA.LogPass ="manager"
SQLCA.ServerName = "lab_b14"
SQLCA.LogId = "system"
SQLCA.AutoCommit = true
//SQLCA.DBParm = "PBCatalogOwner='scott'"*/

// Profile fly
SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = False
SQLCA.DBParm = "ConnectString='DSN=plane;UID=sa;PWD=sa'"


connect Using SQLCA;

 


flightnumber = sle_number.text
airlinecompany = sle_airlinecompany.text
startstation = sle_startstation.text
middlestation = sle_middlestation.text
endstation = sle_endstation.text
memo=mle_memo.text
takeofftime = sle_takeofftime.text
landingtime = sle_landingtime.text
no1=sle_no1.text
em_price1.getData(price1)


err=""
if flightnumber="" then
  err=err+"航班号不能为空!~n"
end if
if airlinecompany = "" then
 err=err+"航空公司不能为空!~n"
end if
if startstation = "" then
 err=err+"起始站不能为空!~n"
end if
if endstation = "" then
 err=err+"终点站不能为空!~n"
end if
if takeofftime = "" then
 err=err+"起飞时间不能为空!~n"
end if
if landingtime = "" then
 err=err+"到达时间不能为空!~n"
end if
if price1<=0 then
 err=err+"单价应该大于0!~n"
end if
if err<>"" then
 messagebox("警告!",err)
 return
end if

//查询数据库,是否有该航班号,如果有则不能重复添加

select count(flightnumber)
into :num
from planeticket
where flightnumber=:flightnumber
using sqlca;

if num>0 then
 messagebox("警告","航班号不能重复")
 return
end if

//执行添加记录操作
/*mysql = "INSERT INTO planeticket(flightnumber,airlinecompany,startstation,middlestation,endstation,takeofftime,landingtime,price1,price2,memo)  VALUES('"+flightnumber+"','"+airlinecompany+"','"+startstation+"','"+middlestation+"','"+endstation+"','"+takeofftime+"','"+landingtime+"','"+price1+"','"+price2+"','"+memo+"')"
execute IMMEDIATE :mysql using sqlca;*/
INSERT INTO planeticket
            (flightnumber,
     airlinecompany,
     startstation,
 &nbs

首页 上一页 1 2 3 4 5 下一页 尾页 4/5/5

机票预订系统(四)由毕业论文网(www.huoyuandh.com)会员上传。
原创论文资料流程 相关论文
上一篇:图书数据库管理系统的实现及应用 下一篇:C语言程序设计
推荐论文 本专业最新论文
Tags:机票预订 系统 2010-03-25 14:11:56【返回顶部】
精彩推荐
发表论文

联系方式 | 论文说明 | 网站地图 | 免费获取 | 钻石会员 | 硕士论文资料


毕业论文网提供论文范文,论文代发,原创论文资料

本站部分文章来自网友投稿上传,如发现侵犯了您的版权,请联系指出,本站及时确认并删除  E-mail: 17304545@qq.com

Copyright@ 2009-2020 毕业论文网 版权所有