📄 初始化.frm
字号:
VERSION 5.00
Begin VB.Form form_chushi
BorderStyle = 1 'Fixed Single
Caption = "初始化设置"
ClientHeight = 8775
ClientLeft = 165
ClientTop = 555
ClientWidth = 7815
FillStyle = 0 'Solid
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
Moveable = 0 'False
ScaleHeight = 8775
ScaleWidth = 7815
Begin VB.CommandButton back
Caption = "返回"
Height = 615
Left = 4800
TabIndex = 20
Top = 4560
Width = 1695
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 15
Left = 1560
TabIndex = 17
Top = 2760
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 14
Left = 1920
TabIndex = 16
Top = 2760
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 13
Left = 2280
TabIndex = 15
Top = 2760
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 12
Left = 2880
TabIndex = 14
Top = 2760
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 11
Left = 3240
TabIndex = 13
Top = 2760
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 10
Left = 1680
TabIndex = 12
Top = 3120
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 9
Left = 2040
TabIndex = 11
Top = 3120
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 8
Left = 2400
TabIndex = 10
Top = 3120
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 7
Left = 2880
TabIndex = 9
Top = 3120
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 6
Left = 3240
TabIndex = 8
Top = 3120
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 5
Left = 1680
TabIndex = 7
Top = 3360
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 4
Left = 2040
TabIndex = 6
Top = 3360
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 3
Left = 2400
TabIndex = 5
Top = 3360
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 2
Left = 2880
TabIndex = 4
Top = 3360
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 1
Left = 3240
TabIndex = 3
Top = 3360
Width = 255
End
Begin VB.Frame Frame1
Caption = "手动输入"
Height = 7695
Left = -360
TabIndex = 0
Top = -120
Width = 8655
Begin VB.Frame Frame2
Caption = "A货架"
Height = 3495
Left = 2400
TabIndex = 1
Top = 960
Width = 5535
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 20
Left = 480
TabIndex = 25
Top = 1200
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 19
Left = 840
TabIndex = 24
Top = 1200
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 18
Left = 1320
TabIndex = 23
Top = 1200
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 17
Left = 1800
TabIndex = 22
Top = 1200
Width = 255
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 16
Left = 2160
TabIndex = 21
Top = 1200
Width = 255
End
Begin VB.CommandButton a_set
Caption = "全放置"
Height = 375
Left = 4080
TabIndex = 19
Top = 2520
Width = 1000
End
Begin VB.CommandButton a_cls
Caption = "全清除"
Height = 375
Left = 4320
TabIndex = 18
Top = 960
Width = 1000
End
Begin VB.CheckBox Check2
Caption = "Check2"
Height = 255
Index = 0
Left = 3120
TabIndex = 2
Top = 2640
Width = 255
End
Begin VB.Label Label1
Caption = "4"
Height = 255
Index = 9
Left = 120
TabIndex = 35
Top = 1080
Width = 255
End
Begin VB.Label Label1
Caption = "3"
Height = 255
Index = 8
Left = 120
TabIndex = 34
Top = 1560
Width = 255
End
Begin VB.Label Label1
Caption = "2"
Height = 255
Index = 7
Left = 120
TabIndex = 33
Top = 2040
Width = 255
End
Begin VB.Label Label1
Caption = "1"
Height = 255
Index = 6
Left = 120
TabIndex = 32
Top = 2400
Width = 255
End
Begin VB.Label Label1
Caption = "5"
Height = 255
Index = 5
Left = 600
TabIndex = 31
Top = 2760
Width = 255
End
Begin VB.Label Label1
Caption = "4"
Height = 255
Index = 4
Left = 960
TabIndex = 30
Top = 2880
Width = 255
End
Begin VB.Label Label1
Caption = "3"
Height = 255
Index = 3
Left = 1320
TabIndex = 29
Top = 2880
Width = 255
End
Begin VB.Label Label1
Caption = "2"
Height = 255
Index = 2
Left = 1800
TabIndex = 28
Top = 2880
Width = 255
End
Begin VB.Label Label1
Caption = "1"
Height = 255
Index = 1
Left = 2160
TabIndex = 27
Top = 2880
Width = 255
End
Begin VB.Label Label1
Caption = "0"
Height = 255
Index = 0
Left = 3120
TabIndex = 26
Top = 3000
Width = 255
End
End
End
End
Attribute VB_Name = "form_chushi"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub a_cls_Click()
Dim i As Integer
For i = 0 To 24
Check2(i).Value = 0
Next i
End Sub
Private Sub a_set_Click()
Dim i As Integer
For i = 0 To 24
Check2(i).Value = 1
Next i
End Sub
Private Sub back_Click() '返回,调用一次显示 DISPLAY
Dim i As Integer
Dim j As String
For i = 0 To 20
Form_main.Adodc1.RecordSource = "select * from 库存 where 位置=" & i
j = Form_main.Adodc1.Recordset.Fields("状态")
Form_main.Adodc1.Refresh
If Check2(i).Value = 1 Then
Form_main.Adodc1.Recordset.Fields("状态") = "有托盘"
Else
Form_main.Adodc1.Recordset.Fields("状态") = "无托盘"
End If
Form_main.Adodc1.Recordset.Update
Next i
Form_main.Show
Call display
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -