- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
frmStatistic2.frm
资源名称:车辆管理信息系统2.rar [点击查看]
上传用户:lizhip88
上传日期:2007-06-21
资源大小:42k
文件大小:4k
源码类别:
交通/航空行业
开发平台:
Visual Basic
- VERSION 5.00
- Begin VB.Form frmStatistic2
- BorderStyle = 3 'Fixed Dialog
- Caption = "运营信息查询"
- ClientHeight = 1776
- ClientLeft = 48
- ClientTop = 336
- ClientWidth = 4680
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1776
- ScaleWidth = 4680
- ShowInTaskbar = 0 'False
- StartUpPosition = 1 'CenterOwner
- Begin VB.CheckBox chkItem
- Caption = "Check1"
- Height = 180
- Index = 1
- Left = 240
- TabIndex = 7
- TabStop = 0 'False
- Top = 720
- Width = 255
- End
- Begin VB.CheckBox chkItem
- Caption = "Check1"
- Height = 180
- Index = 0
- Left = 240
- TabIndex = 6
- TabStop = 0 'False
- Top = 240
- Value = 1 'Checked
- Width = 255
- End
- Begin VB.CommandButton cmdOk
- Caption = "确定 (&O)"
- Default = -1 'True
- Height = 375
- Left = 840
- TabIndex = 2
- Top = 1320
- Width = 1215
- End
- Begin VB.CommandButton cmdExit
- Caption = "取消 (&X)"
- Height = 375
- Left = 2760
- TabIndex = 3
- Top = 1320
- Width = 1215
- End
- Begin VB.TextBox txtItem
- Height = 270
- Index = 1
- Left = 1680
- TabIndex = 1
- Top = 720
- Width = 2655
- End
- Begin VB.TextBox txtItem
- Height = 270
- Index = 0
- Left = 1680
- TabIndex = 0
- Top = 240
- Width = 2655
- End
- Begin VB.Label lblitem
- Caption = "司机姓名:"
- Height = 255
- Index = 1
- Left = 600
- TabIndex = 5
- Top = 720
- Width = 1095
- End
- Begin VB.Label lblitem
- Caption = "车 号:"
- Height = 255
- Index = 0
- Left = 600
- TabIndex = 4
- Top = 240
- Width = 1095
- End
- End
- Attribute VB_Name = "frmStatistic2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Public sQSql As String
- Private Sub cmdExit_Click()
- Me.Hide
- End Sub
- Private Sub cmdOK_Click()
- Dim txtSQL As String
- If chkItem(0).Value = vbChecked Then
- sQSql = " yyid ='" & Trim(txtItem(0) & " ") & "'"
- End If
- If chkItem(1).Value = vbChecked Then
- If Trim(sQSql & " ") = "" Then
- sQSql = " yydriver ='" & Trim(txtItem(1) & " ") & "'"
- Else
- sQSql = sQSql & " and yydriver ='" & Trim(txtItem(1) & " ") & "'"
- End If
- End If
- If Trim(sQSql) = "" Then
- MsgBox "请设置查询方式!", vbOKOnly + vbExclamation, "警告"
- Exit Sub
- Else
- If flagsEdit Then
- Unload frmStatistic
- End If
- frmStatistic.txtSQL = "select * from statistic where " & sQSql
- frmStatistic.Show
- End If
- Me.Hide
- End Sub
- Private Sub lblitem_Click(Index As Integer)
- chkItem(Index).Value = vbChecked
- txtItem(Index).SetFocus
- End Sub
- Private Sub chkItem_Click(Index As Integer)
- txtItem(Index).SetFocus
- End Sub
- Private Sub txtItem_GotFocus(Index As Integer)
- txtItem(Index).SelStart = 0
- txtItem(Index).SelLength = Len(txtItem(Index))
- End Sub