?? gzglxtbas.frm
字號:
MouseDownColor = 16761024
MouseOnColor = 16761024
StyleColor = -2147483646
Style3dColor1 = -2147483646
Style3dColor2 = -2147483646
Picture = "gzglxtbas.frx":8F10B
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin MySuperMarket.XButton XButton7
Height = 480
Left = 6060
TabIndex = 7
ToolTipText = "關于"
Top = 0
Width = 525
_ExtentX = 926
_ExtentY = 847
Caption = ""
MouseDownColor = 16761024
MouseOnColor = 16761024
StyleColor = -2147483646
Style3dColor1 = -2147483646
Style3dColor2 = -2147483646
Picture = "gzglxtbas.frx":918BD
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Line Line3
BorderColor = &H80000003&
X1 = 6015
X2 = 6015
Y1 = 30
Y2 = 440
End
Begin VB.Line Line2
BorderColor = &H80000003&
X1 = 3735
X2 = 3735
Y1 = 30
Y2 = 440
End
Begin VB.Line Line1
BorderColor = &H80000003&
X1 = 765
X2 = 765
Y1 = 30
Y2 = 440
End
End
Begin VsMenu.ctxVsMenu ctxVsMenu1
Left = 1440
Top = 3000
_ExtentX = 900
_ExtentY = 900
BmpCount = 1
Mask:1 = 16711935
Key:1 = "#mnusysquit"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "新宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
MenuDrawStyle = 2
UserSelectedMenuBackColour= 13040639
UserSelectedMenuBorderColour= 15717306
UserTopMenuBackColour= 16761765
UserTopMenuSelectedColour= 16769990
UserTopMenuHotColour= 33023
UserTopMenuHotBorderColour= 16711680
UserMenuBorderColour= 8388608
UserCheckBackColour= 8108783
UserCheckBorderColour= 16711680
UserGradientOne = 16777215
UserGradientTwo = 16761765
UserUseGradient = -1 'True
UserSelectedItemForeColour= 16384
UserSideBarColour= 16711680
End
Begin VB.Menu mnusys
Caption = "系統(&S)"
Begin VB.Menu mnusysquit
Caption = "退出(&X)"
Shortcut = ^Q
End
End
Begin VB.Menu mnudata
Caption = "數據維護(&D)"
Begin VB.Menu mnudataadd
Caption = "增加"
End
Begin VB.Menu mnudatamodify
Caption = "修改"
End
Begin VB.Menu mnudatadelete
Caption = "刪除"
End
End
Begin VB.Menu mnucount
Caption = "統計(&C)"
Begin VB.Menu mnucountsection
Caption = "按部門"
Begin VB.Menu mnucountsectionemp
Caption = "職工人數"
End
Begin VB.Menu mnucountsectionave
Caption = "平均工資"
End
Begin VB.Menu mnucountsectionsum
Caption = "工資總額"
End
End
Begin VB.Menu mnucountall
Caption = "按全體"
Begin VB.Menu mnucountallemp
Caption = "職工人數"
End
Begin VB.Menu mnucountallave
Caption = "平均工資"
End
Begin VB.Menu mnucountallsum
Caption = "工資總額"
End
End
End
Begin VB.Menu mnuquery
Caption = "查詢(&Q)"
Begin VB.Menu mnuqueryname
Caption = "按姓名"
End
Begin VB.Menu mnuquerydepart
Caption = "按部門"
End
End
Begin VB.Menu mnuhelp
Caption = "幫助(&H)"
Begin VB.Menu mnuHelpAbout
Caption = "關于"
End
End
End
Attribute VB_Name = "frm開始"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim btns As Integer '變量聲明
Private Sub Form_Load()
XButton1.MouseDownColor = RGB(182, 190, 220)
XButton1.MouseOnColor = RGB(182, 190, 220)
XButton2.MouseDownColor = RGB(182, 190, 220)
XButton2.MouseOnColor = RGB(182, 190, 220)
XButton3.MouseDownColor = RGB(182, 190, 220)
XButton3.MouseOnColor = RGB(182, 190, 220)
XButton4.MouseDownColor = RGB(182, 190, 220)
XButton4.MouseOnColor = RGB(182, 190, 220)
XButton5.MouseDownColor = RGB(182, 190, 220)
XButton5.MouseOnColor = RGB(182, 190, 220)
XButton6.MouseDownColor = RGB(182, 190, 220)
XButton6.MouseOnColor = RGB(182, 190, 220)
XButton7.MouseDownColor = RGB(182, 190, 220)
XButton7.MouseOnColor = RGB(182, 190, 220)
XButton7.MouseDownColor = RGB(182, 190, 220)
XButton7.MouseOnColor = RGB(182, 190, 220)
Set db = OpenDatabase(App.Path + "\db1.mdb")
'定義將打開的數據庫和表
Set rt = db.OpenRecordset("職工表")
If rt.RecordCount = 0 Then
'如果表為空,將只能進行“增加”、“退出”和“幫助”操作
mnudatamodify.Enabled = False
mnudatadelete.Enabled = False
mnucount.Enabled = False
mnuquery.Enabled = False '刪除相關工具按鈕
btns = 8
Do While btns > 3
'frm開始.Toolbar1.Buttons.Remove (btns)
btns = btns - 1
Loop
End If
End Sub
Private Sub mnusysquit_click() '系統-退出菜單項
'關閉數據庫和表,結束程序運行
End
End Sub
Private Sub mnudataadd_click() '數據維護-增加菜單項
frm增加.Show 1
End Sub
Private Sub mnudatadelete_click() '數據維護-刪除菜單項
frm刪除.Show 1
End Sub
Private Sub mnudatamodify_click() '數據維護-修改菜單項
frm修改.Show 1
End Sub
Private Sub mnucountsectionave_click() '統計-按部門-平均工資菜單項
frm部門平均工資.Show 1
End Sub
Private Sub mnucountsectionemp_click() '統計-按部門-職工人數菜單項
frm統計部門人數.Show 1
End Sub
Private Sub mnucountsectionsum_click() '統計-按部門-工資總額菜單項
frm部門工資總數.Show 1
End Sub
Private Sub mnucountallave_click() '統計-按全體-平均工資菜單項
frm統計平均工資.Show 1
End Sub
Private Sub mnucountallemp_click() '統計-按全體-職工人數菜單項
frm統計人數.Show 1
End Sub
Private Sub mnucountallsum_click() '統計-按全體-工資總額菜單項
frm統計工資總數.Show 1
End Sub
Private Sub mnuqueryname_click() '查詢-按姓名菜單項
frm姓名查詢.Show 1
End Sub
Private Sub mnuquerydepart_click() '查詢-按部門菜單項
frm部門查詢.Show 1
End Sub
Private Sub mnuHelpAbout_click() '幫助-關于菜單項
frm關于.Show 1
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
PopupMenu mnucount, vbPopupMenuCenterAlign Or vbPopupMenuRight - Button, X, Y
End If
End Sub
Private Sub XButton1_Click()
End
End Sub
Private Sub XButton2_Click()
frm增加.Show 1
End Sub
Private Sub XButton3_Click()
frm修改.Show 1
End Sub
Private Sub XButton4_Click()
frm刪除.Show 1
End Sub
Private Sub XButton5_Click()
frm姓名查詢.Show 1
End Sub
Private Sub XButton6_Click()
frm部門查詢.Show 1
End Sub
Private Sub XButton7_Click()
frm關于.Show 1
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -