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

📄 h_f5_xxclg.frm

📁 个人开发二手书交易系统,有书籍信息和订单信息的发布处理功能
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            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_xxclg"
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
    ElseIf 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 supb.supplied_book_ID as 书籍编号,supb.name as 书籍名称,supb.publisher as 出版社,supb.author as 作者,supb.description as 描述,supb.theme as 主题,supb.kind as 类别,supb.lowest_price as 最低价格,supb.user_credit as 用户信誉度,handled as 发布,dealed as 交易,user_ID as 用户帐号,release_time as 时限,time_limit as 时间 from supb where handled=1"
Adodc1.Refresh
Label2 = "(" & "已发布" & ")"
'Command1.Enabled = True
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 supb.supplied_book_ID as 书籍编号,supb.name as 书籍名称,supb.publisher as 出版社,supb.author as 作者,supb.description as 描述,supb.theme as 主题,supb.kind as 类别,supb.lowest_price as 最低价格,supb.user_credit as 用户信誉度,supb.release_time as 期限,handled as 发布,dealed as 交易,user_ID as 用户帐号,time_limit as 时间 from supb where supplied_book_ID='" & Text1.Text & "'"
Adodc1.Refresh

If Adodc1.Recordset.RecordCount = 0 Then
MsgBox "该书不存在!", vbOKOnly, "提示"
Call Form_Load: 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 supb.supplied_book_ID as 书籍编号,supb.name as 书籍名称,supb.publisher as 出版社,supb.author as 作者,supb.description as 描述,supb.theme as 主题,supb.kind as 类别,supb.lowest_price as 最低价格,supb.user_credit as 用户信誉度,supb.release_time as 期限,handled as 发布,dealed as 交易,user_ID as 用户帐号,time_limit as 时间 from supb"
Adodc1.Refresh
Label2 = "(" & "全部信息" & ")"
'Command1.Enabled = True
End Sub

Private Sub Command9_Click()
Adodc1.RecordSource = "select supb.supplied_book_ID as 书籍编号,supb.name as 书籍名称,supb.publisher as 出版社,supb.author as 作者,supb.description as 描述,supb.theme as 主题,supb.kind as 类别,supb.lowest_price as 最低价格,supb.user_credit as 用户信誉度,handled as 发布,dealed as 交易,user_ID as 用户帐号,release_time as 时限,time_limit as 时间 from supb where handled =0"
Adodc1.Refresh
Label2 = "(" & "未发布" & ")"
'Command1.Enabled = False
End Sub

Private Sub Form_Load()
Adodc1.ConnectionString = cns1 & App.Path & cns2
Adodc1.RecordSource = "select supb.supplied_book_ID as 书籍编号,supb.name as 书籍名称,supb.publisher as 出版社,supb.author as 作者,supb.description as 描述,supb.theme as 主题,supb.kind as 类别,supb.lowest_price as 最低价格,supb.user_credit as 用户信誉度,handled as 发布,dealed as 交易,user_ID as 用户帐号,release_time as 时限,time_limit as 时间 from supb"
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 + -