📄 findkh.frm
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form jg
BorderStyle = 3 'Fixed Dialog
Caption = "查找结果"
ClientHeight = 8685
ClientLeft = 75
ClientTop = 2040
ClientWidth = 15240
Icon = "findkh.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 8685
ScaleWidth = 15240
ShowInTaskbar = 0 'False
Begin VB.TextBox Text11
DataField = "欠款"
DataSource = "Data1"
Height = 270
Left = 3240
TabIndex = 16
Text = "Text11"
Top = 8400
Visible = 0 'False
Width = 615
End
Begin VB.TextBox Text12
DataField = "日期"
DataSource = "Data1"
Height = 270
Left = 3960
TabIndex = 15
Text = "Text12"
Top = 8400
Visible = 0 'False
Width = 735
End
Begin VB.TextBox Text10
DataField = "实收"
DataSource = "Data1"
Height = 270
Left = 2280
TabIndex = 14
Text = "Text10"
Top = 8400
Visible = 0 'False
Width = 855
End
Begin VB.TextBox Text9
DataField = "应收"
DataSource = "Data1"
Height = 270
Left = 1560
TabIndex = 13
Text = "Text9"
Top = 8400
Visible = 0 'False
Width = 615
End
Begin VB.TextBox Text8
DataField = "毛利"
DataSource = "Data1"
Height = 270
Left = 840
TabIndex = 12
Text = "Text8"
Top = 8400
Visible = 0 'False
Width = 615
End
Begin VB.TextBox Text7
DataField = "销售量"
DataSource = "Data1"
Height = 270
Left = 120
TabIndex = 11
Text = "Text7"
Top = 8400
Visible = 0 'False
Width = 615
End
Begin VB.TextBox Text6
DataField = "售价"
DataSource = "Data1"
Height = 270
Left = 3720
TabIndex = 10
Text = "Text6"
Top = 8040
Visible = 0 'False
Width = 615
End
Begin VB.TextBox Text5
DataField = "进价"
DataSource = "Data1"
Height = 270
Left = 3000
TabIndex = 9
Text = "Text5"
Top = 8040
Visible = 0 'False
Width = 615
End
Begin VB.TextBox Text4
DataField = "业务员"
DataSource = "Data1"
Height = 270
Left = 2280
TabIndex = 8
Text = "Text4"
Top = 8040
Visible = 0 'False
Width = 615
End
Begin VB.TextBox Text3
DataField = "商品名称"
DataSource = "Data1"
Height = 270
Left = 1560
TabIndex = 7
Text = "Text3"
Top = 8040
Visible = 0 'False
Width = 615
End
Begin VB.TextBox Text2
DataField = "客户名称"
DataSource = "Data1"
Height = 270
Left = 840
TabIndex = 6
Text = "Text2"
Top = 8040
Visible = 0 'False
Width = 615
End
Begin VB.TextBox Text1
DataField = "编号"
DataSource = "Data1"
Height = 270
Left = 120
TabIndex = 5
Text = "Text1"
Top = 8040
Visible = 0 'False
Width = 615
End
Begin VB.CommandButton Command2
Caption = "打印预览"
Height = 375
Left = 4920
TabIndex = 4
Top = 8040
Width = 2415
End
Begin VB.CommandButton Command1
Caption = "打 印"
Default = -1 'True
Height = 375
Left = 7560
TabIndex = 3
Top = 8040
Width = 2535
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "findkh.frx":0442
Height = 7335
Left = 0
OleObjectBlob = "findkh.frx":0456
TabIndex = 0
Top = 600
Width = 15135
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "C:\Program Files\YWGL\ywy.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 120
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "yw"
Top = 7080
Visible = 0 'False
Width = 1695
End
Begin VB.Line Line1
X1 = 120
X2 = 14760
Y1 = 480
Y2 = 480
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "查 找 结 果"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 285
Index = 1
Left = 6105
TabIndex = 2
Top = 105
Width = 2205
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "查 找 结 果"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0080C0FF&
Height = 285
Index = 0
Left = 6120
TabIndex = 1
Top = 120
Width = 2205
End
End
Attribute VB_Name = "jg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
With Printer
Dim x As Integer
Dim y As Integer
.ScaleMode = 6
.ScaleMode = 6
.FontSize = 15
.CurrentX = 60
.CurrentY = 10
Printer.Print "查 询 结 果"
.CurrentX = 80
.CurrentY = 15
Printer.Print "From:河南金升科技发展有限公司"
.FontSize = 12
.CurrentX = 10
.CurrentY = 20
Printer.Print "________________________________________________________________________"
x = 10
y = 30
.CurrentX = 10
.CurrentY = 30
End With
With jg.Data1.Recordset
While .EOF = False
y = y + 5
Printer.CurrentX = x
Printer.CurrentY = y
Printer.Print "编号:" + RTrim$(jg.Text1.Text) + " " + "客户名称:" + jg.Text2.Text
Printer.CurrentX = 10
y = y + 5
Printer.Print "商品名称:" + RTrim$(jg.Text3.Text) + " " + "业务员:" + jg.Text4.Text + " " + "进价:" + RTrim$(jg.Text5.Text) + " " + "售价:" + RTrim$(jg.Text6.Text) + " " + "销售量:" + RTrim$(jg.Text7.Text) + " " + "毛利:" + RTrim$(jg.Text8.Text)
Printer.CurrentX = 10
y = y + 5
Printer.Print "应收:" + RTrim$(jg.Text9.Text) + " " + "实收:" + RTrim$(jg.Text10.Text) + " " + "欠款:" + RTrim$(jg.Text11.Text) + " " + "日期:" + RTrim$(jg.Text12.Text)
.MoveNext
CurrentX = 8
y = y + 5
Printer.Print "----------------------------------------------------------------------------"
Wend
Printer.CurrentX = 8
Printer.CurrentY = y + 10
Printer.Print "_________________________________________________________________________"
Printer.EndDoc
End With
jg.Data1.Recordset.MoveFirst
End Sub
Private Sub Command2_Click()
dyyl.Show vbModal
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -