📄 frm_xstjbb.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm_XSTJbb
BorderStyle = 3 'Fixed Dialog
Caption = "销售代表房屋销售统计报表管理"
ClientHeight = 2295
ClientLeft = 45
ClientTop = 330
ClientWidth = 3855
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 2295
ScaleWidth = 3855
ShowInTaskbar = 0 'False
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 120
Top = 2760
Width = 1575
_ExtentX = 2778
_ExtentY = 661
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=ljm"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=ljm"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from Table_YGXX"
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.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2880
TabIndex = 2
Top = 1920
Width = 975
End
Begin VB.CommandButton Command1
Caption = "统计"
Height = 375
Left = 1800
TabIndex = 1
Top = 1920
Width = 975
End
Begin VB.Frame Frame1
Height = 1815
Left = 0
TabIndex = 0
Top = 0
Width = 3855
Begin VB.Frame Frame2
Caption = "统计条件"
Height = 975
Left = 120
TabIndex = 5
Top = 720
Width = 3615
Begin VB.OptionButton Option2
Caption = "部分人员"
Height = 375
Left = 2160
TabIndex = 7
Top = 360
Width = 1335
End
Begin VB.OptionButton Option1
Caption = "全部人员"
Height = 375
Left = 360
TabIndex = 6
Top = 360
Width = 1455
End
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "frm_XSTJbb.frx":0000
Left = 1680
List = "frm_XSTJbb.frx":0002
TabIndex = 4
Top = 240
Width = 2055
End
Begin VB.Label Label1
Caption = "销售代表名称"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 3
Top = 300
Width = 1335
End
End
End
Attribute VB_Name = "frm_XSTJbb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public adoCon As New ADODB.Connection
Public adoRs As New ADODB.Recordset
Private Sub Combo1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
If Combo1.Enabled = True Then
DataEnvironment1.rsCommand3.Open "select * from View_FWXS where 销售代表='" + Combo1.Text + "' "
If DataEnvironment1.rsCommand3.RecordCount > 0 Then
Data_FWXSTJBB.Show
Else
MsgBox "没有此销售代表的信息", 32, "房地产销售管理系统"
DataEnvironment1.rsCommand3.Close
End If
Else
End If
Else
End If
End Sub
Private Sub Command1_Click()
If Combo1.Enabled = True Then
If Combo1.Text <> "" Then
DataEnvironment1.rsCommand3.Open "select * from View_FWXS where 销售代表='" + Combo1.Text + "' "
If DataEnvironment1.rsCommand3.RecordCount > 0 Then
Data_FWXSTJBB.Show
Else
MsgBox "没有此销售代表的信息", 32, "房地产销售管理系统"
DataEnvironment1.rsCommand3.Close
End If
Else
MsgBox "请选择销售代表的姓名", 32, "房地产销售管理系统"
Combo1.SetFocus
End If
ElseIf Combo1.Enabled = False Then
DataEnvironment1.rsCommand3.Open "select * from View_FWXS where 销售代表<>''"
If DataEnvironment1.rsCommand3.RecordCount > 0 Then
Data_FWXSTJBB.Show
Else
DataEnvironment1.rsCommand3.Close
End If
Else
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load() '装载销售代表的个人姓名信息
Option2.Value = 1
Adodc1.RecordSource = "select * from Table_YGXX "
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
Option1.Enabled = True
Adodc1.Recordset.MoveFirst
Do While Adodc1.Recordset.EOF = False
Combo1.AddItem (Adodc1.Recordset.Fields("员工姓名"))
Adodc1.Recordset.MoveNext
Loop
Else
MsgBox "数据库中没有信息!"
Option1.Enabled = False
End If
End Sub
Private Sub Option1_Click()
Combo1.Enabled = False
End Sub
Private Sub Option2_Click()
Combo1.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -