📄 h_f5_ckddx.frm
字号:
TabIndex = 13
Top = 2880
Width = 1095
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 = "交易确认"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5280
Style = 1 'Graphical
TabIndex = 2
Top = 2880
Width = 1335
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 = 5760
Top = 120
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.Frame Frame5
Caption = "按订单"
Height = 1095
Left = 8160
TabIndex = 27
Top = 2280
Width = 1215
Begin VB.CommandButton Command7
Caption = "未交易"
Height = 255
Left = 120
Style = 1 'Graphical
TabIndex = 29
Top = 720
Width = 975
End
Begin VB.CommandButton Command3
Caption = "已交易"
Height = 255
Left = 120
Style = 1 'Graphical
TabIndex = 28
Top = 360
Width = 975
End
End
Begin VB.Label Label8
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 = 23
Top = 120
Width = 960
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 = 1440
TabIndex = 11
Top = 120
Width = 240
End
End
Attribute VB_Name = "f5_ddclx"
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
If Adodc1.Recordset.Fields("交易") = 1 Then
MsgBox "该订单已确认,不必重复确认!", vbOKOnly, "提示"
Call Form_Load: Exit Sub
End If
Adodc2.RecordSource = "select * from supb where supb.dealed=0 and supb.supplied_book_ID='" & Text4.Text & "'"
Adodc2.Refresh
If Adodc2.Recordset.RecordCount = 0 Then
MsgBox "该书已交易,不能确认交易!", vbOKOnly, "提示"
Call Form_Load: Exit Sub
End If
Adodc1.Recordset.Fields("交易") = 1 '还有现金流和回执功能没有实现以及用户交易次数
Adodc1.Recordset.Update
Adodc1.Refresh
Adodc2.Recordset.Fields("dealed") = 1
Adodc2.Recordset.Update
Adodc2.Refresh
msg0 = MsgBox("交易成功", vbOKOnly + vbQuestion, "询问")
Call Form_Load
End Sub
Private Sub Command11_Click()
Call Form_Load
End Sub
Private Sub Command2_Click()
Unload Me
main.Show
End Sub
Private Sub Command3_Click()
Adodc1.RecordSource = "select wanted_order_ID as 订单编号,supplied_book_ID as 书籍编号,user_ID as 用户帐号,competitive_price as 用户出价,dealed as 交易,release_time as 时间 from wano where dealed=1"
Adodc1.Refresh
Label7 = "(" & "已确认" & ")"
End Sub
Private Sub Command4_Click()
Adodc1.RecordSource = "select wanted_order_ID as 订单编号,supplied_book_ID as 书籍编号,user_ID as 用户帐号,competitive_price as 用户出价,dealed as 交易,release_time as 时间 from wano"
Adodc1.Refresh
Label7 = "(" & "全部信息" & ")"
End Sub
Private Sub Command5_Click()
Adodc1.RecordSource = "select wanted_order_ID as 订单编号,supplied_book_ID as 书籍编号,competitive_price as 用户出价,user_ID as 用户帐号,dealed as 交易,release_time as 时间 from wano where supplied_book_ID='" & Text2.Text & "' order by competitive_price desc"
Adodc1.Refresh
no = Adodc1.Recordset.RecordCount
If no = 0 Then
msg0 = MsgBox("该书不存在,请重新选择?", vbOKOnly + vbQuestion, "询问")
If msg0 = vbOK Then
Call Form_Load
Text2 = ""
Text2.SetFocus: Exit Sub
End If
ElseIf no = 1 Then
msg0 = MsgBox("所选择书籍只有一份订单?", vbOKOnly + vbQuestion, "询问")
If msg0 = vbOK Then
Text2 = ""
Text2.SetFocus: Exit Sub
End If
End If
End Sub
Private Sub Command6_Click()
If Text1 = "" Then
msg0 = MsgBox("请填写订单号?", 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 "数据输入有误!", vbOKOnly, "提示"
Text1 = ""
Text1.SetFocus: Exit Sub
End If
Next l
Adodc1.RecordSource = "select wanted_order_ID as 订单编号,supplied_book_ID as 书籍编号,user_ID as 用户帐号,competitive_price as 用户出价,dealed as 交易,release_time as 时间 from wano where wanted_order_ID='" & Text1.Text & "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount = 0 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("用户出价")
Command1.Enabled = True
End If
End Sub
Private Sub Command7_Click()
Adodc1.RecordSource = "select wanted_order_ID as 订单编号,supplied_book_ID as 书籍编号,user_ID as 用户帐号,competitive_price as 用户出价,dealed as 交易,release_time as 时间 from wano 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 wanted_order_ID as 订单编号,supplied_book_ID as 书籍编号,user_ID as 用户帐号,competitive_price as 用户出价,dealed as 交易,release_time as 时间 from wano"
Adodc1.Refresh
Command1.Enabled = False
Adodc2.ConnectionString = cns1 & App.Path & cns2
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -