📄 mdiform1.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.MDIForm MDIForm1
BackColor = &H8000000C&
Caption = "竹研碳坊"
ClientHeight = 10635
ClientLeft = 165
ClientTop = 555
ClientWidth = 10470
Icon = "MDIForm1.frx":0000
LinkMode = 1 'Source
LinkTopic = "MDIForm1"
ScrollBars = 0 'False
WindowState = 2 'Maximized
Begin MSComctlLib.ImageList ImageList1
Left = 3120
Top = 2160
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 5
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "MDIForm1.frx":0442
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "MDIForm1.frx":111C
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "MDIForm1.frx":1636
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "MDIForm1.frx":1950
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "MDIForm1.frx":262A
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 660
Left = 0
TabIndex = 1
Top = 0
Width = 10470
_ExtentX = 18468
_ExtentY = 1164
ButtonWidth = 1032
ButtonHeight = 1005
Appearance = 1
ImageList = "ImageList1"
DisabledImageList= "ImageList1"
HotImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 10
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Object.ToolTipText = "商品查找"
Style = 3
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "mnuSearchBar"
Object.ToolTipText = "商品查找"
ImageIndex = 1
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "mnuSellBar"
Object.ToolTipText = "出售商品"
ImageIndex = 2
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "mnuProductsBar"
Object.ToolTipText = "库存商品"
ImageIndex = 3
EndProperty
BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "mnuBuyBar"
Object.ToolTipText = "进货登记"
ImageIndex = 4
EndProperty
BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "MnuCinfoBar"
Object.ToolTipText = "客户信息"
ImageIndex = 5
EndProperty
EndProperty
End
Begin MSComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 375
Left = 0
TabIndex = 0
Top = 10260
Width = 10470
_ExtentX = 18468
_ExtentY = 661
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Alignment = 1
Object.Width = 10583
MinWidth = 10583
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Object.Width = 8820
MinWidth = 8820
Text = "设计:焦作市中纬测绘地理信息有限公司"
TextSave = "设计:焦作市中纬测绘地理信息有限公司"
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
TextSave = "10:57"
EndProperty
EndProperty
End
Begin MSComDlg.CommonDialog CommonDialog1
Left = 480
Top = 1680
_ExtentX = 847
_ExtentY = 847
_Version = 393216
DialogTitle = "数据导入"
FileName = "*.xls"
Filter = "*.xls"
Flags = 200
InitDir = "app.path"
End
Begin VB.Menu MnuSystem
Caption = "系统"
Begin VB.Menu mnuSystemUser
Caption = "用户管理"
End
Begin VB.Menu MnuSystemLogin
Caption = "重新登录"
End
Begin VB.Menu MnuSystemBar
Caption = "-"
End
Begin VB.Menu MnuSystemExit
Caption = "退出"
End
End
Begin VB.Menu MnuGoods
Caption = "商品信息管理"
Begin VB.Menu MnuGoodsBar
Caption = "商品管理"
End
End
Begin VB.Menu MnuBuy
Caption = "进货登记"
Begin VB.Menu MnuBuybar
Caption = "进货登记"
End
End
Begin VB.Menu MnuSell
Caption = "销售登记"
Begin VB.Menu MnuSellBar
Caption = "销售登记"
End
End
Begin VB.Menu MnuStock
Caption = "库存列表"
Begin VB.Menu MnuStockBar
Caption = "库存列表"
End
End
Begin VB.Menu MunCustomer
Caption = "客户信息维护"
Begin VB.Menu MnuCustomerBar
Caption = "客户浏览"
End
Begin VB.Menu MnuCustomerAdd
Caption = "新增客户"
End
End
Begin VB.Menu mnuTjBb
Caption = "统计"
Begin VB.Menu mnuJhTj
Caption = "进货统计"
End
Begin VB.Menu mnuXsTJ
Caption = "销售统计"
End
Begin VB.Menu mnuJXTJ
Caption = "进销统计"
End
Begin VB.Menu mnuKhTj
Caption = "客户消费统计"
End
End
Begin VB.Menu About
Caption = "帮助"
Begin VB.Menu mnuAbout
Caption = "关于"
End
End
End
Attribute VB_Name = "MDIForm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub MDIForm_Load()
If usertype = 1 Then
mnuSystemUser.Enabled = False
MnuGoods.Visible = False
MnuBuy.Visible = False
MnuStock.Visible = False
mnuTjBb.Visible = False
Toolbar1.Buttons.Item(6).Visible = False
Toolbar1.Buttons.Item(8).Visible = False
End If
End Sub
Private Sub mnuAbout_Click()
frmAbout.Show
End Sub
Private Sub MnuBuybar_Click()
frmBuyGoods.Show
End Sub
Private Sub MnuCustomerAdd_Click()
frmAddCustomer.Show vbModal
End Sub
Private Sub MnuCustomerBar_Click()
frmCustomers.Show
End Sub
Private Sub MnuGoodsBar_Click()
frmProductsList.Show
End Sub
Private Sub mnuJhTj_Click()
frmJhTj.Show vbModal
End Sub
Private Sub mnuJXTJ_Click()
frmJXTJ.Show vbModal
End Sub
Private Sub mnuKhTj_Click()
frmKhTj.Show vbModal
End Sub
Private Sub MnuSellBar_Click()
frmSell.Show
End Sub
Private Sub MnuStockBar_Click()
frmKclb.Show
End Sub
Private Sub mnusystemuser_Click()
frmuser.Show
End Sub
Private Sub mnusystemlogin_Click()
Unload Me
frmlogin.Show
End Sub
Private Sub mnusystemexit_Click()
On Error Resume Next
tishi = MsgBox("欢迎使用本系统!", vbOKOnly, "竹研炭坊")
If tishi = vbOK Then
Unload frmmain
End If
End Sub
Private Sub mnuXsTJ_Click()
frmXsTj.Show vbModal
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Index
Case 2
Debug.Print "2"
Case 4
frmSell.Show
Case 6
frmKclb.Show
Case 8
frmBuyGoods.Show
Case 10
frmCustomers.Show
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -