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

📄 frmmain.frm

📁 本软件系本人自学VB过程中试写,后来经不断改进完成,经试用比较完整,又修补了一些漏洞,可以放心投入使用,并供学习编程爱好者参考. 本软件简单易用,操作方便,基本可以不用鼠标,直接通过键盘操作.
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmmain 
   Caption         =   "服装进销存管理系统"
   ClientHeight    =   7425
   ClientLeft      =   60
   ClientTop       =   720
   ClientWidth     =   10845
   Icon            =   "frmmain.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   7425
   ScaleWidth      =   10845
   StartUpPosition =   2  '屏幕中心
   Begin VB.Timer Timer1 
      Interval        =   100
      Left            =   2880
      Top             =   5280
   End
   Begin VB.PictureBox Picture1 
      Height          =   7425
      Left            =   0
      Picture         =   "frmmain.frx":08CA
      ScaleHeight     =   7365
      ScaleWidth      =   10845
      TabIndex        =   0
      Top             =   0
      Width           =   10905
      Begin VB.Label lblquanxian 
         AutoSize        =   -1  'True
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   210
         Left            =   8400
         TabIndex        =   9
         Top             =   7080
         Width           =   105
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "您的权限为:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   7200
         TabIndex        =   8
         Top             =   7080
         Width           =   1155
      End
      Begin VB.Label lblxianshi 
         AutoSize        =   -1  'True
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   210
         Left            =   6120
         TabIndex        =   7
         Top             =   7080
         Width           =   105
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "目前正在操作的用户是:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   3840
         TabIndex        =   6
         Top             =   7080
         Width           =   2205
      End
      Begin VB.Label Label4 
         Caption         =   "科技促进民族兴旺"
         BeginProperty Font 
            Name            =   "方正舒体"
            Size            =   18
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   3135
         Left            =   9960
         TabIndex        =   5
         Top             =   3600
         Width           =   495
      End
      Begin VB.Label Label3 
         Caption         =   "软件带动社会发展"
         BeginProperty Font 
            Name            =   "方正舒体"
            Size            =   18
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00004040&
         Height          =   3135
         Left            =   9480
         TabIndex        =   4
         Top             =   3600
         Width           =   435
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "正在使用:服装进销存管理系统V2.0"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   240
         TabIndex        =   3
         Top             =   7080
         Width           =   3255
      End
      Begin VB.Label lbltime 
         AutoSize        =   -1  'True
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   1080
         TabIndex        =   2
         Top             =   6720
         Width           =   105
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "今天是:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   240
         TabIndex        =   1
         Top             =   6720
         Width           =   735
      End
   End
   Begin VB.PictureBox XPMenu1 
      Height          =   480
      Left            =   5400
      ScaleHeight     =   420
      ScaleWidth      =   1140
      TabIndex        =   10
      Top             =   3480
      Width           =   1200
   End
   Begin VB.Menu xtsz 
      Caption         =   "系统设置(&S)"
      Begin VB.Menu glyh 
         Caption         =   "管理用户(&M)"
      End
      Begin VB.Menu xgmm 
         Caption         =   "修改密码(&C)"
      End
      Begin VB.Menu zx 
         Caption         =   "注销用户(&Z)"
      End
      Begin VB.Menu line1 
         Caption         =   "-"
      End
      Begin VB.Menu sjbf 
         Caption         =   "数据备份(&B)"
      End
      Begin VB.Menu tccx 
         Caption         =   "退出程序(&E)"
      End
   End
   Begin VB.Menu jczl 
      Caption         =   "基础资料管理(&Z)"
      Begin VB.Menu jhd 
         Caption         =   "进货单(&J)"
      End
      Begin VB.Menu line2 
         Caption         =   "-"
      End
      Begin VB.Menu tjzl 
         Caption         =   "货品资料添加(&A)"
      End
      Begin VB.Menu hpcx 
         Caption         =   "货品资料查询(&F)"
      End
      Begin VB.Menu xgzl 
         Caption         =   "货品资料修改(&X)"
      End
      Begin VB.Menu line4 
         Caption         =   "-"
      End
      Begin VB.Menu hpcs 
         Caption         =   "货品参数管理(&C)"
      End
   End
   Begin VB.Menu yyjs 
      Caption         =   "营业计算(&Y)"
      Begin VB.Menu xsjs 
         Caption         =   "销售计算(&X)"
      End
      Begin VB.Menu line5 
         Caption         =   "-"
      End
      Begin VB.Menu xsjl 
         Caption         =   "销售记录(&J)"
      End
      Begin VB.Menu ckkc 
         Caption         =   "库存记录(&C)"
      End
      Begin VB.Menu jhjl 
         Caption         =   "进货记录(&A)"
      End
   End
   Begin VB.Menu sygj 
      Caption         =   "实用工具(&G)"
      Begin VB.Menu jsq 
         Caption         =   "计算器(&J)"
      End
      Begin VB.Menu jsb 
         Caption         =   "记事本(&B)"
      End
   End
   Begin VB.Menu about 
      Caption         =   "关于系统(&X)"
      Begin VB.Menu zuozhe 
         Caption         =   "联系作者(&Z)"
      End
      Begin VB.Menu xtbb 
         Caption         =   "系统版本(&B)"
      End
   End
End
Attribute VB_Name = "frmmain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub ckkc_Click()
    frmchakanku.Show 1
End Sub
Private Sub Form_Load()
    Call Main
    If ifmana = False Then
        glyh.Enabled = False
        hpcs.Enabled = False
        xgzl.Enabled = False
        xgmm.Enabled = False
        tjzl.Enabled = False
        sjbf.Enabled = False
    End If
    lblxianshi.Caption = mingzi
    
'    Dim rs As New ADODB.Recordset
'    Dim sql As String
'    sql = "select * from admin where caozuoyuan='" & username & "'"
'    rs.open sql, cn
'    lblxianshi.Caption = rs!caozuoyuan
    If ifmana = False Then
    lblquanxian.Caption = "操作员"
    Else
    lblquanxian.Caption = "管理员"
    End If
''    glyh.Enabled = False
End Sub

Private Sub glyh_Click()
    frmuser.Show 1
End Sub

Private Sub hpcs_Click()
    frmcanshu.Show 1
End Sub

Private Sub hpcx_Click()
    frmchahuo.Show 1
End Sub

Private Sub jhd_Click()
    frmjinhuo.Show 1
End Sub

Private Sub jhjl_Click()
    frmjhjl.Show 1
End Sub

Private Sub jsb_Click()
    Dim RetVal As String
    RetVal = Shell("C:\WINDOWS\NOTEPAD.EXE", 1)
End Sub

Private Sub jsq_Click()
    Dim RetVal As String
    RetVal = Shell("C:\WINDOWS\system32\calc.exe", 1)
End Sub

Private Sub sjbf_Click()
    frmbeifen.Show 1
End Sub
Private Sub tccx_Click()
    End
End Sub

Private Sub Timer1_Timer()
    lbltime.Caption = Format(Date, "yyyy年mm月dd日")
'lbltime.Caption = Format(Date, "long date")
End Sub

Private Sub tjzl_Click()
    frmyanzheng.Show 1
End Sub

Private Sub xgmm_Click()
    frmeditmima.Show 1
End Sub

Private Sub xgzl_Click()
    frmxiugai.Show 1
End Sub

Private Sub xsjl_Click()
    frmxsjl.Show 1
End Sub

Private Sub xsjs_Click()
    frmxiaoshou.Show 1
End Sub

Private Sub xtbb_Click()
    frmxtbb.Show 1
End Sub

Private Sub zuozhe_Click()
    frmzuozhe.Show 1
End Sub

Private Sub zx_Click()
    frmzx.Show 1
End Sub

⌨️ 快捷键说明

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