⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mdiform1.frm

📁 这是我们同学做的一个商品销售系统毕业设计
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.MDIForm MDIForm1 
   BackColor       =   &H8000000C&
   Caption         =   "商品进销存管理"
   ClientHeight    =   6720
   ClientLeft      =   165
   ClientTop       =   450
   ClientWidth     =   10500
   Icon            =   "MDIForm1.frx":0000
   LinkTopic       =   "MDIForm1"
   Picture         =   "MDIForm1.frx":0442
   StartUpPosition =   2  '屏幕中心
   WindowState     =   2  'Maximized
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   1
      Top             =   6345
      Width           =   10500
      _ExtentX        =   18521
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   3
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            AutoSize        =   1
            Object.Width           =   12859
            Text            =   "欢迎使用商品进销存系统!打开一个窗口,按F1查看帮助"
            TextSave        =   "欢迎使用商品进销存系统!打开一个窗口,按F1查看帮助"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   6
            TextSave        =   "2004-12-24"
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   5
            TextSave        =   "20:18"
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   6000
      Top             =   6240
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   7
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIForm1.frx":240486
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIForm1.frx":2408D8
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIForm1.frx":240D2A
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIForm1.frx":24117C
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIForm1.frx":2415CE
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIForm1.frx":2418E8
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "MDIForm1.frx":242B6A
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   660
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   10500
      _ExtentX        =   18521
      _ExtentY        =   1164
      ButtonWidth     =   1032
      ButtonHeight    =   1005
      Appearance      =   1
      ImageList       =   "ImageList1"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   14
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Object.ToolTipText     =   "添加销售记录"
            ImageIndex      =   1
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Object.ToolTipText     =   "添加进货记录"
            ImageIndex      =   2
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Object.ToolTipText     =   "修改登陆口令"
            ImageIndex      =   3
         EndProperty
         BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Object.ToolTipText     =   "查询销售记录"
            ImageIndex      =   4
         EndProperty
         BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Object.ToolTipText     =   "销售报表"
            ImageIndex      =   5
         EndProperty
         BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Object.ToolTipText     =   "库存报表"
            ImageIndex      =   6
         EndProperty
         BeginProperty Button13 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button14 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Object.ToolTipText     =   "退出程序"
            ImageIndex      =   7
         EndProperty
      EndProperty
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   6600
      Top             =   6240
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.Menu mnuJXJL 
      Caption         =   "商品进销"
      Begin VB.Menu mnuJH 
         Caption         =   "进货记录"
      End
      Begin VB.Menu mnuk1 
         Caption         =   "-"
      End
      Begin VB.Menu mnuXS 
         Caption         =   "销售记录"
      End
   End
   Begin VB.Menu mnuCx 
      Caption         =   "查询"
      Begin VB.Menu mnuXSCX 
         Caption         =   "销售查询"
      End
      Begin VB.Menu mnuk2 
         Caption         =   "-"
      End
      Begin VB.Menu mnuJHCX 
         Caption         =   "进货查询"
      End
   End
   Begin VB.Menu mnuReport 
      Caption         =   "报表"
      Begin VB.Menu mnuReportXS 
         Caption         =   "销售报表"
      End
      Begin VB.Menu mnuk3 
         Caption         =   "-"
      End
      Begin VB.Menu mnuReportKC 
         Caption         =   "库存报表"
      End
   End
   Begin VB.Menu mnuXTWH 
      Caption         =   "系统维护"
      Begin VB.Menu mnuXGKL 
         Caption         =   "修改口令"
      End
      Begin VB.Menu menuAdduser 
         Caption         =   "添加用户"
         Visible         =   0   'False
      End
      Begin VB.Menu mnuk4 
         Caption         =   "-"
      End
      Begin VB.Menu mnuBackup 
         Caption         =   "数据备份"
      End
   End
   Begin VB.Menu mnuwindows 
      Caption         =   "窗口"
      WindowList      =   -1  'True
      Begin VB.Menu mnuHorizonta 
         Caption         =   "水平平铺"
      End
      Begin VB.Menu mnuVertical 
         Caption         =   "垂直平铺"
      End
      Begin VB.Menu mnuCascade 
         Caption         =   "层叠排列"
      End
      Begin VB.Menu mnuk 
         Caption         =   "-"
      End
      Begin VB.Menu mnuAbout 
         Caption         =   "关于"
      End
   End
   Begin VB.Menu mnuHelp 
      Caption         =   "帮助"
   End
   Begin VB.Menu mnuExit 
      Caption         =   "退出"
   End
End
Attribute VB_Name = "MDIForm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit


Private Sub MDIForm_load()
    Denglu_time = Now
    RiZhi
End Sub

Private Sub mnuAbout_Click()
    Load frmAbout
End Sub
'对数据库文件进行备份,首先引用"Microsoft Scripting Runtime"
'声明变量Fso为FileSystemObject对象,新建一个back文件夹,将数据库文件copy进去
Private Sub mnuBackup_Click()
On Error GoTo A:
    Dim Fso As New FileSystemObject
    Fso.CreateFolder (App.Path + "\back")
    Fso.CopyFile App.Path + "\db1.mdb", App.Path + "\back\dbback.mdb"
    MsgBox "系统已经将数据文件进行了备份!"
    Exit Sub
A:
    Fso.CopyFile App.Path + "\db1.mdb", App.Path + "\back\dbback.mdb"
    MsgBox "系统已经将数据文件进行了备份!"
    Exit Sub
End Sub

Private Sub mnuCascade_Click()
    MDIForm1.Arrange (vbCascade)
End Sub

Private Sub mnuExit_Click()
    mnuBackup_Click
    Denglu_exit = Now
    RiZhi1
    End
End Sub


Private Sub mnuHelp_Click()
    Dim myIE As New SHDocVw.InternetExplorer
    myIE.Visible = True
    myIE.Navigate App.Path + "\操作指南.htm"
End Sub

Private Sub mnuHorizonta_Click()
    MDIForm1.Arrange (vbHorizontal)
End Sub

Private Sub mnuJH_Click()
    frmPutin.Show
End Sub

Private Sub mnuJHCX_Click()
    frmJHCX.Show
End Sub

Private Sub mnuReportKC_Click()
    DataReportKC.Show
End Sub

Private Sub mnuReportXS_Click()
    DataReportXS.Show
End Sub

Private Sub mnuVertical_Click()
    MDIForm1.Arrange (vbVertical)
End Sub

Private Sub mnuXGKL_Click()
    frmChange.Show
End Sub

Private Sub mnuXS_Click()
    frmXS.Show
End Sub

Private Sub mnuXSCX_Click()
    frmXSCX.Show
End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
    Select Case Button.Index
    Case 2
        frmXS.Show
    Case 4
        frmPutin.Show
    Case 6
        frmChange.Show
    Case 8
        frmXSCX.Show
    Case 10
        DataReportXS.Show
    Case 12
        DataReportKC.Show
    Case 14
        mnuExit_Click
    End Select
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -