📄 frmtarget.frm
字号:
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "炉面温度"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 0
Left = 720
TabIndex = 32
Top = 810
Width = 975
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "油泵电机电流"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 16
Left = 3600
TabIndex = 30
Top = 5610
Width = 1455
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "风机电流"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 15
Left = 4080
TabIndex = 29
Top = 5010
Width = 975
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "循环氢"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 14
Left = 4320
TabIndex = 28
Top = 4410
Width = 735
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "下灰次数"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 13
Left = 4080
TabIndex = 27
Top = 3810
Width = 975
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "空程"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 12
Left = 4560
TabIndex = 26
Top = 3210
Width = 495
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "夹套排污碱度"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 11
Left = 3600
TabIndex = 25
Top = 2610
Width = 1455
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "CO2"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 10
Left = 4560
TabIndex = 24
Top = 1410
Width = 435
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "液位高度"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 8
Left = 720
TabIndex = 16
Top = 5610
Width = 975
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "减压后压力"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 7
Left = 600
TabIndex = 14
Top = 5010
Width = 1215
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "气泡压力"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 6
Left = 720
TabIndex = 12
Top = 4410
Width = 975
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "油泵压力"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 5
Left = 720
TabIndex = 10
Top = 3810
Width = 975
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "洗气塔气体温度"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 4
Left = 0
TabIndex = 8
Top = 3210
Width = 1695
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "洗气塔温度"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 3
Left = 480
TabIndex = 6
Top = 2610
Width = 1215
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "入炉蒸汽温度"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 2
Left = 240
TabIndex = 4
Top = 2010
Width = 1455
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "炉底温度"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Index = 1
Left = 720
TabIndex = 2
Top = 1410
Width = 975
End
Begin VB.Label Label1
Alignment = 2 'Center
BackColor = &H00404040&
BackStyle = 0 'Transparent
Caption = "造气工段工艺指标"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 375
Left = 0
TabIndex = 0
Top = 120
Width = 6855
End
End
Attribute VB_Name = "frmTarget"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*************湖南仪峰公司新模块化DCS组件*************************
'作者: 彭逢望,隆朋飞
'编写日期: 2004-6-15
'最后修改: 2004-9-25
'修改人: 彭逢望
'*****************************************************************
Dim i As Long
'Dim Conn As New ADODB.Connection
'Dim Cmd As New ADODB.Command
Dim rs As New ADODB.Recordset
Private Sub Command_edit_Click()
lngPopedom = 1
frmPassword.Show 1
If mPassword Then
mPassword = False
For i = 0 To Text1.UBound
Text1(i).Locked = False
Next
Else
Exit Sub
End If
End Sub
Private Sub Command_ok_Click()
On Error Resume Next
If rs.State = 1 Then
rs.Close
End If
If Text1(0).Locked = False Then
Cmd.CommandText = "Select*from Kh"
rs.OPEN Cmd, , adOpenDynamic, adLockOptimistic
rs.MoveLast
If Not rs.EOF Then
For i = 0 To 17
rs(i) = Text1(i).Text
' PostMsg "@UpData@GYZB@" & "L" & i + 1 & "@" & Text1(i).Text
' TimeDelay 50
Next
Else
rs.AddNew
For i = 0 To 17
rs(i) = Text1(i).Text
' PostMsg "@UpData@GYZB@" & "L" & i + 1 & "@" & Text1(i).Text
' TimeDelay 50
Next
End If
rs.UpDate
rs.Close
Set rs = Nothing
End If
Unload Me
End Sub
Private Sub Form_Load()
Dim lp_hand As Long
On Error Resume Next
lp_hand = SetParent(Me.hWnd, frmMain.hWnd)
Text1(0).Locked = True
If rs.State = 1 Then
rs.Close
End If
Cmd.CommandText = "Select*from Kh"
rs.OPEN Cmd, , adOpenForwardOnly, adLockOptimistic
' rs.MoveLast
If Not rs.EOF Then
For i = 0 To 17
Text1(i).Text = rs(i)
Next
End If
rs.Close
Set rs = Nothing
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set frmTarget = Nothing
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -