📄 form11.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form11
Caption = "库存记录"
ClientHeight = 5520
ClientLeft = 60
ClientTop = 345
ClientWidth = 5835
LinkTopic = "Form15"
ScaleHeight = 5520
ScaleWidth = 5835
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 3960
Top = 2520
Width = 1335
_ExtentX = 2355
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=111;Initial Catalog=D:\my\form\111"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=111;Initial Catalog=D:\my\form\111"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 库存记录"
Caption = "Adodc1"
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.CommandButton Command3
Caption = "有库存的商品"
Height = 495
Left = 3720
TabIndex = 15
Top = 1560
Width = 1815
End
Begin VB.CommandButton Command2
Caption = "紧缺商品"
Height = 495
Left = 3720
TabIndex = 14
Top = 480
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "退出"
Height = 495
Left = 3960
TabIndex = 13
Top = 3480
Width = 1575
End
Begin VB.Frame Frame1
Caption = "库存信息"
Height = 3975
Left = 240
TabIndex = 0
Top = 480
Width = 3135
Begin VB.TextBox Text6
DataField = "规格"
DataSource = "Adodc1"
Height = 495
Left = 1080
TabIndex = 12
Text = "Text6"
Top = 2880
Width = 1815
End
Begin VB.TextBox Text5
DataField = "单价"
DataSource = "Adodc1"
Height = 375
Left = 1080
TabIndex = 11
Text = "Text5"
Top = 2400
Width = 1695
End
Begin VB.TextBox Text4
DataField = "剩余库存"
DataSource = "Adodc1"
Height = 375
Left = 1080
TabIndex = 10
Text = "Text4"
Top = 1920
Width = 1575
End
Begin VB.TextBox Text3
DataField = "已订购数量"
DataSource = "Adodc1"
Height = 375
Left = 1080
TabIndex = 9
Text = "Text3"
Top = 1440
Width = 1575
End
Begin VB.TextBox Text2
DataField = "货品名称"
DataSource = "Adodc1"
Height = 375
Left = 1080
TabIndex = 8
Text = "Text2"
Top = 840
Width = 1455
End
Begin VB.TextBox Text1
DataField = "序号"
DataSource = "Adodc1"
Height = 375
Left = 1080
TabIndex = 7
Text = "Text1"
Top = 240
Width = 1455
End
Begin VB.Label Label6
Caption = "规格"
Height = 255
Left = 120
TabIndex = 6
Top = 3000
Width = 975
End
Begin VB.Label Label5
Caption = "单价"
Height = 375
Left = 120
TabIndex = 5
Top = 2400
Width = 975
End
Begin VB.Label Label4
Caption = "剩余库存"
Height = 375
Left = 120
TabIndex = 4
Top = 1920
Width = 1095
End
Begin VB.Label Label3
Caption = "已定购数量"
Height = 375
Left = 120
TabIndex = 3
Top = 1440
Width = 975
End
Begin VB.Label Label2
Caption = "商品名称"
Height = 255
Left = 120
TabIndex = 2
Top = 840
Width = 855
End
Begin VB.Label Label1
Caption = "商品编号"
Height = 375
Left = 120
TabIndex = 1
Top = 360
Width = 975
End
End
End
Attribute VB_Name = "Form11"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form3.Show
Me.Hide
End Sub
Private Sub Command2_Click()
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 库存记录 where 剩余库存 = '0' "
Adodc1.Refresh
End Sub
Private Sub Command3_Click()
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 库存记录 where 剩余库存 > '0' "
Adodc1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -