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

📄 planeman.frm

📁 目录:图书管理系统软件设计说明 一.可行性研究 二.需求分析:1.任务概述2.数据需求:2.3 数据库描述:2.4 数据采集: 3.功能需求:新书入库DFD:图书借阅的DFD:过期提示的DFD:借阅查
💻 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 PlaneMan 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "飞机信息管理"
   ClientHeight    =   6075
   ClientLeft      =   45
   ClientTop       =   345
   ClientWidth     =   7695
   Icon            =   "PlaneMan.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6075
   ScaleWidth      =   7695
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Cmd_Modi 
      Caption         =   "修 改"
      Height          =   400
      Left            =   2347
      MouseIcon       =   "PlaneMan.frx":27A2
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   5400
      Width           =   1300
   End
   Begin VB.CommandButton Cmd_Close 
      Caption         =   "关 闭"
      Height          =   400
      Left            =   5747
      MouseIcon       =   "PlaneMan.frx":2AAC
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   5400
      Width           =   1300
   End
   Begin VB.CommandButton Cmd_Del 
      Caption         =   "删 除"
      Height          =   400
      Left            =   4047
      MouseIcon       =   "PlaneMan.frx":2DB6
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   5400
      Width           =   1300
   End
   Begin VB.CommandButton Cmd_Add 
      Caption         =   "添 加"
      Default         =   -1  'True
      Height          =   400
      Left            =   647
      MouseIcon       =   "PlaneMan.frx":30C0
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   5400
      Width           =   1300
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "PlaneMan.frx":33CA
      Height          =   5055
      Left            =   0
      TabIndex        =   4
      Top             =   120
      Width           =   7695
      _ExtentX        =   13573
      _ExtentY        =   8916
      _Version        =   393216
      AllowUpdate     =   0   'False
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            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            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   120
      Top             =   5160
      Visible         =   0   'False
      Width           =   1695
      _ExtentX        =   2990
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=Travel"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "Travel"
      OtherAttributes =   ""
      UserName        =   "sa"
      Password        =   "sa"
      RecordSource    =   "SELECT * FROM Place"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
End
Attribute VB_Name = "PlaneMan"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Refresh_Plane()
  Adodc1.RecordSource = "SELECT AirCom As 航空公司, Pno 航班号, Sairport As 起飞机场," _
        + " Eairport As 抵达机场, Stime As 开车时间, Etime As 抵达时间," _
        + " Price1 As 公布票价, Price2 As 折扣票价, Cycle As 飞行航期," _
        + " Input_time As 录入时间 FROM Plane ORDER BY Pno, Sairport, Eairport"
  Adodc1.Refresh
End Sub

Private Sub Cmd_Add_Click()
  PlaneEdit.Modify = False
  PlaneEdit.OriPno = ""
  PlaneEdit.OriSairport = ""
  PlaneEdit.OriEairport = ""
  PlaneEdit.OriId = 0
  
  PlaneEdit.Show 1
  Refresh_Plane
End Sub

Private Sub Cmd_Del_Click()
  Dim TmpId As Long

  If Adodc1.Recordset.EOF = True Then
    MsgBox "请选择记录"
    Exit Sub
  End If
  
  p = Adodc1.Recordset.AbsolutePosition
  TmpId = MyPlane.GetId(Trim(Adodc1.Recordset.Fields(1)), _
          Trim(Adodc1.Recordset.Fields(2)), Trim(Adodc1.Recordset.Fields(3)))
  If Mylplane.PlaneInLine(TmpId) > 0 Then
    MsgBox "当前飞机信息包含在线路中,不能删除"
    Exit Sub
  End If
  If MsgBox("是否删除当前行?", vbYesNo, "确认") = vbYes Then
    MyPlane.Delete (TmpId)
    Refresh_Plane
    If p - 1 > 0 Then
      Adodc1.Recordset.Move p - 1
    End If
  End If
End Sub

Private Sub Cmd_Modi_Click()
  If Adodc1.Recordset.EOF = True Then
    MsgBox "请选择记录"
    Exit Sub
  End If
  
  p = Adodc1.Recordset.AbsolutePosition
  PlaneEdit.OriCycle = Trim(Adodc1.Recordset.Fields(8))
  PlaneEdit.OriId = MyPlane.GetId(Trim(Adodc1.Recordset.Fields(1)), _
          Trim(Adodc1.Recordset.Fields(2)), Trim(Adodc1.Recordset.Fields(3)))
  PlaneEdit.txtAirCom = Trim(Adodc1.Recordset.Fields(0))
  PlaneEdit.OriPno = Trim(Adodc1.Recordset.Fields(1))
  PlaneEdit.txtPno = Trim(Adodc1.Recordset.Fields(1))
  PlaneEdit.OriSairport = Trim(Adodc1.Recordset.Fields(2))
  PlaneEdit.txtSairport = Trim(Adodc1.Recordset.Fields(2))
  PlaneEdit.OriEairport = Trim(Adodc1.Recordset.Fields(3))
  PlaneEdit.txtEairport = Trim(Adodc1.Recordset.Fields(3))
  PlaneEdit.txtStime = Trim(Adodc1.Recordset.Fields(4))
  PlaneEdit.txtEtime = Trim(Adodc1.Recordset.Fields(5))
  PlaneEdit.txtPrice1 = Trim(Adodc1.Recordset.Fields(6))
  PlaneEdit.txtPrice2 = Trim(Adodc1.Recordset.Fields(7))
  
  PlaneEdit.Modify = True
  PlaneEdit.Show 1
  
  Refresh_Plane
  Adodc1.Recordset.Move p
End Sub

Private Sub Cmd_Close_Click()
  Unload Me
End Sub

Private Sub Form_Load()
  Refresh_Plane
End Sub


⌨️ 快捷键说明

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