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

SCSI/ASPI

开发平台:

Others

  1. VERSION 5.00
  2. Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
  3. Begin VB.Form bafflebox 
  4.    Caption         =   "音箱"
  5.    ClientHeight    =   7830
  6.    ClientLeft      =   60
  7.    ClientTop       =   450
  8.    ClientWidth     =   6945
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   7830
  11.    ScaleWidth      =   6945
  12.    StartUpPosition =   3  '窗口缺省
  13.    Begin VB.Frame Frame1 
  14.       Caption         =   "音箱"
  15.       Height          =   7215
  16.       Left            =   120
  17.       TabIndex        =   0
  18.       Top             =   120
  19.       Width           =   6015
  20.       Begin VB.CommandButton Command2 
  21.          Caption         =   "返回"
  22.          Height          =   495
  23.          Left            =   2400
  24.          TabIndex        =   25
  25.          Top             =   6480
  26.          Width           =   1215
  27.       End
  28.       Begin VB.TextBox Text11 
  29.          Height          =   375
  30.          Left            =   4320
  31.          TabIndex        =   24
  32.          Top             =   240
  33.          Width           =   1455
  34.       End
  35.       Begin MSAdodcLib.Adodc Adodc1 
  36.          Height          =   495
  37.          Left            =   4080
  38.          Top             =   6480
  39.          Visible         =   0   'False
  40.          Width           =   1695
  41.          _ExtentX        =   2990
  42.          _ExtentY        =   873
  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            =   480
  86.          TabIndex        =   21
  87.          Top             =   6480
  88.          Width           =   1335
  89.       End
  90.       Begin VB.TextBox Text10 
  91.          Height          =   375
  92.          Left            =   1440
  93.          TabIndex        =   20
  94.          Top             =   5880
  95.          Width           =   1935
  96.       End
  97.       Begin VB.TextBox Text9 
  98.          Height          =   375
  99.          Left            =   1440
  100.          TabIndex        =   18
  101.          Top             =   5400
  102.          Width           =   1935
  103.       End
  104.       Begin VB.TextBox Text8 
  105.          Height          =   375
  106.          Left            =   1440
  107.          TabIndex        =   17
  108.          Top             =   4800
  109.          Width           =   2895
  110.       End
  111.       Begin VB.TextBox Text7 
  112.          Height          =   375
  113.          Left            =   1440
  114.          TabIndex        =   16
  115.          Top             =   4200
  116.          Width           =   1935
  117.       End
  118.       Begin VB.TextBox Text6 
  119.          Height          =   375
  120.          Left            =   1440
  121.          TabIndex        =   15
  122.          Top             =   3480
  123.          Width           =   1935
  124.       End
  125.       Begin VB.TextBox Text5 
  126.          Height          =   375
  127.          Left            =   1440
  128.          TabIndex        =   14
  129.          Top             =   2760
  130.          Width           =   1935
  131.       End
  132.       Begin VB.TextBox Text4 
  133.          Height          =   375
  134.          Left            =   1440
  135.          TabIndex        =   13
  136.          Top             =   2160
  137.          Width           =   2895
  138.       End
  139.       Begin VB.TextBox Text3 
  140.          Height          =   375
  141.          Left            =   1440
  142.          TabIndex        =   12
  143.          Top             =   1440
  144.          Width           =   1935
  145.       End
  146.       Begin VB.TextBox Text2 
  147.          Height          =   375
  148.          Left            =   1440
  149.          TabIndex        =   11
  150.          Top             =   840
  151.          Width           =   1935
  152.       End
  153.       Begin VB.TextBox Text1 
  154.          Height          =   375
  155.          Left            =   1440
  156.          TabIndex        =   10
  157.          Top             =   240
  158.          Width           =   1935
  159.       End
  160.       Begin VB.Label Label12 
  161.          Caption         =   "品牌:"
  162.          Height          =   375
  163.          Left            =   3600
  164.          TabIndex        =   23
  165.          Top             =   360
  166.          Width           =   615
  167.       End
  168.       Begin VB.Label Label11 
  169.          Caption         =   "注意格式:年-月-日"
  170.          Height          =   375
  171.          Left            =   3600
  172.          TabIndex        =   22
  173.          Top             =   5880
  174.          Width           =   1815
  175.       End
  176.       Begin VB.Label Label10 
  177.          Caption         =   "添加日期:"
  178.          Height          =   255
  179.          Left            =   360
  180.          TabIndex        =   19
  181.          Top             =   6000
  182.          Width           =   1095
  183.       End
  184.       Begin VB.Label Label9 
  185.          Caption         =   "信噪比:"
  186.          Height          =   255
  187.          Left            =   480
  188.          TabIndex        =   9
  189.          Top             =   5520
  190.          Width           =   855
  191.       End
  192.       Begin VB.Label Label8 
  193.          Caption         =   "扬声器单:"
  194.          Height          =   255
  195.          Left            =   360
  196.          TabIndex        =   8
  197.          Top             =   4920
  198.          Width           =   975
  199.       End
  200.       Begin VB.Label Label7 
  201.          Caption         =   "功能调节:"
  202.          Height          =   255
  203.          Left            =   360
  204.          TabIndex        =   7
  205.          Top             =   4320
  206.          Width           =   975
  207.       End
  208.       Begin VB.Label Label6 
  209.          Caption         =   "音箱材质:"
  210.          Height          =   375
  211.          Left            =   360
  212.          TabIndex        =   6
  213.          Top             =   3600
  214.          Width           =   975
  215.       End
  216.       Begin VB.Label Label5 
  217.          Caption         =   "额定功率:"
  218.          Height          =   375
  219.          Left            =   360
  220.          TabIndex        =   5
  221.          Top             =   2880
  222.          Width           =   975
  223.       End
  224.       Begin VB.Label Label4 
  225.          Caption         =   "音箱系统:"
  226.          Height          =   255
  227.          Left            =   360
  228.          TabIndex        =   4
  229.          Top             =   2160
  230.          Width           =   975
  231.       End
  232.       Begin VB.Label Label3 
  233.          Caption         =   "数量:"
  234.          Height          =   375
  235.          Left            =   600
  236.          TabIndex        =   3
  237.          Top             =   1440
  238.          Width           =   615
  239.       End
  240.       Begin VB.Label Label2 
  241.          Caption         =   "价格:"
  242.          Height          =   615
  243.          Left            =   600
  244.          TabIndex        =   2
  245.          Top             =   840
  246.          Width           =   1095
  247.       End
  248.       Begin VB.Label Label1 
  249.          Caption         =   "产品名称:"
  250.          Height          =   375
  251.          Left            =   360
  252.          TabIndex        =   1
  253.          Top             =   360
  254.          Width           =   1095
  255.       End
  256.    End
  257. End
  258. Attribute VB_Name = "bafflebox"
  259. Attribute VB_GlobalNameSpace = False
  260. Attribute VB_Creatable = False
  261. Attribute VB_PredeclaredId = True
  262. Attribute VB_Exposed = False
  263. Private Sub Command1_Click()
  264. Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
  265. 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) <> "" And Trim(Text8.Text) <> "" And Trim(Text9.Text) <> "" And Trim(Text10.Text) <> "" And Trim(Text11.Text) <> "" Then
  266.              Adodc1.RecordSource = "select * from bafflebox where GoodsName='" & Trim(Text1.Text) & " '"
  267.              Adodc1.Refresh
  268.              If Adodc1.Recordset.EOF Then
  269.                  Adodc1.Recordset.AddNew
  270.                  Adodc1.Recordset.Fields("GoodsName") = Trim(Text1.Text)
  271.                  Adodc1.Recordset.Fields("MarketPrice") = Trim(Text2.Text)
  272.                  Adodc1.Recordset.Fields("GoodsUnit") = Trim(Text3.Text)
  273.                  Adodc1.Recordset.Fields("System") = Trim(Text4.Text)
  274.                  Adodc1.Recordset.Fields("Ratingpower") = Trim(Text5.Text)
  275.                  Adodc1.Recordset.Fields("Material") = Trim(Text6.Text)
  276.                  Adodc1.Recordset.Fields("Function") = Trim(Text7.Text)
  277.                  Adodc1.Recordset.Fields("Loudhailer") = Trim(Text8.Text)
  278.                  Adodc1.Recordset.Fields("SNR") = Trim(Text9.Text)
  279.                  Adodc1.Recordset.Fields("AddDate") = Trim(Text10.Text)
  280.                  Adodc1.Recordset.Fields("GoodsBrand") = Trim(Text11.Text)
  281.                  Adodc1.Recordset.Update
  282.                  Adodc1.Refresh
  283.                  MsgBox (" 恭喜您已经添加成功到数据库!")
  284.              End If
  285.               Else
  286.             MsgBox ("请您把信息填完整,信息不能为空!")
  287. End If
  288. End Sub
  289. Private Sub Command2_Click()
  290. xsp.Show
  291. End Sub
  292. Private Sub Form_Load()
  293. Text10.Text = Format(Now, "yyyy-mm-dd ")
  294. End Sub