📄 frm_dfcx.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frm_dfcx
Caption = "电费查询管理器"
ClientHeight = 4275
ClientLeft = 60
ClientTop = 345
ClientWidth = 7155
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 4275
ScaleWidth = 7155
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 495
Left = 2265
Top = 4560
Width = 2040
_ExtentX = 3598
_ExtentY = 873
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=Microsoft.Jet.OLEDB.4.0;Data Source=db_wygl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db_wygl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from tab_dianmoney"
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 Frame3
Caption = "电费信息列表"
Height = 2820
Left = 75
TabIndex = 13
Top = 1350
Width = 6990
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "frm_dfcx.frx":0000
Height = 2445
Left = 150
TabIndex = 14
Top = 240
Width = 6690
_ExtentX = 11800
_ExtentY = 4313
_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 = 10
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
BeginProperty Column07
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 Column08
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 Column09
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 = 854.929
EndProperty
BeginProperty Column01
ColumnWidth = 854.929
EndProperty
BeginProperty Column02
ColumnWidth = 1214.929
EndProperty
BeginProperty Column03
ColumnWidth = 1170.142
EndProperty
BeginProperty Column04
ColumnWidth = 824.882
EndProperty
BeginProperty Column05
ColumnWidth = 854.929
EndProperty
BeginProperty Column06
ColumnWidth = 675.213
EndProperty
BeginProperty Column07
ColumnWidth = 900.284
EndProperty
BeginProperty Column08
ColumnWidth = 884.976
EndProperty
BeginProperty Column09
ColumnWidth = 1440
EndProperty
EndProperty
End
End
Begin VB.Frame Frame1
Height = 1215
Left = 90
TabIndex = 0
Top = 60
Width = 6990
Begin VB.Frame Frame2
Height = 990
Left = 5910
TabIndex = 8
Top = 105
Width = 945
Begin VB.CommandButton Command2
Caption = "退出"
Height = 345
Left = 90
TabIndex = 10
Top = 555
Width = 735
End
Begin VB.CommandButton Command1
Caption = "查询"
Height = 360
Left = 105
TabIndex = 9
Top = 165
Width = 750
End
End
Begin VB.TextBox Text1
Height = 300
Left = 4500
TabIndex = 7
Top = 210
Width = 1275
End
Begin VB.ComboBox Combo2
Height = 300
ItemData = "frm_dfcx.frx":0015
Left = 3210
List = "frm_dfcx.frx":0025
Style = 2 'Dropdown List
TabIndex = 6
Top = 210
Width = 1290
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "frm_dfcx.frx":0038
Left = 1695
List = "frm_dfcx.frx":0042
Style = 2 'Dropdown List
TabIndex = 5
Top = 210
Width = 1545
End
Begin VB.OptionButton Option2
Caption = "按计费日期查询"
Height = 330
Left = 105
TabIndex = 4
Top = 720
Width = 1575
End
Begin VB.OptionButton Option1
Caption = "请选择查询条件"
Height = 375
Left = 90
TabIndex = 3
Top = 165
Width = 1665
End
Begin MSComCtl2.DTPicker DTPicker2
Height = 345
Left = 4530
TabIndex = 1
Top = 660
Width = 1275
_ExtentX = 2249
_ExtentY = 609
_Version = 393216
Format = 49676289
CurrentDate = 38211
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 360
Left = 2430
TabIndex = 2
Top = 660
Width = 1290
_ExtentX = 2275
_ExtentY = 635
_Version = 393216
Format = 49676289
CurrentDate = 38211
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "结束日期"
Height = 180
Left = 3750
TabIndex = 12
Top = 765
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "起始日期"
Height = 180
Left = 1710
TabIndex = 11
Top = 780
Width = 720
End
End
End
Attribute VB_Name = "frm_dfcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Option1_Click()
Combo1.Enabled = True
Combo2.Enabled = True
Text1.Enabled = True
DTPicker1.Enabled = False
DTPicker2.Enabled = False
End Sub
Private Sub Option2_Click()
DTPicker1.Enabled = True
DTPicker2.Enabled = True
Combo1.Enabled = False
Combo2.Enabled = False
Text1.Enabled = False
End Sub
Private Sub Command1_Click()
If Combo1.Enabled = True Then
If Combo2.Text = "like" Then
Adodc1.RecordSource = "select * from tab_dianmoney where " & Combo1.Text & " " & Combo2.Text & " '%" & Text1.Text & "%'"
Adodc1.Refresh
Else
Adodc1.RecordSource = "select * from tab_dianmoney where " & Combo1.Text & " " & Combo2.Text & " '" & Text1.Text & "'"
Adodc1.Refresh
End If
Else
Adodc1.RecordSource = "select * from tab_dianmoney where 计费起始日期='" + Str(DTPicker1.Value) + "'and 计费终止日期='" + Str(DTPicker2.Value) + "'"
Adodc1.Refresh
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -