📄 查看销售信息.frm
字号:
Width = 810
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "销售流水号:"
Height = 180
Left = 120
TabIndex = 8
Top = 1440
Width = 990
End
End
Begin VB.Frame Frame2
Caption = "查找记录"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 975
Left = 120
TabIndex = 3
Top = 3240
Width = 7695
Begin VB.CommandButton 取消查找
Caption = "取消"
Height = 375
Left = 6360
TabIndex = 6
Top = 308
Width = 1215
End
Begin VB.CommandButton 查找确定
Caption = "确定"
Height = 375
Left = 4680
TabIndex = 5
Top = 308
Width = 1215
End
Begin VB.TextBox Tbianhao
Appearance = 0 'Flat
Height = 270
Left = 2520
TabIndex = 0
Top = 360
Width = 1935
End
Begin VB.Image Image1
Height = 495
Left = 240
Picture = "查看销售信息.frx":058A
Stretch = -1 'True
Top = 360
Width = 615
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请输入图书编号:"
Height = 180
Left = 1080
TabIndex = 4
Top = 405
Width = 1350
End
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "查看销售信息.frx":151B
Height = 2895
Left = 120
TabIndex = 2
Top = 240
Width = 9735
_ExtentX = 17171
_ExtentY = 5106
_Version = 393216
AllowUpdate = 0 'False
HeadLines = 1
RowHeight = 15
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
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
Caption = " 销 售 表 概 况"
ColumnCount = 8
BeginProperty Column00
DataField = "sell_id"
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 = "sell_book_id"
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 = "sell_book_num"
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 = "sell_book_rebate"
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 = "sell_book_price"
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 = "sell_buyer_id"
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 = "sell_date"
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 = "sell_emp_id"
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
ColumnWidth = 1005.165
EndProperty
BeginProperty Column02
ColumnWidth = 1049.953
EndProperty
BeginProperty Column03
ColumnWidth = 1005.165
EndProperty
BeginProperty Column04
ColumnWidth = 1080
EndProperty
BeginProperty Column05
ColumnWidth = 975.118
EndProperty
BeginProperty Column06
ColumnWidth = 1454.74
EndProperty
BeginProperty Column07
EndProperty
EndProperty
End
End
End
Attribute VB_Name = "frmFindXiaoShou"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub a_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
If a.Recordset.RecordCount = 0 Then
第0条 = "无记录"
共0条.Visible = False
Else
共0条.Visible = True
第0条 = "第" & a.Recordset.AbsolutePosition & "条"
共0条 = "共" & a.Recordset.RecordCount & "条"
End If
End Sub
Private Sub Command1_Click()
End Sub
Private Sub Form_Load()
frmFindXiaoShou.Left = 1000
frmFindXiaoShou.Top = 66
frmFindXiaoShou.Height = 6600
frmFindXiaoShou.Width = 10125
End Sub
Private Sub 查找确定_Click()
If Tbianhao = "" Then
MsgBox "请输入条件", vbInformation, "出错提示"
Exit Sub
End If
If IsNumeric(Tbianhao) = False Then
MsgBox "请输入数字", vbInformation, "出错提示"
Exit Sub
Else
a.RecordSource = "select * from xiaoshou where sell_book_id=" & Tbianhao
End If
a.Refresh
End Sub
Private Sub 第一条_Click()
If a.Recordset.RecordCount = 0 Then Exit Sub
a.Recordset.MoveFirst
End Sub
Private Sub 取消查找_Click()
a.RecordSource = "select * from xiaoshou"
a.Refresh
Tbianhao = ""
End Sub
Private Sub 上一条_Click()
If a.Recordset.RecordCount = 0 Then Exit Sub
If a.Recordset.AbsolutePosition = 1 Then
a.Recordset.MoveFirst
Else
a.Recordset.MovePrevious
End If
End Sub
Private Sub 退出_Click()
Unload Me
End Sub
Private Sub 下一条_Click()
If a.Recordset.RecordCount = 0 Then Exit Sub
If a.Recordset.AbsolutePosition = a.Recordset.RecordCount Then
a.Recordset.MoveLast
Else
a.Recordset.MoveNext
End If
End Sub
Private Sub 最后一条_Click()
If a.Recordset.RecordCount = 0 Then Exit Sub
a.Recordset.MoveLast
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -