?? f_pzh.frm
字號:
VERSION 5.00
Object = "{3A6644DE-3402-11D9-9DE7-C33FAA87690A}#1.0#0"; "WinXPCEngine.ocx"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDatGrd.ocx"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "msadodc.ocx"
Begin VB.Form F_PZH
BorderStyle = 3 'Fixed Dialog
Caption = "修理車輛管理"
ClientHeight = 3135
ClientLeft = 45
ClientTop = 435
ClientWidth = 4935
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3135
ScaleWidth = 4935
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin MSDataGridLib.DataGrid DataGrid1
Height = 1455
Left = 3840
TabIndex = 10
Top = 960
Visible = 0 'False
Width = 975
_ExtentX = 1720
_ExtentY = 2566
_Version = 393216
AllowUpdate = 0 'False
BackColor = 12640511
ColumnHeaders = 0 'False
ForeColor = 8388608
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {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
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
MarqueeStyle = 4
ScrollBars = 2
AllowRowSizing = 0 'False
AllowSizing = 0 'False
RecordSelectors = 0 'False
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin VB.TextBox Text2
Alignment = 1 'Right Justify
Height = 270
IMEMode = 3 'DISABLE
Left = 1560
TabIndex = 9
Text = "贛F"
Top = 1560
Width = 975
End
Begin VB.TextBox Text3
Height = 270
IMEMode = 3 'DISABLE
Left = 2520
MaxLength = 5
TabIndex = 8
Top = 1560
Width = 855
End
Begin VB.TextBox Text4
Height = 270
Left = 1560
TabIndex = 7
Top = 1920
Visible = 0 'False
Width = 1815
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 120
Top = 4080
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 VB.TextBox Text13
Height = 270
IMEMode = 3 'DISABLE
Left = 2520
MaxLength = 5
TabIndex = 0
Top = 1080
Visible = 0 'False
Width = 855
End
Begin VB.TextBox Text12
Alignment = 2 'Center
Height = 270
IMEMode = 3 'DISABLE
Left = 2160
TabIndex = 3
Text = "F"
Top = 1080
Visible = 0 'False
Width = 375
End
Begin VB.TextBox Text11
Alignment = 1 'Right Justify
Height = 270
IMEMode = 3 'DISABLE
Left = 1560
TabIndex = 2
Text = "贛"
Top = 1080
Visible = 0 'False
Width = 615
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 3360
TabIndex = 6
Top = 2640
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "確定"
Height = 375
Left = 1920
TabIndex = 1
Top = 2640
Visible = 0 'False
Width = 1335
End
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 855
Left = 0
ScaleHeight = 855
ScaleWidth = 4935
TabIndex = 4
Top = 0
Width = 4935
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = " 請輸入需要修理的車輛的牌照號。需要修改省份簡稱和地區代碼請點擊左邊漢字或者中間字母。"
Height = 735
Left = 1320
TabIndex = 5
Top = 120
Width = 3375
End
Begin VB.Image Image1
Height = 750
Left = 240
Picture = "F_PZH.frx":0000
Top = 60
Width = 750
End
End
Begin WinXPC_Engine.WindowsXPC WindowsXPC1
Left = 120
Top = 3360
_ExtentX = 6588
_ExtentY = 1085
ColorScheme = 2
Common_Dialog = 0 'False
End
Begin VB.Line Line3
BorderColor = &H80000001&
X1 = 120
X2 = 4800
Y1 = 2520
Y2 = 2520
End
Begin VB.Line Line4
BorderColor = &H80000005&
X1 = 120
X2 = 4800
Y1 = 2535
Y2 = 2535
End
End
Attribute VB_Name = "F_PZH"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Pzh As String '牌照號
Private Sub Command1_Click()
If Len(Text3.Text) < 5 Then
MsgBox "請填入正確的牌照號。", vbOKOnly + vbInformation
Text3.SetFocus
Text3.SelStart = 0
Text3.SelLength = Len(Text3.Text)
Exit Sub
End If
F_QRPZ.Label1.Caption = Text4.Text
Unload Me
F_QRPZ.Show 1
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub DataGrid1_DblClick()
Text2.Text = Adodc1.Recordset.Fields("地區簡稱")
Text3.SetFocus
End Sub
Private Sub DataGrid1_GotFocus()
'Text1.BackColor = &HC0FFC0
Text2.BackColor = &HFFFFFF
Text3.BackColor = &HFFFFFF
With Adodc1
'.ConnectionString = Conn
.RecordSource = "SELECT * FROM [牌照歸屬地字典] WHERE 拼音碼 LIKE '" & Text2.Text & "%'"
.Refresh
End With
Set DataGrid1.DataSource = Adodc1
End Sub
Private Sub DataGrid1_KeyPress(KeyAscii As Integer)
DataGrid1_DblClick
End Sub
Private Sub DataGrid1_LostFocus()
DataGrid1.Visible = False
End Sub
Private Sub Form_Activate()
Text3.SetFocus
End Sub
Private Sub Form_Load()
WindowsXPC1.InitSubClassing '加載XP控件
With Adodc1
.ConnectionString = Conn
.RecordSource = "SELECT * FROM [牌照歸屬地字典]"
.Refresh
End With
Set DataGrid1.DataSource = Adodc1
End Sub
'Private Sub Text1_Change()
'DataGrid1.Left = 1560
'DataGrid1.Visible = True
'DataGrid1.SetFocus
'End Sub
'Private Sub Text1_GotFocus()
'Text1.BackColor = &HC0FFC0
'Text2.BackColor = &HFFFFFF
'Text3.BackColor = &HFFFFFF
'Text1.SelStart = 0
'Text1.SelLength = Len(Text1.Text)
'End Sub
'Private Sub Text1_LostFocus()
'DataGrid1.Visible = False
'End Sub
Private Sub Text2_Change()
DataGrid1.Left = 1560
DataGrid1.Visible = True
DataGrid1.SetFocus
End Sub
Private Sub Text2_GotFocus()
Text2.BackColor = &HC0FFC0
'Text1.BackColor = &HFFFFFF
Text3.BackColor = &HFFFFFF
Text2.SelStart = 0
Text2.SelLength = Len(Text2.Text)
End Sub
Private Sub Text2_LostFocus()
'DataGrid1.Visible = False
End Sub
Private Sub Text3_Change()
If Len(Text3.Text) = 5 Then
Text4.Text = Text2.Text & Text3.Text
Pzh = Text3.Text
Command1_Click
End If
End Sub
Private Sub Text3_GotFocus()
Text3.BackColor = &HC0FFC0
Text2.BackColor = &HFFFFFF
'Text1.BackColor = &HFFFFFF
Text3.SelStart = 0
Text3.SelLength = Len(Text3.Text)
End Sub
Private Sub Command1_GotFocus()
'Text1.BackColor = &HFFFFFF
Text2.BackColor = &HFFFFFF
Text3.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.Enabled = True
'Command1.SetFocus
'F_QRPZ.Show 1
'End If
'End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -