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

📄 h_f5_ckddg.frm

📁 个人开发二手书交易系统,有书籍信息和订单信息的发布处理功能
💻 FRM
📖 第 1 页 / 共 2 页
字号:
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   210
            Left            =   240
            TabIndex        =   19
            Top             =   360
            Width           =   1260
         End
      End
      Begin VB.CommandButton Command2 
         Caption         =   "返  回"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   350
         Left            =   6960
         Style           =   1  'Graphical
         TabIndex        =   15
         Top             =   2880
         Width           =   1000
      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          =   350
         Left            =   5400
         Style           =   1  'Graphical
         TabIndex        =   2
         Top             =   2880
         Width           =   1245
      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            =   7680
      Top             =   240
      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 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            =   360
      TabIndex        =   13
      Top             =   120
      Width           =   240
   End
End
Attribute VB_Name = "f5_ddclg"
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
Adodc1.Recordset.Fields("交易") = 1           '还有现金流和回执功能没有实现以及用户交易次数
Adodc1.Recordset.Update
Adodc1.Refresh
msg0 = MsgBox("交易成功", vbOKOnly + vbQuestion, "询问")
End Sub

Private Sub Command2_Click()
Unload Me
main.Show
End Sub

Private Sub Command3_Click()
Adodc1.RecordSource = "select supplied_order_ID as 订单编号,wanted_book_ID as 书籍编号,user_ID as 用户帐号,bid_price as 用户出价,dealed as 交易,release_time as 时间 from supo where dealed=1"
Adodc1.Refresh
Label7 = "(" & "已交易" & ")"
End Sub

Private Sub Command4_Click()
Adodc1.RecordSource = "select supplied_order_ID as 订单编号,wanted_book_ID as 书籍编号,user_ID as 用户帐号,bid_price as 用户出价,dealed as 交易,release_time as 时间 from supo"
Adodc1.Refresh
Label7 = "(" & "全部信息" & ")"
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 supplied_order_ID as 订单编号,wanted_book_ID as 书籍编号,user_ID as 用户帐号,bid_price as 用户出价,dealed as 交易,release_time as 时间 from supo where supplied_order_ID='" & Text1.Text & "'"
Adodc1.Refresh

If Adodc1.Recordset.RecordCount = 0 Then
MsgBox "该订单不存在!", vbOKOnly, "提示"
Text1 = ""
Text1.SetFocus: Exit Sub
ElseIf Adodc1.Recordset.Fields("交易") = 1 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("用户出价")
End If


End Sub

Private Sub Command7_Click()
Adodc1.RecordSource = "select supplied_order_ID as 订单编号,wanted_book_ID as 书籍编号,user_ID as 用户帐号,bid_price as 用户出价,dealed as 交易,release_time as 时间 from supo 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 supplied_order_ID as 订单编号,wanted_book_ID as 书籍编号,user_ID as 用户帐号,bid_price as 用户出价,dealed as 交易,release_time as 时间 from supo"
Adodc1.Refresh

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -