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

📄 dyouform.frm

📁 一个小型的旅行社管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form DYOUFORM 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "DYouForm"
   ClientHeight    =   5280
   ClientLeft      =   7920
   ClientTop       =   7470
   ClientWidth     =   8685
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "DYOUFORM.frx":0000
   ScaleHeight     =   5280
   ScaleWidth      =   8685
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton Command9 
      Caption         =   "导游总数"
      Height          =   375
      Left            =   5040
      TabIndex        =   10
      Top             =   4560
      Width           =   1215
   End
   Begin VB.CommandButton 最后一个导游 
      Caption         =   "最后一个导游"
      Height          =   375
      Left            =   6480
      TabIndex        =   9
      Top             =   3480
      Width           =   1455
   End
   Begin VB.CommandButton 下一个导游 
      Caption         =   "下一个导游"
      Height          =   375
      Left            =   6480
      TabIndex        =   8
      Top             =   2760
      Width           =   1455
   End
   Begin VB.CommandButton 前一个导游 
      Caption         =   "前一个导游"
      Height          =   375
      Left            =   6480
      TabIndex        =   7
      Top             =   2040
      Width           =   1455
   End
   Begin VB.CommandButton 第一个导游 
      Caption         =   "第一个导游"
      Height          =   375
      Left            =   6480
      TabIndex        =   6
      Top             =   1320
      Width           =   1455
   End
   Begin VB.CommandButton 修改导游 
      Caption         =   "修改导游"
      Height          =   375
      Left            =   3720
      TabIndex        =   5
      Top             =   4560
      Width           =   975
   End
   Begin VB.CommandButton 删除导游 
      Caption         =   "删除导游"
      Height          =   375
      Left            =   2520
      TabIndex        =   4
      Top             =   4560
      Width           =   975
   End
   Begin VB.CommandButton 添加导游 
      Caption         =   "添加导游"
      Height          =   375
      Left            =   1200
      TabIndex        =   3
      Top             =   4560
      Width           =   975
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   6600
      TabIndex        =   2
      Top             =   4560
      Width           =   735
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "DYOUFORM.frx":120D4
      Height          =   2775
      Left            =   600
      TabIndex        =   0
      Top             =   1200
      Width           =   5655
      _ExtentX        =   9975
      _ExtentY        =   4895
      _Version        =   393216
      Enabled         =   0   'False
      HeadLines       =   1
      RowHeight       =   15
      AllowAddNew     =   -1  'True
      AllowDelete     =   -1  'True
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Caption         =   "导游管理表格"
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2057
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2057
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   2280
      Top             =   4080
      Visible         =   0   'False
      Width           =   1455
      _ExtentX        =   2566
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=MSDASQL.1;Persist Security Info=False;Data Source=travalDb"
      OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;Data Source=travalDb"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "导游数据表"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "导游管理子系统"
      BeginProperty Font 
         Name            =   "方正舒体"
         Size            =   27.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFC0C0&
      Height          =   735
      Left            =   1560
      TabIndex        =   1
      Top             =   360
      Width           =   4215
   End
End
Attribute VB_Name = "DYOUFORM"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Command9_Click()
Text1.Text = Adodc1.Recordset.RecordCount
End Sub



Private Sub 第一个导游_Click()
If Adodc1.Recordset.BOF = True Then
MsgBox ("记录已经在第一条!")
Else
Adodc1.Recordset.MoveFirst
End If
End Sub

Private Sub 前一个导游_Click()
If Adodc1.Recordset.BOF = True Then
MsgBox ("记录已经在第一条!")
Else
Adodc1.Recordset.MovePrevious
End If
End Sub

Private Sub 删除导游_Click()
On Error Resume Next
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast
Adodc1.Recordset.Update
End Sub

Private Sub 添加导游_Click()
On Error Resume Next
删除导游.Enabled = Not 删除导游.Enabled
修改导游.Enabled = Not 修改导游.Enabled
If 添加导游.Caption = "添加导游" Then
DataGrid1.Enabled = True
添加导游.Caption = "确认"
Adodc1.Recordset.AddNew
Adodc1.Recordset.Update
Else
添加景点.Caption = "添加导游"
Adodc1.Recordset.MoveLast
DataGrid1.Enabled = False
添加导游.Enabled = True
删除导游.Enabled = True
End If
End Sub

Private Sub 下一个导游_Click()
If Adodc1.Recordset.EOF = True Then
MsgBox ("记录已经在最后一条!")
Else
Adodc1.Recordset.MoveNext
End If
End Sub


Private Sub 修改导游_Click()
On Error Resume Next

If 修改导游.Caption = "修改导游" Then
DataGrid1.Enabled = True
修改导游.Caption = "确认"
添加导游.Enabled = Not 添加导游.Enabled
删除导游.Enabled = Not 删除导游.Enabled
Adodc1.Recordset.Update
Else
修改景点.Caption = "修改导游"
DataGrid1.Enabled = False
添加导游.Enabled = True
删除导游.Enabled = True
End If
End Sub

Private Sub 最后一个导游_Click()
If Adodc1.Recordset.EOF = True Then
MsgBox ("记录已经在最后一条!")
Else
Adodc1.Recordset.MoveLast
End If
End Sub

⌨️ 快捷键说明

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