?? h_f5_xxclg2.frm
字號:
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4920
TabIndex = 15
Top = 2400
Width = 1215
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
Height = 255
Left = 4920
TabIndex = 14
Top = 1920
Width = 975
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
Height = 255
Left = 4920
TabIndex = 10
Top = 1560
Width = 735
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
Height = 255
Left = 4920
TabIndex = 8
Top = 480
Width = 975
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
Height = 255
Left = 4920
TabIndex = 6
Top = 1200
Width = 495
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
Height = 255
Left = 4920
TabIndex = 4
Top = 840
Width = 975
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 1800
Top = 2640
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 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 = 240
TabIndex = 25
Top = 120
Width = 960
End
Begin VB.Label Label2
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
Height = 240
Left = 1320
TabIndex = 18
Top = 120
Width = 240
End
End
Attribute VB_Name = "f5_xxclx"
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
If Adodc1.Recordset.Fields("交易") = 1 Then
MsgBox "該書已交易,不可發布!", vbOKOnly, "提示"
Call Form_Load: Exit Sub
End If
Adodc1.Recordset.Fields("發布") = 1 '還有現金流和回執功能沒有實現以及用戶交易次數
Adodc1.Recordset.Update
Adodc1.Refresh
msg0 = MsgBox("發布成功", vbOKOnly + vbQuestion, "詢問")
Call Form_Load
End Sub
Private Sub Command2_Click()
Call Form_Load
End Sub
Private Sub Command4_Click()
Adodc1.RecordSource = "select wanb.wanted_book_ID as 書籍編號,wanb.name as 書籍名稱,wanb.publisher as 出版社,wanb.author as 作者,wanb.description as 描述,wanb.theme as 主題,wanb.kind as 類別,wanb.highest_price as 最高價格,wanb.user_credit as 用戶信譽度,handled as 發布,dealed as 交易,user_ID as 用戶帳號,release_time as 時限,time_limit as 時間 from wanb where handled=1"
Adodc1.Refresh
Label2 = "(" & "已發布" & ")"
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 wanb.wanted_book_ID as 書籍編號,wanb.name as 書籍名稱,wanb.publisher as 出版社,wanb.author as 作者,wanb.description as 描述,wanb.theme as 主題,wanb.kind as 類別,wanb.highest_price as 最高價格,wanb.user_credit as 用戶信譽度,handled as 發布,dealed as 交易,user_ID as 用戶帳號,release_time as 時限,time_limit as 時間 from wanb where wanb.wanted_book_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("出版社")
Text7.Text = Adodc1.Recordset.Fields("用戶帳號")
Text2.Text = Adodc1.Recordset.Fields("用戶信譽度")
Command1.Enabled = True
End If
End Sub
Private Sub Command7_Click()
Unload Me
main.Show
End Sub
Private Sub Command8_Click()
Adodc1.RecordSource = "select wanb.wanted_book_ID as 書籍編號,wanb.name as 書籍名稱,wanb.publisher as 出版社,wanb.author as 作者,wanb.description as 描述,wanb.theme as 主題,wanb.kind as 類別,wanb.highest_price as 最高價格,wanb.user_credit as 用戶信譽度,handled as 發布,dealed as 交易,user_ID as 用戶帳號,release_time as 時限,time_limit as 時間 from wanb"
Adodc1.Refresh
Label2 = "(" & "全部信息" & ")"
End Sub
Private Sub Command9_Click()
Adodc1.RecordSource = "select wanb.wanted_book_ID as 書籍編號,wanb.name as 書籍名稱,wanb.publisher as 出版社,wanb.author as 作者,wanb.description as 描述,wanb.theme as 主題,wanb.kind as 類別,wanb.highest_price as 最高價格,wanb.user_credit as 用戶信譽度,handled as 發布,dealed as 交易,user_ID as 用戶帳號,release_time as 時限,time_limit as 時間 from wanb where handled=0"
Adodc1.Refresh
Label2 = "(" & "未發布" & ")"
End Sub
Private Sub Form_Load()
Adodc1.ConnectionString = cns1 & App.Path & cns2
Adodc1.RecordSource = "select wanb.wanted_book_ID as 書籍編號,wanb.name as 書籍名稱,wanb.publisher as 出版社,wanb.author as 作者,wanb.description as 描述,wanb.theme as 主題,wanb.kind as 類別,wanb.highest_price as 最高價格,wanb.user_credit as 用戶信譽度,handled as 發布,dealed as 交易,user_ID as 用戶帳號,release_time as 時限,time_limit as 時間 from wanb"
Adodc1.Refresh
Label2 = "(" & "全部信息" & ")"
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text2.Enabled = False
Text3.Enabled = False
Text4.Enabled = False
Text5.Enabled = False
Text6.Enabled = False
Text7.Enabled = False
Command1.Enabled = False
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -