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

📄 form2.frm

📁 设备管理系统,对设备的入库,出库,借出与归还的管理
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form Form2 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "设备管理系统--演示"
   ClientHeight    =   10500
   ClientLeft      =   150
   ClientTop       =   810
   ClientWidth     =   11805
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "Form2.frx":0000
   ScaleHeight     =   10500
   ScaleWidth      =   11805
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Timer2 
      Enabled         =   0   'False
      Interval        =   60
      Left            =   5280
      Top             =   5040
   End
   Begin VB.CheckBox Check5 
      Caption         =   "Check5"
      Height          =   345
      Left            =   7275
      TabIndex        =   5
      Top             =   9225
      Visible         =   0   'False
      Width           =   1410
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   375
      Top             =   2802
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   14
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":0342
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":0C1C
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":14F6
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":1DD0
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":26AA
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":2F84
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":329E
            Key             =   ""
         EndProperty
         BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":3B78
            Key             =   ""
         EndProperty
         BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":4452
            Key             =   ""
         EndProperty
         BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":44E9
            Key             =   ""
         EndProperty
         BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":4DC3
            Key             =   ""
         EndProperty
         BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":569D
            Key             =   ""
         EndProperty
         BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":5F77
            Key             =   ""
         EndProperty
         BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Form2.frx":6851
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin VB.Timer Timer1 
      Interval        =   60
      Left            =   6840
      Top             =   9360
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   4
      Top             =   10125
      Width           =   11805
      _ExtentX        =   20823
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   4
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   5556
            MinWidth        =   5556
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   5380
            MinWidth        =   5380
            Object.ToolTipText     =   "当前时间"
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   4586
            MinWidth        =   4586
            Object.ToolTipText     =   "当前操作员信息"
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   5292
            MinWidth        =   5292
            Text            =   "wangtaolin000@163.com"
            TextSave        =   "wangtaolin000@163.com"
            Object.ToolTipText     =   "联系方式"
         EndProperty
      EndProperty
   End
   Begin VB.CheckBox Check4 
      Caption         =   "Check4"
      Height          =   345
      Left            =   5250
      TabIndex        =   3
      Top             =   9210
      Visible         =   0   'False
      Width           =   1305
   End
   Begin VB.CheckBox Check3 
      Caption         =   "Check3"
      Height          =   345
      Left            =   3525
      TabIndex        =   2
      Top             =   9210
      Visible         =   0   'False
      Width           =   1305
   End
   Begin VB.CheckBox Check2 
      Caption         =   "Check2"
      Height          =   345
      Left            =   1860
      TabIndex        =   1
      Top             =   9210
      Visible         =   0   'False
      Width           =   1305
   End
   Begin VB.CheckBox Check1 
      Caption         =   "Check1"
      Height          =   345
      Left            =   270
      TabIndex        =   0
      Top             =   9210
      Visible         =   0   'False
      Width           =   1305
   End
   Begin VB.Menu yh1 
      Caption         =   "【用户设置(&X)】"
      Begin VB.Menu yh 
         Caption         =   "用户注册"
         Shortcut        =   ^A
      End
      Begin VB.Menu gg 
         Caption         =   "更改密码"
         Shortcut        =   ^{F7}
      End
      Begin VB.Menu sc 
         Caption         =   "删除用户"
         Shortcut        =   {F1}
      End
      Begin VB.Menu a 
         Caption         =   "-"
      End
      Begin VB.Menu qx 
         Caption         =   "权限设置"
         Shortcut        =   {F5}
      End
   End
   Begin VB.Menu sb 
      Caption         =   "【设备管理(&G)】"
      Begin VB.Menu rk 
         Caption         =   "入库管理"
      End
      Begin VB.Menu ck 
         Caption         =   "出库管理"
      End
      Begin VB.Menu jc 
         Caption         =   "借出管理"
      End
      Begin VB.Menu gh 
         Caption         =   "归还管理"
      End
      Begin VB.Menu c1 
         Caption         =   "-"
      End
      Begin VB.Menu zj 
         Caption         =   "折旧计算"
      End
   End
   Begin VB.Menu dy 
      Caption         =   "【统计表(&P)】"
      Begin VB.Menu tj1 
         Caption         =   "入库出库统计"
      End
      Begin VB.Menu tj2 
         Caption         =   "借出归还统计"
      End
   End
   Begin VB.Menu xx 
      Caption         =   "【基本信息维护(&I)】"
      Begin VB.Menu rkxx 
         Caption         =   "设备类别维护"
      End
      Begin VB.Menu dw 
         Caption         =   "部门单位信息维护"
      End
      Begin VB.Menu jcxx 
         Caption         =   "审核人信息维护"
      End
   End
   Begin VB.Menu xs 
      Caption         =   "【系统设置(&S)】"
      Begin VB.Menu sj1 
         Caption         =   "数据备份"
         Shortcut        =   ^K
      End
      Begin VB.Menu sj2 
         Caption         =   "数据恢复"
         Shortcut        =   ^J
      End
   End
   Begin VB.Menu tc 
      Caption         =   "【退出系统(&Q)】"
      Begin VB.Menu cx 
         Caption         =   "重新登录"
         Shortcut        =   ^G
      End
      Begin VB.Menu b 
         Caption         =   "-"
      End
      Begin VB.Menu gb 
         Caption         =   "关闭系统"
         Shortcut        =   ^H
      End
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub ck_Click()
Form13.Show 1
End Sub
Private Sub cx_Click()
Load Form1
Form1.Show
With Form1
.Text1.Text = ""
.Text2.Text = ""
.Text1.SetFocus
End With
Unload Me
End Sub

Private Sub dw_Click()
Form7.Show
End Sub

'这里如果单用一句datareport2.show则数据得不到及时更新

'这里如果单用一句datareport2.show则数据得不到及时更新

Private Sub dy1_Click()
If DataEnvironment1.rsview_jiechu_分组.State = 0 Then
Else
DataEnvironment1.rsview_jiechu_分组.Close
End If
   
    'DataEnvironment1.rsview_jiechu.Open "select * from view_jiechu" ''这个地方只能这样*************哈哈,
     DataEnvironment1.rsview_jiechu_分组.Open
    If DataEnvironment1.rsview_jiechu_分组.RecordCount > 0 Then
        DataReport2.Show
    Else
        MsgBox "没有借出信息", 64, "设备管理系统"
    End If
    DataEnvironment1.rsview_jiechu_分组.Close
'    Set DataEnvironment1.rsview_jiechu = Nothing

End Sub

Private Sub dy2_Click()
If DataEnvironment1.rsview_guihuan_分组.State = 0 Then
Else
    DataEnvironment1.rsview_guihuan_分组.Close
End If
    DataEnvironment1.rsview_guihuan_分组.Open
    If DataEnvironment1.rsview_guihuan_分组.RecordCount > 0 Then
        DataReport3.Show
    Else

        MsgBox "没有归还信息", 64, "设备管理系统"
    End If
    DataEnvironment1.rsview_guihuan_分组.Close
End Sub

Private Sub dy3_Click()
If DataEnvironment1.rsview_kc.State = 0 Then
Else
    DataEnvironment1.rsview_kc.Close
End If
    DataEnvironment1.rsview_kc.Open
    If DataEnvironment1.rsview_kc.RecordCount > 0 Then
        DataReport1.Show
    Else

        MsgBox "没有库存信息", 64, "设备管理系统"
    End If
    DataEnvironment1.rsview_kc.Close

End Sub

Private Sub Form_Load()
Me.Width = Screen.Width
Me.Height = Screen.Height
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
End Sub


Private Sub Form_Activate()
If Check1.Value = 1 Then
yh1.Enabled = True
ElseIf Check1.Value = 0 Then
yh1.Enabled = False
Else
End If
If Check2.Value = 1 Then
sb.Enabled = True
ElseIf Check2.Value = 0 Then
sb.Enabled = False
Else
End If
If Check3.Value = 1 Then
dy.Enabled = True
ElseIf Check3.Value = 0 Then
dy.Enabled = False
Else
End If
If Check4.Value = 1 Then
xx.Enabled = True
ElseIf Check4.Value = 0 Then
xx.Enabled = False
Else
End If
If Check5.Value = 1 Then
xs.Enabled = True
Else
xs.Enabled = False

End If
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2

End Sub

Private Sub Form_Resize()

Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2
End Sub

Private Sub gb_Click()
  c11 = MsgBox("确认要退出设备管理系统吗?", 33, "设备管理系统")
  If c11 = vbOK Then
   Timer2.Enabled = True
  ' End
 
  End If
End Sub

Private Sub gg_Click()
Form4.Show 1
End Sub

Private Sub gh_Click()
Form15.Show 1
End Sub




Private Sub jc_Click()
Form14.Show 1
End Sub

Private Sub jcxx_Click()
Form11.Show 1
End Sub

Private Sub qx_Click()
Form6.Show 1
End Sub


Private Sub rk_Click()
form12.Show 1
End Sub

Private Sub rkxx_Click()
Form9.Show 1
End Sub
Private Sub sc_Click()
Form5.Show 1
End Sub
Private Sub sj1_Click()
Form20.Show 1
End Sub

Private Sub sj2_Click()
Dim iTask As Long
MsgBox "请您注意,为了确保数据安全,在进行数据恢复的同时需要关闭应用程序,请您在恢复数据完成之后重新运行应用程序", 64, "提示信息"
'调用数据恢复可执行文件
iTask = Shell(App.Path & "\restore\Restore.exe", vbNormalFocus)
End
End Sub

Private Sub Timer1_Timer()

StatusBar1.Panels.Item(2).Text = Format(Now, "yyyy年mm月dd日 hh点mm分ss秒")
'Me.PaintPicture Me.Picture, 0, 0, Me.ScaleWidth, Me.ScaleHeight

End Sub

Private Sub Timer2_Timer()
    With Me
        .Width = .Width - 1000
        .Height = .Height - 750
        If .Width < 1770 Then
            End
        End If
        .Move (Screen.Width - .Width) / 2, (Screen.Height - .Height) / 2
    End With
End Sub



Private Sub tj1_Click()
Form21.Show 1
End Sub

Private Sub tj2_Click()
Form22.Show 1
End Sub


Private Sub yh_Click()
Form3.Show 1
End Sub

Private Sub zj_Click()
Form18.Show 1
End Sub

⌨️ 快捷键说明

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