📄 frmchgleaveinfo.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{0D452EE1-E08F-101A-852E-02608C4D0BB4}#2.0#0"; "FM20.DLL"
Begin VB.Form frmChgLeaveInfo
BorderStyle = 3 'Fixed Dialog
Caption = "修改其它考勤信息"
ClientHeight = 3435
ClientLeft = 45
ClientTop = 330
ClientWidth = 6495
Icon = "frmChgLeaveInfo.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 3435
ScaleWidth = 6495
ShowInTaskbar = 0 'False
Begin VB.TextBox tID
Height = 375
Left = 240
TabIndex = 16
Top = 0
Width = 615
End
Begin VB.Frame Frame1
Caption = "员工个人信息"
Height = 615
Left = 240
TabIndex = 8
Top = 600
Width = 6015
Begin VB.TextBox txtID
Height = 270
Left = 1320
TabIndex = 10
Top = 240
Width = 1335
End
Begin VB.TextBox txtName
Height = 270
Left = 3960
TabIndex = 9
Top = 240
Width = 1455
End
Begin VB.Label Label3
Caption = "员工姓名:"
Height = 270
Left = 3000
TabIndex = 12
Top = 240
Width = 1215
End
Begin VB.Label Label2
Caption = "员工编号:"
Height = 270
Left = 360
TabIndex = 11
Top = 240
Width = 975
End
End
Begin VB.Frame Frame2
Caption = "开始时间信息"
Height = 615
Left = 240
TabIndex = 5
Top = 1320
Width = 6015
Begin MSComCtl2.DTPicker dtpET
BeginProperty DataFormat
Type = 1
Format = "yyyy-M-d"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 3
EndProperty
Height = 270
Left = 2520
TabIndex = 6
Top = 240
Width = 1335
_ExtentX = 2355
_ExtentY = 476
_Version = 393216
Format = 85131265
CurrentDate = 39540
End
Begin VB.Label Label4
Caption = "开始时间:"
Height = 255
Left = 1320
TabIndex = 7
Top = 240
Width = 975
End
End
Begin VB.Frame Frame3
Caption = "员工请假信息"
Height = 615
Left = 240
TabIndex = 0
Top = 2040
Width = 6015
Begin VB.TextBox Ileave
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 270
Left = 1200
TabIndex = 2
Top = 240
Width = 1335
End
Begin VB.TextBox PLeave
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 270
Left = 3960
TabIndex = 1
Top = 240
Width = 1455
End
Begin VB.Label Label5
Caption = "事假天数:"
Height = 255
Left = 2880
TabIndex = 4
Top = 240
Width = 1095
End
Begin VB.Label Label6
Caption = "病假天数:"
Height = 255
Left = 120
TabIndex = 3
Top = 240
Width = 975
End
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "修改员工请假信息"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1440
TabIndex = 15
Top = 0
Width = 3735
End
Begin MSForms.CommandButton cmdOK
Height = 375
Left = 1560
TabIndex = 14
Top = 2880
Width = 1095
Caption = "确定"
PicturePosition = 327683
Size = "1931;661"
FontName = "宋体"
FontHeight = 180
FontCharSet = 134
FontPitchAndFamily= 34
ParagraphAlign = 3
End
Begin MSForms.CommandButton cmdExit
Height = 375
Left = 3720
TabIndex = 13
Top = 2880
Width = 1095
Caption = "返回"
PicturePosition = 327683
Size = "1931;661"
FontName = "宋体"
FontHeight = 180
FontCharSet = 134
FontPitchAndFamily= 34
ParagraphAlign = 3
End
End
Attribute VB_Name = "frmChgLeaveInfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub cmdOk_Click()
Dim sql As String
Dim rs As New ADODB.Recordset
Dim strMsg As String
If IsNumeric(PLeave.Text) = False Then
MsgBox "输入的事假天数须为整数!", vbOKOnly + vbExclamation, "警告"
PLeave.Text = ""
PLeave.SetFocus
Exit Sub
End If
If IsNumeric(Ileave.Text) = False Then
MsgBox "输入的病假天数须为整数!", vbOKOnly + vbExclamation, "警告"
Ileave.Text = ""
Ileave.SetFocus
Exit Sub
End If
'If Pleave.Text <> "" Then
If MsgBox("确定要做此修改吗?", vbQuestion + vbYesNo) = vbNo Then Exit Sub
'
sql = "update LeaveInfo set 病假天数='" & CInt(Ileave.Text) & "' ,事假天数='" & CInt(PLeave.Text) & "' where ID=" & CInt(tID.Text)
Set rs = ExecuteSQL(sql, strMsg)
Call frmLeaveInfoList.Form_Load
Unload Me
' End If
' If ILeave.Text <> "" Then
'If MsgBox("确定要做此修改吗?", vbQuestion + vbYesNo) = vbNo Then Exit Sub
' sql = "update LeaveInfo set 病假天数=" & CInt(ILeave.Text) & " where ID=" & CInt(tID.Text)
' Set rs = ExecuteSQL(sql, strMsg)
' Call frmLeaveInfoList.Form_Load
'Unload Me
'End If
End Sub
Private Sub Form_Load()
tID.Visible = False
End Sub
Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -