📄 frmsalarylistfield.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form frmSalaryListField
Caption = "工资项目"
ClientHeight = 4380
ClientLeft = 60
ClientTop = 345
ClientWidth = 6075
LinkTopic = "Form1"
ScaleHeight = 4380
ScaleWidth = 6075
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "全部取消"
Height = 350
Index = 1
Left = 4710
TabIndex = 8
Top = 1410
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "全部选择"
Height = 350
Index = 0
Left = 4710
TabIndex = 7
Top = 1020
Width = 1215
End
Begin VB.CommandButton cmdAddItem
Height = 350
Index = 1
Left = 4710
Style = 1 'Graphical
TabIndex = 6
Top = 570
Width = 1215
End
Begin VB.CommandButton cmdAddItem
Height = 350
Index = 0
Left = 4710
Style = 1 'Graphical
TabIndex = 5
Top = 180
Width = 1215
End
Begin VB.PictureBox Picture1
BackColor = &H80000008&
Height = 3975
Index = 3
Left = 3720
ScaleHeight = 3975
ScaleWidth = 15
TabIndex = 4
Top = 210
Width = 15
End
Begin VB.PictureBox Picture1
BackColor = &H80000008&
Height = 3975
Index = 2
Left = 2910
ScaleHeight = 3975
ScaleWidth = 15
TabIndex = 3
Top = 210
Width = 15
End
Begin VB.PictureBox Picture1
BackColor = &H80000008&
Height = 3975
Index = 1
Left = 2100
ScaleHeight = 3975
ScaleWidth = 15
TabIndex = 2
Top = 210
Width = 15
End
Begin VB.PictureBox Picture1
BackColor = &H80000008&
Height = 3975
Index = 0
Left = 570
ScaleHeight = 3975
ScaleWidth = 15
TabIndex = 1
Top = 210
Width = 15
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Height = 4125
Left = 90
TabIndex = 0
Top = 120
Width = 4515
_ExtentX = 7964
_ExtentY = 7276
_Version = 65541
Rows = 25
Cols = 5
FixedCols = 0
BackColorBkg = 16777215
GridColor = 16777215
GridColorFixed = 16777215
FocusRect = 0
GridLines = 0
ScrollBars = 0
SelectionMode = 1
FormatString = "发放|项目名称 |数据类型|项目长度|小数位数 "
End
Begin VB.Menu mnuEdit
Caption = "mnuEdit"
Visible = 0 'False
Begin VB.Menu mnuChange
Caption = "修改"
End
Begin VB.Menu mnuNew
Caption = "新增"
End
Begin VB.Menu mnuDel
Caption = "删除"
End
End
End
Attribute VB_Name = "frmSalaryListField"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
With MSFlexGrid1
.TextMatrix(1, 1) = "部门编号"
.TextMatrix(2, 1) = "部门名称"
.TextMatrix(3, 1) = "职员编号"
.TextMatrix(4, 1) = "职员姓名"
.TextMatrix(5, 1) = "应发合计"
.TextMatrix(6, 1) = "应发合计"
.TextMatrix(7, 1) = "扣款合计"
.TextMatrix(8, 1) = "实发合计"
.TextMatrix(9, 1) = "应缴税所得额"
.TextMatrix(10, 1) = "代扣所得税"
.TextMatrix(11, 1) = "本月扣零"
.TextMatrix(12, 1) = "发放扣零"
.TextMatrix(13, 1) = "累计扣零"
.TextMatrix(14, 1) = "计件工资"
.TextMatrix(15, 1) = "件数"
Dim i As Integer
For i = 1 To 15
.TextMatrix(i, 2) = "数字"
.TextMatrix(i, 3) = "12"
.TextMatrix(i, 4) = "2"
If i < 5 Then
.TextMatrix(i, 2) = "文字"
.TextMatrix(i, 4) = ""
End If
Next i
.ColAlignment(2) = 2
.ColAlignment(3) = 2
End With
Set cmdAddItem(0).Picture = Utility.GetFormResPicture(1001, 0)
Set cmdAddItem(1).Picture = Utility.GetFormResPicture(1002, 0)
End Sub
Private Sub Form_Unload(Cancel As Integer)
Utility.RemoveFormResPicture (1001)
Utility.RemoveFormResPicture (1002)
End Sub
Private Sub MSFlexGrid1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
If Button = 2 Then
PopupMenu mnuEdit, , x + MSFlexGrid1.Top, y + MSFlexGrid1.Left
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -