📄 frmcallerinfo.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"
Begin VB.Form FrmCallerInfo
BorderStyle = 3 'Fixed Dialog
Caption = "来电信息汇总"
ClientHeight = 5025
ClientLeft = 45
ClientTop = 435
ClientWidth = 11310
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5025
ScaleWidth = 11310
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.ComboBox CmbMode
Height = 315
Left = 2040
TabIndex = 4
Top = 3720
Width = 2295
End
Begin VB.TextBox TxtQury
Height = 375
Left = 6120
TabIndex = 3
Top = 3720
Width = 2055
End
Begin VB.CommandButton Command1
Caption = "查询"
Height = 375
Left = 4200
TabIndex = 2
Top = 4320
Width = 1815
End
Begin MSAdodcLib.Adodc Adodc2
Height = 375
Left = 3960
Top = 2880
Visible = 0 'False
Width = 3255
_ExtentX = 5741
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
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 = "Adodc2"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSDataGridLib.DataGrid DataGrid2
Height = 2415
Left = 120
TabIndex = 0
Top = 1080
Width = 11055
_ExtentX = 19500
_ExtentY = 4260
_Version = 393216
AllowUpdate = -1 'True
AllowArrows = -1 'True
HeadLines = 1
RowHeight = 15
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 6
BeginProperty Column00
DataField = "CallNumber"
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 = "CallDate"
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 = "CallTime"
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 = "CallName"
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 = "CallCaller"
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 = "CallMessag"
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
ColumnWidth = 1695.118
EndProperty
BeginProperty Column01
EndProperty
BeginProperty Column02
EndProperty
BeginProperty Column03
EndProperty
BeginProperty Column04
EndProperty
BeginProperty Column05
ColumnWidth = 5249.764
EndProperty
EndProperty
End
Begin VB.Label LblBack
BackStyle = 0 'Transparent
Caption = "返回"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 9600
MouseIcon = "FrmCallerInfo.frx":0000
MousePointer = 99 'Custom
TabIndex = 7
Top = 4560
Width = 615
End
Begin VB.Image Image1
Height = 300
Left = 9000
Picture = "FrmCallerInfo.frx":030A
Top = 4560
Width = 300
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "查询方式"
Height = 195
Left = 960
TabIndex = 6
Top = 3720
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "查询内容"
Height = 195
Left = 5040
TabIndex = 5
Top = 3720
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "来电信息汇总"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 4440
TabIndex = 1
Top = 360
Width = 2700
End
End
Attribute VB_Name = "FrmCallerInfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CheDate_Click()
If CheDate.Value = 1 Then
DTStartDate.Enabled = True
DTEndDate.Enabled = True
Else
DTStartDate.Enabled = False
DTEndDate.Enabled = False
End If
End Sub
Private Sub Command1_Click()
Select Case CmbMode.ListIndex
Case 0
Case 1
Adodc2.RecordSource = "SELECT * FROM Caller where CallNumber='" & Trim(TxtQury) & "'"
Case 2
Adodc2.RecordSource = "SELECT * FROM Caller where CallName='" & Trim(TxtQury) & "'"
End Select
Adodc2.Refresh
End Sub
Private Sub Form_Load()
Adodc2.ConnectionString = "driver={SQL Server};server=" + Trim(Server) + ";uid=" + Trim(User) + ";pwd=" + Trim(Password) + ";database=CallerMIS"
Adodc2.RecordSource = "SELECT * FROM Caller order by CallerId"
Adodc2.Refresh
Set DataGrid2.DataSource = Adodc2
CmbMode.AddItem "请选择查询方式"
CmbMode.AddItem "来电号码"
CmbMode.AddItem "来电者姓名"
CmbMode.ListIndex = 0
End Sub
Private Sub LblBack_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -