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

📄 mdi.frm

📁 考勤机管理软件,用于统计某段时间某个部门或者某个员工在某段内迟到与早退次数.
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{1D768337-C12C-4708-B707-170C16534E89}#1.0#0"; "KQJ.ocx"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.MDIForm MDI 
   BackColor       =   &H8000000C&
   Caption         =   "考勤管理系统"
   ClientHeight    =   6285
   ClientLeft      =   165
   ClientTop       =   870
   ClientWidth     =   8550
   Icon            =   "MDI.frx":0000
   LinkTopic       =   "MDIForm1"
   StartUpPosition =   3  '窗口缺省
   WindowState     =   2  'Maximized
   Begin VB.Timer Timer1 
      Interval        =   100
      Left            =   2520
      Top             =   5085
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   330
      Left            =   0
      TabIndex        =   0
      Top             =   5955
      Width           =   8550
      _ExtentX        =   15081
      _ExtentY        =   582
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   3
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            AutoSize        =   1
            Object.Width           =   4815
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            AutoSize        =   1
            Object.Width           =   4815
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            AutoSize        =   1
            Object.Width           =   4815
         EndProperty
      EndProperty
   End
   Begin KQJLib.KQJ KQJ 
      Left            =   1620
      Top             =   2970
      _Version        =   65536
      _ExtentX        =   1852
      _ExtentY        =   1217
      _StockProps     =   0
      CommPort        =   1
   End
   Begin MSComctlLib.ImageList Image 
      Left            =   4980
      Top             =   3315
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   27
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":058A
            Key             =   "SaveExit"
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":0924
            Key             =   "arrow"
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":0CBE
            Key             =   "Hand"
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":0E20
            Key             =   "ParentR"
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":11BA
            Key             =   "SplitR"
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":1554
            Key             =   "Folder"
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":18EE
            Key             =   "Parent"
         EndProperty
         BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":1C88
            Key             =   "Middle"
         EndProperty
         BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":2022
            Key             =   "Child"
         EndProperty
         BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":23BC
            Key             =   "SaveNew"
         EndProperty
         BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":2956
            Key             =   "Exit"
         EndProperty
         BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":2EF0
            Key             =   "Find"
         EndProperty
         BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":328A
            Key             =   "Previous"
         EndProperty
         BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":3824
            Key             =   "Next"
         EndProperty
         BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":3DBE
            Key             =   "New"
         EndProperty
         BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":4358
            Key             =   "Modify"
         EndProperty
         BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":48F2
            Key             =   "Del"
         EndProperty
         BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":4C8C
            Key             =   "Print"
         EndProperty
         BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":5226
            Key             =   "Preview"
         EndProperty
         BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":57C0
            Key             =   "Copy"
         EndProperty
         BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":5D5A
            Key             =   "Restore"
         EndProperty
         BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":62F4
            Key             =   "UnAudi"
         EndProperty
         BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":688E
            Key             =   "Audi"
         EndProperty
         BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":6E28
            Key             =   "Store"
         EndProperty
         BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":71C2
            Key             =   "Design"
         EndProperty
         BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":775C
            Key             =   "Cancel"
         EndProperty
         BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDI.frx":78B6
            Key             =   "UnCancel"
         EndProperty
      EndProperty
   End
   Begin VB.Menu mnuSystemInfo 
      Caption         =   "系统维护"
      Index           =   100
      Begin VB.Menu mnuKQJConfig 
         Caption         =   "考勤机设置"
      End
      Begin VB.Menu mnuCardConfig 
         Caption         =   "卡操作"
      End
      Begin VB.Menu mnuUser 
         Caption         =   "用户管理"
      End
      Begin VB.Menu line3 
         Caption         =   "-"
      End
      Begin VB.Menu mnuSystemExit 
         Caption         =   "退出"
      End
   End
   Begin VB.Menu mnuBaseInfo 
      Caption         =   "基础资料"
      Index           =   200
      Begin VB.Menu mnuBaseChild 
         Caption         =   "班次资料"
         Index           =   201
      End
      Begin VB.Menu mnuBaseChild 
         Caption         =   "默认排班"
         Index           =   202
      End
      Begin VB.Menu mnuBaseChild 
         Caption         =   "默认休假"
         Index           =   203
      End
      Begin VB.Menu mnuBaseChild 
         Caption         =   "员工资料"
         Index           =   204
      End
      Begin VB.Menu line4 
         Caption         =   "-"
      End
      Begin VB.Menu mnuBaseExport 
         Caption         =   "导入员工资料"
      End
   End
   Begin VB.Menu mnuDataInfo 
      Caption         =   "数据中心"
      Begin VB.Menu mnuDataGet 
         Caption         =   "上传数据"
      End
      Begin VB.Menu line2 
         Caption         =   "-"
      End
      Begin VB.Menu mnuDataViewClass 
         Caption         =   "排班登记"
      End
      Begin VB.Menu mnuDataAddClass 
         Caption         =   "加班登记"
      End
      Begin VB.Menu mnuDataSetVac 
         Caption         =   "休假登记"
      End
      Begin VB.Menu mnuDataLeave 
         Caption         =   "请假登记"
      End
      Begin VB.Menu line1 
         Caption         =   "-"
      End
      Begin VB.Menu ViewTimePos 
         Caption         =   "排班报表"
      End
      Begin VB.Menu mnuReport 
         Caption         =   "考勤报表"
      End
   End
End
Attribute VB_Name = "MDI"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit




Private Sub MDIForm_Load()
     
     StatusBar1.Panels(2).Text = "当前操作员:" & UserName
     StatusBar1.Panels(3).Text = "登陆时间:" & Now
     Timer1.Enabled = False
End Sub

Private Sub MDIForm_Unload(Cancel As Integer)

'    KQJ.Close
    gExit = True
End Sub



Private Sub KQJ_KQJFeedback(ByVal nCmd As KQJLib.sKQJCmd, ByVal nState As KQJLib.sKQJState, ByVal sData As String, ByVal lParam As Long)
    
Static j As Integer
    Dim tmpl As Long
    Dim tmpb As Byte
    Dim i As Integer
    Dim s As String
    
    If nState = ErrDataBeCoverd Then
'        sState = "ErrDataBeCoverd"
            Message ""
            
    ElseIf nState = ErrFailed Then
'        sState = "ErrFailed"
            Message ""
            
    ElseIf nState = ErrFull Then
'        sState = "ErrFull"
        Message "ErrFull"
        
    ElseIf nState = ErrHead Then
'        sState = "ErrHead"
        Message "ErrHead"
        
    ElseIf nState = ErrInKQMODE Then
        MDI.KQJ.SetKQJMode 2
        MsgBox "出错,模式已自动更换,请再试一次!"
'        sState = "ErrInKQMODE"
'
'        Message "ErrInKQMODE"
        
    ElseIf nState = ErrLogin Then
'        sState = "ErrLogin"
        Message "卡号已注册"
        
    ElseIf nState = ErrNoAck Then
        sState = "ErrNoAck"
        If j <> 0 Then
            Timer1.Enabled = True
        End If
        j = j + 1
'        Message "不能访问考勤机,请检查是否连接正常!"
        
    ElseIf nState = ErrNoCard Then
'        sState = "ErrNoCard"
        If FindWindow("frmCardConfig") Then
            If frmCardConfig.Check1 Then
                If nCmd <> CmdLoginCard Then
                    Message "请放入卡!"
                End If
            Else
                Message "请放入卡!"
            End If
        Else
            Message "请放入卡!"
        End If
         
    ElseIf nState = ErrNoPreRecord Then
'        sState = "ErrNoPreRecord"
        Message "没有上次数据可提取!"
        
    ElseIf nState = ErrNoRecord Then
'        sState = "ErrNoRecord"
        Message "没有数据可提取!"
        
    ElseIf nState = ErrNotLogin Then
'        sState = "ErrNotLogin"
        Message "卡号未注册!"
        
    ElseIf nState = ErrPassword Then
        sState = "ErrPassword"
        Message "密码不正确!"
        
    ElseIf nState = ErrTail Then
'        sState = "ErrTail"
        Message "ErrTail"
    ElseIf nState = StateContinueSegment Then
        sState = "StateContinueSegment"
'        Message "StateContinueSegment"
    ElseIf nState = StateFirstSegment Then
        sState = "StateFirstSegment"
'        Message "StateFirstSegment"
    ElseIf nState = Success Then

⌨️ 快捷键说明

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