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

📄 frm_ygcqgl.frm

📁 中小型企业员工管理系统 教程 教程 教程 教程 教程
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Frm_ygcqgl 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "员工出勤信息管理"
   ClientHeight    =   2295
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4590
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2295
   ScaleWidth      =   4590
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text5 
      Height          =   285
      Left            =   2865
      TabIndex        =   14
      Top             =   210
      Width           =   1560
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   210
      Top             =   3045
      Width           =   1980
      _ExtentX        =   3493
      _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         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      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 VB.ComboBox Combo1 
      Height          =   300
      Left            =   1035
      Style           =   2  'Dropdown List
      TabIndex        =   12
      Top             =   195
      Width           =   1320
   End
   Begin VB.TextBox Text4 
      Height          =   270
      Left            =   885
      TabIndex        =   10
      Top             =   1245
      Width           =   885
   End
   Begin VB.TextBox Text3 
      Height          =   270
      Left            =   885
      TabIndex        =   9
      Top             =   855
      Width           =   885
   End
   Begin VB.CommandButton cmd_cancel 
      Caption         =   "取消"
      Height          =   345
      Left            =   3630
      TabIndex        =   8
      Top             =   1860
      Width           =   795
   End
   Begin VB.CommandButton cmd_ok 
      Caption         =   "确认"
      Height          =   345
      Left            =   2850
      TabIndex        =   7
      Top             =   1860
      Width           =   795
   End
   Begin VB.Frame Frame1 
      Height          =   1125
      Left            =   165
      TabIndex        =   0
      Top             =   600
      Width           =   4275
      Begin VB.TextBox Text2 
         Enabled         =   0   'False
         Height          =   270
         Left            =   2730
         TabIndex        =   5
         Top             =   660
         Width           =   885
      End
      Begin VB.TextBox Text1 
         Enabled         =   0   'False
         Height          =   270
         Left            =   2715
         TabIndex        =   2
         Top             =   240
         Width           =   885
      End
      Begin VB.Label Label4 
         Caption         =   "元"
         Height          =   255
         Left            =   3750
         TabIndex        =   6
         Top             =   720
         Width           =   345
      End
      Begin VB.Label Label3 
         Caption         =   "请假            扣除月工资"
         Height          =   255
         Left            =   240
         TabIndex        =   4
         Top             =   750
         Width           =   2610
      End
      Begin VB.Label Label2 
         Caption         =   "元"
         Height          =   255
         Left            =   3735
         TabIndex        =   3
         Top             =   300
         Width           =   345
      End
      Begin VB.Label Label1 
         Caption         =   "迟到            扣除月工资"
         Height          =   255
         Left            =   240
         TabIndex        =   1
         Top             =   300
         Width           =   2610
      End
   End
   Begin VB.Label Label6 
      Caption         =   "月份"
      Height          =   240
      Left            =   2415
      TabIndex        =   13
      Top             =   240
      Width           =   885
   End
   Begin VB.Label Label5 
      Caption         =   "员工姓名"
      Height          =   240
      Left            =   165
      TabIndex        =   11
      Top             =   240
      Width           =   885
   End
End
Attribute VB_Name = "Frm_ygcqgl"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub

Private Sub cmd_ok_Click()
  Adodc1.ConnectionString = MyStrs
  Adodc1.RecordSource = "select * from 出勤信息 where 员工编号='" + YgNums + "'"
  Adodc1.Refresh
  If Adodc1.Recordset.RecordCount = 0 Then   '修改信息
    c = MsgBox("确认保存吗", 33, "提示信息")
      If c = vbOK Then
        Set DB_AdoRs = Cnn.Execute("insert into 出勤信息 values('" & YgNums & "','" & Text3.Text & "','" & Text4.Text & "','" & Text5.Text & "',0)")
        MsgBox "信息保存成功", 64, "提示信息"
      End If
  Else
       MsgBox "信息已经保存", 32, "提示信息"
  End If
End Sub

Private Sub Combo1_Click()
  '获得员工编号
  Adodc1.ConnectionString = MyStrs
  Adodc1.RecordSource = "select * from 员工信息 where 员工姓名='" + Combo1.Text + "'"
  Adodc1.Refresh
  If Adodc1.Recordset.RecordCount > 0 Then
    YgNums = Adodc1.Recordset.Fields("员工编号")
  End If
End Sub

Private Sub Form_Load()
 Adodc1.ConnectionString = MyStrs
 Adodc1.RecordSource = "select * from 员工信息 order by 员工编号"
 Adodc1.Refresh
  For i = 1 To Adodc1.Recordset.RecordCount
    Combo1.AddItem Adodc1.Recordset.Fields("员工姓名")
    Adodc1.Recordset.MoveNext
  Next i
End Sub

Private Sub Text3_Change()
 Adodc1.ConnectionString = MyStrs
 Adodc1.RecordSource = "select * from 扣款标准"
 Adodc1.Refresh
 If Adodc1.Recordset.RecordCount > 0 Then
   Text1.Text = Val(Text3.Text) * Val(Adodc1.Recordset.Fields("迟到扣除"))
 End If
End Sub

Private Sub Text4_Change()
 Adodc1.ConnectionString = MyStrs
 Adodc1.RecordSource = "select * from 扣款标准"
 Adodc1.Refresh
 If Adodc1.Recordset.RecordCount > 0 Then
   Text2.Text = Val(Text4.Text) * Val(Adodc1.Recordset.Fields("请假扣除"))
 End If
End Sub

⌨️ 快捷键说明

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