?? h_f5_ckddg.frm
字號:
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 240
TabIndex = 19
Top = 360
Width = 1260
End
End
Begin VB.CommandButton Command2
Caption = "返 回"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 350
Left = 6960
Style = 1 'Graphical
TabIndex = 15
Top = 2880
Width = 1000
End
Begin VB.TextBox Text6
Height = 375
Left = 6720
TabIndex = 8
Text = "6"
Top = 2280
Width = 1215
End
Begin VB.TextBox Text5
Height = 375
Left = 6720
TabIndex = 6
Text = "5"
Top = 1680
Width = 1215
End
Begin VB.TextBox Text4
Height = 375
Left = 6720
TabIndex = 4
Text = "4"
Top = 1080
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "交易確認(rèn)"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 350
Left = 5400
Style = 1 'Graphical
TabIndex = 2
Top = 2880
Width = 1245
End
Begin VB.TextBox Text3
Height = 375
Left = 6720
TabIndex = 1
Text = "3"
Top = 480
Width = 1215
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "價格"
BeginProperty Font
Name = "幼圓"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000017&
Height = 240
Left = 5280
TabIndex = 9
Top = 2280
Width = 480
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "訂單號"
BeginProperty Font
Name = "幼圓"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000017&
Height = 240
Left = 5280
TabIndex = 7
Top = 480
Width = 720
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "供給用戶"
BeginProperty Font
Name = "幼圓"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000017&
Height = 240
Left = 5280
TabIndex = 5
Top = 1680
Width = 960
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "書籍編號"
BeginProperty Font
Name = "幼圓"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000017&
Height = 240
Left = 5280
TabIndex = 3
Top = 1080
Width = 960
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 7680
Top = 240
Visible = 0 'False
Width = 1575
_ExtentX = 2778
_ExtentY = 661
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.Label Label7
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "供"
BeginProperty Font
Name = "幼圓"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000017&
Height = 240
Left = 360
TabIndex = 13
Top = 120
Width = 240
End
End
Attribute VB_Name = "f5_ddclg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text3 = "" Then
msg0 = MsgBox("請選擇訂單?", vbOKOnly + vbQuestion, "詢問")
If msg0 = vbOK Then
Text1.SetFocus: Exit Sub
End If
End If
Adodc1.Recordset.Fields("交易") = 1 '還有現(xiàn)金流和回執(zhí)功能沒有實現(xiàn)以及用戶交易次數(shù)
Adodc1.Recordset.Update
Adodc1.Refresh
msg0 = MsgBox("交易成功", vbOKOnly + vbQuestion, "詢問")
End Sub
Private Sub Command2_Click()
Unload Me
main.Show
End Sub
Private Sub Command3_Click()
Adodc1.RecordSource = "select supplied_order_ID as 訂單編號,wanted_book_ID as 書籍編號,user_ID as 用戶帳號,bid_price as 用戶出價,dealed as 交易,release_time as 時間 from supo where dealed=1"
Adodc1.Refresh
Label7 = "(" & "已交易" & ")"
End Sub
Private Sub Command4_Click()
Adodc1.RecordSource = "select supplied_order_ID as 訂單編號,wanted_book_ID as 書籍編號,user_ID as 用戶帳號,bid_price as 用戶出價,dealed as 交易,release_time as 時間 from supo"
Adodc1.Refresh
Label7 = "(" & "全部信息" & ")"
End Sub
Private Sub Command6_Click()
If Text1 = "" Then
msg0 = MsgBox("請?zhí)顚懹唵翁枺?quot;, vbOKOnly + vbQuestion, "詢問")
If msg0 = vbOK Then
Text1.SetFocus: Exit Sub
End If
End If
nr = Text1
For l = 1 To Len(nr)
le = Mid(nr, l, 1)
If Not (Asc(le) = 46 Or (Asc(le) >= 48 And Asc(le) <= 57)) Then
MsgBox "數(shù)據(jù)輸入有誤!", vbOKOnly, "提示"
Text1 = ""
Text1.SetFocus: Exit Sub
End If
Next l
Adodc1.RecordSource = "select supplied_order_ID as 訂單編號,wanted_book_ID as 書籍編號,user_ID as 用戶帳號,bid_price as 用戶出價,dealed as 交易,release_time as 時間 from supo where supplied_order_ID='" & Text1.Text & "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount = 0 Then
MsgBox "該訂單不存在!", vbOKOnly, "提示"
Text1 = ""
Text1.SetFocus: Exit Sub
ElseIf Adodc1.Recordset.Fields("交易") = 1 Then
MsgBox "該訂單已交易,不可再次交易!", vbOKOnly, "提示"
Text1 = ""
Text1.SetFocus: Exit Sub
Else
Text3.Text = Adodc1.Recordset.Fields("訂單編號")
Text4.Text = Adodc1.Recordset.Fields("書籍編號")
Text5.Text = Adodc1.Recordset.Fields("用戶帳號")
Text6.Text = Adodc1.Recordset.Fields("用戶出價")
End If
End Sub
Private Sub Command7_Click()
Adodc1.RecordSource = "select supplied_order_ID as 訂單編號,wanted_book_ID as 書籍編號,user_ID as 用戶帳號,bid_price as 用戶出價,dealed as 交易,release_time as 時間 from supo where dealed=0"
Adodc1.Refresh
Label7 = "(" & "未交易" & ")"
End Sub
Private Sub Command8_Click()
Call Form_Load
End Sub
Private Sub Form_Load()
Text1 = ""
Text2 = ""
Text3 = ""
Text4 = ""
Text5 = ""
Text6 = ""
Text3.Enabled = False
Text4.Enabled = False
Text5.Enabled = False
Text6.Enabled = False
Label7 = "(" & "全部信息" & ")"
Adodc1.ConnectionString = cns1 & App.Path & cns2
Adodc1.RecordSource = "select supplied_order_ID as 訂單編號,wanted_book_ID as 書籍編號,user_ID as 用戶帳號,bid_price as 用戶出價,dealed as 交易,release_time as 時間 from supo"
Adodc1.Refresh
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -