📄 frmkhsz.frm
字号:
VERSION 5.00
Object = "{A964BDA3-3E93-11CF-9A0F-9E6261DACD1C}#3.0#0"; "SetMe.ocx"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form frmKHSZ
Caption = "考核设置"
ClientHeight = 4950
ClientLeft = 60
ClientTop = 450
ClientWidth = 7485
LinkTopic = "Form1"
LockControls = -1 'True
MDIChild = -1 'True
ScaleHeight = 4950
ScaleWidth = 7485
Begin ResizeLibCtl.ReSize ReSize1
Left = 3060
Top = 150
_Version = 196608
_ExtentX = 741
_ExtentY = 741
_StockProps = 64
Enabled = -1 'True
Enabled = -1 'True
FormMinWidth = 0
FormMinHeight = 0
FormDesignHeight= 4950
FormDesignWidth = 7485
End
Begin VB.Frame Frame3
Height = 1215
Left = 2070
TabIndex = 6
Top = 3660
Width = 5325
Begin VB.CommandButton Command2
Caption = "退出"
Height = 465
Left = 2850
TabIndex = 9
Top = 450
Width = 1305
End
Begin VB.CommandButton Command1
Caption = "保存"
Height = 465
Left = 930
TabIndex = 8
Top = 450
Width = 1305
End
End
Begin VB.Frame Frame2
Height = 3555
Left = 2070
TabIndex = 1
Top = 90
Width = 5325
Begin VB.ComboBox DJ
Height = 300
ItemData = "frmKHSZ.frx":0000
Left = 1800
List = "frmKHSZ.frx":0013
TabIndex = 15
Text = "一级"
Top = 3000
Width = 3075
End
Begin VB.TextBox YKHBZ
Height = 345
Left = 1800
TabIndex = 12
Top = 2460
Width = 3045
End
Begin VB.TextBox YWZJ
Enabled = 0 'False
Height = 345
Left = 1800
TabIndex = 11
Top = 660
Width = 3045
End
Begin VB.TextBox KHBZ
Height = 345
Left = 1800
TabIndex = 5
Top = 1830
Width = 3045
End
Begin VB.TextBox JBGZ
Height = 345
Left = 1800
TabIndex = 4
Top = 1200
Width = 3045
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 = "frmKHSZ.frx":0035
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKHSZ.frx":1D41
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKHSZ.frx":2065
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKHSZ.frx":2F41
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKHSZ.frx":3E1D
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKHSZ.frx":4141
Key = ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKHSZ.frx":4465
Key = ""
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKHSZ.frx":4789
Key = ""
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKHSZ.frx":4AAD
Key = ""
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKHSZ.frx":4DD1
Key = ""
EndProperty
BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKHSZ.frx":50F5
Key = ""
EndProperty
BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmKHSZ.frx":5419
Key = ""
EndProperty
EndProperty
End
Begin VB.Label Label5
Caption = "等级"
Height = 465
Left = 300
TabIndex = 14
Top = 3120
Width = 1665
End
Begin VB.Label Label4
Caption = "月度考核标准"
Height = 465
Left = 300
TabIndex = 13
Top = 2580
Width = 1665
End
Begin VB.Label Label3
Caption = "业务职级"
Height = 465
Left = 330
TabIndex = 10
Top = 720
Width = 1665
End
Begin VB.Label Label2
Caption = "综合考核标准"
Height = 465
Left = 330
TabIndex = 3
Top = 1950
Width = 1665
End
Begin VB.Label Label1
Caption = "标准基本工资"
Height = 465
Left = 330
TabIndex = 2
Top = 1290
Width = 1665
End
End
Begin VB.Frame Frame1
Caption = "业务职级"
Height = 4785
Left = 90
TabIndex = 0
Top = 90
Width = 1965
Begin MSComctlLib.ListView ListView1
Height = 4485
Left = 30
TabIndex = 7
Top = 210
Width = 1845
_ExtentX = 3254
_ExtentY = 7911
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
End
End
Attribute VB_Name = "frmKHSZ"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim strsql As String
Dim rs As New ADODB.Recordset
rs.Open "select * from khsz where ywzj='" & Trim(YWZJ) & "'", gCnn, adOpenStatic, adLockReadOnly
If Not rs.EOF Then
strsql = "update khsz set jbgz='" & Val(JBGZ) & "',khbz=" & Val(KHBZ) & ",YKhbz=" & Val(YKHBZ) & ",dj='" & DJ & "' where ywzj='" & Trim(YWZJ) & "'"
gCnn.Execute strsql
MsgBox "更新成功!!", vbInformation, "系统提示"
YWZJ = ""
KHBZ = ""
JBGZ = ""
DJ = ""
YKHBZ = ""
Else
strsql = "insert into khsz(ywzj,jbgz,khbz,ykhbz,dj)values('" & YWZJ & "'," & Val(JBGZ) & "," & Val(KHBZ) & "," & Val(YKHBZ) & ",'" & DJ & "')"
gCnn.Execute strsql
MsgBox "添加成功!!", vbInformation, "系统提示"
YWZJ = ""
KHBZ = ""
JBGZ = ""
DJ = ""
YKHBZ = ""
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
If Me.WindowState = 0 Then Me.Move 0, 0, 7605, 5460
Dim rs As New ADODB.Recordset
Dim msg As String
Dim strsql As String
strsql = "select value from parameters where paratype=4 and value<>''"
rs.Open strsql, gCnn, adOpenStatic, adLockReadOnly
msg = ShowListView(ListView1, rs, False, "4000")
rs.Close
End Sub
Private Sub ListView1_ItemClick(ByVal Item As MSComctlLib.ListItem)
Dim i As Long
If ListView1.ListItems.count > 0 Then
For i = 1 To ListView1.ListItems.count
If ListView1.ListItems(i).Selected Then
YWZJ = Item
Call FillText(ListView1.ListItems(i).Text)
End If
Next
End If
End Sub
Private Sub FillText(code As String)
Dim strsql As String
Dim rs As New ADODB.Recordset
strsql = "select * from KHSZ where ywzj ='" & code & "'"
rs.Open strsql, gCnn, adOpenStatic, adLockReadOnly
If Not rs.EOF Then
JBGZ = rs("jbgz")
KHBZ = rs("khbz")
YKHBZ = rs("ykhbz")
DJ = rs("DJ")
Else
JBGZ = ""
KHBZ = ""
YKHBZ = ""
DJ = ""
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -