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

📄 售票查询.frm

📁 车站管理系统用ASP和SQL2000开发出来的适用于小型车站
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      Top             =   2520
      Width           =   855
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   240
      Top             =   3360
      Visible         =   0   'False
      Width           =   1215
      _ExtentX        =   2143
      _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=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=车站售票管理系统"
      OLEDBString     =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=车站售票管理系统"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select 车次,站名,车型,发车时间,检票口 from 发车时刻表,车辆 where 发车时刻表.车辆编号=车辆.车辆编号 order by 站名 asc"
      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
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "售票查询.frx":0000
      Height          =   2175
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   6855
      _ExtentX        =   12091
      _ExtentY        =   3836
      _Version        =   393216
      HeadLines       =   1
      RowHeight       =   15
      FormatLocked    =   -1  'True
      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     =   5
      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
      BeginProperty Column02 
         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 Column03 
         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 Column04 
         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 
            ColumnWidth     =   915.024
         EndProperty
         BeginProperty Column01 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column02 
            ColumnWidth     =   1184.882
         EndProperty
         BeginProperty Column03 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column04 
            ColumnWidth     =   734.74
         EndProperty
      EndProperty
   End
   Begin VB.Label Label2 
      Caption         =   "剩余票数:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   2280
      TabIndex        =   3
      Top             =   2520
      Width           =   1335
   End
   Begin VB.Label Label1 
      Caption         =   "总票数:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   120
      TabIndex        =   2
      Top             =   2520
      Width           =   1095
   End
End
Attribute VB_Name = "Form9"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub DataGrid1_Click()
Dim cc As String
Adodc2.Recordset.MoveFirst
Adodc3.Recordset.MoveFirst
Adodc4.Recordset.MoveFirst
Text2.Text = ""
cc = "车型='" & Text5.Text & "'"
Adodc3.Recordset.Find cc
Text1.Text = Text3.Text
While Not Adodc2.Recordset.EOF
   If Text4.Text = Text6.Text And Year(Text7.Text) = Year(Date) And Month(Text7.Text) = Month(Date) And Day(Text7.Text) = Day(Date) And Text8.Text = "F" Then
     Text2.Text = Val(Text2.Text) + 1
   End If
   Adodc2.Recordset.MoveNext
Wend
While Not Adodc4.Recordset.EOF
   If Text4.Text = Text9.Text And Year(Date) = Year(Text10.Text) And Month(Date) = Month(Text10.Text) And Day(Date) = Day(Text10.Text) Then
     Text2.Text = Val(Text2.Text) + Val(Text11.Text)
   End If
   Adodc4.Recordset.MoveNext
Wend
Text2.Text = Val(Text1.Text) - Val(Text2.Text)
Text2.Refresh
End Sub

Private Sub Timer1_Timer()
Dim cc As String
Adodc2.Recordset.MoveFirst
Adodc3.Recordset.MoveFirst
Adodc4.Recordset.MoveFirst
If Adodc1.Recordset.EOF Then
  Adodc1.Recordset.MoveFirst
Else
  Adodc1.Recordset.MoveNext
End If
Text2.Text = ""
cc = "车型='" & Text5.Text & "'"
Adodc3.Recordset.Find cc
Text1.Text = Text3.Text
While Not Adodc2.Recordset.EOF
   If Text4.Text = Text6.Text And Year(Text7.Text) = Year(Date) And Month(Text7.Text) = Month(Date) And Day(Text7.Text) = Day(Date) And Text8.Text = "F" Then
     Text2.Text = Val(Text2.Text) + 1
   End If
   Adodc2.Recordset.MoveNext
Wend
While Not Adodc4.Recordset.EOF
   If Text4.Text = Text9.Text And Year(Date) = Year(Text10.Text) And Month(Date) = Month(Text10.Text) And Day(Date) = Day(Text10.Text) Then
     Text2.Text = Val(Text2.Text) + Val(Text11.Text)
   End If
   Adodc4.Recordset.MoveNext
Wend
Text2.Text = Val(Text1.Text) - Val(Text2.Text)
Text2.Refresh
End Sub

⌨️ 快捷键说明

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