基于VB客票中心售票系统

时间:2013-07-12 12:58:05
【文件属性】:

文件名称:基于VB客票中心售票系统

文件大小:2.36MB

文件格式:RAR

更新时间:2013-07-12 12:58:05

客票

VERSION 5.00 Begin VB.Form FrmBackUp BackColor = &H00E7DFE7& BorderStyle = 1 'Fixed Single Caption = "备份数据库" ClientHeight = 1695 ClientLeft = 45 ClientTop = 330 ClientWidth = 4680 Icon = "FrmBackUp.frx":0000 LinkTopic = "Form1" MaxButton = 0 'False MDIChild = -1 'True MinButton = 0 'False ScaleHeight = 1695 ScaleWidth = 4680 Begin VB.CommandButton cmdExit Caption = "退出" Height = 495 Left = 2640 TabIndex = 3 Top = 840 Width = 1455 End Begin VB.CommandButton cmdBackUp Caption = "备份" Height = 495 Left = 600 TabIndex = 2 Top = 840 Width = 1455 End Begin VB.Label lbTime AutoSize = -1 'True BackStyle = 0 'Transparent Height = 180 Left = 240 TabIndex = 1 Top = 720 Visible = 0 'False Width = 90 End Begin VB.Label Label1 AutoSize = -1 'True BackStyle = 0 'Transparent Caption = "单击“备份”按钮,开始备份数据库。" Height = 180 Left = 240 TabIndex = 0 Top = 240 Width = 3060 End End Attribute VB_Name = "FrmBackUp" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False 'Dim fso As New FileSystemObject, fldr As Folder Dim cn As ADODB.Connection Dim success As Long Private Sub cmdBackUp_Click() Dim backFile As String Dim NowTime As String Dim sql As String Dim buff As String If fso.FolderExists(App.Path & "\BackUp") = False Then Set fldr = fso.CreateFolder(App.Path & "\BackUp") End If NowTime = Format(Now, "yyyy-mm-dd_hh-mm-ss") backFile = "hotel" & NowTime sql = "BACKUP DATABASE hotel TO disk='" & App.Path & "\BackUP\" & backFile & "'" cn.Execute (sql) MsgBox "数据库备份成功!" & vbCrLf & "文件:" & backFile, vbOKOnly + vbInformation, "备份数据库" success = WritePrivateProfileString("BackUp", "NewFile", backFile, App.Path & "\Sims.ini") buff = String(255, 0) ret = GetPrivateProfileString("BackUp", "Time", "1", buff, 256, App.Path & "\Sims.ini") lbTime.Caption = buff Select Case lbTime.Caption Case "1" success = WritePrivateProfileString("BackUp", "File1", backFile, App.Path & "\Sims.ini") Case "2" success = WritePrivateProfileString("BackUp", "File2", backFile, App.Path & "\Sims.ini") Case "3" success = WritePrivateProfileString("BackUp", "File3", backFile, App.Path & "\Sims.ini") Case "4" success = WritePrivateProfileString("BackUp", "File4", backFile, App.Path & "\Sims.ini") Case "5" success = WritePrivateProfileString("BackUp", "File5", backFile, App.Path & "\Sims.ini") End Select lbTime.Caption = lbTime.Caption + 1 If lbTime.Caption = 6 Then lbTime.Caption = 1 End If success = WritePrivateProfileString("BackUp", "Time", lbTime.Caption, App.Path & "\Sims.ini") End Sub Private Sub cmdExit_Click() Unload Me End Sub Private Sub Form_Load() Set cn = New ADODB.Connection If cn.State = adStateOpen Then cn.Close With cn .ConnectionTimeout = 10 .Provider = "sqloledb" .ConnectionString = "data source=.;initial catalog=master;user id=sa;password=;" .Open End With End Sub


【文件预览】:
答辩稿.ppt
代码
----预订车票表修改.frx(21B)
----打印报表.frm(22KB)
----运价修改.frm(6KB)
----data.rar(232KB)
----售票查询.frm(17KB)
----售票统计.frx(21B)
----车辆修改.frm(7KB)
----预订车票.frx(526B)
----退票.frm(13KB)
----终点站修改.frm(6KB)
----车次修改.frx(21B)
----报表.frm(8KB)
----客票中心售票系统()
--------车站售票管理系统_Data.MDF(1.13MB)
--------客票中心售票系统.exe(228KB)
--------车站售票管理系统_Log.LDF(1024KB)
----Restore()
----bg2.bmp(1.37MB)
----管理员口令表(491B)
----MSSCCPRJ.SCC(201B)
----车辆修改.frx(21B)
----车次查询.frx(21B)
----车票表修改.frm(10KB)
----退票.frx(822B)
----售票查询.frx(21B)
----发车时刻表查询.frm(13KB)
----backup()
----登录界面.frm(10KB)
----Module1.bas(7KB)
----总调用.frx(548B)
----MDIForm1.frx(1.37MB)
----预订车票.frm(28KB)
----总调用.frm(8KB)
----车次查询.frm(11KB)
----退票表修改.frx(21B)
----密码修改.frx(21B)
----密码修改.frm(8KB)
----新建 文本文档.txt(0B)
----FrmBackUp.frm(4KB)
----车票表修改.frx(21B)
----终点站修改.frx(21B)
----打印车票.frm(13KB)
----售票管理系统.exe(1.59MB)
----预订车票表修改.frm(8KB)
----打印报表.frx(315B)
----FrmBackUp.frx(906B)
----运价修改.frx(21B)
----客票中心售票系统.vbw(1KB)
----发车时刻表查询.frx(21B)
----Sims.ini(24B)
----MDIForm1.frm(4KB)
----退票表修改.frm(7KB)
----销售车票.frx(548B)
----data()
--------车站售票管理系统_Data.MDF(1.25MB)
--------车站售票管理系统_Log.LDF(1024KB)
----销售车票.frm(35KB)
----车次修改.frm(8KB)
----售票统计.frm(6KB)
----客票中心售票系统.vbp(2KB)
论文.doc

网友评论