?? frmtimes.frm
字號(hào):
VERSION 5.00
Object = "{D959C709-8613-11D1-9840-002078110E7D}#1.0#0"; "as97Popup.ocx"
Object = "{C7AE747C-B9E4-11D7-B0E3-D8165009166E}#7.0#0"; "XPForm.ocx"
Begin VB.Form frmtimes
BorderStyle = 0 'None
Caption = "計(jì)劃設(shè)置"
ClientHeight = 4185
ClientLeft = 0
ClientTop = 0
ClientWidth = 4440
Icon = "frmtimes.frx":0000
LinkTopic = "Form1"
ScaleHeight = 4185
ScaleWidth = 4440
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.ComboBox Combo3
Height = 300
Left = 1920
TabIndex = 5
Top = 1200
Width = 1215
End
Begin VB.ComboBox Combo2
Height = 300
Left = 1920
TabIndex = 3
Top = 1920
Width = 1215
End
Begin VB.ComboBox Combo1
Height = 300
Left = 1920
TabIndex = 1
Top = 600
Width = 1215
End
Begin as97Popup.asPopup asPopup2
Height = 375
Left = 2280
Top = 3480
Width = 855
_ExtentX = 1508
_ExtentY = 661
Caption = "退出"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ScaleWidth = 57
ScaleMode = 0
ScaleHeight = 25
End
Begin as97Popup.asPopup asPopup1
Height = 375
Left = 720
Top = 3480
Width = 975
_ExtentX = 1720
_ExtentY = 661
Caption = "確定"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ScaleWidth = 65
ScaleMode = 0
ScaleHeight = 25
End
Begin XP窗體控件.XPForm XPForm1
Height = 810
Left = 1800
Top = 2640
Width = 1920
_ExtentX = 3387
_ExtentY = 1429
Caption = "計(jì)劃設(shè)置"
Icon = "frmtimes.frx":0ABA
AlwaysOnTop = 0 'False
ShowFormSize = 0 'False
End
Begin VB.Label Label4
Caption = "天"
Height = 375
Left = 3240
TabIndex = 6
Top = 1200
Width = 375
End
Begin VB.Label Label3
Caption = "時(shí)間周期"
Height = 255
Left = 960
TabIndex = 4
Top = 1320
Width = 855
End
Begin VB.Label Label2
Caption = "巡檢次數(shù)"
Height = 255
Left = 960
TabIndex = 2
Top = 1920
Width = 735
End
Begin VB.Label Label1
Caption = "巡檢類型"
Height = 255
Left = 960
TabIndex = 0
Top = 600
Width = 735
End
End
Attribute VB_Name = "frmtimes"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim txtsql As String
Dim connecting As String
Private Sub asPopup1_Click(Cancel As Boolean)
Dim Xj_type As String
Dim Xj_cir, Xj_times As String
Dim Xj_loc, Xj_per As String
Dim rs_1, rs_2 As New ADODB.Recordset
Dim conn1 As New ADODB.Connection
conn1.Open connecting
txtsql = "select distinct 地點(diǎn) from 地點(diǎn)設(shè)置表"
Set rs_1 = conn1.Execute(txtsql)
If rs_1.EOF And rs_1.BOF Then
Exit Sub
Else
rs_1.MoveFirst
End If
Xj_type = Combo1.Text
Xj_cir = Combo3.Text
Xj_times = Combo2.Text
Xj_per = "任何人"
Do While rs_1.EOF <> True
Xj_loc = rs_1.Fields("地點(diǎn)")
txtsql = "insert into 計(jì)劃次數(shù)表 values('" & Xj_type & "', '" & Xj_loc & "','" & Xj_per & "','" & Xj_cir & "','" & Xj_times & "' )"
conn1.Execute (txtsql)
rs_1.MoveNext
Loop
TimeDelay 500
frmshowtimes.Show
Unload Me
End Sub
Private Sub asPopup2_Click(Cancel As Boolean)
Unload Me
End Sub
Private Sub Form_Load()
On Error Resume Next
XPForm1.Make
Dim txtsql As String
Dim conn2 As New ADODB.Connection
Dim mrc1, mrc2 As New ADODB.Recordset
connecting = "provider=Microsoft.Jet.oledb.4.0;" & _
"data source=" & App.path & "\jk.mdb"
conn2.Open connecting
'Me.WindowState = 2
txtsql = "select * from 棒號(hào)設(shè)置表"
Set mrc1 = conn2.Execute(txtsql)
If mrc1.EOF = True And mrc1.BOF = True Then
Else
mrc1.MoveFirst
Do While mrc1.EOF <> True
Combo1.AddItem mrc1.Fields(1)
mrc1.MoveNext
Loop
End If
mrc1.Close
Dim i As Integer
For i = 1 To 31
Combo3.AddItem i
Next
For i = 1 To 100
Combo2.AddItem i
Next
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -