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

📄 进出库.frm

📁 采购管理系统 放在D盘运行 无比简单 互弄作业用
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form 进出库 
   Caption         =   "进出库"
   ClientHeight    =   6345
   ClientLeft      =   4245
   ClientTop       =   2730
   ClientWidth     =   7455
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   6345
   ScaleWidth      =   7455
   Begin VB.Data Data2 
      Caption         =   "Data2"
      Connect         =   "Access 2000;"
      DatabaseName    =   "D:\武姜楠\db1.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   645
      Left            =   2040
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "商品基本信息表"
      Top             =   5520
      Width           =   1575
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   615
      Left            =   3840
      Top             =   5520
      Width           =   3375
      _ExtentX        =   5953
      _ExtentY        =   1085
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\武姜楠\db1.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\武姜楠\db1.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "商品基本信息表"
      Caption         =   "下一项"
      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.TextBox Text10 
      DataField       =   "商品产地"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   5280
      TabIndex        =   24
      Top             =   3600
      Width           =   1215
   End
   Begin VB.TextBox Text9 
      DataField       =   "商品数量"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   5280
      TabIndex        =   23
      Top             =   2880
      Width           =   1215
   End
   Begin VB.TextBox Text8 
      DataField       =   "商品类别"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   5280
      TabIndex        =   22
      Top             =   2160
      Width           =   1215
   End
   Begin VB.TextBox Text7 
      DataField       =   "商品名称"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   5280
      TabIndex        =   21
      Top             =   1440
      Width           =   1215
   End
   Begin VB.TextBox Text6 
      DataField       =   "商品编号"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   5280
      TabIndex        =   20
      Top             =   720
      Width           =   1215
   End
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      Height          =   495
      Left            =   6000
      TabIndex        =   14
      Top             =   4680
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "出库"
      Height          =   495
      Left            =   3840
      TabIndex        =   13
      Top             =   4680
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "进库"
      Height          =   495
      Left            =   240
      TabIndex        =   12
      Top             =   4680
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Left            =   2040
      TabIndex        =   6
      Top             =   720
      Width           =   1215
   End
   Begin VB.TextBox Text5 
      Height          =   495
      Left            =   2040
      TabIndex        =   5
      Top             =   3600
      Width           =   1215
   End
   Begin VB.TextBox Text4 
      Height          =   495
      Left            =   2040
      TabIndex        =   4
      Top             =   2880
      Width           =   1215
   End
   Begin VB.TextBox Text3 
      Height          =   495
      Left            =   2040
      TabIndex        =   3
      Top             =   2160
      Width           =   1215
   End
   Begin VB.TextBox Text2 
      Height          =   495
      Left            =   2040
      TabIndex        =   2
      Top             =   1440
      Width           =   1215
   End
   Begin VB.Frame Frame2 
      Caption         =   "出库"
      Height          =   4095
      Left            =   3840
      TabIndex        =   1
      Top             =   240
      Width           =   3375
      Begin VB.Label Label10 
         Caption         =   "商品产地"
         Height          =   495
         Left            =   360
         TabIndex        =   19
         Top             =   3360
         Width           =   855
      End
      Begin VB.Label Label9 
         Caption         =   "商品数量"
         Height          =   495
         Left            =   360
         TabIndex        =   18
         Top             =   2640
         Width           =   975
      End
      Begin VB.Label Label8 
         Caption         =   "商品类别"
         Height          =   495
         Left            =   360
         TabIndex        =   17
         Top             =   1920
         Width           =   975
      End
      Begin VB.Label Label7 
         Caption         =   "商品名称"
         Height          =   495
         Left            =   360
         TabIndex        =   16
         Top             =   1200
         Width           =   975
      End
      Begin VB.Label Label6 
         Caption         =   "商品编号"
         Height          =   375
         Left            =   360
         TabIndex        =   15
         Top             =   600
         Width           =   1095
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "进库"
      Height          =   4095
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   3375
      Begin VB.Label Label5 
         Caption         =   "商品产地"
         Height          =   495
         Left            =   480
         TabIndex        =   11
         Top             =   3360
         Width           =   1095
      End
      Begin VB.Label Label4 
         Caption         =   "商品数量"
         Height          =   495
         Left            =   480
         TabIndex        =   10
         Top             =   2640
         Width           =   975
      End
      Begin VB.Label Label3 
         Caption         =   "商品类别"
         Height          =   495
         Left            =   480
         TabIndex        =   9
         Top             =   1920
         Width           =   975
      End
      Begin VB.Label Label2 
         Caption         =   "商品名称"
         Height          =   495
         Left            =   480
         TabIndex        =   8
         Top             =   1200
         Width           =   1095
      End
      Begin VB.Label Label1 
         Caption         =   "商品编号"
         Height          =   495
         Left            =   480
         TabIndex        =   7
         Top             =   480
         Width           =   1095
      End
   End
End
Attribute VB_Name = "进出库"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1 = "" Or Text2 = "" Or Text3 = "" Or Text4 = "" Or Text5 = "" Then
MsgBox "请输入完整数据!", 48
Text1.SetFocus
Exit Sub
End If
With Data2
.Recordset.AddNew
.Recordset("商品编号") = Text1
.Recordset("商品名称") = Text2
.Recordset("商品类别") = Text3
.Recordset("商品数量") = Text4
.Recordset("商品产地") = Text5
.Recordset.Update
End With
Text1 = "": Text2 = "": Text3 = "": Text4 = "": Text5 = "": Text1.SetFocus
End Sub

Private Sub Command2_Click()
  a = MsgBox("当前商品将出库,确定吗?", 4 + 48, "警告")
  If a = vbNo Then Exit Sub
  Data2.Recordset.Delete
  Data2.Refresh
  Text6.Text = ""
  Text7.Text = ""
  Text8.Text = ""
  Text9.Text = ""
  Text10.Text = ""
  Call initialization
End Sub

Private Sub Command3_Click()
主界面.Show
Unload Me
End Sub
Sub initialization()
  Data2.Recordset.MoveFirst
  Do While Data2.Recordset.EOF = False
    Text6.Text = Data2.Recordset("商品编号")
    Text7.Text = Data2.Recordset("商品名称")
    Text8.Text = Data2.Recordset("商品类别")
    Text9.Text = Data2.Recordset("商品数量")
    Text10.Text = Data2.Recordset("商品产地")
    Data2.Recordset.MoveNext
  Loop
  reccount = Data2.Recordset.RecordCount
  Data2.Recordset.MoveFirst
  Text6.Text = Data2.Recordset("商品编号")
  Text7.Text = Data2.Recordset("商品名称")
  Text8.Text = Data2.Recordset("商品类别")
  Text9.Text = Data2.Recordset("商品数量")
  Text10.Text = Data2.Recordset("商品产地")
  Call refurbish
End Sub
Sub refurbish()
  Text6.Text = Data2.Recordset("商品编号")
  Text7.Text = Data2.Recordset("商品名称")
  Text8.Text = Data2.Recordset("商品类别")
  Text9.Text = Data2.Recordset("商品数量")
  Text10.Text = Data2.Recordset("商品产地")
End Sub

⌨️ 快捷键说明

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