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

📄 frmblackbox.frm

📁 用于控制氧乐果生产的程序
💻 FRM
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form frmBlackBox 
   Caption         =   "系统黑匣子"
   ClientHeight    =   5100
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7410
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   Moveable        =   0   'False
   ScaleHeight     =   5100
   ScaleWidth      =   7410
   Begin VB.CommandButton Command5 
      Cancel          =   -1  'True
      Caption         =   "退出&B"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   3480
      MouseIcon       =   "frmBlackBox.frx":0000
      MousePointer    =   99  'Custom
      Picture         =   "frmBlackBox.frx":0152
      Style           =   1  'Graphical
      TabIndex        =   4
      ToolTipText     =   "退出本窗口"
      Top             =   4440
      Width           =   588
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "D:\ylg2\lsdata\lsjl.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   264
      Left            =   3480
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   2400
      Visible         =   0   'False
      Width           =   912
   End
   Begin VB.TextBox Text1 
      Alignment       =   1  'Right Justify
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   360
      Left            =   2952
      TabIndex        =   0
      Top             =   40
      Width           =   732
   End
   Begin VB.TextBox Text2 
      Alignment       =   1  'Right Justify
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   360
      Left            =   3936
      TabIndex        =   1
      Top             =   40
      Width           =   588
   End
   Begin VB.TextBox Text3 
      Alignment       =   1  'Right Justify
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   360
      Left            =   4752
      TabIndex        =   2
      Top             =   40
      Width           =   600
   End
   Begin MSDBGrid.DBGrid DBGrid1 
      Bindings        =   "frmBlackBox.frx":0314
      Height          =   3732
      Left            =   120
      OleObjectBlob   =   "frmBlackBox.frx":0328
      TabIndex        =   3
      ToolTipText     =   "显示查询日当天的操作记录"
      Top             =   600
      Width           =   7092
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "年"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   3684
      TabIndex        =   8
      Top             =   100
      Width           =   264
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "月"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   4500
      TabIndex        =   7
      Top             =   100
      Width           =   264
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "日"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   5352
      TabIndex        =   6
      Top             =   100
      Width           =   264
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      Caption         =   "请输入查询日期:"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   840
      TabIndex        =   5
      Top             =   100
      Width           =   1920
   End
   Begin VB.Image Image2 
      BorderStyle     =   1  'Fixed Single
      Height          =   492
      Left            =   36
      Top             =   0
      Width           =   7296
   End
   Begin VB.Image Image1 
      BorderStyle     =   1  'Fixed Single
      Height          =   4500
      Left            =   36
      Top             =   528
      Width           =   7296
   End
End
Attribute VB_Name = "frmBlackBox"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private mfDate As Date
Private Sub Command5_Click()
Unload Me
End Sub

Private Sub Form_Load()
On Error Resume Next
Width = Screen.Width - dataviewfrm.Width - dataviewfrm.Left
Left = dataviewfrm.Width + dataviewfrm.Left
Top = baojingfrm.Top + baojingfrm.Height
Height = Screen.Height - baojingfrm.Top - baojingfrm.Height
Data1.RecordSource = "select * from blackbox where riqi=" & "#" & Date & "#"
End Sub
Private Sub Text3_KeyDown(KeyCode As Integer, Shift As Integer)
On Error GoTo s:
If KeyCode = vbKeyReturn Then
Dim msg As Variant
msg = Val(Text1.Text) & "-" & Val(Text2.Text) & "-" & Val(Text3.Text)
mfDate = CDate(msg)
With Data1
    .RecordSource = "select * from blackbox where riqi=" & "#" & 20 & mfDate & "#"
    .Refresh
End With
DBGrid1.Refresh
End If
Exit Sub
s: Call Inform(131)
End Sub
Private Sub Text1_GotFocus()
Call GotFocusAgain(Text1)
End Sub

Private Sub Text2_GotFocus()
Call GotFocusAgain(Text2)
End Sub

Private Sub Text3_GotFocus()
Call GotFocusAgain(Text3)
End Sub

⌨️ 快捷键说明

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