📄 frm_cnfcx.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_cnfcx
Caption = "采暖费管理器"
ClientHeight = 4200
ClientLeft = 60
ClientTop = 345
ClientWidth = 7065
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 4200
ScaleWidth = 7065
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 2340
Top = 4230
Width = 1905
_ExtentX = 3360
_ExtentY = 582
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_cnmoney"
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 = 30
TabIndex = 13
Top = 1290
Width = 6990
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "Frm_cnfcx.frx":0000
Height = 2325
Left = 165
TabIndex = 14
Top = 300
Width = 6615
_ExtentX = 11668
_ExtentY = 4101
_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 = 8
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
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 794.835
EndProperty
BeginProperty Column01
ColumnWidth = 840.189
EndProperty
BeginProperty Column02
ColumnWidth = 1214.929
EndProperty
BeginProperty Column03
ColumnWidth = 1200.189
EndProperty
BeginProperty Column04
ColumnWidth = 884.976
EndProperty
BeginProperty Column05
ColumnWidth = 824.882
EndProperty
BeginProperty Column06
ColumnWidth = 840.189
EndProperty
BeginProperty Column07
ColumnWidth = 945.071
EndProperty
EndProperty
End
End
Begin VB.Frame Frame1
Height = 1215
Left = 0
TabIndex = 0
Top = 0
Width = 6990
Begin VB.Frame Frame2
Height = 990
Left = 5865
TabIndex = 8
Top = 120
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 = 90
TabIndex = 9
Top = 165
Width = 750
End
End
Begin VB.TextBox Text1
Height = 300
Left = 4515
TabIndex = 7
Top = 210
Width = 1200
End
Begin VB.ComboBox Combo2
Height = 300
ItemData = "Frm_cnfcx.frx":0015
Left = 3225
List = "Frm_cnfcx.frx":0025
Style = 2 'Dropdown List
TabIndex = 6
Top = 210
Width = 1290
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "Frm_cnfcx.frx":0038
Left = 1695
List = "Frm_cnfcx.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 = 1215
_ExtentX = 2143
_ExtentY = 609
_Version = 393216
Format = 204013569
CurrentDate = 38211
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 360
Left = 2430
TabIndex = 2
Top = 720
Width = 1290
_ExtentX = 2275
_ExtentY = 635
_Version = 393216
Format = 204013569
CurrentDate = 38211
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "结束日期"
Height = 180
Left = 3735
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_cnfcx"
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_cnmoney where " & Combo1.Text & " " & Combo2.Text & " '%" & Text1.Text & "%'"
Adodc1.Refresh
Else
Adodc1.RecordSource = "select * from tab_cnmoney where " & Combo1.Text & " " & Combo2.Text & " '" & Text1.Text & "'"
Adodc1.Refresh
End If
Else
Adodc1.RecordSource = "select * from tab_cnmoney 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 + -