📄 main_pyxy.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form main_pyxy
BorderStyle = 3 'Fixed Dialog
Caption = "Form1"
ClientHeight = 2445
ClientLeft = 45
ClientTop = 330
ClientWidth = 4680
Icon = "main_pyxy.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2445
ScaleWidth = 4680
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Height = 1785
Left = 0
TabIndex = 2
Top = 0
Width = 4635
Begin VB.TextBox Text1
Height = 330
Left = 1515
TabIndex = 3
Top = 1320
Width = 2640
End
Begin MSComCtl2.DTPicker DTP1
Height = 345
Left = 1830
TabIndex = 4
Top = 240
Width = 2640
_ExtentX = 4657
_ExtentY = 609
_Version = 393216
Format = 48168961
CurrentDate = 39794
End
Begin MSComCtl2.DTPicker DTP2
Height = 345
Left = 1830
TabIndex = 5
Top = 705
Width = 2640
_ExtentX = 4657
_ExtentY = 609
_Version = 393216
Format = 48168961
CurrentDate = 39794
End
Begin VB.Label Label1
Caption = "聘用续约日期:(从)"
Height = 225
Left = 120
TabIndex = 8
Top = 330
Width = 2385
End
Begin VB.Label Label2
Caption = "(至)"
Height = 195
Left = 1380
TabIndex = 7
Top = 825
Width = 360
End
Begin VB.Label Label3
Caption = "聘用期限: 年"
Height = 255
Left = 555
TabIndex = 6
Top = 1395
Width = 3960
End
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 390
Left = 810
TabIndex = 1
Top = 1935
Width = 1440
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 390
Left = 2400
TabIndex = 0
Top = 1935
Width = 1440
End
End
Attribute VB_Name = "main_pyxy"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
DTP1.Value = Date
DTP2.Value = Date
End Sub
Private Sub DTP1_Change()
Text1 = DateDiff("yyyy", DTP1.Value, DTP2.Value)
End Sub
Private Sub DTP2_Change()
Text1 = DateDiff("yyyy", DTP1.Value, DTP2.Value)
End Sub
Private Sub Command1_Click()
Cnn.Execute ("update 聘用表 set 聘用开始日期='" + str(DTP1.Value) + "',聘用结束日期='" + str(DTP2.Value) + "',聘用期限=" + Text1 + ",状态='生效'where 聘用编号='" + main_rsgl_pygl.DataGrid1.Columns(2) + "'")
main_rsgl_pygl.Adodc1.Refresh
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -