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

📄 h_f1_tjspxxdx.frm

📁 个人开发二手书交易系统,有书籍信息和订单信息的发布处理功能
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         Width           =   735
      End
      Begin VB.Label Label8 
         Caption         =   "元"
         Height          =   255
         Left            =   5640
         TabIndex        =   18
         Top             =   3120
         Width           =   375
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000B&
         BackStyle       =   0  'Transparent
         Caption         =   "卖家信誉度"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0045532B&
         Height          =   210
         Left            =   120
         TabIndex        =   15
         Top             =   3000
         Width           =   1050
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000B&
         BackStyle       =   0  'Transparent
         Caption         =   "书籍编号"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0045532B&
         Height          =   210
         Left            =   360
         TabIndex        =   13
         Top             =   600
         Width           =   840
      End
      Begin VB.Label Label15 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000B&
         BackStyle       =   0  'Transparent
         ForeColor       =   &H0045532B&
         Height          =   180
         Left            =   2040
         TabIndex        =   11
         Top             =   2200
         Width           =   210
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000B&
         BackStyle       =   0  'Transparent
         Caption         =   "竞购价格"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0045532B&
         Height          =   210
         Left            =   4560
         TabIndex        =   10
         Top             =   2640
         Width           =   840
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000B&
         BackStyle       =   0  'Transparent
         Caption         =   "最低价格"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0045532B&
         Height          =   210
         Left            =   240
         TabIndex        =   9
         Top             =   2520
         Width           =   840
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000B&
         BackStyle       =   0  'Transparent
         Caption         =   "出版社"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0045532B&
         Height          =   210
         Left            =   480
         TabIndex        =   8
         Top             =   2040
         Width           =   630
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000B&
         BackStyle       =   0  'Transparent
         Caption         =   "作者"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0045532B&
         Height          =   210
         Left            =   600
         TabIndex        =   7
         Top             =   1560
         Width           =   420
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000B&
         BackStyle       =   0  'Transparent
         Caption         =   "书名"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0045532B&
         Height          =   210
         Left            =   600
         TabIndex        =   6
         Top             =   1080
         Width           =   420
      End
   End
End
Attribute VB_Name = "f1_tjddx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()

If Text5 = "" Then
MsgBox "请出价", , "提示"
Call Form_Load: Exit Sub
End If

nr = Text5
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, "提示"
Text5 = ""
Text5.SetFocus: Exit Sub
End If
Next l

'If Adodc2.Recordset.RecordCount = 0 Then
'temp = 0
'Else
' Adodc2.Recordset.MoveLast
' temp = Adodc2.Recordset.Fields("wanted_order_ID")
'End If


Adodc2.Recordset.AddNew


Adodc2.Recordset.Fields("supplied_book_ID") = sbid
Adodc2.Recordset.Fields("user_ID") = yhid
Adodc2.Recordset.Fields("competitive_price") = Text5.Text
Adodc2.Recordset.Fields("handled") = 1
Adodc2.Recordset.Fields("dealed") = 0
Adodc2.Recordset.Fields("release_time") = Date + 1   '有问题

Adodc2.Recordset.Update
Adodc2.Refresh


Adodc2.Recordset.MoveLast
Text11 = Adodc2.Recordset.Fields("idz")
Adodc2.Recordset.Fields("wanted_order_ID") = Text11.Text

Adodc2.Recordset.Update
Adodc2.Refresh


MsgBox "提交成功,欢迎下次使用", , "结果"

main.Enabled = True
main.Show
Unload Me

End Sub

Private Sub Command3_Click()

main.Show
main.Enabled = True
sbid = ""
Unload Me
End Sub

Private Sub Form_Load()

'sbid = 3       ''''''''''''''''''''

Text1 = ""
Text2 = ""
Text3 = ""
Text4 = ""
Text5 = ""
Text6 = ""
Text7 = ""
Text1.Enabled = False
Text2.Enabled = False
Text3.Enabled = False
Text4.Enabled = False
Text6.Enabled = False
Text7.Enabled = False
Text9.Enabled = False
Text10.Enabled = False
Text8 = sbid

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 用户信誉度,supb.release_time as 期限,supb.dealed as 是否交易,supb.handled as 是否发布 from supb where supb.supplied_book_ID= '" & Text8.Text & " '"
Adodc1.Refresh

Text1 = Adodc1.Recordset.Fields("书籍名称")
Text2 = Adodc1.Recordset.Fields("作者")
Text3 = Adodc1.Recordset.Fields("出版社")
Text4 = Adodc1.Recordset.Fields("最低价格")
Text6 = Adodc1.Recordset.Fields("用户信誉度")
Text7 = Adodc1.Recordset.Fields("书籍编号")
Text9 = Adodc1.Recordset.Fields("主题")
Text10 = Adodc1.Recordset.Fields("类别")



Adodc2.ConnectionString = cns1 & App.Path & cns2
Adodc2.RecordSource = "select * from wano"
Adodc2.Refresh

End Sub



⌨️ 快捷键说明

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