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

📄 frmotherkqinfolist.frm

📁 企业人事管理系统,有考勤,人员管理等功能,值得研究,也是我付费弄来的,绝对超值
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{0D452EE1-E08F-101A-852E-02608C4D0BB4}#2.0#0"; "FM20.DLL"
Begin VB.Form frmLeaveInfoList 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "其它考勤信息列表"
   ClientHeight    =   7140
   ClientLeft      =   150
   ClientTop       =   150
   ClientWidth     =   8820
   Icon            =   "frmOtherKQInfoList.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   7140
   ScaleWidth      =   8820
   ShowInTaskbar   =   0   'False
   Begin MSFlexGridLib.MSFlexGrid LeaveGrid1 
      Height          =   5415
      Left            =   240
      TabIndex        =   1
      Top             =   960
      Width           =   8055
      _ExtentX        =   14208
      _ExtentY        =   9551
      _Version        =   393216
      SelectionMode   =   1
      AllowUserResizing=   1
   End
   Begin MSForms.CommandButton cmdSearch 
      Height          =   375
      Left            =   5280
      TabIndex        =   6
      Top             =   6600
      Width           =   975
      Caption         =   "查找"
      PicturePosition =   327683
      Size            =   "1720;661"
      Picture         =   "frmOtherKQInfoList.frx":0442
      FontName        =   "宋体"
      FontHeight      =   180
      FontCharSet     =   134
      FontPitchAndFamily=   34
      ParagraphAlign  =   3
   End
   Begin MSForms.CommandButton cmdChange 
      Height          =   375
      Left            =   3840
      TabIndex        =   5
      Top             =   6600
      Width           =   975
      Caption         =   "修改"
      PicturePosition =   327683
      Size            =   "1720;661"
      FontName        =   "宋体"
      FontHeight      =   180
      FontCharSet     =   134
      FontPitchAndFamily=   34
      ParagraphAlign  =   3
   End
   Begin MSForms.CommandButton cmdDel 
      Height          =   375
      Left            =   2400
      TabIndex        =   4
      Top             =   6600
      Width           =   975
      Caption         =   "删除"
      PicturePosition =   327683
      Size            =   "1720;661"
      FontName        =   "宋体"
      FontHeight      =   180
      FontCharSet     =   134
      FontPitchAndFamily=   34
      ParagraphAlign  =   3
   End
   Begin MSForms.CommandButton cmdOk 
      Height          =   375
      Left            =   960
      TabIndex        =   3
      Top             =   6600
      Width           =   975
      Caption         =   "添加"
      PicturePosition =   327683
      Size            =   "1720;661"
      Picture         =   "frmOtherKQInfoList.frx":34C4
      FontName        =   "宋体"
      FontHeight      =   180
      FontCharSet     =   134
      FontPitchAndFamily=   34
      ParagraphAlign  =   3
   End
   Begin MSForms.CommandButton CommandButton1 
      Height          =   375
      Left            =   6720
      TabIndex        =   2
      Top             =   6600
      Width           =   975
      Caption         =   "返回"
      PicturePosition =   327683
      Size            =   "1720;661"
      FontName        =   "宋体"
      FontHeight      =   180
      FontCharSet     =   134
      FontPitchAndFamily=   34
      ParagraphAlign  =   3
   End
   Begin VB.Label Label1 
      Caption         =   "员工请假信息列表"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   21.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   4095
   End
   Begin VB.Menu pop_menu1 
      Caption         =   "弹出式1"
      Visible         =   0   'False
      Begin VB.Menu addStuffLeaveInfo 
         Caption         =   "添加员工请假信息"
      End
      Begin VB.Menu checkStuffLeaveInfo 
         Caption         =   "查询员工请假信息"
      End
      Begin VB.Menu chgStuffLeaveInfo 
         Caption         =   "修改员工请假信息"
      End
      Begin VB.Menu delStuffLeaveInfo 
         Caption         =   "删除员工请假信息"
      End
      Begin VB.Menu refresh 
         Caption         =   "刷新"
      End
   End
End
Attribute VB_Name = "frmLeaveInfoList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Function showgrid1(ByVal sql As String)
 Dim rs As ADODB.Recordset
 Dim strMsg As String
 Set rs = ExecuteSQL(sql, strMsg)
 Call FillData(rs, LeaveGrid1)
End Function

Private Sub ErrandGrid1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
   
     Me.PopupMenu pop_othermnu
     
   End If
End Sub

Private Sub addStuffLeaveInfo_Click()
  frmAddLeaveInfo.Show
End Sub

Private Sub checkStuffLeaveInfo_Click()
  frmCheckKQ2.Show
  
End Sub

Private Sub chgStuffLeaveInfo_Click()
  frmChgLeaveInfo.Show
  Call LeaveGrid1_DblClick
  
End Sub

Private Sub cmdExit_Click()
 Unload Me
End Sub

Private Sub cmdChange_Click()
 frmChgLeaveInfo.Show
End Sub

Private Sub cmdDel_Click()
 Call delStuffLeaveInfo_Click
End Sub

Private Sub cmdOk_Click()
 frmAddLeaveInfo.Show
End Sub

Private Sub cmdSearch_Click()
  frmCheckKQ2.Show
End Sub

Private Sub CommandButton1_Click()
 Unload Me
End Sub

Public Sub delStuffLeaveInfo_Click()
    Dim strLeave As String
 
  If LeaveGrid1.Rows <= 1 Then Exit Sub
  If LeaveGrid1.Row < 1 Then Exit Sub
  strLeave = LeaveGrid1.TextMatrix(LeaveGrid1.Row, 1)
  'MsgBox strLeave
  

  
  If MsgBox("你真的要删除该员工的请假信息吗?", vbQuestion + vbYesNo) = vbYes Then
    Dim strSql As String
    Dim strMsg As String
    Dim rs As New ADODB.Recordset
    strSql = "delete * from LeaveInfo where ID=" & strLeave
    Set rs = ExecuteSQL(strSql, strMsg)
    Call Form_Load
  End If



End Sub

Public Sub Form_Load()
  Dim sql1 As String
  Dim strmsg1 As String
  Dim rs1 As New ADODB.Recordset
  sql1 = "select * from LeaveInfo"
  Set rs1 = ExecuteSQL(sql1, strmsg1)
  Call showData(sql1, LeaveGrid1)
 
  
End Sub




Private Sub OverTimeGrid1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
   
     Me.PopupMenu pop_othermnu
     
   End If
End Sub




Public Sub LeaveGrid1_DblClick()
    frmChgLeaveInfo.Show
       
  
     If LeaveGrid1.Rows <= 1 Then Exit Sub
     If LeaveGrid1.Row < 1 Then Exit Sub
     Dim strnow As Date
     
     frmChgLeaveInfo.txtID.Text = LeaveGrid1.TextMatrix(LeaveGrid1.Row, 2)
     frmChgLeaveInfo.txtName.Text = LeaveGrid1.TextMatrix(LeaveGrid1.Row, 3)
     frmChgLeaveInfo.Ileave.Text = LeaveGrid1.TextMatrix(LeaveGrid1.Row, 4)
     frmChgLeaveInfo.PLeave.Text = LeaveGrid1.TextMatrix(LeaveGrid1.Row, 5)
     
     strnow = LeaveGrid1.TextMatrix(LeaveGrid1.Row, 6)
     frmChgLeaveInfo.dtpET.Value = strnow
      
     frmChgLeaveInfo.tID.Text = LeaveGrid1.TextMatrix(LeaveGrid1.Row, 1)
End Sub

Private Sub LeaveGrid1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
   Me.PopupMenu pop_menu1
   End If
End Sub

Private Sub refresh_Click()
Call Form_Load
End Sub

⌨️ 快捷键说明

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