📄 报表.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "报表"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form2"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "确定"
Height = 495
Left = 840
TabIndex = 4
Top = 1560
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "退出"
Height = 495
Left = 2280
TabIndex = 3
Top = 1560
Width = 1335
End
Begin VB.OptionButton Option3
Caption = "销售"
Enabled = 0 'False
Height = 375
Left = 2640
TabIndex = 2
Top = 840
Width = 855
End
Begin VB.OptionButton Option2
Caption = "库存"
Enabled = 0 'False
Height = 375
Left = 1920
TabIndex = 1
Top = 840
Width = 855
End
Begin VB.OptionButton Option1
Caption = "商品"
Enabled = 0 'False
Height = 375
Left = 1080
TabIndex = 0
Top = 840
Width = 735
End
Begin VB.Label Label1
Caption = "报表打印系统"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1200
TabIndex = 5
Top = 120
Width = 3255
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
If Option1.Value = True Then
DataReport1.Show
ElseIf Option2.Value = True Then
DataReport2.Show
ElseIf Option3.Value = True Then
DataReport3.Show
End If
End Sub
Private Sub Form_Load()
Select Case qx
Case 0: '此权限用于系统管理员
Option1.Value = True
Option2.Value = True
Option3.Value = True
Option1.Enabled = True
Option2.Enabled = True
Option3.Enabled = True
Case 1: ' 此权限用于库存管理人员
Option1.Value = True
Option2.Value = True
Option3.Value = True
Option1.Enabled = True
Option2.Enabled = True
Case 2: ' 此权限用于销售管理人员
Option1.Value = True
Option2.Value = True
Option3.Value = True
Option1.Enabled = True
Option2.Enabled = True
Option3.Enabled = True
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -