📄 printcblist.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form PrintCbList
AutoRedraw = -1 'True
BorderStyle = 3 'Fixed Dialog
Caption = "打印抄表清单"
ClientHeight = 6390
ClientLeft = 630
ClientTop = 1980
ClientWidth = 11565
Icon = "PrintCbList.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6390
ScaleWidth = 11565
ShowInTaskbar = 0 'False
Begin MSComctlLib.Toolbar Toolbar2
Height = 570
Left = 10125
TabIndex = 7
Top = 5280
Width = 1260
_ExtentX = 2223
_ExtentY = 1005
ButtonWidth = 1984
ButtonHeight = 1005
Style = 1
TextAlignment = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 1
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "退出"
ImageIndex = 2
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Height = 570
Left = 10125
TabIndex = 6
Top = 3930
Width = 1245
_ExtentX = 2196
_ExtentY = 1005
ButtonWidth = 1984
ButtonHeight = 1005
Style = 1
TextAlignment = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 1
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "打印"
ImageIndex = 3
EndProperty
EndProperty
End
Begin VB.Frame Frame2
Height = 3495
Left = 9750
TabIndex = 1
Top = -15
Width = 1770
Begin VB.CheckBox Check1
Caption = "表格输出"
Height = 300
Left = 225
TabIndex = 8
Top = 2520
Width = 1395
End
Begin VB.TextBox Text2
Height = 300
Left = 210
MaxLength = 4
TabIndex = 5
Top = 1560
Width = 1425
End
Begin VB.TextBox Text1
Height = 300
Left = 150
MaxLength = 4
TabIndex = 3
Top = 660
Width = 1440
End
Begin VB.Label Label2
Caption = "结束代码:"
Height = 210
Left = 165
TabIndex = 4
Top = 1215
Width = 975
End
Begin VB.Label Label1
Caption = "起始代码:"
Height = 210
Left = 150
TabIndex = 2
Top = 360
Width = 975
End
End
Begin VB.Frame Frame1
Height = 6375
Left = 60
TabIndex = 0
Top = -30
Width = 9630
Begin MSComctlLib.ListView ListView1
Height = 6090
Left = 75
TabIndex = 9
Top = 195
Width = 9480
_ExtentX = 16722
_ExtentY = 10742
View = 3
LabelEdit = 1
LabelWrap = -1 'True
HideSelection = 0 'False
FullRowSelect = -1 'True
GridLines = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
NumItems = 11
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "编码"
Object.Width = 1340
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "用户名称"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 2
Text = "上期示数"
Object.Width = 1942
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 3
Text = "本期示数"
Object.Width = 1942
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 1
SubItemIndex = 4
Text = "加减电量"
Object.Width = 1765
EndProperty
BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 1
SubItemIndex = 5
Text = "本次电量"
Object.Width = 1764
EndProperty
BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 1
SubItemIndex = 6
Text = "合计电量"
Object.Width = 1764
EndProperty
BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 1
SubItemIndex = 7
Text = "电价"
Object.Width = 1413
EndProperty
BeginProperty ColumnHeader(9) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 1
SubItemIndex = 8
Text = "本期余额"
Object.Width = 1765
EndProperty
BeginProperty ColumnHeader(10) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 1
SubItemIndex = 9
Text = "本次电费"
Object.Width = 1940
EndProperty
BeginProperty ColumnHeader(11) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 1
SubItemIndex = 10
Text = "合计电费"
Object.Width = 1940
EndProperty
End
Begin MSComctlLib.ImageList ImageList1
Left = 8970
Top = 4320
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 3
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "PrintCbList.frx":030A
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "PrintCbList.frx":0BE6
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "PrintCbList.frx":0F02
Key = ""
EndProperty
EndProperty
End
End
End
Attribute VB_Name = "PrintCbList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 1 - 850
Screen.MousePointer = 11
OpenMdb
Set MdbR = NdMd.OpenRecordset("SELECT 用户电费.表损,用户电费.用户类型,用户电费.多价表,用户电费.用户编码,用户电费.用户名称,用户电费.[" & AAA & "] AS 上期示数, 用户电费.[" & AA & "] AS 本期示数, 用户电费.倍率,用户电费.[" & BB & "] AS 调整电量,用户电费.[" & CC & "] AS 本次电量, 用户电费.[" & DD & "] AS 合计电量,用户电费.电价,用户电费.[" & EE & "] AS 调整金额, 用户电费.[" & FF & "] AS 滞纳金, 用户电费.[" & GG & "] AS 本次电费, 用户电费.[" & HH & "] AS 合计电费,用户电费.台区,用户电费.组合编码,用户电费.辅助号 From 用户电费 WHERE 用户电费.镇村代码='" & UserSeek & "' order by 用户电费.组合编码 asc")
If MdbR.RecordCount = 0 Then
MsgBox XzName & XcName & "未建立用户档案!", vbCritical
Exit Sub
Else
MdbR.MoveLast
MdbR.MoveFirst
End If
Dim itm1 As ListItem
Dim intRecCount, intCounter As Integer
ListView1.SortKey = 0
ListView1.SortOrder = lvwAscending
ListView1.View = lvwReport
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -