📄 storein.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form storein
BackColor = &H00E0E0E0&
Caption = " 进库"
ClientHeight = 8595
ClientLeft = 60
ClientTop = 345
ClientWidth = 11400
Icon = "storein.frx":0000
LinkTopic = "Form1"
MDIChild = -1 'True
Picture = "storein.frx":08CA
ScaleHeight = 8595
ScaleWidth = 11400
WindowState = 2 'Maximized
Begin VB.CommandButton Command3
Caption = "刷新"
Height = 375
Left = 8880
TabIndex = 18
Top = 4800
Width = 1095
End
Begin MSAdodcLib.Adodc Adodc1
Height = 615
Left = 4320
Top = 3360
Visible = 0 'False
Width = 1935
_ExtentX = 3413
_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 = $"storein.frx":3187F
OLEDBString = $"storein.frx":3193D
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "InOutinfo"
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 MSFlexGridLib.MSFlexGrid MSFlexGrid1
Bindings = "storein.frx":319FB
Height = 3375
Left = 600
TabIndex = 17
Top = 5640
Width = 10335
_ExtentX = 18230
_ExtentY = 5953
_Version = 393216
End
Begin VB.TextBox Text5
DataField = "日期"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Left = 8400
TabIndex = 16
Top = 2040
Width = 1215
End
Begin VB.TextBox Text4
DataField = "备注"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Left = 8400
TabIndex = 15
Top = 3720
Width = 2535
End
Begin VB.ComboBox Combo2
DataField = "进出库"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 300
ItemData = "storein.frx":31A0F
Left = 1800
List = "storein.frx":31A19
TabIndex = 13
Text = "出库"
Top = 3840
Width = 1695
End
Begin VB.TextBox Text1
DataField = "编号"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Left = 1800
TabIndex = 12
Top = 1200
Width = 1455
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "C:\Documents and Settings\Administrator\桌面\11050302超市管理系统(033069,033068, 033067)\源代码\supermarket1.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 495
Left = 4320
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "InOutinfo"
Top = 2160
Visible = 0 'False
Width = 2175
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 375
Left = 1560
TabIndex = 10
Top = 4800
Width = 975
End
Begin VB.TextBox Text3
DataField = "经手人"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Left = 8400
TabIndex = 9
Top = 2880
Width = 1215
End
Begin VB.TextBox Text2
DataField = "数量"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Left = 1800
TabIndex = 7
Top = 3000
Width = 1575
End
Begin VB.ComboBox Combo1
DataField = "发货地"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 300
ItemData = "storein.frx":31A29
Left = 1800
List = "storein.frx":31A48
TabIndex = 5
Text = "请选择发货地"
Top = 2160
Width = 1575
End
Begin VB.TextBox Text6
DataField = "货单号"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 375
Left = 8400
TabIndex = 4
Top = 1200
Width = 1215
End
Begin VB.Label Label11
BackStyle = 0 'Transparent
Caption = "进出库"
Height = 375
Left = 720
TabIndex = 14
Top = 3840
Width = 735
End
Begin VB.Label Label10
BackStyle = 0 'Transparent
Caption = "编号"
Height = 375
Left = 720
TabIndex = 11
Top = 1320
Width = 735
End
Begin VB.Label Label9
BackStyle = 0 'Transparent
Caption = "经手人"
Height = 375
Left = 7320
TabIndex = 8
Top = 2880
Width = 735
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "日期/年-月-日"
Height = 375
Left = 6960
TabIndex = 6
Top = 2040
Width = 1215
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "备注"
Height = 375
Left = 7320
TabIndex = 3
Top = 3720
Width = 735
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "数量"
Height = 375
Left = 720
TabIndex = 2
Top = 3000
Width = 735
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "发货地"
Height = 375
Left = 720
TabIndex = 1
Top = 2280
Width = 735
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "货单号"
Height = 375
Left = 7320
TabIndex = 0
Top = 1200
Width = 735
End
End
Attribute VB_Name = "storein"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs_checkname As New ADODB.Recordset
Dim rs_custom As New ADODB.Recordset
Const row_num = 10
Const col_num = 6
Private Sub Command1_Click()
If Trim(Text1.Text) = "" Then
MsgBox "编号不能为空!", vbOKOnly + vbExclamation, ""
Text1.SetFocus
Exit Sub
End If
If Trim(Text6.Text) = "" Then
MsgBox "货单不能为空!", vbOKOnly + vbExclamation, ""
Text6.SetFocus
Exit Sub
End If
If Combo1.Text = "" Then
MsgBox "请选择发货地! ", vbOKOnly + vbExclamation, ""
Combo1.SetFocus
Exit Sub
End If
If Command1.Caption = "添加" Then
Command1.Caption = "确认"
Command3.Enabled = False
Adodc1.Recordset.AddNew
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
Text6.Enabled = True
Combo1.Enabled = True
Combo2.Enabled = True
Text1.SetFocus
Else
Command1.Caption = "添加"
Adodc1.Recordset.Update
Adodc1.Recordset.MoveLast
Text1.Enabled = False
Text2.Enabled = False
Text3.Enabled = False
Text4.Enabled = False
Text5.Enabled = False
Text6.Enabled = False
Combo1.Enabled = False
Combo2.Enabled = False
Command3.Enabled = True
End If
End Sub
Private Sub Command3_Click()
Data1.RecordSource = "select * from InOutinfo"
Data1.Refresh
Adodc1.Refresh
End Sub
Private Sub Form_Activate()
Data1.RecordSource = "select * from InOutinfo"
Data1.Refresh
Adodc1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -