📄 frmkq.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form frmKQ
Caption = "考勤管理"
ClientHeight = 7830
ClientLeft = 60
ClientTop = 450
ClientWidth = 9870
LinkTopic = "Form1"
LockControls = -1 'True
MDIChild = -1 'True
ScaleHeight = 7830
ScaleWidth = 9870
Begin VB.Frame Frame4
Height = 4710
Left = 7500
TabIndex = 13
Top = 0
Width = 2340
Begin VB.CommandButton Command4
Caption = "修改"
Height = 450
Left = 345
TabIndex = 21
Top = 1200
Width = 1530
End
Begin VB.TextBox findnr
Height = 360
Left = 405
TabIndex = 18
Top = 3045
Width = 1440
End
Begin VB.ComboBox findbt
Height = 300
Left = 405
TabIndex = 17
Text = "查询项目"
Top = 2550
Width = 1425
End
Begin VB.CommandButton Command3
Caption = "查询"
Height = 450
Left = 345
TabIndex = 16
Top = 3705
Width = 1530
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 450
Left = 345
TabIndex = 15
Top = 1815
Width = 1530
End
Begin VB.CommandButton Command1
Caption = "新增"
Height = 450
Left = 345
TabIndex = 14
Top = 525
Width = 1530
End
End
Begin VB.Frame Frame3
Height = 3030
Left = 45
TabIndex = 11
Top = 4740
Width = 9750
Begin MSFlexGridLib.MSFlexGrid msfkq
Height = 2730
Left = 90
TabIndex = 12
Top = 180
Width = 9570
_ExtentX = 16880
_ExtentY = 4815
_Version = 393216
Cols = 6
FormatString = "工号 |姓名 |扣款 |日期 |内容 |"
End
End
Begin VB.Frame Frame2
Height = 4725
Left = 2175
TabIndex = 2
Top = 15
Width = 5280
Begin VB.TextBox GH
Height = 300
Left = 1560
TabIndex = 20
Top = 1080
Width = 2055
End
Begin VB.TextBox XM
Height = 300
Left = 1560
TabIndex = 19
Top = 360
Width = 2055
End
Begin VB.TextBox KK
Height = 300
Left = 1560
TabIndex = 10
Top = 2541
Width = 2055
End
Begin VB.TextBox NR
Height = 300
Left = 1560
TabIndex = 8
Top = 3270
Width = 2055
End
Begin MSComCtl2.DTPicker RQ
Height = 300
Left = 1560
TabIndex = 4
Top = 1814
Width = 2055
_ExtentX = 3625
_ExtentY = 529
_Version = 393216
Format = 61538305
CurrentDate = 38913
End
Begin VB.Label Label5
Caption = "扣款"
Height = 375
Left = 420
TabIndex = 9
Top = 2520
Width = 735
End
Begin VB.Label Label4
Caption = "内容"
Height = 375
Left = 405
TabIndex = 7
Top = 3330
Width = 855
End
Begin VB.Label Label3
Caption = "日期"
Height = 255
Left = 420
TabIndex = 6
Top = 1830
Width = 855
End
Begin VB.Label Label2
Caption = "工号"
Height = 255
Left = 420
TabIndex = 5
Top = 1155
Width = 975
End
Begin VB.Label Label1
Caption = "姓名"
Height = 300
Left = 420
TabIndex = 3
Top = 420
Width = 1575
End
End
Begin VB.Frame Frame1
Height = 4740
Left = 45
TabIndex = 0
Top = 0
Width = 2070
Begin MSComctlLib.ListView ListView1
Height = 4455
Left = 75
TabIndex = 1
Top = 195
Width = 1920
_ExtentX = 3387
_ExtentY = 7858
View = 3
LabelEdit = 1
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
Icons = "ImageList1"
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 0
End
Begin MSComctlLib.ImageList ImageList1
Left = 0
Top = 0
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 12
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKQ.frx":0000
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKQ.frx":1D0C
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKQ.frx":2030
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKQ.frx":2F0C
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKQ.frx":3DE8
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKQ.frx":410C
Key = ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKQ.frx":4430
Key = ""
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKQ.frx":4754
Key = ""
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKQ.frx":4A78
Key = ""
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKQ.frx":4D9C
Key = ""
EndProperty
BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKQ.frx":50C0
Key = ""
EndProperty
BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKQ.frx":53E4
Key = ""
EndProperty
EndProperty
End
End
End
Attribute VB_Name = "frmKQ"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Boolean
Dim kqid As Long
Private Sub Command1_Click()
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "select * from YGKQ ", gCnn, adOpenStatic, adLockPessimistic
rs.AddNew
rs.Fields("GH") = Trim(GH)
rs.Fields("XM") = Trim(XM)
rs.Fields("RQ") = Trim(RQ)
rs.Fields("KK") = Val(Trim(KK))
rs.Fields("NR") = Trim(NR)
rs.Update
MsgBox "保存成功", vbOKOnly, "系统提示"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -