📄 gjq_frmmodify.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomct2.ocx"
Begin VB.Form gjq_frmModify
Caption = "修改员工信息"
ClientHeight = 5070
ClientLeft = 60
ClientTop = 345
ClientWidth = 6150
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 5070
ScaleWidth = 6150
Begin VB.CommandButton cmdModify
Caption = "保 存"
Height = 495
Left = 360
TabIndex = 17
Top = 4200
Width = 1335
End
Begin VB.TextBox txtShenfen
Height = 375
Left = 2520
TabIndex = 16
Top = 3000
Width = 3015
End
Begin VB.TextBox txtName
Height = 375
Left = 2520
TabIndex = 15
Top = 840
Width = 1335
End
Begin VB.TextBox txtID
Height = 375
Left = 2520
TabIndex = 14
Top = 120
Width = 1335
End
Begin VB.ComboBox Combo3
Height = 300
Left = 2520
TabIndex = 2
Text = "人事部"
Top = 3600
Width = 1935
End
Begin VB.ComboBox Combo2
Height = 300
Left = 2520
TabIndex = 1
Text = "高中"
Top = 2520
Width = 1935
End
Begin VB.ComboBox Combo1
Height = 300
Left = 2520
TabIndex = 0
Text = "男"
Top = 1560
Width = 1935
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 300
Left = 2520
TabIndex = 3
Top = 2040
Width = 1935
_ExtentX = 3413
_ExtentY = 529
_Version = 393216
Format = 71696385
CurrentDate = 38553
End
Begin VB.Label Label10
Alignment = 2 'Center
Caption = "按部门分类:"
Height = 300
Left = 480
TabIndex = 13
Top = 3600
Width = 960
End
Begin VB.Label Label9
Alignment = 2 'Center
Caption = "身份证号:"
Height = 300
Left = 480
TabIndex = 12
Top = 3000
Width = 960
End
Begin VB.Label Label8
Alignment = 2 'Center
Caption = "学历:"
Height = 300
Left = 480
TabIndex = 11
Top = 2520
Width = 960
End
Begin VB.Label Label7
Alignment = 2 'Center
Caption = "出生日期:"
Height = 300
Left = 480
TabIndex = 10
Top = 2040
Width = 960
End
Begin VB.Label Label5
Alignment = 2 'Center
Caption = "性 别:"
Height = 300
Left = 480
TabIndex = 9
Top = 1440
Width = 960
End
Begin VB.Label Label4
Alignment = 2 'Center
Caption = "姓 名:"
Height = 300
Left = 480
TabIndex = 8
Top = 840
Width = 960
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "编 号:"
Height = 300
Left = 480
TabIndex = 7
Top = 240
Width = 960
End
Begin VB.Label Label6
Alignment = 2 'Center
Height = 300
Left = 480
TabIndex = 6
Top = 3600
Width = 960
End
Begin VB.Label Label3
Alignment = 2 'Center
Height = 300
Left = 480
TabIndex = 5
Top = 1440
Width = 960
End
Begin VB.Label Label1
Alignment = 2 'Center
Height = 300
Index = 1
Left = 480
TabIndex = 4
Top = 840
Width = 960
End
End
Attribute VB_Name = "gjq_frmModify"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdModify_Click()
GJQ_strsql = "update t_employee set empname='" & Trim(txtName.Text) & "',sex='" & Trim(Combo1.Text) & "',birthday='" & Trim(DTPicker1.Value) & "',knowledge='" & Trim(Combo2.Text) & "',cardid='" & Trim(txtShenfen.Text) & "',department='" & Trim(Combo3.Text) & "' where employeeid='" & Trim(txtId.Text) & "'"
Call Dblink.executeSQL(GJQ_strsql)
GJQ_strsql = "select * from t_employee"
Set gjq_frmmaninfo.MSHFlexGrid1.DataSource = Dblink.executeSQL(GJQ_strsql)
GJQ_strsql = "select employeeid as 编号,empname as 姓名,sex as 性别,birthday as 生日,knowledge as 学历,cardid as 身份证,department as 部门 from t_employee"
Set gjq_frmmaninfo.MSHFlexGrid1.DataSource = Dblink.executeSQL(GJQ_strsql)
End Sub
Private Sub Form_Load()
'GJQ_strSQL = "select * from t_employee where employeeid='" & gjq_IntOldrow & "'"
'Call DbLink.executeSQL(GJQ_strSQL)
'If gjq_strsql = "" Then
'Exit Sub
'End If
txtId.Text = gjq_frmmaninfo.MSHFlexGrid1.TextMatrix(gjq_frmmaninfo.MSHFlexGrid1.Row, 1)
txtName.Text = gjq_frmmaninfo.MSHFlexGrid1.TextMatrix(gjq_frmmaninfo.MSHFlexGrid1.Row, 2)
Combo1.Text = gjq_frmmaninfo.MSHFlexGrid1.TextMatrix(gjq_frmmaninfo.MSHFlexGrid1.Row, 3)
DTPicker1.Value = gjq_frmmaninfo.MSHFlexGrid1.TextMatrix(gjq_frmmaninfo.MSHFlexGrid1.Row, 4)
Combo2.Text = gjq_frmmaninfo.MSHFlexGrid1.TextMatrix(gjq_frmmaninfo.MSHFlexGrid1.Row, 5)
txtShenfen.Text = gjq_frmmaninfo.MSHFlexGrid1.TextMatrix(gjq_frmmaninfo.MSHFlexGrid1.Row, 6)
Combo3.Text = gjq_frmmaninfo.MSHFlexGrid1.TextMatrix(gjq_frmmaninfo.MSHFlexGrid1.Row, 7)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -