📄 frmaddequipment.frm
字号:
VERSION 5.00
Begin VB.Form frmAddEquipment
BorderStyle = 1 'Fixed Single
Caption = "添加物业设备信息"
ClientHeight = 2700
ClientLeft = 45
ClientTop = 330
ClientWidth = 7800
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 2700
ScaleWidth = 7800
Begin VB.TextBox txtComment
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1440
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 4
Top = 960
Width = 5985
End
Begin VB.TextBox txtEquipmentValue
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 5040
TabIndex = 3
Top = 330
Width = 2295
End
Begin VB.TextBox txtEquipmentName
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 1440
TabIndex = 2
Top = 330
Width = 2175
End
Begin VB.CommandButton updateCommand
Caption = "保存记录"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 492
Left = 1800
TabIndex = 1
Top = 1920
Width = 1455
End
Begin VB.CommandButton cancelCommand
Caption = "关闭退出"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 492
Left = 4200
TabIndex = 0
Top = 1920
Width = 1575
End
Begin VB.Label Label9
Alignment = 2 'Center
Caption = "备注:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 7
Top = 960
Width = 1095
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "价值:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3720
TabIndex = 6
Top = 360
Width = 1095
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "设备名称:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 5
Top = 360
Width = 1305
End
End
Attribute VB_Name = "frmAddEquipment"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cancelCommand_Click()
Unload Me
End Sub
Private Sub updateCommand_Click()
Dim txtSQL As String
Dim MsgText As String
Dim mrcc As ADODB.Recordset
If Not Testtxt(txtEquipmentname.Text) Then
MsgBox "请输入设备名称!", vbOKOnly + vbExclamation, "警告"
txtEquipmentname.SetFocus
Exit Sub
End If
If Not IsNumeric(txtEquipmentValue.Text) Then
MsgBox "请输入设备价值!", vbOKOnly + vbExclamation, "警告"
txtEquipmentValue.SetFocus
Exit Sub
End If
Dim tempEquipment As clsEquipment
Set tempEquipment = New clsEquipment
tempEquipment.AddNew Me.txtEquipmentname.Text, Me.txtEquipmentValue.Text, Me.txtComment.Text
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -