mainForm.frm
资源名称:七八个vb游戏.rar [点击查看]
上传用户:tashmp
上传日期:2010-04-03
资源大小:882k
文件大小:20k
源码类别:
其他游戏
开发平台:
Visual Basic
- VERSION 5.00
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
- Begin VB.Form mainForm
- BackColor = &H8000000A&
- BorderStyle = 1 'Fixed Single
- Caption = "驾照年审管理系统"
- ClientHeight = 7410
- ClientLeft = 150
- ClientTop = 780
- ClientWidth = 12675
- Icon = "mainForm.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 7410
- ScaleWidth = 12675
- StartUpPosition = 3 'Windows Default
- Begin MSComctlLib.ImageList ImageList2
- Left = 3120
- Top = 7080
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 16
- ImageHeight = 16
- MaskColor = 12632256
- _Version = 393216
- BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
- NumListImages = 23
- BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":0CCA
- Key = ""
- EndProperty
- BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":1F4C
- Key = ""
- EndProperty
- BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":2E26
- Key = ""
- EndProperty
- BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":3700
- Key = ""
- EndProperty
- BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":3A1A
- Key = ""
- EndProperty
- BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":42F4
- Key = ""
- EndProperty
- BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":460E
- Key = ""
- EndProperty
- BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":51E0
- Key = ""
- EndProperty
- BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":60BA
- Key = ""
- EndProperty
- BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":787C
- Key = ""
- EndProperty
- BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":9586
- Key = ""
- EndProperty
- BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":98A0
- Key = ""
- EndProperty
- BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":9BBA
- Key = ""
- EndProperty
- BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":9ED4
- Key = ""
- EndProperty
- BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":ABAE
- Key = ""
- EndProperty
- BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":BA00
- Key = ""
- EndProperty
- BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":C2DA
- Key = ""
- EndProperty
- BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":C5F4
- Key = ""
- EndProperty
- BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":C90E
- Key = ""
- EndProperty
- BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":D1E8
- Key = ""
- EndProperty
- BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":D502
- Key = ""
- EndProperty
- BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":E1DC
- Key = ""
- EndProperty
- BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":FEE6
- Key = ""
- EndProperty
- EndProperty
- End
- Begin MSComctlLib.ListView ListView2
- Height = 5895
- Left = 3120
- TabIndex = 4
- Top = 1560
- Width = 9615
- _ExtentX = 16960
- _ExtentY = 10398
- LabelWrap = -1 'True
- HideSelection = -1 'True
- _Version = 393217
- Icons = "ImageList2"
- ForeColor = 32768
- BackColor = 16761024
- BorderStyle = 1
- Appearance = 1
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- NumItems = 0
- End
- Begin MSComctlLib.ListView ListView1
- Height = 5895
- Left = 0
- TabIndex = 3
- Top = 1560
- Width = 3135
- _ExtentX = 5530
- _ExtentY = 10398
- LabelWrap = -1 'True
- HideSelection = -1 'True
- _Version = 393217
- Icons = "ImageList2"
- ForeColor = 32768
- BackColor = 16761024
- BorderStyle = 1
- Appearance = 1
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- NumItems = 0
- End
- Begin VB.Frame Frame1
- Appearance = 0 'Flat
- BackColor = &H80000008&
- ForeColor = &H80000008&
- Height = 735
- Left = -360
- TabIndex = 1
- Top = 840
- Width = 13335
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "欢迎使用驾照年审管理系统"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H0080FF80&
- Height = 375
- Left = 4440
- TabIndex = 2
- Top = 240
- Width = 3855
- End
- End
- Begin MSComctlLib.Toolbar Toolbar1
- Align = 1 'Align Top
- Height = 840
- Left = 0
- TabIndex = 0
- Top = 0
- Width = 12675
- _ExtentX = 22357
- _ExtentY = 1482
- ButtonWidth = 2223
- ButtonHeight = 1323
- Appearance = 1
- ImageList = "ImageList1"
- _Version = 393216
- BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
- NumButtons = 7
- BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Caption = "驾驶员资料查询"
- Key = "ry_query"
- Object.ToolTipText = "驾驶员资料查询"
- ImageIndex = 1
- EndProperty
- BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Caption = "驾驶员表现查询"
- Key = "bx_query"
- Object.ToolTipText = "驾驶员表现查询"
- ImageIndex = 2
- EndProperty
- BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Caption = "驾驶员积分查询"
- Key = "jf_query"
- Object.ToolTipText = "驾驶员积分查询"
- ImageIndex = 3
- EndProperty
- BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Caption = "年审评定查询"
- Key = "pd_query"
- Object.ToolTipText = "年审评定查询"
- ImageIndex = 4
- EndProperty
- BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Caption = "权限管理"
- Key = "tqx_gl"
- Object.ToolTipText = "权限管理"
- ImageIndex = 5
- EndProperty
- BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Caption = "帮助信息"
- Key = "Thelp"
- Object.ToolTipText = "帮助信息"
- ImageIndex = 6
- EndProperty
- BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Caption = "退出系统"
- Key = "exit"
- Object.ToolTipText = "退出系统"
- ImageIndex = 7
- EndProperty
- EndProperty
- End
- Begin MSComctlLib.ImageList ImageList1
- Left = 12000
- Top = 6840
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 32
- ImageHeight = 32
- MaskColor = 12632256
- _Version = 393216
- BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
- NumListImages = 7
- BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":11678
- Key = ""
- EndProperty
- BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":12352
- Key = ""
- EndProperty
- BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":1266C
- Key = ""
- EndProperty
- BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":13346
- Key = ""
- EndProperty
- BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":14020
- Key = ""
- EndProperty
- BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":14CFA
- Key = ""
- EndProperty
- BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "mainForm.frx":15014
- Key = ""
- EndProperty
- EndProperty
- End
- Begin VB.Menu mainzy
- Caption = "驾驶员资料管理"
- Begin VB.Menu zl_addry
- Caption = "添加人员"
- End
- Begin VB.Menu zl_queryry
- Caption = "查询人员"
- End
- Begin VB.Menu zl_midry
- Caption = "修改人员"
- End
- Begin VB.Menu zl_delry
- Caption = "删除人员"
- End
- End
- Begin VB.Menu bx_gl
- Caption = "驾驶员表现管理"
- Begin VB.Menu bx_addry
- Caption = "添加人员"
- End
- Begin VB.Menu bx_queryry
- Caption = "查询人员"
- End
- Begin VB.Menu bx_mdiry
- Caption = "修改人员"
- End
- Begin VB.Menu bx_delry
- Caption = "删除人员"
- End
- End
- Begin VB.Menu jf_gl
- Caption = "驾驶员积分管理"
- Begin VB.Menu jf_addru
- Caption = "添加人员"
- End
- Begin VB.Menu jf_queryry
- Caption = "查询人员"
- End
- Begin VB.Menu jf_midry
- Caption = "修改人员"
- End
- Begin VB.Menu fj_delry
- Caption = "删除人员"
- End
- End
- Begin VB.Menu ns_pd
- Caption = "驾驶员年审评定"
- Begin VB.Menu ns_query
- Caption = "查询年审评定"
- End
- Begin VB.Menu ns_addry
- Caption = "添加年审评定"
- End
- End
- Begin VB.Menu xtgl
- Caption = "权限管理"
- Begin VB.Menu gly_gl
- Caption = "管理员权限管理"
- End
- Begin VB.Menu yhgx_gl
- Caption = "用户权限管理"
- End
- End
- Begin VB.Menu help
- Caption = "帮助信息"
- Begin VB.Menu about
- Caption = "关于........"
- End
- End
- End
- Attribute VB_Name = "mainForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub about_Click()
- aboutForm.Show
- End Sub
- Private Sub bx_addry_Click()
- bx_Form.Show
- End Sub
- Private Sub bx_delry_Click()
- bx_Form.Show
- End Sub
- Private Sub bx_mdiry_Click()
- bx_Form.Show
- End Sub
- Private Sub bx_queryry_Click()
- bx_Form.Show
- End Sub
- Private Sub fj_delry_Click()
- jf_xgForm.Show
- End Sub
- Private Sub Form_Load()
- 'Frame1.Left = Me.Width - Frame1.Width
- 'Listview的设置
- Me.Left = (Screen.Width - Me.Width) / 2 - 150
- Me.Top = (Screen.Height - Me.Height) / 2 - 200
- Dim Item As ListItem
- Set Item = ListView1.ListItems.Add(, , "驾驶员资料管理")
- Item.Icon = 1
- Set Item = ListView1.ListItems.Add(, , "驾驶员表现管理")
- Item.Icon = 2
- Set Item = ListView1.ListItems.Add(, , "驾驶员积分管理")
- Item.Icon = 3
- Set Item = ListView1.ListItems.Add(, , "驾驶员年审评定")
- Item.Icon = 4
- Set Item = ListView1.ListItems.Add(, , "年审系统管理")
- Item.Icon = 5
- Set Item = ListView1.ListItems.Add(, , "年审帮助信息")
- Item.Icon = 6
- Set Item = ListView2.ListItems.Add(, , "人员资料添加")
- Item.Icon = 7
- Set Item = ListView2.ListItems.Add(, , "人员资料查询")
- Item.Icon = 8
- Set Item = ListView2.ListItems.Add(, , "人员资料修改")
- Item.Icon = 9
- Set Item = ListView2.ListItems.Add(, , "人员资料删除")
- Item.Icon = 10
- End Sub
- Private Sub gly_gl_Click()
- If priview = "admini" Then
- gly_qxForm.Show
- Else
- MsgBox "你没有权限使用!!", 48, "友情提示!!"
- End If
- End Sub
- Private Sub jf_addru_Click()
- jf_xgForm.Show
- End Sub
- Private Sub jf_midry_Click()
- jf_xgForm.Show
- End Sub
- '积分查询
- Private Sub jf_queryry_Click()
- jfForm.Show
- End Sub
- 'Listview事件
- Private Sub ListView1_ItemClick(ByVal Item As MSComctlLib.ListItem)
- ListView2.ListItems.Clear '清空
- ' Dim item As ListItem
- Select Case Item.Text
- Case "驾驶员资料管理"
- Set Item = ListView2.ListItems.Add(, , "人员资料添加")
- Item.Icon = 7
- Set Item = ListView2.ListItems.Add(, , "人员资料查询")
- Item.Icon = 8
- Set Item = ListView2.ListItems.Add(, , "人员资料修改")
- Item.Icon = 9
- Set Item = ListView2.ListItems.Add(, , "人员资料删除")
- Item.Icon = 10
- Case "驾驶员表现管理"
- Set Item = ListView2.ListItems.Add(, , "人员表现添加")
- Item.Icon = 11
- Set Item = ListView2.ListItems.Add(, , "人员表现删除")
- Item.Icon = 12
- Set Item = ListView2.ListItems.Add(, , "人员表现修改")
- Item.Icon = 13
- Set Item = ListView2.ListItems.Add(, , "人员表现查询")
- Item.Icon = 14
- Case "驾驶员积分管理"
- Set Item = ListView2.ListItems.Add(, , "人员积分添加")
- Item.Icon = 15
- Set Item = ListView2.ListItems.Add(, , "人员积分删除")
- Item.Icon = 16
- Set Item = ListView2.ListItems.Add(, , "人员积分修改")
- Item.Icon = 17
- Set Item = ListView2.ListItems.Add(, , "人员积分查询")
- Item.Icon = 18
- Case "驾驶员年审评定"
- Set Item = ListView2.ListItems.Add(, , "年审评定查询")
- Item.Icon = 19
- Set Item = ListView2.ListItems.Add(, , "年审评定添加")
- Item.Icon = 20
- Case "年审系统管理"
- Set Item = ListView2.ListItems.Add(, , "系统权限管理1")
- Item.Icon = 21
- Set Item = ListView2.ListItems.Add(, , "系统权限管理2")
- Item.Icon = 23
- Case "年审帮助信息"
- Set Item = ListView2.ListItems.Add(, , "系统帮助信息")
- Item.Icon = 22
- End Select
- End Sub
- Private Sub ListView2_ItemClick(ByVal Item As MSComctlLib.ListItem)
- Select Case Item.Text
- Case "人员资料添加"
- If priview = "admini" Then
- zl_tjForm.Show
- Else
- MsgBox "你没有权限使用!", 16, "友情提示!"
- End If
- Case "人员资料查询"
- zlqueryForm.Show
- zlqueryForm.SetFocus
- Case "人员资料修改"
- If priview = "admini" Then
- zl_midForm.Show
- Else
- MsgBox "你没有权限使用!", 16, "友情提示!"
- End If
- Case "人员资料删除"
- If priview = "admini" Then
- zl_midForm.Show
- Else
- MsgBox "你没有权限使用!", 16, "友情提示!"
- End If
- Case "人员表现查询"
- bx_Form.Show
- Case "人员表现删除"
- If priview = "admini" Then
- bx_Form.Show
- End If
- Case "人员表现修改"
- If priview = "admini" Then
- bx_Form.Show
- End If
- Case "人员表现添加"
- If priview = "admini" Then
- bx_Form.Show
- End If
- Case "人员积分查询"
- jfForm.Show
- Case "人员积分删除"
- If priview = "admini" Then
- jf_xgForm.Show
- Else
- MsgBox "你没有权限使用!", 48, "友情提示!"
- End If
- Case "人员积分添加"
- If priview = "admini" Then
- jf_xgForm.Show
- Else
- MsgBox "你没有权限使用!", 48, "友情提示!"
- End If
- Case "人员积分修改"
- If priview = "admini" Then
- jf_xgForm.Show
- Else
- MsgBox "你没有权限使用!", 48, "友情提示!"
- End If
- Case "年审评定查询"
- ns_queryForm.Show
- Case "年审评定添加"
- If priview = "admini" Then
- ns_tjForm.Show
- Else
- MsgBox "你没有权限使用!", 48, "友情提示!"
- End If
- Case "系统权限管理1"
- If priview = "admini" Then
- yh_qxForm.Show
- Else
- MsgBox "你没有权限使用!!", 48, "友情提示!!"
- End If
- Case "系统权限管理2"
- If priview = "admini" Then
- gly_qxForm.Show
- Else
- MsgBox "你没有权限使用!!", 48, "友情提示!!"
- End If
- End Select
- End Sub
- Private Sub ns_addry_Click()
- ns_tjForm.Show
- End Sub
- '查询年审评定
- Private Sub ns_query_Click()
- ns_queryForm.Show
- End Sub
- '工具拦事件
- Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
- Select Case Button.Index
- Case 1
- '资料查询
- zlqueryForm.Show
- Case 2
- '表现查询
- bx_Form.Show
- Case 3
- '积分查询
- jfForm.Show
- Case 4
- '年审查询
- ns_queryForm.Show
- Case 5
- gly_qxForm.Show
- '权限管理
- Case 6
- '帮助信息
- aboutForm.Show
- Case 7
- '退出系统
- End
- End
- End Select
- End Sub
- Private Sub yhgx_gl_Click()
- If priview = "admini" Then
- yh_qxForm.Show
- Else
- MsgBox "你没有权限使用!!", 48, "友情提示!!"
- End If
- End Sub
- Private Sub zl_addry_Click()
- If priview = "admini" Then
- zl_tjForm.Show
- Else
- MsgBox "你没有添加的权限", 16, "查询提示"
- End If
- End Sub
- '删除记录
- Private Sub zl_delry_Click()
- If priview = "admini" Then
- zl_midForm.Show
- Else
- MsgBox "你没有添加的权限", 16, "查询提示"
- End If
- End Sub
- '驾驶员资料修改
- Private Sub zl_midry_Click()
- If priview = "admini" Then
- zl_midForm.Show
- Else
- MsgBox "你没有添加的权限", 16, "查询提示"
- End If
- End Sub
- Private Sub zl_queryry_Click()
- zlqueryForm.Show
- End Sub