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

📄 frmerrandinfolist.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 frmErrandInfoList 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "其它考勤信息"
   ClientHeight    =   7200
   ClientLeft      =   150
   ClientTop       =   150
   ClientWidth     =   8955
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   15.75
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "frmErrandInfoList.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   7200
   ScaleWidth      =   8955
   ShowInTaskbar   =   0   'False
   Begin MSFlexGridLib.MSFlexGrid ErrandGrid1 
      Height          =   5895
      Left            =   360
      TabIndex        =   1
      Top             =   720
      Width           =   8175
      _ExtentX        =   14420
      _ExtentY        =   10398
      _Version        =   393216
      SelectionMode   =   1
      AllowUserResizing=   1
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin MSForms.CommandButton cmdSearch 
      Height          =   375
      Left            =   5400
      TabIndex        =   6
      Top             =   6720
      Width           =   975
      Caption         =   "查找"
      PicturePosition =   327683
      Size            =   "1720;661"
      Picture         =   "frmErrandInfoList.frx":0442
      FontName        =   "宋体"
      FontHeight      =   180
      FontCharSet     =   134
      FontPitchAndFamily=   34
      ParagraphAlign  =   3
   End
   Begin MSForms.CommandButton cmdChange 
      Height          =   375
      Left            =   3960
      TabIndex        =   5
      Top             =   6720
      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            =   2520
      TabIndex        =   4
      Top             =   6720
      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            =   1080
      TabIndex        =   3
      Top             =   6720
      Width           =   975
      Caption         =   "添加"
      PicturePosition =   327683
      Size            =   "1720;661"
      Picture         =   "frmErrandInfoList.frx":34C4
      FontName        =   "宋体"
      FontHeight      =   180
      FontCharSet     =   134
      FontPitchAndFamily=   34
      ParagraphAlign  =   3
   End
   Begin MSForms.CommandButton cmdExit 
      Height          =   375
      Left            =   6840
      TabIndex        =   2
      Top             =   6720
      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            =   360
      TabIndex        =   0
      Top             =   120
      Width           =   3615
   End
   Begin VB.Menu pop_menu3 
      Caption         =   "弹出式3"
      Visible         =   0   'False
      Begin VB.Menu addStuffErrandInfo 
         Caption         =   "添加员工出差信息"
      End
      Begin VB.Menu checkStuffErrandInfo 
         Caption         =   "查询员工出差信息"
      End
      Begin VB.Menu chgStuffErrandInfo 
         Caption         =   "修改员工出差信息"
      End
      Begin VB.Menu delStuffErrandInfo 
         Caption         =   "删除员工出差信息"
      End
      Begin VB.Menu refresh 
         Caption         =   "刷新"
      End
   End
End
Attribute VB_Name = "frmErrandInfoList"
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, ErrandGrid1)
End Function
Private Sub addStuffErrandInfo_Click()
  frmAddErrandInfo.Show
End Sub

Private Sub checkStuffErrandInfo_Click()
  frmCheckKQ4.Show
End Sub

Private Sub chgStuffErrandInfo_Click()
  frmChgErrandInfo.Show
  Call ErrandGrid1_DblClick
End Sub

Private Sub cmdChange_Click()
 frmChgErrandInfo.Show
End Sub

Private Sub cmdDel_Click()
 Call delStuffErrandInfo_Click
End Sub

Private Sub cmdExit_Click()
Unload Me
End Sub

Private Sub cmdOk_Click()
 frmAddErrandInfo.Show
End Sub

Private Sub cmdSearch_Click()
 frmCheckKQ4.Show
End Sub

Public Sub delStuffErrandInfo_Click()
    Dim strErrand As String
 
  If ErrandGrid1.Rows <= 1 Then Exit Sub
  If ErrandGrid1.Row < 1 Then Exit Sub
  strErrand = ErrandGrid1.TextMatrix(ErrandGrid1.Row, 1)
  'MsgBox strErrand
  

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



Public Sub ErrandGrid1_DblClick()
 frmChgErrandInfo.Show
 If ErrandGrid1.Rows <= 1 Then Exit Sub
 If ErrandGrid1.Row < 1 Then Exit Sub
      Dim strnow As Date
     
     frmChgErrandInfo.txtID.Text = ErrandGrid1.TextMatrix(ErrandGrid1.Row, 2)
     frmChgErrandInfo.txtName.Text = ErrandGrid1.TextMatrix(ErrandGrid1.Row, 3)
     frmChgErrandInfo.EDays.Text = ErrandGrid1.TextMatrix(ErrandGrid1.Row, 4)
     frmChgErrandInfo.EPurpose.Text = ErrandGrid1.TextMatrix(ErrandGrid1.Row, 5)
     
      
     strnow = ErrandGrid1.TextMatrix(ErrandGrid1.Row, 6)
     frmChgErrandInfo.dtpET.Value = strnow
      
     frmChgErrandInfo.tID.Text = ErrandGrid1.TextMatrix(ErrandGrid1.Row, 1)
 
 
 
 
End Sub

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

Public Sub Form_Load()
  Dim sql2 As String
  Dim strmsg2 As String
  Dim rs2 As New ADODB.Recordset
  sql2 = "select * from ErrandInfo"
  Set rs2 = ExecuteSQL(sql2, strmsg2)
  Call showData(sql2, ErrandGrid1)
End Sub

Private Sub OverTimeGrid1_Click()

End Sub

Private Sub Grid1_Click()

End Sub

Private Sub refresh_Click()
Call Form_Load
End Sub

Private Sub return_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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