?? frm_zzrk_zkwp_add.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frm_ZZRK_ZKWP_ADD
BorderStyle = 3 'Fixed Dialog
Caption = "暫扣物品信息錄入"
ClientHeight = 5970
ClientLeft = 45
ClientTop = 330
ClientWidth = 6780
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5970
ScaleWidth = 6780
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 480
Top = 5520
Visible = 0 'False
Width = 2295
_ExtentX = 4048
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=RKGL"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=RKGL"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from Table_ZKRK_ZKXX"
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.CommandButton Command2
Caption = "取消"
Height = 375
Left = 5400
TabIndex = 30
Top = 5520
Width = 975
End
Begin VB.CommandButton Cmd_save
Caption = "保存"
Height = 375
Left = 4320
TabIndex = 29
Top = 5520
Width = 975
End
Begin VB.CheckBox Check1
Caption = "已處理"
Height = 255
Left = 5400
TabIndex = 20
Top = 3480
Width = 975
End
Begin VB.Frame Frame2
Caption = "處理信息"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C000C0&
Height = 1695
Left = 240
TabIndex = 1
Top = 3720
Width = 6375
Begin VB.TextBox Text10
BackColor = &H00FFC0FF&
Height = 375
Left = 1200
Locked = -1 'True
TabIndex = 28
Top = 1200
Width = 4935
End
Begin VB.TextBox Text9
BackColor = &H00FFC0FF&
Height = 300
Left = 1200
Locked = -1 'True
TabIndex = 26
Top = 720
Width = 4935
End
Begin VB.TextBox Text8
BackColor = &H00FFC0FF&
Height = 300
Left = 4440
Locked = -1 'True
TabIndex = 24
Top = 240
Width = 1695
End
Begin MSComCtl2.DTPicker DTPicker3
Height = 300
Left = 1200
TabIndex = 22
Top = 240
Width = 1695
_ExtentX = 2990
_ExtentY = 529
_Version = 393216
Format = 48955393
CurrentDate = 38161
End
Begin VB.Label Label13
Caption = "備 注"
Height = 255
Left = 240
TabIndex = 27
Top = 1320
Width = 975
End
Begin VB.Label Label12
Caption = "處理結果"
Height = 255
Left = 240
TabIndex = 25
Top = 840
Width = 855
End
Begin VB.Label Label11
Caption = "經手人"
Height = 255
Left = 3240
TabIndex = 23
Top = 360
Width = 975
End
Begin VB.Label Label10
Caption = "處理日期"
Height = 255
Left = 240
TabIndex = 21
Top = 360
Width = 1215
End
End
Begin VB.Frame Frame1
Caption = "暫扣信息"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C000C0&
Height = 3135
Left = 240
TabIndex = 0
Top = 240
Width = 6375
Begin VB.TextBox Text7
Height = 300
Left = 1200
TabIndex = 19
Top = 2640
Width = 4935
End
Begin VB.TextBox Text6
Height = 300
Left = 1200
TabIndex = 17
Top = 2160
Width = 4935
End
Begin VB.TextBox Text5
Height = 300
Left = 1200
TabIndex = 15
Top = 1680
Width = 4935
End
Begin VB.TextBox Text4
Height = 300
Left = 4320
TabIndex = 13
Top = 1200
Width = 1815
End
Begin VB.TextBox Text3
Height = 300
Left = 1200
TabIndex = 11
Top = 1200
Width = 1575
End
Begin VB.TextBox Text2
Height = 300
Left = 4320
TabIndex = 9
Top = 720
Width = 1815
End
Begin MSComCtl2.DTPicker DTPicker2
Height = 300
Left = 1200
TabIndex = 7
Top = 720
Width = 1575
_ExtentX = 2778
_ExtentY = 529
_Version = 393216
Format = 48955393
CurrentDate = 38161
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 300
Left = 4320
TabIndex = 5
Top = 240
Width = 1815
_ExtentX = 3201
_ExtentY = 529
_Version = 393216
Format = 48955393
CurrentDate = 38161
End
Begin VB.TextBox Text1
Height = 300
Left = 1200
TabIndex = 3
Top = 240
Width = 1575
End
Begin VB.Label Label9
Caption = "暫扣原因"
Height = 255
Left = 240
TabIndex = 18
Top = 2740
Width = 975
End
Begin VB.Label Label8
Caption = "暫扣物品"
Height = 255
Left = 240
TabIndex = 16
Top = 2280
Width = 975
End
Begin VB.Label Label7
Caption = "物主住址"
Height = 255
Left = 240
TabIndex = 14
Top = 1800
Width = 855
End
Begin VB.Label Label6
Caption = "聯系電話"
Height = 255
Left = 3000
TabIndex = 12
Top = 1320
Width = 975
End
Begin VB.Label Label5
Caption = "物主姓名"
Height = 255
Left = 240
TabIndex = 10
Top = 1320
Width = 975
End
Begin VB.Label Label4
Caption = "經手人"
Height = 375
Left = 3000
TabIndex = 8
Top = 840
Width = 1095
End
Begin VB.Label Label3
Caption = "暫扣日期"
Height = 255
Left = 240
TabIndex = 6
Top = 840
Width = 975
End
Begin VB.Label Label2
Caption = "處理截止日期"
Height = 375
Left = 3000
TabIndex = 4
Top = 360
Width = 1335
End
Begin VB.Label Label1
Caption = "暫扣證號"
Height = 255
Left = 240
TabIndex = 2
Top = 360
Width = 975
End
End
End
Attribute VB_Name = "frm_ZZRK_ZKWP_ADD"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
If Check1.Value = 1 Then
Text8.Locked = False
Text9.Locked = False
Text10.Locked = False
ElseIf Check1.Value = 0 Then
Text8.Locked = True
Text9.Locked = True
Text10.Locked = True
End If
End Sub
Private Sub Cmd_save_Click()
Call main
If Text1.Text = "" Then
MsgBox "輸入不能為空"
Else
Adodc1.RecordSource = "select * from Table_ZZRK_ZKXX where 暫扣證號='" + Text1.Text + "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
MsgBox "此信息已經存在", 32, "人口信息管理系統"
Else
Set adoRs = adoCon.Execute("insert into Table_ZZRK_ZKXX values(" & Text1 & ",'" & DTPicker1 & "','" & DTPicker2 & "','" & Text2 & "','" & Text3 & "','" & Text4 & "','" & Text5 & "','" & Text6 & "','" & Text7 & "','" & DTPicker3 & "','" & Text8 & "','" & Check1 & "','" & Text9 & "','" & Text10 & "')")
MsgBox "數據保存成功!", 32, "人口信息管理系統"
Unload Me
End If
End If
adoCon.Close
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub DTPicker1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
DTPicker2.SetFocus
Else
End If
End Sub
Private Sub DTPicker2_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text2.SetFocus
Else
End If
End Sub
Private Sub DTPicker3_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text8.SetFocus
Else
End If
End Sub
Private Sub Form_Load()
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
End Sub
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Dim StrInput, Temp As String
Dim i, Length As Integer
i = 1
StrInput = Text1.Text
Length = Len(StrInput)
If Text1.Text = "" Then
MsgBox "輸入不能為空", , "提示"
Text1.SetFocus
Else
Do While (i <= Length)
Temp = Mid$(StrInput, i, 1)
If Asc(Temp) < 48 Or Asc(Temp) > 57 Then
If i = 1 Then
MsgBox "輸入數據非法!!", , "提示"
Else
End If
Text1.Text = ""
Text1.SetFocus
Else
End If
i = i + 1
Loop
If Text1.Text = "" Then
Text1.SetFocus
Else
DTPicker1.SetFocus
End If
End If
Else
End If
End Sub
Private Sub Text2_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text3.SetFocus
Else
End If
End Sub
Private Sub Text3_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text4.SetFocus
Else
End If
End Sub
Private Sub Text4_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text5.SetFocus
Else
End If
End Sub
Private Sub Text5_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text6.SetFocus
Else
End If
End Sub
Private Sub Text6_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text7.SetFocus
Else
End If
End Sub
Private Sub Text8_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text9.SetFocus
Else
End If
End Sub
Private Sub Text9_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text10.SetFocus
Else
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -