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

旅游信息管理系统毕业论文 - 图文

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

河南师范大学新联学院本科毕业论文

CommonDialog1.InitDir = \

CommonDialog1.Filter = \文档(*.doc)|*.doc|文本文件_(*.txt)|*.txt|

所有文件(*.*)|*.*\

CommonDialog1.FilterIndex = 2 CommonDialog1.ShowOpen Text1.Text = \

Open CommonDialog1.FileName For Input As #1

If Err.Number = 0 Then Do While Not EOF(1) Line Input #1, StrTxt

Text1 = Text1 + StrTxt + vbCrLf Loop Close #1 End If End Sub

Private Sub print_Click() Dim i As Integer

CommonDialog3.ShowPrinter Printer.EndDoc End Sub

Private Sub save_Click() On Error Resume Next CommonDialog2.InitDir = \

CommonDialog2.Filter = \文档(*.doc)|*.doc|文本文件_(*.txt)|*.txt| 所有文件 (*.*)|*.*\

CommonDialog2.DefaultExt = \ CommonDialog2.ShowSave

Open CommonDialog2.FileName For Output As #2

21

河南师范大学新联学院本科毕业论文

For i = 1 To Len(Text1)

Print #2, Mid$(Text1, i, 1)

Next i Close #2 End Sub

Private Sub Timer1_Timer() Static i As Integer Timer1.Interval=2800 i = (i + 1) Mod 5

Image1.Picture = LoadPicture(App.Path & \End Sub

Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node) If Node.Text = \景点信息管理\ Form4.Show End If

If Node.Text = \游客信息\ Form1.Show End If

If Node.Text = \导游信息\ Form6.Show End If

If Node.Text = \用户登录信息\ Form7.Show End If

If Node.Text = \酒店信息管理\ Form2.Hide Form5.Show End If

22

河南师范大学新联学院本科毕业论文

End Sub

(2)主界面效果图

主界面设计效果如图4.2所示:

图4.2 主界面

4.3景点信息编码及实现

(1)景点信息界面编码如下:

Private SqlCon As New ADODB.Connection Private SqlRes As New ADODB.Recordset Private SqlCmd As New ADODB.Command Private Sub Command1_Click() '查找 Dim SqlStr As String

Adodc1.RecordSource = \ vw Where vsbh ='\ & \ SqlStr = \

If Trim(Text1) <> \

SqlStr = \ End If

If Trim(Text2) <> \

23

河南师范大学新联学院本科毕业论文

SqlStr = \ End If

SqlStr = \

SqlRes.open SqlStr, SqlCon, adOpenDynamic, adLockPessimistic If Not SqlRes.EOF Then Text1.Text = SqlRes(\ Text2.Text = SqlRes(\ Text3.Text = SqlRes(\ Text4.Text = SqlRes(\ Combo1.Text = SqlRes(\ Text5.Text = SqlRes(\ Else

MsgBox \没有此信息!\警告\ End If SqlRes.Close End Sub

Private Sub Command2_Click() '增加 Dim SqlStr As String

SqlStr = \ SqlRes.open SqlStr, SqlCon, adOpenDynamic, adLockPessimistic If Not SqlRes.EOF Then

SqlRes(\ SqlRes(\ SqlRes(\ SqlRes(\ SqlRes(\ SqlRes.Update Else

If Text1.Text = \

24

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