📄 frmcustomerinitcolumn.frm
字号:
VERSION 5.00
Begin VB.Form frmCustomerInitColumn
BorderStyle = 1 'Fixed Single
Caption = "往来期初明细栏目设置"
ClientHeight = 2370
ClientLeft = 45
ClientTop = 330
ClientWidth = 4020
HelpContextID = 10236
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2370
ScaleWidth = 4020
StartUpPosition = 1 '所有者中心
Begin VB.CheckBox chkColumn
Caption = "到期日期"
Height = 315
Index = 7
Left = 1380
TabIndex = 10
Top = 1080
Width = 1035
End
Begin VB.CheckBox chkColumn
Caption = "开票日期"
Height = 315
Index = 6
Left = 1380
TabIndex = 9
Top = 720
Width = 1035
End
Begin VB.CheckBox chkColumn
Caption = "付款条件"
Height = 315
Index = 5
Left = 1380
TabIndex = 8
Top = 360
Width = 1035
End
Begin VB.CheckBox chkColumn
Caption = "项目"
Height = 315
Index = 4
Left = 420
TabIndex = 7
Top = 1800
Width = 795
End
Begin VB.CheckBox chkColumn
Caption = "统计"
Height = 315
Index = 3
Left = 420
TabIndex = 6
Top = 1440
Width = 795
End
Begin VB.CheckBox chkColumn
Caption = "工程"
Height = 315
Index = 2
Left = 420
TabIndex = 5
Top = 1080
Width = 795
End
Begin VB.CheckBox chkColumn
Caption = "职员"
Height = 315
Index = 1
Left = 420
TabIndex = 4
Top = 720
Width = 795
End
Begin VB.CheckBox chkColumn
Caption = "部门"
Height = 315
Index = 0
Left = 420
TabIndex = 3
Top = 360
Width = 795
End
Begin VB.CommandButton cmdColumn
Height = 350
Index = 1
Left = 2700
Style = 1 'Graphical
TabIndex = 1
Top = 600
UseMaskColor = -1 'True
Width = 1215
End
Begin VB.CommandButton cmdColumn
Height = 350
Index = 0
Left = 2700
Style = 1 'Graphical
TabIndex = 0
Top = 120
UseMaskColor = -1 'True
Width = 1215
End
Begin VB.Label Label1
Caption = "选择可见栏目"
Height = 255
Left = 480
TabIndex = 2
Top = 60
Width = 1095
End
End
Attribute VB_Name = "frmCustomerInitColumn"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private mblnOk As Boolean
Private mintColumn(7) As Integer
Public Function ShowColunm(intColumn() As Integer) As Boolean
Dim intCount As Integer
mblnOk = False
For intCount = 0 To 7
chkColumn(intCount).Value = intColumn(intCount)
mintColumn(intCount) = intColumn(intCount)
If intColumn(intCount) = 2 Then
chkColumn(intCount).Enabled = False
End If
Next
If Not gclsBase.ControlAccount Then
chkColumn(0).Visible = False
chkColumn(1).Visible = False
chkColumn(2).Visible = False
chkColumn(3).Visible = False
chkColumn(4).Visible = False
chkColumn(5).Visible = True
chkColumn(6).Visible = True
chkColumn(7).Visible = True
chkColumn(5).Left = 420
chkColumn(6).Left = 420
chkColumn(7).Left = 420
Else
chkColumn(0).Visible = True
chkColumn(1).Visible = True
chkColumn(2).Visible = True
chkColumn(3).Visible = True
chkColumn(4).Visible = True
chkColumn(5).Visible = True
chkColumn(6).Visible = True
chkColumn(7).Visible = True
chkColumn(0).Left = 420
chkColumn(1).Left = 420
chkColumn(2).Left = 420
chkColumn(3).Left = 420
chkColumn(4).Left = 420
chkColumn(5).Left = 1380
chkColumn(6).Left = 1380
chkColumn(7).Left = 1380
End If
Me.Show vbModal
If mblnOk Then
For intCount = 0 To 7
intColumn(intCount) = mintColumn(intCount)
Next
ShowColunm = True
Else
ShowColunm = False
End If
End Function
Private Sub cmdColumn_Click(Index As Integer)
Dim intCount As Integer
Select Case Index
Case 0
mblnOk = True
For intCount = 0 To 7
mintColumn(intCount) = chkColumn(intCount).Value
Next
Unload Me
Case 1
Unload Me
End Select
End Sub
Private Sub Form_Load()
SetHelpID 10236
Set Me.Icon = GetFormResPicture(139, vbResIcon)
Set cmdColumn(0).Picture = GetFormResPicture(1001, vbResBitmap)
Set cmdColumn(1).Picture = GetFormResPicture(1002, vbResBitmap)
#If conVersionType = 4 Then
chkColumn(3).Visible = False
chkColumn(4).Visible = False
chkColumn(0).top = 660
chkColumn(1).top = 1350
chkColumn(2).Visible = False
#Else
#If conVersionType = 16 Then
chkColumn(2).Visible = False
chkColumn(4).top = chkColumn(3).top
chkColumn(3).top = chkColumn(2).top
#End If
#End If
End Sub
Private Sub Form_Paint()
FrameBox Me.hwnd, 120, 120, 2490, 2160
End Sub
Private Sub Form_Unload(Cancel As Integer)
Utility.RemoveFormResPicture 139
Utility.RemoveFormResPicture 1001
Utility.RemoveFormResPicture 1002
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -