📄 main_gzgl_kqgl_lr.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form main_gzgl_kqgl_lr
BorderStyle = 3 'Fixed Dialog
Caption = "Form1"
ClientHeight = 2400
ClientLeft = 45
ClientTop = 330
ClientWidth = 6795
Icon = "main_gzgl_kqgl_lr.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2400
ScaleWidth = 6795
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "取消"
Height = 390
Left = 3450
TabIndex = 11
Top = 1845
Width = 1770
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 390
Left = 1560
TabIndex = 10
Top = 1845
Width = 1770
End
Begin VB.Frame Frame1
Height = 1755
Left = 0
TabIndex = 0
Top = -60
Width = 6780
Begin VB.TextBox Text1
Height = 330
Index = 7
Left = 4920
Locked = -1 'True
TabIndex = 17
Top = 1305
Width = 1740
End
Begin VB.TextBox Text1
Height = 330
Index = 6
Left = 1650
TabIndex = 15
Top = 1305
Width = 1740
End
Begin VB.TextBox Text1
Height = 330
Index = 5
Left = 4920
TabIndex = 13
Top = 960
Width = 1740
End
Begin VB.TextBox Text1
Enabled = 0 'False
Height = 330
Index = 0
Left = 1650
TabIndex = 5
Top = 225
Width = 1740
End
Begin VB.TextBox Text1
Enabled = 0 'False
Height = 330
Index = 1
Left = 4920
TabIndex = 4
Top = 225
Width = 1740
End
Begin VB.TextBox Text1
Height = 330
Index = 2
Left = 1650
TabIndex = 3
Top = 585
Width = 1740
End
Begin VB.TextBox Text1
Height = 330
Index = 3
Left = 4920
TabIndex = 2
Top = 600
Width = 1740
End
Begin VB.TextBox Text1
Height = 330
Index = 4
Left = 1650
TabIndex = 1
Top = 945
Width = 1740
End
Begin VB.Label Label6
BackStyle = 0 'Transparent
Caption = "所属工资月份:"
Height = 255
Left = 3600
TabIndex = 18
Top = 1365
Width = 1620
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "加班次数:"
Height = 180
Left = 705
TabIndex = 16
Top = 1380
Width = 900
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "旷工天数:"
Height = 255
Left = 3975
TabIndex = 14
Top = 1050
Width = 915
End
Begin VB.Label Label3
Caption = "请假天数:"
Height = 255
Left = 3975
TabIndex = 12
Top = 675
Width = 915
End
Begin VB.Label Label9
BackStyle = 0 'Transparent
Caption = "迟到或早退次数:"
Height = 255
Left = 90
TabIndex = 9
Top = 1050
Width = 1620
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "员工编号:"
Height = 255
Left = 720
TabIndex = 8
Top = 300
Width = 1005
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "员工姓名:"
Height = 255
Left = 3975
TabIndex = 7
Top = 315
Width = 915
End
Begin VB.Label Label7
BackStyle = 0 'Transparent
Caption = "出勤天数:"
Height = 255
Left = 720
TabIndex = 6
Top = 660
Width = 960
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 0
Top = 0
Visible = 0 'False
Width = 2040
_ExtentX = 3598
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_manpowerinfo"
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_manpowerinfo"
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
End
Attribute VB_Name = "main_gzgl_kqgl_lr"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Me.Caption = "考勤信息修改"
With main_gzgl_kqgl.Adodc1.Recordset
If .RecordCount > 0 Then
Text1(0) = .Fields("员工编号")
Text1(1) = .Fields("员工姓名")
Text1(2) = .Fields("出勤天数")
Text1(3) = .Fields("请假天数")
Text1(4) = .Fields("迟到或早退次数")
Text1(5) = .Fields("旷工天数")
Text1(6) = .Fields("加班次数")
Text1(7) = .Fields("所属工资月份")
End If
End With
End Sub
Private Sub Command1_Click()
Cnn.Execute ("update 考勤表 set 出勤天数=" + Text1(2) + ",请假天数=" + Text1(3) + ",迟到或早退次数=" + Text1(4) + ",旷工天数=" + Text1(5) + ",加班次数=" + Text1(6) + "where 员工编号='" + Text1(0) + "'and 所属工资月份='" + Text1(7) + "'")
main_gzgl_kqgl.Adodc1.Refresh
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -