📄 历史租借查询.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 历史租借查询
Caption = "历史租借查询"
ClientHeight = 4155
ClientLeft = 4560
ClientTop = 4485
ClientWidth = 7335
LinkTopic = "Form9"
ScaleHeight = 4155
ScaleWidth = 7335
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 2760
Top = 3600
Width = 1695
_ExtentX = 2990
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=project"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=project"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "Execute Borrow_history"
Caption = "adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "历史租借查询.frx":0000
Height = 2055
Left = 120
TabIndex = 8
Top = 1920
Width = 7095
_ExtentX = 12515
_ExtentY = 3625
_Version = 393216
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
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
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin VB.Frame 查询时段
Caption = "查询时段"
Height = 1575
Left = 120
TabIndex = 0
Top = 120
Width = 7095
Begin VB.CommandButton Com_exit
Caption = "退出"
Height = 375
Left = 5640
TabIndex = 10
Top = 840
Width = 855
End
Begin VB.CommandButton Com_select
Caption = "搜索"
Height = 375
Left = 5640
TabIndex = 9
Top = 360
Width = 855
End
Begin VB.TextBox Tdate_end
Height = 285
Left = 3720
TabIndex = 7
Top = 840
Width = 1215
End
Begin VB.TextBox Tdate_start
Height = 285
Left = 3720
TabIndex = 5
Top = 480
Width = 1215
End
Begin VB.OptionButton OptionSome
Caption = "部分"
Height = 375
Left = 1200
TabIndex = 3
Top = 720
Width = 735
End
Begin VB.OptionButton OptionAll
Caption = "全部"
Height = 375
Left = 1200
TabIndex = 2
Top = 360
Width = 975
End
Begin VB.Label Ldate_end
Caption = "结束日期:"
Height = 375
Left = 2640
TabIndex = 6
Top = 840
Width = 1215
End
Begin VB.Label Ldate_start
Caption = "开始日期:"
Height = 375
Left = 2640
TabIndex = 4
Top = 480
Width = 1215
End
Begin VB.Label 时段选择
Caption = "时段选择:"
Height = 375
Left = 240
TabIndex = 1
Top = 360
Width = 1095
End
End
End
Attribute VB_Name = "历史租借查询"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private cnRecordSet As ADODB.Recordset
Private Sub Com_exit_Click()
Unload 历史租借查询
End Sub
Private Sub Com_select_Click()
Dim sql As String
If OptionAll.Value = True Then
Tdate_start.Enabled = False
Tdate_end.Enabled = False
End If
If OptionSome.Value = True Then
sql = "select Bar_code, CD_b_num, CD_name, AdminID, convert(char(10),Borrow_date,120),convert(char(10), MustReturn_date,120), Foregift from Borrow_Info where Borrow_date >= '" + Tdate_start.Text + "' and Borrow_date <='" + Tdate_end.Text + "'"
Adodc1.RecordSource = sql
Adodc1.Refresh
If Adodc1.Recordset.EOF = True Then
MsgBox "次段时间内没有租借纪录!", vbOKOnly + vbExclamation, "sorry"
Else
MsgBox "搜索成功!", vbOKOnly + vbExclamation, "ok"
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -