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

📄 frmmain.frm

📁 petrostation + sysytem
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form frmMain 
   Caption         =   "加油站管理系统"
   ClientHeight    =   8985
   ClientLeft      =   60
   ClientTop       =   750
   ClientWidth     =   12420
   Icon            =   "frmMain.frx":0000
   LinkTopic       =   "Form1"
   Picture         =   "frmMain.frx":29C12
   ScaleHeight     =   8985
   ScaleWidth      =   12420
   StartUpPosition =   2  '屏幕中心
   WindowState     =   2  'Maximized
   Begin MSComctlLib.StatusBar stbMain 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   1
      Top             =   8610
      Width           =   12420
      _ExtentX        =   21908
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   5
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   7761
            MinWidth        =   7761
            Text            =   "加油站管理系统"
            TextSave        =   "加油站管理系统"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   4410
            MinWidth        =   4410
            Text            =   "作者:吕鹏飞"
            TextSave        =   "作者:吕鹏飞"
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Enabled         =   0   'False
            Object.Width           =   16581
            MinWidth        =   16581
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   6
            TextSave        =   "2008-6-4"
         EndProperty
         BeginProperty Panel5 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   5
            TextSave        =   "11:18"
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.Toolbar tlbMain 
      Align           =   1  'Align Top
      Height          =   855
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   12420
      _ExtentX        =   21908
      _ExtentY        =   1508
      ButtonWidth     =   1455
      ButtonHeight    =   1349
      Appearance      =   1
      ImageList       =   "imlToolBar"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   14
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "采购单"
            Key             =   "CGD"
            ImageIndex      =   1
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "销售单"
            Key             =   "XSD"
            ImageIndex      =   2
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "油品管理"
            Key             =   "CPGL"
            ImageIndex      =   3
         EndProperty
         BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "供应商"
            Key             =   "GYSGL"
            ImageIndex      =   7
         EndProperty
         BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "客户"
            Key             =   "KHGL"
            ImageIndex      =   8
         EndProperty
         BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "密码设置"
            Key             =   "MMSZ"
            ImageIndex      =   4
         EndProperty
         BeginProperty Button13 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "时间"
            Key             =   "TIME"
            ImageIndex      =   6
         EndProperty
         BeginProperty Button14 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "退出"
            Key             =   "TCXT"
            ImageIndex      =   5
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ImageList imlToolBar 
      Left            =   9960
      Top             =   1440
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   9
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":44915
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":4512B
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":4597D
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":46156
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":46815
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":4706F
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":478AB
            Key             =   ""
         EndProperty
         BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":4805E
            Key             =   ""
         EndProperty
         BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":48712
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin VB.Menu RCYW 
      Caption         =   "日常业务(&N)"
      Begin VB.Menu CGD 
         Caption         =   "采购单"
         Shortcut        =   ^P
      End
      Begin VB.Menu XSD 
         Caption         =   "销售单"
         Shortcut        =   ^S
      End
      Begin VB.Menu FEN1 
         Caption         =   "-"
      End
      Begin VB.Menu CGCX 
         Caption         =   "采购查询"
         Shortcut        =   ^G
      End
      Begin VB.Menu XSCX 
         Caption         =   "销售查询"
         Shortcut        =   ^X
      End
   End
   Begin VB.Menu KCGL 
      Caption         =   "库存管理(&S)"
      Begin VB.Menu KCCX 
         Caption         =   "库存查询"
         Shortcut        =   ^F
      End
      Begin VB.Menu CPGL 
         Caption         =   "油品管理"
         Shortcut        =   ^C
      End
   End
   Begin VB.Menu BBGL 
      Caption         =   "报表管理(&T)"
      Begin VB.Menu YPBB 
         Caption         =   "油品报表"
         Shortcut        =   {F5}
      End
      Begin VB.Menu GYBB 
         Caption         =   "购油报表"
         Shortcut        =   {F6}
      End
      Begin VB.Menu XSBB 
         Caption         =   "销售报表"
         Shortcut        =   {F7}
      End
      Begin VB.Menu KHBB 
         Caption         =   "客户报表"
         Shortcut        =   {F8}
      End
      Begin VB.Menu GYSBB 
         Caption         =   "供应商报表"
         Shortcut        =   {F9}
      End
   End
   Begin VB.Menu JCXX 
      Caption         =   "基础信息(&B)"
      Begin VB.Menu GYSGL 
         Caption         =   "供应商管理"
         Shortcut        =   ^Y
      End
      Begin VB.Menu KHGL 
         Caption         =   "客户管理"
         Shortcut        =   ^H
      End
   End
   Begin VB.Menu XTSZ 
      Caption         =   "系统设置(&O)"
      Begin VB.Menu MMSZ 
         Caption         =   "密码设置"
         Shortcut        =   ^M
      End
      Begin VB.Menu TIME 
         Caption         =   "当前时间"
         Shortcut        =   ^T
      End
      Begin VB.Menu GYXT 
         Caption         =   "关于系统"
         Shortcut        =   ^A
      End
   End
   Begin VB.Menu MRTS 
      Caption         =   "每日提示(&D)"
   End
   Begin VB.Menu TCXT 
      Caption         =   "退出(&X)"
   End
   Begin VB.Menu YJ 
      Caption         =   "右键"
      Visible         =   0   'False
      Begin VB.Menu BJTP 
         Caption         =   "背景图片"
         Begin VB.Menu BSMZF 
            Caption         =   "生命绽放"
         End
         Begin VB.Menu BSFGX 
            Caption         =   "释放个性"
         End
         Begin VB.Menu BXZYL 
            Caption         =   "炫紫幽兰"
         End
      End
      Begin VB.Menu SBYS 
         Caption         =   "鼠标样式"
         Begin VB.Menu ACG 
            Caption         =   "常规指针"
         End
         Begin VB.Menu AYD 
            Caption         =   "移动指针"
         End
         Begin VB.Menu ADW 
            Caption         =   "定位指针"
         End
      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 ACG_Click()
frmMain.MousePointer = 0
End Sub

Private Sub ADW_Click()
frmMain.MousePointer = 2
End Sub

Private Sub AYD_Click()
frmMain.MousePointer = 15
End Sub

Private Sub BSFGX_Click()
frmMain.Picture = LoadPicture(App.Path + "\Image\back4.jpg")
End Sub

Private Sub BSMZF_Click()
frmMain.Picture = LoadPicture(App.Path + "\Image\back1.jpg")
End Sub

Private Sub BXZYL_Click()
frmMain.Picture = LoadPicture(App.Path + "\Image\back6.jpg")
End Sub

Private Sub CGCX_Click()
Load frmCGCX
frmCGCX.Show
Me.Enabled = False

End Sub

Private Sub CGD_Click()
Load frmCGD '加载frmCGD窗体
frmCGD.Show '显示frmCGD窗体
Me.Enabled = False '设置主窗体不可用

End Sub

Private Sub CPGL_Click()
Load frmCPGL
frmCPGL.Show
Me.Enabled = False
End Sub

Private Sub Form_MouseUp(Button As Integer, Shift As Integer, x As Single, Y As Single)
If Button = 2 Then
PopupMenu YJ
End If

End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
 If MsgBox("确定要退出本系统吗?", vbYesNo + vbQuestion, "提示") = vbNo Then
   Cancel = True '选择不退出系统,则取消卸载
   
End If
   
 
End Sub

Private Sub GYBB_Click()
dpPS_Purchases.Show

End Sub

Private Sub GYSBB_Click()
dpPS_Suppliers.Show

End Sub

Private Sub GYSGL_Click()
Load frmGYSGL
frmGYSGL.Show
Me.Enabled = False

End Sub

Private Sub GYXT_Click()
Load frmGYXT
frmGYXT.Show
Me.Enabled = False
End Sub

Private Sub KCCX_Click()
Load frmKCCX
frmKCCX.Show
Me.Enabled = False

End Sub

Private Sub KHBB_Click()
dpPS_Customers.Show
End Sub

Private Sub KHGL_Click()
Load frmKHGL
frmKHGL.Show
Me.Enabled = False

End Sub

Private Sub MMSZ_Click()
Load frmMMSZ '加载frmMMSZ窗体
frmMMSZ.Show '显示frmMMSZ窗体
Me.Enabled = False '设置主窗体不可用

End Sub


Private Sub MRTS_Click()
frmTip.Show
End Sub

Private Sub TCXT_Click()
 Unload Me
 
End Sub



Private Sub TIME_Click()
Load frmTIME
frmTIME.Show
Me.Enabled = False

End Sub

Private Sub tlbMain_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
 
 
      Case Is = "CGD"
      CGD_Click
 
      Case Is = "XSD"
      XSD_Click

      Case Is = "MMSZ"
      MMSZ_Click

      Case Is = "TCXT"
      TCXT_Click

      Case Is = "CPGL"
      CPGL_Click

      Case Is = "TIME"
      TIME_Click

      Case Is = "GYSGL"
      GYSGL_Click
  
      Case Is = "KHGL"
      KHGL_Click
      
End Select
End Sub

Private Sub XSBB_Click()
dpPS_Sales.Show

End Sub

Private Sub XSCX_Click()
Load frmXSCX
Load frmXSCX
frmXSCX.Show
Me.Enabled = False

End Sub

Private Sub XSD_Click()
Load frmXSD '加载frmXSD窗体
frmXSD.Show '显示frmXSD窗体
Me.Enabled = False '设置主窗体不可用

End Sub

Private Sub YPBB_Click()
dpPS_Products.Show

End Sub

⌨️ 快捷键说明

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