📄 main_rcyw_kcsxx.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form main_rcyw_kcsxx
Caption = "图书管理-【库存上限下限设置】"
ClientHeight = 3735
ClientLeft = 60
ClientTop = 345
ClientWidth = 7845
LinkTopic = "Form1"
ScaleHeight = 3735
ScaleWidth = 7845
StartUpPosition = 1 '所有者中心
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "main_rcyw_kcsxx.frx":0000
Height = 2940
Left = 45
TabIndex = 5
Top = 750
Width = 7770
_ExtentX = 13705
_ExtentY = 5186
_Version = 393216
HeadLines = 1
RowHeight = 15
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 7
BeginProperty Column00
DataField = "条形码"
Caption = "条形码"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = "书名"
Caption = "书名"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = "作者"
Caption = "作者"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "出版社"
Caption = "出版社"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column04
DataField = "现存数量"
Caption = "现存数量"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column05
DataField = "库存上限"
Caption = "库存上限"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column06
DataField = "库存下限"
Caption = "库存下限"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1184.882
EndProperty
BeginProperty Column01
ColumnWidth = 2294.929
EndProperty
BeginProperty Column02
ColumnWidth = 450.142
EndProperty
BeginProperty Column03
ColumnWidth = 705.26
EndProperty
BeginProperty Column04
ColumnWidth = 794.835
EndProperty
BeginProperty Column05
ColumnWidth = 794.835
EndProperty
BeginProperty Column06
ColumnWidth = 794.835
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 465
Left = -1410
Top = 2760
Visible = 0 'False
Width = 2715
_ExtentX = 4789
_ExtentY = 820
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= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=NBooks"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "NBooks"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from kcb"
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.Frame Frame1
Height = 630
Left = 75
TabIndex = 2
Top = 90
Width = 4635
Begin VB.TextBox Text1
Height = 300
Left = 1665
TabIndex = 4
Top = 210
Width = 2865
End
Begin VB.ComboBox Combo1
Height = 300
Left = 90
TabIndex = 3
Top = 210
Width = 1515
End
End
Begin VB.Frame Frame2
Height = 630
Left = 4680
TabIndex = 0
Top = 90
Width = 3120
Begin VB.CommandButton Command1
Caption = "&E 退出"
Height = 375
Left = 1560
TabIndex = 6
Top = 165
Width = 1380
End
Begin VB.CommandButton CmdFind
Caption = "&F 查询"
Height = 375
Left = 165
TabIndex = 1
Top = 165
Width = 1380
End
End
End
Attribute VB_Name = "main_rcyw_kcsxx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
'添加字段列表
Combo1.AddItem ("书号")
Combo1.AddItem ("条形码")
Combo1.AddItem ("书名")
Combo1.AddItem ("作者")
Combo1.AddItem ("出版社")
Combo1.AddItem ("图书类别")
Combo1.AddItem ("存放位置")
Combo1.ListIndex = 1
'锁定DataGrid1表格的0至5列
Dim a As Integer
For a = 0 To 5
DataGrid1.Columns(a).Locked = True
Next a
CmdFind_Click
End Sub
Private Sub Form_Unload(Cancel As Integer)
frm_main.Enabled = True
End Sub
Private Sub CmdFind_Click()
'按选择的字段和输入的内容模糊查询
Adodc1.RecordSource = "select * from kcb where kcb." & Combo1.text & " " & " like +'" + Text1.text + "'+ '%'order by val(书号)"
Adodc1.Refresh
End Sub
Private Sub Command1_Click()
frm_main.Enabled = True
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -