?? h_main.frm
字號:
TabIndex = 29
Top = 1080
Width = 1215
End
Begin VB.Label Label10
BackStyle = 0 'Transparent
Caption = "10"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1440
TabIndex = 28
Top = 480
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
Height = 3855
Left = 360
TabIndex = 0
Top = 240
Width = 8175
Begin VB.CommandButton Command5
Caption = "供給信息"
Height = 375
Left = 6840
TabIndex = 14
Top = 2520
Width = 1095
End
Begin VB.CommandButton Command4
Caption = "需求信息"
Height = 375
Left = 6840
TabIndex = 13
Top = 3120
Width = 1095
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "h_main.frx":0000
Height = 3015
Left = 360
TabIndex = 44
Top = 480
Width = 6255
_ExtentX = 11033
_ExtentY = 5318
_Version = 393216
AllowUpdate = -1 'True
DefColWidth = 67
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
End
Begin VB.Menu 銷售二手書
Caption = "銷售二手書"
Begin VB.Menu 發布銷售信息
Caption = "發布銷售信息"
End
Begin VB.Menu 發布銷售訂單
Caption = "發布銷售訂單"
End
End
Begin VB.Menu 購買二手書
Caption = "購買二手書"
Begin VB.Menu 發布購買信息
Caption = "發布購買信息"
End
Begin VB.Menu 發布購買訂單
Caption = "發布購買訂單"
End
End
Begin VB.Menu 個人信息
Caption = "個人信息"
Begin VB.Menu 銷售管理
Caption = "銷售管理"
Begin VB.Menu 個人銷售信息管理
Caption = "銷售信息管理"
End
Begin VB.Menu 個人銷售訂單管理
Caption = "銷售訂單管理"
End
End
Begin VB.Menu 個人訂單管理
Caption = "購買管理"
Begin VB.Menu 個人購買消息管理
Caption = "購買信息管理"
End
Begin VB.Menu 個人購買訂單管理
Caption = "購買訂單管理"
End
End
Begin VB.Menu 個人信息修改
Caption = "個人信息修改"
End
End
Begin VB.Menu 系統管理
Caption = "系統管理"
Begin VB.Menu 信息管理
Caption = "信息管理"
Begin VB.Menu 銷售信息管理
Caption = "銷售信息管理"
End
Begin VB.Menu 購買信息管理
Caption = "購買信息管理"
End
End
Begin VB.Menu 訂單管理
Caption = "訂單管理"
Begin VB.Menu 銷售訂單管理
Caption = "銷售訂單管理"
End
Begin VB.Menu 購買訂單管理
Caption = "購買訂單管理"
End
End
Begin VB.Menu 現金管理
Caption = "現金管理"
Begin VB.Menu 現金管理1
Caption = "現金管理1"
End
Begin VB.Menu 現金管理2
Caption = "現金管理2"
End
End
Begin VB.Menu 積分與信譽度管理
Caption = "積分與信譽度管理"
Begin VB.Menu 積分管理
Caption = "積分管理"
End
Begin VB.Menu 信譽度管理
Caption = "信譽度管理"
End
End
Begin VB.Menu 回執與交易管理
Caption = "回執與交易管理"
Begin VB.Menu 回執管理
Caption = "回執管理"
End
Begin VB.Menu 交易管理
Caption = "交易管理"
End
End
Begin VB.Menu 賬戶充值
Caption = "賬戶充值"
End
End
Begin VB.Menu 管理員
Caption = "管理員"
Begin VB.Menu 添加管理員
Caption = "添加管理員"
End
Begin VB.Menu 修改密碼
Caption = "修改密碼"
End
End
Begin VB.Menu 關于
Caption = "關于"
Begin VB.Menu 幫助
Caption = "幫助"
End
Begin VB.Menu 版本信息
Caption = "版本信息"
End
Begin VB.Menu 作者
Caption = "作者"
End
End
Begin VB.Menu 退出登陸
Caption = "退出登陸"
End
End
Attribute VB_Name = "main"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If glyid = "" Then
Frame6.Visible = False
If Option3 = True Then
If Text1 = "" Then
MsgBox "請填寫書籍編號!", vbOKOnly + vbExclamation, "提示"
Text1.SetFocus: Exit Sub
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 supb.supplied_book_ID as 書籍編號,supb.name as 書籍名稱,supb.publisher as 出版社,supb.author as 作者,supb.theme as 主題,supb.kind as 類別,supb.lowest_price as 最低價格,supb.user_credit as 用戶信譽度,supb.description as 描述,supb.release_time as 信息發布時間 from supb where supb.handled=1 and supb.dealed=0 and supb.supplied_book_ID='" & Text1 & "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount = 0 Then
MsgBox "對不起,目前沒有您需要的書籍", , "結果"
Call Form_Load
Exit Sub
End If
Frame4.Visible = True
Frame4.Caption = "供給信息"
Label10 = Adodc1.Recordset.Fields("書籍編號")
Label15 = Adodc1.Recordset.Fields("書籍名稱")
Label11 = Adodc1.Recordset.Fields("作者")
Label13 = Adodc1.Recordset.Fields("出版社")
Label12 = Adodc1.Recordset.Fields("類別")
Label20 = Adodc1.Recordset.Fields("主題")
Label19 = Adodc1.Recordset.Fields("描述")
Label9 = Adodc1.Recordset.Fields("用戶信譽度")
Label18 = Adodc1.Recordset.Fields("信息發布時間")
Else '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
If Text1 = "" Then
MsgBox "請填寫書籍編號!", vbOKOnly + vbExclamation, "提示"
Text1.SetFocus: Exit Sub
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.theme as 主題,wanb.kind as 類別,wanb.highest_price as 最高價格,wanb.user_credit as 用戶信譽度,wanb.description as 描述,wanb.release_time as 信息發布時間 from wanb where wanb.handled=1 and wanb.dealed=0 and wanb.wanted_book_ID='" & Text1 & "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount = 0 Then
MsgBox "對不起,目前沒有您需要的書籍", , "結果"
Call Form_Load
Exit Sub
End If
Frame4.Visible = True
Frame4.Caption = "需求信息"
Label10 = Adodc1.Recordset.Fields("書籍編號")
Label15 = Adodc1.Recordset.Fields("書籍名稱")
Label11 = Adodc1.Recordset.Fields("作者")
Label13 = Adodc1.Recordset.Fields("出版社")
Label12 = Adodc1.Recordset.Fields("類別")
Label20 = Adodc1.Recordset.Fields("主題")
Label19 = Adodc1.Recordset.Fields("描述")
Label14 = Adodc1.Recordset.Fields("用戶信譽度")
Label18 = Adodc1.Recordset.Fields("信息發布時間")
End If
Else '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 上為用戶登陸時,下為管理員登陸時
Frame4.Visible = False
If Option3 = True Then
If Text1 = "" Then
MsgBox "請填寫書籍編號!", vbOKOnly + vbExclamation, "提示"
Text1.SetFocus: Exit Sub
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, "提示"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -