audio.frm
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:8k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. VERSION 5.00
  2. Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
  3. Begin VB.Form audio 
  4.    Caption         =   "声卡"
  5.    ClientHeight    =   7500
  6.    ClientLeft      =   60
  7.    ClientTop       =   450
  8.    ClientWidth     =   6330
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   7500
  11.    ScaleWidth      =   6330
  12.    StartUpPosition =   3  '窗口缺省
  13.    Begin VB.Frame Frame1 
  14.       Caption         =   "声卡"
  15.       Height          =   6975
  16.       Left            =   120
  17.       TabIndex        =   0
  18.       Top             =   120
  19.       Width           =   5655
  20.       Begin VB.CommandButton Command2 
  21.          Caption         =   "返回"
  22.          Height          =   495
  23.          Left            =   2040
  24.          TabIndex        =   17
  25.          Top             =   6120
  26.          Width           =   1215
  27.       End
  28.       Begin VB.TextBox Text7 
  29.          Height          =   375
  30.          Left            =   1320
  31.          TabIndex        =   15
  32.          Top             =   5280
  33.          Width           =   2055
  34.       End
  35.       Begin MSAdodcLib.Adodc Adodc1 
  36.          Height          =   375
  37.          Left            =   3600
  38.          Top             =   6000
  39.          Visible         =   0   'False
  40.          Width           =   1695
  41.          _ExtentX        =   2990
  42.          _ExtentY        =   661
  43.          ConnectMode     =   0
  44.          CursorLocation  =   3
  45.          IsolationLevel  =   -1
  46.          ConnectionTimeout=   15
  47.          CommandTimeout  =   30
  48.          CursorType      =   3
  49.          LockType        =   3
  50.          CommandType     =   8
  51.          CursorOptions   =   0
  52.          CacheSize       =   50
  53.          MaxRecords      =   0
  54.          BOFAction       =   0
  55.          EOFAction       =   0
  56.          ConnectStringType=   1
  57.          Appearance      =   1
  58.          BackColor       =   -2147483643
  59.          ForeColor       =   -2147483640
  60.          Orientation     =   0
  61.          Enabled         =   -1
  62.          Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
  63.          OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
  64.          OLEDBFile       =   ""
  65.          DataSourceName  =   ""
  66.          OtherAttributes =   ""
  67.          UserName        =   ""
  68.          Password        =   ""
  69.          RecordSource    =   ""
  70.          Caption         =   "Adodc1"
  71.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  72.             Name            =   "宋体"
  73.             Size            =   9
  74.             Charset         =   134
  75.             Weight          =   400
  76.             Underline       =   0   'False
  77.             Italic          =   0   'False
  78.             Strikethrough   =   0   'False
  79.          EndProperty
  80.          _Version        =   393216
  81.       End
  82.       Begin VB.CommandButton Command1 
  83.          Caption         =   "添加"
  84.          Height          =   495
  85.          Left            =   360
  86.          TabIndex        =   13
  87.          Top             =   6120
  88.          Width           =   1215
  89.       End
  90.       Begin VB.TextBox Text6 
  91.          Height          =   1095
  92.          Left            =   1320
  93.          TabIndex        =   12
  94.          Top             =   3960
  95.          Width           =   3855
  96.       End
  97.       Begin VB.TextBox Text5 
  98.          Height          =   375
  99.          Left            =   1320
  100.          TabIndex        =   11
  101.          Top             =   3240
  102.          Width           =   1815
  103.       End
  104.       Begin VB.TextBox Text4 
  105.          Height          =   375
  106.          Left            =   1320
  107.          TabIndex        =   10
  108.          Top             =   2400
  109.          Width           =   1815
  110.       End
  111.       Begin VB.TextBox Text3 
  112.          Height          =   375
  113.          Left            =   1320
  114.          TabIndex        =   9
  115.          Top             =   1680
  116.          Width           =   1815
  117.       End
  118.       Begin VB.TextBox Text2 
  119.          Height          =   375
  120.          Left            =   1320
  121.          TabIndex        =   8
  122.          Top             =   960
  123.          Width           =   1815
  124.       End
  125.       Begin VB.TextBox Text1 
  126.          Height          =   375
  127.          Left            =   1320
  128.          TabIndex        =   7
  129.          Top             =   240
  130.          Width           =   1815
  131.       End
  132.       Begin VB.Label Label8 
  133.          Caption         =   "注意格式:年-月-日"
  134.          Height          =   255
  135.          Left            =   3600
  136.          TabIndex        =   16
  137.          Top             =   5400
  138.          Width           =   1695
  139.       End
  140.       Begin VB.Label Label7 
  141.          Caption         =   "添加日期:"
  142.          Height          =   375
  143.          Left            =   360
  144.          TabIndex        =   14
  145.          Top             =   5400
  146.          Width           =   975
  147.       End
  148.       Begin VB.Label Label6 
  149.          Caption         =   "简介产品:"
  150.          Height          =   375
  151.          Left            =   240
  152.          TabIndex        =   6
  153.          Top             =   4080
  154.          Width           =   975
  155.       End
  156.       Begin VB.Label Label5 
  157.          Caption         =   "声卡类别:"
  158.          Height          =   375
  159.          Left            =   240
  160.          TabIndex        =   5
  161.          Top             =   3360
  162.          Width           =   975
  163.       End
  164.       Begin VB.Label Label4 
  165.          Caption         =   "数量:"
  166.          Height          =   255
  167.          Left            =   600
  168.          TabIndex        =   4
  169.          Top             =   2520
  170.          Width           =   615
  171.       End
  172.       Begin VB.Label Label3 
  173.          Caption         =   "价格:"
  174.          Height          =   255
  175.          Left            =   600
  176.          TabIndex        =   3
  177.          Top             =   1800
  178.          Width           =   615
  179.       End
  180.       Begin VB.Label Label2 
  181.          Caption         =   "品牌:"
  182.          Height          =   375
  183.          Left            =   600
  184.          TabIndex        =   2
  185.          Top             =   1080
  186.          Width           =   615
  187.       End
  188.       Begin VB.Label Label1 
  189.          Caption         =   "产品名称:"
  190.          Height          =   375
  191.          Left            =   240
  192.          TabIndex        =   1
  193.          Top             =   360
  194.          Width           =   975
  195.       End
  196.    End
  197. End
  198. Attribute VB_Name = "audio"
  199. Attribute VB_GlobalNameSpace = False
  200. Attribute VB_Creatable = False
  201. Attribute VB_PredeclaredId = True
  202. Attribute VB_Exposed = False
  203. Private Sub Command1_Click()
  204. Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
  205. If Trim(Text1.Text) <> "" And Trim(Text2.Text) <> "" And Trim(Text3.Text) <> "" And Trim(Text4.Text) <> "" And Trim(Text5.Text) <> "" And Trim(Text6.Text) <> "" And Trim(Text7.Text) <> "" Then
  206.              Adodc1.RecordSource = "select * from audio where GoodsName='" & Trim(Text1.Text) & " '"
  207.              Adodc1.Refresh
  208.              If Adodc1.Recordset.EOF Then
  209.                  Adodc1.Recordset.AddNew
  210.                  Adodc1.Recordset.Fields("GoodsName") = Trim(Text1.Text)
  211.                  Adodc1.Recordset.Fields("GoodsBrand") = Trim(Text2.Text)
  212.                  Adodc1.Recordset.Fields("MarketPrice") = Trim(Text3.Text)
  213.                  Adodc1.Recordset.Fields("GoodsUnit") = Trim(Text4.Text)
  214.                  Adodc1.Recordset.Fields("shengkaleibie") = Trim(Text5.Text)
  215.                  Adodc1.Recordset.Fields("GoodsIntroduce") = Trim(Text6.Text)
  216.                  Adodc1.Recordset.Fields("AddDate") = Trim(Text7.Text)
  217.                  Adodc1.Recordset.Update
  218.                  Adodc1.Refresh
  219.                  MsgBox (" 恭喜您已经添加成功到数据库!")
  220.              End If
  221.               Else
  222.             MsgBox ("请您把信息填完整,信息不能为空!")
  223. End If
  224. End Sub
  225. Private Sub Command2_Click()
  226. xsp.Show
  227. End Sub
  228. Private Sub Form_Load()
  229. Text7.Text = Format(Now, "yyyy-mm-dd ")
  230. End Sub