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

SCSI/ASPI

开发平台:

Others

  1. VERSION 5.00
  2. Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
  3. Begin VB.Form mainboard 
  4.    Caption         =   "主板"
  5.    ClientHeight    =   7065
  6.    ClientLeft      =   60
  7.    ClientTop       =   450
  8.    ClientWidth     =   8445
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   7065
  11.    ScaleWidth      =   8445
  12.    StartUpPosition =   3  '窗口缺省
  13.    Begin VB.Frame Frame1 
  14.       Caption         =   "主板"
  15.       Height          =   6735
  16.       Left            =   120
  17.       TabIndex        =   0
  18.       Top             =   120
  19.       Width           =   8055
  20.       Begin MSAdodcLib.Adodc Adodc1 
  21.          Height          =   495
  22.          Left            =   5760
  23.          Top             =   6000
  24.          Visible         =   0   'False
  25.          Width           =   1575
  26.          _ExtentX        =   2778
  27.          _ExtentY        =   873
  28.          ConnectMode     =   0
  29.          CursorLocation  =   3
  30.          IsolationLevel  =   -1
  31.          ConnectionTimeout=   15
  32.          CommandTimeout  =   30
  33.          CursorType      =   3
  34.          LockType        =   3
  35.          CommandType     =   8
  36.          CursorOptions   =   0
  37.          CacheSize       =   50
  38.          MaxRecords      =   0
  39.          BOFAction       =   0
  40.          EOFAction       =   0
  41.          ConnectStringType=   1
  42.          Appearance      =   1
  43.          BackColor       =   -2147483643
  44.          ForeColor       =   -2147483640
  45.          Orientation     =   0
  46.          Enabled         =   -1
  47.          Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
  48.          OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
  49.          OLEDBFile       =   ""
  50.          DataSourceName  =   ""
  51.          OtherAttributes =   ""
  52.          UserName        =   ""
  53.          Password        =   ""
  54.          RecordSource    =   ""
  55.          Caption         =   "Adodc1"
  56.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  57.             Name            =   "宋体"
  58.             Size            =   9
  59.             Charset         =   134
  60.             Weight          =   400
  61.             Underline       =   0   'False
  62.             Italic          =   0   'False
  63.             Strikethrough   =   0   'False
  64.          EndProperty
  65.          _Version        =   393216
  66.       End
  67.       Begin VB.CommandButton Command2 
  68.          Caption         =   "返回"
  69.          Height          =   495
  70.          Left            =   3000
  71.          TabIndex        =   31
  72.          Top             =   6000
  73.          Width           =   1455
  74.       End
  75.       Begin VB.CommandButton Command1 
  76.          Caption         =   "添加"
  77.          Height          =   495
  78.          Left            =   840
  79.          TabIndex        =   30
  80.          Top             =   6000
  81.          Width           =   1335
  82.       End
  83.       Begin VB.TextBox Text14 
  84.          Height          =   375
  85.          Left            =   1320
  86.          TabIndex        =   28
  87.          Top             =   5280
  88.          Width           =   2895
  89.       End
  90.       Begin VB.TextBox Text13 
  91.          Height          =   375
  92.          Left            =   1320
  93.          TabIndex        =   27
  94.          Top             =   4680
  95.          Width           =   2175
  96.       End
  97.       Begin VB.TextBox Text12 
  98.          Height          =   375
  99.          Left            =   4680
  100.          TabIndex        =   26
  101.          Top             =   3960
  102.          Width           =   2055
  103.       End
  104.       Begin VB.TextBox Text11 
  105.          Height          =   375
  106.          Left            =   1320
  107.          TabIndex        =   25
  108.          Top             =   3960
  109.          Width           =   2175
  110.       End
  111.       Begin VB.TextBox Text10 
  112.          Height          =   375
  113.          Left            =   4680
  114.          TabIndex        =   24
  115.          Top             =   3240
  116.          Width           =   2055
  117.       End
  118.       Begin VB.TextBox Text9 
  119.          Height          =   375
  120.          Left            =   1320
  121.          TabIndex        =   23
  122.          Top             =   3240
  123.          Width           =   2175
  124.       End
  125.       Begin VB.TextBox Text8 
  126.          Height          =   375
  127.          Left            =   4680
  128.          TabIndex        =   22
  129.          Top             =   2520
  130.          Width           =   2055
  131.       End
  132.       Begin VB.TextBox Text7 
  133.          Height          =   375
  134.          Left            =   1320
  135.          TabIndex        =   21
  136.          Top             =   2520
  137.          Width           =   2175
  138.       End
  139.       Begin VB.TextBox Text6 
  140.          Height          =   375
  141.          Left            =   4680
  142.          TabIndex        =   20
  143.          Top             =   1800
  144.          Width           =   2055
  145.       End
  146.       Begin VB.TextBox Text5 
  147.          Height          =   375
  148.          Left            =   1320
  149.          TabIndex        =   19
  150.          Top             =   1800
  151.          Width           =   2175
  152.       End
  153.       Begin VB.TextBox Text4 
  154.          Height          =   390
  155.          Left            =   4680
  156.          TabIndex        =   18
  157.          Top             =   1080
  158.          Width           =   2055
  159.       End
  160.       Begin VB.TextBox Text3 
  161.          Height          =   375
  162.          Left            =   1320
  163.          TabIndex        =   17
  164.          Top             =   1080
  165.          Width           =   2175
  166.       End
  167.       Begin VB.TextBox Text2 
  168.          Height          =   390
  169.          Left            =   4680
  170.          TabIndex        =   16
  171.          Top             =   360
  172.          Width           =   2055
  173.       End
  174.       Begin VB.TextBox Text1 
  175.          Height          =   375
  176.          Left            =   1320
  177.          TabIndex        =   15
  178.          Top             =   360
  179.          Width           =   2175
  180.       End
  181.       Begin VB.Label Label15 
  182.          Caption         =   "注意格式:年-月-日"
  183.          Height          =   375
  184.          Left            =   4440
  185.          TabIndex        =   29
  186.          Top             =   5280
  187.          Width           =   1935
  188.       End
  189.       Begin VB.Label Label14 
  190.          Caption         =   "添加日期:"
  191.          Height          =   255
  192.          Left            =   120
  193.          TabIndex        =   14
  194.          Top             =   5400
  195.          Width           =   975
  196.       End
  197.       Begin VB.Label Label13 
  198.          Caption         =   "网卡芯片:"
  199.          Height          =   255
  200.          Left            =   120
  201.          TabIndex        =   13
  202.          Top             =   4680
  203.          Width           =   975
  204.       End
  205.       Begin VB.Label Label12 
  206.          Caption         =   "图片芯片:"
  207.          Height          =   375
  208.          Left            =   3720
  209.          TabIndex        =   12
  210.          Top             =   3960
  211.          Width           =   1095
  212.       End
  213.       Begin VB.Label Label11 
  214.          Caption         =   "主板板型:"
  215.          Height          =   375
  216.          Left            =   120
  217.          TabIndex        =   11
  218.          Top             =   4080
  219.          Width           =   1095
  220.       End
  221.       Begin VB.Label Label10 
  222.          Caption         =   "芯片组描:"
  223.          Height          =   375
  224.          Left            =   3720
  225.          TabIndex        =   10
  226.          Top             =   3360
  227.          Width           =   975
  228.       End
  229.       Begin VB.Label Label9 
  230.          Caption         =   "总线频率:"
  231.          Height          =   375
  232.          Left            =   120
  233.          TabIndex        =   9
  234.          Top             =   3360
  235.          Width           =   975
  236.       End
  237.       Begin VB.Label Label8 
  238.          Caption         =   "内存类型:"
  239.          Height          =   255
  240.          Left            =   3720
  241.          TabIndex        =   8
  242.          Top             =   2640
  243.          Width           =   975
  244.       End
  245.       Begin VB.Label Label7 
  246.          Caption         =   "CPU_插槽:"
  247.          Height          =   255
  248.          Left            =   240
  249.          TabIndex        =   7
  250.          Top             =   2640
  251.          Width           =   1095
  252.       End
  253.       Begin VB.Label Label6 
  254.          Caption         =   "集成芯片:"
  255.          Height          =   255
  256.          Left            =   3720
  257.          TabIndex        =   6
  258.          Top             =   1920
  259.          Width           =   975
  260.       End
  261.       Begin VB.Label Label5 
  262.          Caption         =   "主芯片组:"
  263.          Height          =   255
  264.          Left            =   240
  265.          TabIndex        =   5
  266.          Top             =   1920
  267.          Width           =   975
  268.       End
  269.       Begin VB.Label Label4 
  270.          Caption         =   "数量:"
  271.          Height          =   255
  272.          Left            =   4080
  273.          TabIndex        =   4
  274.          Top             =   1200
  275.          Width           =   615
  276.       End
  277.       Begin VB.Label Label3 
  278.          Caption         =   "价格:"
  279.          Height          =   375
  280.          Left            =   600
  281.          TabIndex        =   3
  282.          Top             =   1200
  283.          Width           =   735
  284.       End
  285.       Begin VB.Label Label2 
  286.          Caption         =   "品牌:"
  287.          Height          =   255
  288.          Left            =   4080
  289.          TabIndex        =   2
  290.          Top             =   480
  291.          Width           =   735
  292.       End
  293.       Begin VB.Label Label1 
  294.          Caption         =   "产品名称:"
  295.          Height          =   375
  296.          Left            =   240
  297.          TabIndex        =   1
  298.          Top             =   480
  299.          Width           =   975
  300.       End
  301.    End
  302. End
  303. Attribute VB_Name = "mainboard"
  304. Attribute VB_GlobalNameSpace = False
  305. Attribute VB_Creatable = False
  306. Attribute VB_PredeclaredId = True
  307. Attribute VB_Exposed = False
  308. Private Sub Command1_Click()
  309. Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
  310. 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) <> "" And Trim(Text12.Text) <> "" And Trim(Text13.Text) <> "" And Trim(Text14.Text) <> "" Then
  311.              Adodc1.RecordSource = "select * from mainboard where GoodsName='" & Trim(Text1.Text) & " '"
  312.              Adodc1.Refresh
  313.              If Adodc1.Recordset.EOF Then
  314.                  Adodc1.Recordset.AddNew
  315.                  Adodc1.Recordset.Fields("GoodsName") = Trim(Text1.Text)
  316.                  
  317.                  Adodc1.Recordset.Fields("GoodsBrand") = Trim(Text2.Text)
  318.                  Adodc1.Recordset.Fields("MarketPrice") = Trim(Text3.Text)
  319.                  Adodc1.Recordset.Fields("GoodsUnit") = Trim(Text4.Text)
  320.                  Adodc1.Recordset.Fields("PCIIDE") = Trim(Text5.Text)
  321.                  Adodc1.Recordset.Fields("Asic") = Trim(Text6.Text)
  322.                  Adodc1.Recordset.Fields("Slot") = Trim(Text7.Text)
  323.                  Adodc1.Recordset.Fields("Storagetype") = Trim(Text8.Text)
  324.                  Adodc1.Recordset.Fields("Frequency") = Trim(Text9.Text)
  325.                  Adodc1.Recordset.Fields("Chip") = Trim(Text10.Text)
  326.                  Adodc1.Recordset.Fields("ATX") = Trim(Text11.Text)
  327.                  Adodc1.Recordset.Fields("Picturechip") = Trim(Text12.Text)
  328.                  Adodc1.Recordset.Fields("Cardchip") = Trim(Text13.Text)
  329.                  Adodc1.Recordset.Fields("AddDate") = Trim(Text14.Text)
  330.                  Adodc1.Recordset.Update
  331.                  Adodc1.Refresh
  332.                  MsgBox (" 恭喜您已经添加成功到数据库!")
  333.              End If
  334.               Else
  335.             MsgBox ("请您把信息填完整,信息不能为空!")
  336. End If
  337. End Sub
  338. Private Sub Command2_Click()
  339. xsp.Show
  340. End Sub
  341. Private Sub Form_Load()
  342. Text14.Text = Format(Now, "yyyy-mm-dd ")
  343. End Sub