⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mdifrmmain.frm

📁 旅行社管理信息系统主要实现旅游路线、景点、交通工具等的查询、修改和删除功能
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.MDIForm MDIFrmmain 
   BackColor       =   &H8000000C&
   Caption         =   "旅行社管理信息系统"
   ClientHeight    =   8310
   ClientLeft      =   60
   ClientTop       =   -765
   ClientWidth     =   11895
   Icon            =   "MDIFrmmain.frx":0000
   LinkTopic       =   "MDIForm1"
   Picture         =   "MDIFrmmain.frx":0CCA
   StartUpPosition =   2  '屏幕中心
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   300
      Left            =   0
      TabIndex        =   0
      Top             =   8010
      Width           =   11895
      _ExtentX        =   20981
      _ExtentY        =   529
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   5
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   10585
            MinWidth        =   10585
            Text            =   "旅行社管理信息系统"
            TextSave        =   "旅行社管理信息系统"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   5292
            MinWidth        =   5292
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   6
            Object.Width           =   4410
            MinWidth        =   4410
            TextSave        =   "2007-12-7"
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   5
            Object.Width           =   4410
            MinWidth        =   4410
            TextSave        =   "10:00"
         EndProperty
         BeginProperty Panel5 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Enabled         =   0   'False
            Text            =   "xj"
            TextSave        =   "xj"
         EndProperty
      EndProperty
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   300
      Top             =   2160
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   1575
      Top             =   1920
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   9
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIFrmmain.frx":8BD6E
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIFrmmain.frx":8CA48
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIFrmmain.frx":8DA9A
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIFrmmain.frx":8E374
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIFrmmain.frx":8E7C6
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIFrmmain.frx":8EAE0
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIFrmmain.frx":8EF32
            Key             =   ""
         EndProperty
         BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIFrmmain.frx":8F384
            Key             =   ""
         EndProperty
         BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIFrmmain.frx":8F7D6
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin VB.Menu mnu_system 
      Caption         =   "  系统管理(&S)"
      Begin VB.Menu mnu_xzyh 
         Caption         =   "新增用户(&Z)"
      End
      Begin VB.Menu mnu_ggmm 
         Caption         =   "更改密码(&G)"
      End
      Begin VB.Menu mnu_line2 
         Caption         =   "-"
      End
      Begin VB.Menu mnu_Dqsz 
         Caption         =   "权限设置"
      End
      Begin VB.Menu mnu_line3 
         Caption         =   "-"
      End
      Begin VB.Menu mnu_exit 
         Caption         =   "退出系统(&X)"
      End
   End
   Begin VB.Menu mnu_Basic 
      Caption         =   "景点管理(&J)"
   End
   Begin VB.Menu mnu_rsgl 
      Caption         =   "导游管理(&D)"
   End
   Begin VB.Menu mnu_Gzfw 
      Caption         =   "游客管理(&Y)"
   End
   Begin VB.Menu mnu_help 
      Caption         =   "帮助(&H)"
      Begin VB.Menu mnu_helpx 
         Caption         =   "帮助(&H)"
      End
      Begin VB.Menu mnu_About 
         Caption         =   "关于(&A)"
      End
   End
End
Attribute VB_Name = "MDIFrmmain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Option Explicit
Private cnntemp As New ADODB.Connection
Private rstTemp As New ADODB.Recordset
Private rstlr As New ADODB.Recordset
Private strSQL As String
Private Sjybf As Boolean


Private Sub MDIForm_Load()
Me.Show
Dim strfile As String
'SetWindowPos Me.hwnd, HWND_TOPMOST, Me.Left / Screen.TwipsPerPixelX _
    , Me.Top \ Screen.TwipsPerPixelY, Me.Width \ Screen.TwipsPerPixelX, _
    Me.Height \ Screen.TwipsPerPixelY, 0
Me.WindowState = 2
'On Error GoTo Err
StatusBar1.Panels(2).Text = "用户:" & LR_user_Name & ""


'Dim strConnect As String
'
'    strConnect = ServerIp
'
'    Set cnntemp = Nothing
'    With cnntemp
'        .Open strConnect
'    End With
Set cnntemp = Nothing

With cnntemp
    .Provider = "Microsoft.jet.OLEDB.4.0"
    .Open App.Path & "\travel.mdb", "admin"
End With
Exit Sub
Err:
'Sjybf = False
End Sub

Private Sub MDIForm_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Dim Answer%
Answer = MsgBox("退出系统吗?", vbQuestion + vbYesNo, "退出提示")
If Answer = vbYes Then
    If Sjybf = False Then
'        MsgBox "退出前请备份有关数据!", vbInformation, "退出提示"
        Call sfFormsUnload
'        Load frmApiCopy
        DoEvents
        Sjybf = True
  
        Exit Sub
     End If
    
Else
    Cancel = True
End If
End Sub



Private Sub mnu_About_Click()
Load frmAbout
End Sub


Private Sub mnu_Basic_Click()
strSQL = "select * from Db_qx where username='" & LR_user_Name & "' and jdgl='有'"
Call DirectRecordset(strSQL, rstTemp)

If rstTemp.RecordCount <> 0 Then
    Load FrmJdgl
Else
    MsgBox "没有权限", vbInformation, Me.Caption
    Exit Sub
End If


End Sub

Private Sub mnu_Dqsz_Click()
strSQL = "select * from Db_qx where username='" & LR_user_Name & "' and qx='有'"
Call DirectRecordset(strSQL, rstTemp)

If rstTemp.RecordCount <> 0 Then
    Load FrmQx
Else
    MsgBox "没有权限", vbInformation, Me.Caption
    Exit Sub
End If

End Sub

Private Sub mnu_exit_Click()
Unload Me
End Sub


Private Sub mnu_ggmm_Click()
Load Frmmmxg
End Sub

Private Sub mnu_Gzfw_Click()
strSQL = "select * from Db_qx where username='" & LR_user_Name & "' and ykgl='有'"
Call DirectRecordset(strSQL, rstTemp)

If rstTemp.RecordCount <> 0 Then
    Load FrmYkgl
Else
    MsgBox "没有权限", vbInformation, Me.Caption
    Exit Sub
End If
End Sub

Private Sub mnu_rsgl_Click()
strSQL = "select * from Db_qx where username='" & LR_user_Name & "' and dygl='有'"
Call DirectRecordset(strSQL, rstTemp)

If rstTemp.RecordCount <> 0 Then
    Load FrmDygl
Else
    MsgBox "没有权限", vbInformation, Me.Caption
    Exit Sub
End If

End Sub

Private Sub mnu_xzyh_Click()
strSQL = "select * from Db_qx where username='" & LR_user_Name & "' and adduser='有'"
Call DirectRecordset(strSQL, rstTemp)

If rstTemp.RecordCount <> 0 Then
    Load Frmadduser
Else
    MsgBox "没有权限", vbInformation, Me.Caption
    Exit Sub
End If
End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
'Select Case Button.Key
'    Case "景点管理"
'        strSQL = "select * from Db_qx where username='" & LR_user_Name & "' and jdgl='有'"
'        Call DirectRecordset(strSQL, rstTemp)
'
'        If rstTemp.RecordCount <> 0 Then
'            Load FrmJdgl
'        Else
'            MsgBox "没有权限", vbInformation, Me.Caption
'            Exit Sub
'        End If
'    Case "导游管理"
'        strSQL = "select * from Db_qx where username='" & LR_user_Name & "' and dygl='有'"
'        Call DirectRecordset(strSQL, rstTemp)
'
'        If rstTemp.RecordCount <> 0 Then
'            Load FrmDygl
'        Else
'            MsgBox "没有权限", vbInformation, Me.Caption
'            Exit Sub
'        End If
'    Case "游客管理"
'        strSQL = "select * from Db_qx where username='" & LR_user_Name & "' and ykgl='有'"
'        Call DirectRecordset(strSQL, rstTemp)
'
'        If rstTemp.RecordCount <> 0 Then
'            Load FrmYkgl
'        Else
'            MsgBox "没有权限", vbInformation, Me.Caption
'            Exit Sub
'        End If
'
'    Case "退出"
'        Unload Me
'End Select
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -