⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 h_main.frm

📁 个人开发二手书交易系统,有书籍信息和订单信息的发布处理功能
💻 FRM
📖 第 1 页 / 共 5 页
字号:
         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 + -