📄 form17.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form17
BorderStyle = 1 'Fixed Single
Caption = "报备成功客户管理"
ClientHeight = 9045
ClientLeft = 45
ClientTop = 435
ClientWidth = 8910
DrawMode = 7 'Invert
LinkTopic = "Form17"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 9045
ScaleWidth = 8910
StartUpPosition = 3 '窗口缺省
Begin VB.VScrollBar VScroll1
Height = 9015
LargeChange = 5
Left = 8640
Max = 100
TabIndex = 2
Top = 0
Width = 255
End
Begin VB.PictureBox Picture2
Height = 9015
Left = 0
ScaleHeight = 8955
ScaleWidth = 8595
TabIndex = 0
Top = 0
Width = 8655
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
AutoRedraw = -1 'True
AutoSize = -1 'True
BackColor = &H00FFFF00&
DrawMode = 10 'Mask Pen
DrawStyle = 6 'Inside Solid
FillStyle = 0 'Solid
ForeColor = &H80000008&
Height = 8895
Left = -600
ScaleHeight = 8865
ScaleWidth = 9225
TabIndex = 1
Top = 0
Width = 9255
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 600
Top = 8640
Width = 1695
_ExtentX = 2990
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 200
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
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
End
Attribute VB_Name = "Form17"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub FlatScrollBar1_Change()
Picture1.Top = -FlatScrollBar1.Value * Picture1.Height / FlatScrollBar.Max
End Sub
Private Sub Command1_Click()
End Sub
Private Sub DataGrid1_Click()
End Sub
Private Sub Form_Load()
Call bbcg(tbtj)
End Sub
Private Sub VScroll1_Change()
Picture1.Top = -VScroll1.Value * Picture1.Height / 100
End Sub
Public Function bbcg(a As String)
Static i As Single
Static J As Integer
Static dd As Single
Static CC As Single
Adodc1.ConnectionString = cnnado.ConnectionString
Select Case a
Case "bbcg"
Form17.Caption = "报备成功客户管理"
Adodc1.RecordSource = "select 客户名称,报备成功日期 from kehu where 报备成功日期 <> '' and 报备成功日期<>'暂无' and 报备状况='报备已成功 '"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount = 0 Then
Picture1.CurrentX = Picture1.Width / 4
Picture1.CurrentY = Picture1.Height / 2
Picture1.FontSize = 30
Picture1.Print "您没添加报备成功的时间"
Exit Function
End If
If Adodc1.Recordset.RecordCount < 20 Then
Picture1.Height = Adodc1.Recordset.RecordCount * 400
Else
Picture1.Height = Adodc1.Recordset.RecordCount * 300
End If
s = 1
J = 1
i = 1
Picture1.DrawWidth = 10
Adodc1.Recordset.MoveFirst
Picture1.Print " 报备成功日期 客户名称 报备成功天数"
Do While Not Adodc1.Recordset.EOF
Picture1.CurrentX = 650
Picture1.CurrentY = i * 200
dd = DateDiff("d", Adodc1.Recordset.Fields(1).Value, Date)
CC = dd / 180
If CC >= 1 Then
CC = 1
End If
Picture1.Print Trim(Adodc1.Recordset.Fields(1).Value) & "----" & Trim(Adodc1.Recordset.Fields(0).Value) & Chr(13) + Chr(10)
Picture1.Line (5500, 200 * s + 50)-(5500 + 1800 * CC, 200 * s + 50), vbRed
Picture1.Line (5500, 200 * s + 50)-(7300, 200 * s + 50), vbYellow
Picture1.CurrentX = 6200
Picture1.CurrentY = i * 200 - 50
Picture1.Print dd & "/180"
Adodc1.Recordset.MoveNext
i = i + 1
s = s + 1
Loop
Case "sqrq"
Form17.Caption = "客户授权管理"
Adodc1.RecordSource = "select 客户名称,授权日期 from sqjl "
Adodc1.Refresh
If Adodc1.Recordset.RecordCount = 0 Then
Picture1.CurrentX = Picture1.Width / 4
Picture1.CurrentY = Picture1.Height / 2
Picture1.FontSize = 30
Picture1.Print "您没添加客户授权纪录!"
Exit Function
End If
If Adodc1.Recordset.RecordCount < 20 Then
Picture1.Height = Adodc1.Recordset.RecordCount * 400
Else
Picture1.Height = Adodc1.Recordset.RecordCount * 300
End If
s = 1
J = 1
i = 1
Picture1.DrawWidth = 10
Adodc1.Recordset.MoveFirst
Picture1.Print " 授权日期 客户名称 授权天数"
Do While Not Adodc1.Recordset.EOF
Picture1.CurrentX = 650
Picture1.CurrentY = i * 200
dd = DateDiff("d", Adodc1.Recordset.Fields(1).Value, Date)
CC = dd / 365
If CC >= 1 Then
CC = 1
End If
Picture1.Print Adodc1.Recordset.Fields(1).Value & "----" & Adodc1.Recordset.Fields(0) & Chr(13) + Chr(10)
Picture1.Line (5500, 200 * s + 50)-(7300, 200 * s + 50), vbYellow
Picture1.Line (5500, 200 * s + 50)-(5500 + 1800 * CC, 200 * s + 50), vbRed
Picture1.CurrentX = 6200
Picture1.CurrentY = i * 200 - 50
Picture1.Print dd & "/365"
Adodc1.Recordset.MoveNext
i = i + 1
s = s + 1
Loop
Case "lxr"
Form17.Caption = "联系人未联系日期"
Adodc1.RecordSource = "select 联系人,联系时间 from calllist "
Adodc1.Refresh
If Adodc1.Recordset.RecordCount = 0 Then
Picture1.CurrentX = Picture1.Width / 4
Picture1.CurrentY = Picture1.Height / 2
Picture1.FontSize = 30
Picture1.Print "您没添加联系人纪录!"
Exit Function
End If
If Adodc1.Recordset.RecordCount < 20 Then
Picture1.Height = Adodc1.Recordset.RecordCount * 400
Else
Picture1.Height = Adodc1.Recordset.RecordCount * 300
End If
s = 1
J = 1
i = 1
Picture1.DrawWidth = 10
Adodc1.Recordset.MoveFirst
Picture1.Print " 最后联系日期 联系人 未联系天数"
Do While Not Adodc1.Recordset.EOF
Picture1.CurrentX = 650
Picture1.CurrentY = i * 200
dd = DateDiff("d", Adodc1.Recordset.Fields(1).Value, Date)
CC = dd / 365
If CC >= 1 Then
CC = 1
End If
Picture1.Print Adodc1.Recordset.Fields(1).Value & "----" & Adodc1.Recordset.Fields(0) & Chr(13) + Chr(10)
Picture1.Line (5500, 200 * s + 50)-(7300, 200 * s + 50), vbYellow
Picture1.Line (5500, 200 * s + 50)-(5500 + 1800 * CC, 200 * s + 50), vbRed
Picture1.CurrentX = 6200
Picture1.CurrentY = i * 200 - 50
Picture1.Print dd & "/365"
Adodc1.Recordset.MoveNext
i = i + 1
s = s + 1
Loop
End Select
End Function
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -