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

📄 main.frm

📁 工资管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form main 
   BackColor       =   &H0000FF00&
   Caption         =   "工资管理系统"
   ClientHeight    =   3765
   ClientLeft      =   165
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3765
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   495
      Left            =   2640
      TabIndex        =   12
      Top             =   3120
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H0000FF00&
      Caption         =   "确定"
      DownPicture     =   "main.frx":0000
      Height          =   495
      Left            =   240
      TabIndex        =   11
      Top             =   3120
      Width           =   1215
   End
   Begin VB.OptionButton Option8 
      BackColor       =   &H0000FF00&
      Caption         =   "月查询"
      Height          =   495
      Left            =   3000
      TabIndex        =   10
      Top             =   2400
      Width           =   1215
   End
   Begin VB.OptionButton Option7 
      BackColor       =   &H0000FF00&
      Caption         =   "部门查询"
      Height          =   495
      Left            =   1680
      TabIndex        =   9
      Top             =   2400
      Width           =   1095
   End
   Begin VB.OptionButton Option6 
      BackColor       =   &H0000FF00&
      Caption         =   "个人查询"
      Height          =   495
      Left            =   240
      TabIndex        =   8
      Top             =   2400
      Width           =   1095
   End
   Begin VB.Frame Frame2 
      BackColor       =   &H0000FF00&
      Caption         =   "数据查询"
      Height          =   855
      Left            =   120
      TabIndex        =   7
      Top             =   2160
      Width           =   4335
   End
   Begin VB.OptionButton Option5 
      BackColor       =   &H0000FF00&
      Caption         =   "部门信息"
      Height          =   495
      Left            =   1800
      TabIndex        =   6
      Top             =   1320
      Width           =   1215
   End
   Begin VB.OptionButton Option4 
      BackColor       =   &H0000FF00&
      Caption         =   "津贴罚款"
      Height          =   495
      Left            =   240
      TabIndex        =   5
      Top             =   1320
      Width           =   1215
   End
   Begin VB.OptionButton Option3 
      BackColor       =   &H0000FF00&
      Caption         =   "考勤信息"
      Height          =   375
      Left            =   3120
      TabIndex        =   4
      Top             =   840
      Width           =   1095
   End
   Begin VB.OptionButton Option2 
      BackColor       =   &H0000FF00&
      Caption         =   "工种信息"
      Height          =   375
      Left            =   1800
      TabIndex        =   3
      Top             =   840
      Width           =   1095
   End
   Begin VB.OptionButton Option1 
      BackColor       =   &H0000FF00&
      Caption         =   "员工信息"
      Height          =   375
      Left            =   240
      TabIndex        =   2
      Top             =   840
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H0000FF00&
      Caption         =   "数据维护"
      Height          =   1335
      Left            =   120
      TabIndex        =   1
      Top             =   600
      Width           =   4335
   End
   Begin VB.Label Label1 
      BackColor       =   &H0000FF00&
      Caption         =   "  欢迎使用工资管理系统"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00404040&
      Height          =   375
      Left            =   480
      TabIndex        =   0
      Top             =   0
      Width           =   3735
   End
End
Attribute VB_Name = "main"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False











Private Sub Command1_Click()
Dim str As String
If Option1.Value = True Then
   ygxx.Show
End If
If Option2.Value = True Then
   gzxx.Show
End If
If Option3.Value = True Then
   kqxx.Show
End If
If Option4.Value = True Then
    jtfk.Show
 End If
If Option5.Value = True Then
   bmxx.Show
End If
If Option6.Value = True Then
str = InputBox("请输入员工号:")

If str = "" Then Exit Sub


Load grcx

grcx.Adodc1.ConnectionString = constr
grcx.Adodc1.RecordSource = "select * from 工资信息 where 员工号 like " & str & " Order by 员工号"
grcx.Adodc1.Refresh

If grcx.Adodc1.Recordset.RecordCount = 0 Then
MsgBox "没有相应的记录!"
Unload grcx
Exit Sub
End If

grcx.Show
End If
If Option7.Value = True Then
   str = InputBox("请输入部门号:")

If str = "" Then Exit Sub


Load bmcx

bmcx.Adodc1.ConnectionString = constr
bmcx.Adodc1.RecordSource = "select * from 工资信息 where 部门号 like " & str & " Order by 员工号"
bmcx.Adodc1.Refresh

If bmcx.Adodc1.Recordset.RecordCount = 0 Then
MsgBox "没有相应的记录!"
Unload bmcx
Exit Sub
End If

bmcx.Show
End If
If Option8.Value = True Then
   str = InputBox("请输入年月:")

If str = "" Then Exit Sub


Load grcx

ycx.Adodc1.ConnectionString = constr
ycx.Adodc1.RecordSource = "select * from 工资信息 where 年月like " & str & " Order by 员工号"
ycx.Adodc1.Refresh

If ycx.Adodc1.Recordset.RecordCount = 0 Then
MsgBox "没有相应的记录!"
Unload ycx
Exit Sub
End If

ycx.Show
End If
End Sub

Private Sub Command2_Click()
End

End Sub


⌨️ 快捷键说明

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