📄 f_wxdj.frm
字号:
VERSION 5.00
Object = "{3A6644DE-3402-11D9-9DE7-C33FAA87690A}#1.0#0"; "WinXPCEngine.ocx"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "msadodc.ocx"
Begin VB.Form F_WXDJ
BorderStyle = 3 'Fixed Dialog
Caption = "维修登记"
ClientHeight = 4215
ClientLeft = 45
ClientTop = 435
ClientWidth = 5310
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4215
ScaleWidth = 5310
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.TextBox Text6
Alignment = 2 'Center
BackColor = &H00C0E0FF&
ForeColor = &H00C00000&
Height = 270
Left = 1080
Locked = -1 'True
MaxLength = 8
TabIndex = 18
Top = 2160
Width = 1455
End
Begin VB.TextBox Text7
Alignment = 2 'Center
BackColor = &H00C0E0FF&
ForeColor = &H00C00000&
Height = 270
Left = 3600
Locked = -1 'True
MaxLength = 8
TabIndex = 16
Top = 2160
Width = 1455
End
Begin VB.TextBox Text4
Alignment = 2 'Center
BackColor = &H00C0E0FF&
ForeColor = &H00C00000&
Height = 270
Left = 1080
Locked = -1 'True
TabIndex = 14
Top = 1680
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 2280
TabIndex = 7
Top = 3720
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 3720
TabIndex = 6
Top = 3720
Width = 1335
End
Begin VB.TextBox Text1
Alignment = 2 'Center
Height = 270
Left = 1080
TabIndex = 5
Top = 2640
Width = 1455
End
Begin VB.TextBox Text3
BackColor = &H00FFFFFF&
Height = 270
Left = 1080
TabIndex = 4
Top = 3120
Width = 3975
End
Begin VB.TextBox Text2
Alignment = 2 'Center
Height = 270
IMEMode = 3 'DISABLE
Left = 3600
TabIndex = 3
Top = 2640
Width = 1455
End
Begin VB.TextBox Text5
Alignment = 2 'Center
BackColor = &H00C0E0FF&
ForeColor = &H00C00000&
Height = 270
Left = 3600
Locked = -1 'True
MaxLength = 8
TabIndex = 2
Top = 1680
Width = 1455
End
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 855
Left = 0
ScaleHeight = 855
ScaleWidth = 5295
TabIndex = 0
Top = 0
Width = 5295
Begin VB.Label Label9
BackStyle = 0 'Transparent
Caption = $"F_WXDJ.frx":0000
Height = 735
Left = 1320
TabIndex = 1
Top = 120
Width = 3735
End
Begin VB.Image Image1
Height = 750
Left = 240
Picture = "F_WXDJ.frx":0038
Top = 60
Width = 750
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 240
Top = 4200
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin WinXPC_Engine.WindowsXPC WindowsXPC1
Left = 240
Top = 4560
_ExtentX = 6588
_ExtentY = 1085
ColorScheme = 2
Common_Dialog = 0 'False
End
Begin VB.Label Label8
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 车型"
Height = 180
Left = 240
TabIndex = 19
Top = 2205
Width = 720
End
Begin VB.Label Label7
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "进厂日期"
Height = 180
Left = 2760
TabIndex = 17
Top = 2205
Width = 720
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "维修单号"
Height = 180
Left = 240
TabIndex = 15
Top = 1725
Width = 720
End
Begin VB.Label L_DABH
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "2005080988888"
ForeColor = &H000000C0&
Height = 180
Left = 3840
TabIndex = 13
Top = 1125
Width = 1170
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 驾驶员"
Height = 180
Left = 240
TabIndex = 12
Top = 2685
Width = 720
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "联系电话"
Height = 180
Left = 2760
TabIndex = 11
Top = 2685
Width = 720
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "牌照号码"
Height = 180
Left = 2760
TabIndex = 10
Top = 1725
Width = 720
End
Begin VB.Line Line3
BorderColor = &H80000001&
X1 = 120
X2 = 5160
Y1 = 3600
Y2 = 3600
End
Begin VB.Line Line4
BorderColor = &H80000009&
X1 = 120
X2 = 5160
Y1 = 3615
Y2 = 3615
End
Begin VB.Line Line1
BorderColor = &H80000001&
X1 = 120
X2 = 5160
Y1 = 1440
Y2 = 1440
End
Begin VB.Line Line2
BorderColor = &H80000009&
X1 = 120
X2 = 5160
Y1 = 1455
Y2 = 1455
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "维修内容"
Height = 180
Left = 240
TabIndex = 9
Top = 3165
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "档案编号:"
Height = 180
Left = 2880
TabIndex = 8
Top = 1125
Width = 900
End
End
Attribute VB_Name = "F_WXDJ"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
With Adodc1
.Recordset.AddNew
.Recordset("档案编号") = L_DABH.Caption
.Recordset("维修单号") = Text4.Text
.Recordset("进厂日期") = Text7.Text
.Recordset("驾驶员") = Text1.Text
.Recordset("联系电话") = Text2.Text
.Recordset("维修内容") = Text3.Text
.Recordset.Update
End With
F_YSD.Show 1
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Activate()
Text1.SetFocus
End Sub
Private Sub Form_Load()
WindowsXPC1.InitSubClassing '加载XP控件
With Adodc1
.ConnectionString = Conn
.RecordSource = "SELECT * FROM [车辆维修信息表] WHERE ID=0"
.Refresh
End With
End Sub
Private Sub Text1_GotFocus()
Text1.BackColor = &HC0FFC0
Text2.BackColor = &HFFFFFF
Text3.BackColor = &HFFFFFF
End Sub
Private Sub Text2_GotFocus()
Text2.BackColor = &HC0FFC0
Text1.BackColor = &HFFFFFF
Text3.BackColor = &HFFFFFF
End Sub
Private Sub Text3_GotFocus()
Text3.BackColor = &HC0FFC0
Text2.BackColor = &HFFFFFF
Text1.BackColor = &HFFFFFF
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = Asc(vbCr) Then Text2.SetFocus
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = Asc(vbCr) Then Text3.SetFocus
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii = Asc(vbCr) Then Command1_Click
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -