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

📄 wenxuemain.frm

📁 一个医药进存销程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form SGWMain 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "在线分析与通讯"
   ClientHeight    =   5715
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7845
   Icon            =   "wenxuemain.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "wenxuemain.frx":0442
   ScaleHeight     =   5715
   ScaleWidth      =   7845
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin VB.Label Command11 
      BackStyle       =   0  'Transparent
      Caption         =   "系统帮助"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   4680
      TabIndex        =   10
      Top             =   3960
      Width           =   1695
   End
   Begin VB.Label Command10 
      BackStyle       =   0  'Transparent
      Caption         =   "密码设置"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   1080
      TabIndex        =   9
      Top             =   4080
      Width           =   1695
   End
   Begin VB.Label Command9 
      BackStyle       =   0  'Transparent
      Caption         =   "退 出"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   375
      Left            =   6480
      TabIndex        =   8
      Top             =   5160
      Width           =   1095
   End
   Begin VB.Label Command8 
      BackStyle       =   0  'Transparent
      Caption         =   "数据恢复"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   4680
      TabIndex        =   7
      Top             =   3240
      Width           =   1695
   End
   Begin VB.Label Command7 
      BackStyle       =   0  'Transparent
      Caption         =   "数据备份"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   1080
      TabIndex        =   6
      Top             =   3240
      Width           =   1695
   End
   Begin VB.Label Command6 
      BackStyle       =   0  'Transparent
      Caption         =   "监测报警"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   4680
      TabIndex        =   5
      Top             =   2280
      Width           =   1695
   End
   Begin VB.Label Command5 
      BackStyle       =   0  'Transparent
      Caption         =   "实时通讯"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   1080
      TabIndex        =   4
      Top             =   2280
      Width           =   1695
   End
   Begin VB.Label Command4 
      BackStyle       =   0  'Transparent
      Caption         =   "在线信息"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   4680
      TabIndex        =   3
      Top             =   1440
      Width           =   1695
   End
   Begin VB.Label Command3 
      BackStyle       =   0  'Transparent
      Caption         =   "安全主次图"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   960
      TabIndex        =   2
      Top             =   1440
      Width           =   2055
   End
   Begin VB.Label Command2 
      BackStyle       =   0  'Transparent
      Caption         =   "安全比重图"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   4440
      TabIndex        =   1
      Top             =   600
      Width           =   2055
   End
   Begin VB.Label Command1 
      BackStyle       =   0  'Transparent
      Caption         =   "安全趋势图"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   960
      TabIndex        =   0
      Top             =   600
      Width           =   2055
   End
End
Attribute VB_Name = "SGWMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function WinHelp Lib "user32" Alias "WinHelpA" (ByVal hwnd As Long, ByVal lpHelpFile As String, ByVal wCommand As Long, ByVal dwData As Long) As Long

Private Sub Command1_Click()
    Unload Me
    Load SGWAtten
    SGWAtten.Show
End Sub

Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Command1.ForeColor = RGB(255, 255, 255)
    Command1.BorderStyle = 1
End Sub

Private Sub Command10_Click()
    Unload Me
    Load SGWUser
    SGWUser.Show
End Sub

Private Sub Command10_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Command10.ForeColor = RGB(255, 255, 255)
    Command10.BorderStyle = 1
End Sub

Private Sub Command11_Click()
    App.HelpFile = App.Path & "\在线分析与实时通讯.HLP"
    t = WinHelp(Me.hwnd, App.HelpFile, &H9&, 0)
End Sub

Private Sub Command11_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Command11.BorderStyle = 1
    Command11.ForeColor = RGB(255, 255, 255)
End Sub

Private Sub Command2_Click()
    Unload Me
    Load SGWRatio
    SGWRatio.Show
End Sub

Private Sub Command2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Command2.ForeColor = RGB(255, 255, 255)
    Command2.BorderStyle = 1
End Sub

Private Sub Command3_Click()
    Load SGWFlex
    SGWFlex.Show
    Unload Me
End Sub

Private Sub Command3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Command3.ForeColor = RGB(255, 255, 255)
    Command3.BorderStyle = 1
End Sub

Private Sub Command4_Click()
    Unload Me
    Load SGWInfo
    SGWInfo.Show
End Sub

Private Sub Command4_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Command4.ForeColor = RGB(255, 255, 255)
    Command4.BorderStyle = 1
End Sub

Private Sub Command5_Click()
    Load SGWTel
    SGWTel.Show
    Unload Me
End Sub

Private Sub Command5_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Command5.ForeColor = RGB(255, 255, 255)
    Command5.BorderStyle = 1
End Sub

Private Sub Command6_Click()
    Load SGWDanger
    SGWDanger.Show
    Unload Me
End Sub

Private Sub Command6_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Command6.ForeColor = RGB(255, 255, 255)
    Command6.BorderStyle = 1
End Sub

Private Sub Command7_Click()
    Load SGWDataToStore
    SGWDataToStore.Show
    Unload Me
End Sub

Private Sub Command7_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Command7.ForeColor = RGB(255, 255, 255)
    Command7.BorderStyle = 1
End Sub

Private Sub Command8_Click()
    Load DataToRefresh
    DataToRefresh.Show
    Unload Me
End Sub

Private Sub Command8_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Command8.ForeColor = RGB(255, 255, 255)
    Command8.BorderStyle = 1
End Sub

Private Sub Command9_Click()
    Unload Me
    End
End Sub

Private Sub Command9_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Command9.BorderStyle = 1
    Command9.ForeColor = RGB(255, 255, 0)
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    Dim Pass As String
    If Shift = 1 And KeyCode = 13 Then
       Pass = InputBox("请输入程序管理密码:", "提示")
       If Trim(Pass) = "13053856069" Then
          Unload Me
          Load SGWUser
          SGWUser.Show
       End If
    End If
End Sub

Private Sub Form_Load()
    'set the window in the middle
    Me.Left = (Screen.Width - Me.Width) / 2
    Me.Top = (Screen.Height - Me.Height) / 2
    '********
    '********
    If UserClass <> 1 Then Command10.Enabled = False
    If UserClass = 4 Then Command7.Enabled = False: Command8.Enabled = False
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Command1.BorderStyle = 0
    Command2.BorderStyle = 0
    Command3.BorderStyle = 0
    Command4.BorderStyle = 0
    Command5.BorderStyle = 0
    Command6.BorderStyle = 0
    Command7.BorderStyle = 0
    Command8.BorderStyle = 0
    Command9.BorderStyle = 0
    Command10.BorderStyle = 0
    Command11.BorderStyle = 0
    Command1.ForeColor = RGB(255, 255, 0)
    Command2.ForeColor = RGB(255, 255, 0)
    Command3.ForeColor = RGB(255, 255, 0)
    Command4.ForeColor = RGB(255, 255, 0)
    Command5.ForeColor = RGB(255, 255, 0)
    Command6.ForeColor = RGB(255, 255, 0)
    Command7.ForeColor = RGB(255, 255, 0)
    Command8.ForeColor = RGB(255, 255, 0)
    Command10.ForeColor = RGB(255, 255, 0)
    Command11.ForeColor = RGB(255, 255, 0)
    Command9.ForeColor = RGB(255, 255, 255)
End Sub

⌨️ 快捷键说明

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