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

📄 dlgylhtest.frm

📁 电力机车牵引变压器试验站总控程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form dlgYLHTest 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "变压器油理化试验"
   ClientHeight    =   3705
   ClientLeft      =   2760
   ClientTop       =   3630
   ClientWidth     =   8310
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3705
   ScaleWidth      =   8310
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton Command3 
      Caption         =   "退      出"
      Height          =   495
      Left            =   5040
      TabIndex        =   21
      Top             =   3120
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "保存数据"
      Height          =   495
      Left            =   3480
      TabIndex        =   20
      Top             =   3120
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "验证结果"
      Height          =   495
      Left            =   1920
      TabIndex        =   19
      Top             =   3120
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      BeginProperty DataFormat 
         Type            =   1
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   1
      EndProperty
      Height          =   475
      Index           =   4
      Left            =   3848
      TabIndex        =   18
      Top             =   2520
      Width           =   2990
   End
   Begin VB.TextBox Text1 
      BeginProperty DataFormat 
         Type            =   1
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   1
      EndProperty
      Height          =   475
      Index           =   3
      Left            =   3848
      TabIndex        =   17
      Top             =   2040
      Width           =   2990
   End
   Begin VB.TextBox Text1 
      BeginProperty DataFormat 
         Type            =   1
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   1
      EndProperty
      Height          =   475
      Index           =   2
      Left            =   3848
      TabIndex        =   16
      Top             =   1560
      Width           =   2990
   End
   Begin VB.TextBox Text1 
      BeginProperty DataFormat 
         Type            =   1
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   1
      EndProperty
      Height          =   475
      Index           =   1
      Left            =   3848
      TabIndex        =   15
      Top             =   1080
      Width           =   2990
   End
   Begin VB.TextBox Text1 
      BeginProperty DataFormat 
         Type            =   1
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   1
      EndProperty
      Height          =   475
      Index           =   0
      Left            =   3840
      TabIndex        =   14
      Top             =   600
      Width           =   2990
   End
   Begin VB.Label Label2 
      BeginProperty DataFormat 
         Type            =   1
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   1
      EndProperty
      Height          =   255
      Index           =   4
      Left            =   6960
      TabIndex        =   26
      Top             =   2640
      Width           =   855
   End
   Begin VB.Label Label2 
      BeginProperty DataFormat 
         Type            =   1
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   1
      EndProperty
      Height          =   255
      Index           =   3
      Left            =   6960
      TabIndex        =   25
      Top             =   2160
      Width           =   855
   End
   Begin VB.Label Label2 
      BeginProperty DataFormat 
         Type            =   1
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   1
      EndProperty
      Height          =   255
      Index           =   2
      Left            =   6960
      TabIndex        =   24
      Top             =   1680
      Width           =   855
   End
   Begin VB.Label Label2 
      BeginProperty DataFormat 
         Type            =   1
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   1
      EndProperty
      Height          =   255
      Index           =   1
      Left            =   6960
      TabIndex        =   23
      Top             =   1200
      Width           =   855
   End
   Begin VB.Label Label2 
      BeginProperty DataFormat 
         Type            =   1
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   1
      EndProperty
      Height          =   255
      Index           =   0
      Left            =   6960
      TabIndex        =   22
      Top             =   720
      Width           =   855
   End
   Begin VB.Label Label1 
      Caption         =   "<=-25"
      Height          =   255
      Index           =   13
      Left            =   2880
      TabIndex        =   13
      Top             =   2640
      Width           =   855
   End
   Begin VB.Label Label1 
      Caption         =   "凝点(℃)"
      Height          =   255
      Index           =   12
      Left            =   960
      TabIndex        =   12
      Top             =   2640
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "<=0.03"
      Height          =   255
      Index           =   11
      Left            =   2880
      TabIndex        =   11
      Top             =   2160
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "酸值(mgKOH/g)"
      Height          =   255
      Index           =   10
      Left            =   600
      TabIndex        =   10
      Top             =   2160
      Width           =   1455
   End
   Begin VB.Label Label1 
      Caption         =   "<=13"
      Height          =   255
      Index           =   9
      Left            =   2880
      TabIndex        =   9
      Top             =   1680
      Width           =   495
   End
   Begin VB.Label Label1 
      Caption         =   "粘度(mm2 /s) 40℃"
      Height          =   255
      Index           =   8
      Left            =   600
      TabIndex        =   8
      Top             =   1680
      Width           =   1455
   End
   Begin VB.Label Label1 
      Caption         =   ">=140"
      Height          =   255
      Index           =   7
      Left            =   2880
      TabIndex        =   7
      Top             =   1200
      Width           =   615
   End
   Begin VB.Label Label1 
      Caption         =   "闪点(闭口)/℃"
      Height          =   255
      Index           =   6
      Left            =   600
      TabIndex        =   6
      Top             =   1200
      Width           =   1455
   End
   Begin VB.Label Label1 
      Caption         =   "<=0.005"
      Height          =   255
      Index           =   5
      Left            =   2880
      TabIndex        =   5
      Top             =   720
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "介损tgδ(90℃)"
      Height          =   255
      Index           =   4
      Left            =   720
      TabIndex        =   4
      Top             =   720
      Width           =   1455
   End
   Begin VB.Label Label1 
      Caption         =   "结    果"
      Height          =   255
      Index           =   3
      Left            =   7200
      TabIndex        =   3
      Top             =   240
      Width           =   615
   End
   Begin VB.Label Label1 
      Caption         =   "根据理化试验报告单记录各值"
      Height          =   255
      Index           =   2
      Left            =   4080
      TabIndex        =   2
      Top             =   240
      Width           =   2415
   End
   Begin VB.Label Label1 
      Caption         =   "质 量 标 准"
      Height          =   255
      Index           =   1
      Left            =   2760
      TabIndex        =   1
      Top             =   240
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "检  查  项  目"
      Height          =   255
      Index           =   0
      Left            =   840
      TabIndex        =   0
      Top             =   240
      Width           =   1215
   End
   Begin VB.Line Line8 
      X1              =   6840
      X2              =   6840
      Y1              =   120
      Y2              =   3000
   End
   Begin VB.Line Line7 
      X1              =   3840
      X2              =   3840
      Y1              =   120
      Y2              =   3000
   End
   Begin VB.Line Line6 
      X1              =   2520
      X2              =   2520
      Y1              =   120
      Y2              =   3000
   End
   Begin VB.Line Line5 
      X1              =   240
      X2              =   8040
      Y1              =   2520
      Y2              =   2520
   End
   Begin VB.Line Line4 
      X1              =   240
      X2              =   8040
      Y1              =   2040
      Y2              =   2040
   End
   Begin VB.Line Line3 
      X1              =   240
      X2              =   8040
      Y1              =   1560
      Y2              =   1560
   End
   Begin VB.Line Line2 
      X1              =   240
      X2              =   8040
      Y1              =   1080
      Y2              =   1080
   End
   Begin VB.Line Line1 
      X1              =   240
      X2              =   8040
      Y1              =   600
      Y2              =   600
   End
   Begin VB.Shape Shape1 
      Height          =   2895
      Left            =   240
      Top             =   120
      Width           =   7815
   End
End
Attribute VB_Name = "dlgYLHTest"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit

Private Sub Command1_Click()
    Dim i As Integer
    For i = 0 To 4
        If Not IsNumeric(Text1(i)) Then
            MsgBox "请输入正确的数据!", 0 + 0 + 48, "警告"
            Exit Sub
        End If
    Next

    If Val(Text1(0).Text) > 0.005 Then
        Label2(0).Caption = "不合格"
    ElseIf Val(Text1(0).Text) <= 0.005 Then
        Label2(0).Caption = "合格"
    End If
    
    If Val(Text1(1).Text) < 140 Then
        Label2(1).Caption = "不合格"
    ElseIf Val(Text1(1).Text) >= 140 Then
        Label2(1).Caption = "合格"
    End If
    
    If Val(Text1(2).Text) > 13 Then
        Label2(2).Caption = "不合格"
    ElseIf Val(Text1(2).Text) <= 13 Then
        Label2(2).Caption = "合格"
    End If
    
    If Val(Text1(3).Text) > 0.03 Then
        Label2(3).Caption = "不合格"
    ElseIf Val(Text1(3).Text) <= 0.03 Then
        Label2(3).Caption = "合格"
    End If
    
    If Val(Text1(4).Text) > -25 Then
        Label2(4).Caption = "不合格"
    ElseIf Val(Text1(4).Text) <= -25 Then
        Label2(4).Caption = "合格"
    End If
End Sub

Private Sub Command2_Click()
    byqData(135) = Text1(0).Text
    byqData(136) = Label2(0).Caption
    
    byqData(137) = Text1(1).Text
    byqData(138) = Label2(1).Caption
    
    byqData(139) = Text1(2).Text
    byqData(140) = Label2(2).Caption
    
    byqData(141) = Text1(3).Text
    byqData(142) = Label2(3).Caption
    
    byqData(143) = Text1(4).Text
    byqData(144) = Label2(4).Caption
End Sub

Private Sub Command3_Click()
    Unload Me
End Sub

⌨️ 快捷键说明

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