📄 main_xsbb_xsyxshzb.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form main_xsbb_xsyxshzb
BorderStyle = 1 'Fixed Single
Caption = "销售报表-【销售员销售汇总表】"
ClientHeight = 3825
ClientLeft = 45
ClientTop = 330
ClientWidth = 8610
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3825
ScaleWidth = 8610
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
Caption = "退出"
Height = 390
Left = 6705
TabIndex = 5
Top = 3360
Width = 1755
End
Begin VB.CommandButton Command1
Caption = "汇总"
Height = 390
Left = 4815
TabIndex = 4
Top = 3360
Width = 1755
End
Begin MSDataGridLib.DataGrid DataGrid1
Height = 2655
Left = 45
TabIndex = 0
Top = 570
Width = 8475
_ExtentX = 14949
_ExtentY = 4683
_Version = 393216
HeadLines = 1
RowHeight = 15
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 = 2
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
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin MSComCtl2.DTPicker DTP1
Height = 330
Left = 750
TabIndex = 1
Top = 120
Width = 2970
_ExtentX = 5239
_ExtentY = 582
_Version = 393216
Format = 30146561
CurrentDate = 37536
End
Begin MSComCtl2.DTPicker DTP2
Height = 330
Left = 4155
TabIndex = 2
Top = 120
Width = 2970
_ExtentX = 5239
_ExtentY = 582
_Version = 393216
Format = 30146561
CurrentDate = 37536
End
Begin MSAdodcLib.Adodc Adodc1
Height = 345
Left = -255
Top = 1455
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 609
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=XSGL"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=XSGL"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 销售信息表"
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.Label Label2
BackStyle = 0 'Transparent
Caption = "日期从 至"
Height = 195
Left = 75
TabIndex = 3
Top = 180
Width = 4980
End
End
Attribute VB_Name = "main_xsbb_xsyxshzb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
DTP1.Value = Date - 30: DTP2.Value = Date '设置日期
Command1_Click
'Me.Caption = Me.Caption & " 操作员: " & frm_main.St1.Panels(3).Text
End Sub
Private Sub Form_Unload(Cancel As Integer)
frm_main.Enabled = True '设置主窗体有效
End Sub
Private Sub Command1_Click() '统计汇总客户销售商品信息
Adodc1.RecordSource = "select 销售员,count(*)as 销售品种,sum(数量)as 销售数量,sum(金额)as 销售金额,客户全称,操作员 from 销售信息表 where 日期 between '" + Str(DTP1.Value) + "'and '" + Str(DTP2.Value) + "'group by 销售员,客户全称,操作员"
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
End Sub
Private Sub Command2_Click()
Call CmdEnd(Me)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -