📄 frm_sbinfo.frm
字号:
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin 工程1.GurhanCoolButton GurhanCoolButton3
Height = 330
Left = 3937
TabIndex = 39
Top = 7140
Width = 1695
_ExtentX = 2990
_ExtentY = 582
CaptionTitle = "保 存 "
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty FONT {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Label Label19
AutoSize = -1 'True
Caption = "验收日期:"
Height = 180
Left = 6300
TabIndex = 36
Top = 3780
Width = 900
End
Begin VB.Label Label18
AutoSize = -1 'True
Caption = "使用日期:"
Height = 180
Left = 3570
TabIndex = 34
Top = 3780
Width = 900
End
Begin VB.Label Label17
AutoSize = -1 'True
Caption = "安装日期:"
Height = 180
Left = 840
TabIndex = 32
Top = 3780
Width = 900
End
Begin VB.Label Label16
AutoSize = -1 'True
Caption = "出厂日期"
Height = 180
Left = 6300
TabIndex = 30
Top = 1740
Width = 720
End
Begin VB.Label Label15
AutoSize = -1 'True
Caption = "备注:"
Height = 180
Left = 840
TabIndex = 28
Top = 4410
Width = 540
End
Begin VB.Label Label14
AutoSize = -1 'True
Caption = "电 话:"
Height = 180
Left = 6300
TabIndex = 26
Top = 3255
Width = 720
End
Begin VB.Label Label13
AutoSize = -1 'True
Caption = "厂家电话:"
Height = 180
Left = 840
TabIndex = 24
Top = 2205
Width = 900
End
Begin VB.Label Label12
AutoSize = -1 'True
Caption = "负 责人:"
Height = 180
Left = 3570
TabIndex = 23
Top = 3255
Width = 810
End
Begin VB.Label Label11
AutoSize = -1 'True
Caption = "验收人:"
Height = 180
Left = 6300
TabIndex = 21
Top = 2730
Width = 720
End
Begin VB.Label Label10
AutoSize = -1 'True
Caption = "使用部门:"
Height = 180
Left = 3570
TabIndex = 19
Top = 2730
Width = 900
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "现置地点:"
Height = 180
Left = 840
TabIndex = 17
Top = 3255
Width = 900
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "设备性能:"
Height = 180
Left = 840
TabIndex = 15
Top = 2730
Width = 900
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "制造厂家:"
Height = 180
Left = 3570
TabIndex = 12
Top = 2205
Width = 900
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "规 格:"
Height = 180
Left = 3570
TabIndex = 10
Top = 1740
Width = 900
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "设备类型:"
Height = 180
Left = 840
TabIndex = 8
Top = 1740
Width = 900
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "编号:"
Height = 180
Left = 6300
TabIndex = 6
Top = 1215
Width = 540
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "设备名称:"
Height = 180
Left = 3570
TabIndex = 4
Top = 1215
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "设备登记表"
BeginProperty Font
Name = "隶书"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 3570
TabIndex = 2
Top = 210
Width = 2325
End
Begin VB.Line Line1
X1 = 1050
X2 = 8295
Y1 = 840
Y2 = 840
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "设备编码:"
Height = 180
Left = 840
TabIndex = 1
Top = 1215
Width = 900
End
End
Attribute VB_Name = "Frm_sbinfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Unload(Cancel As Integer)
Frm_sbinfocu.GurhanCoolButton1.SetFocus
End Sub
Private Sub GurhanCoolButton1_CLICKED()
Call clear
End Sub
Private Sub GurhanCoolButton2_CLICKED()
Unload Me
End Sub
Private Sub GurhanCoolButton3_CLICKED()
If Text1 = "" Or Text2 = "" Or Text3 = "" Then
MsgBox "各项基本信息不能为空"
Text1.SetFocus
Else
With Adodc1.Recordset
.Fields(0) = Trim(Text1.Text)
.Fields(1) = Trim(Text2.Text)
.Fields(2) = Trim(Text3.Text)
.Fields(3) = Trim(Text4.Text)
.Fields(4) = Trim(Text5.Text)
.Fields(5) = DTPicker1.Value
.Fields(6) = Trim(Text6.Text)
.Fields(7) = Trim(Text7.Text)
.Fields(8) = Trim(Text8.Text)
.Fields(9) = Trim(Text9.Text)
.Fields(10) = Trim(Text10.Text)
.Fields(11) = Trim(Text11.Text)
.Fields(12) = Trim(Text12.Text)
.Fields(13) = Trim(Text13.Text)
.Fields(14) = DTPicker2.Value
.Fields(15) = DTPicker3.Value
.Fields(16) = DTPicker4.Value
.Update
End With
MsgBox "信息添加成功!"
End If
Unload Me
End Sub
Private Sub clear()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -