📄 登录界面.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "msadodc.ocx"
Begin VB.Form Form1
BackColor = &H80000013&
BorderStyle = 1 'Fixed Single
Caption = "ZQ电话计费管理系统 登录"
ClientHeight = 4920
ClientLeft = 45
ClientTop = 375
ClientWidth = 7515
FillColor = &H00404040&
ForeColor = &H0000C000&
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4920
ScaleWidth = 7515
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2280
TabIndex = 6
Top = 2520
Width = 2295
End
Begin VB.TextBox Text3
Height = 375
Left = 3600
TabIndex = 10
Top = 4440
Visible = 0 'False
Width = 855
End
Begin MSAdodcLib.Adodc Adodc2
Height = 375
Left = 1920
Top = 4560
Visible = 0 'False
Width = 1575
_ExtentX = 2778
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=电话计费管理系统"
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=电话计费管理系统"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "客户口令表"
Caption = "Adodc2"
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 MSAdodcLib.Adodc Adodc1
Height = 375
Left = 120
Top = 4560
Visible = 0 'False
Width = 1695
_ExtentX = 2990
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=电话计费管理系统"
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=电话计费管理系统"
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
Begin VB.CommandButton Cmdexit
Caption = "退出"
Height = 495
Left = 2880
TabIndex = 9
Top = 3960
Width = 1215
End
Begin VB.CommandButton CmdOK
Caption = "确定"
Default = -1 'True
Height = 495
Left = 720
TabIndex = 8
Top = 3960
Width = 1215
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
IMEMode = 3 'DISABLE
Left = 2280
PasswordChar = "*"
TabIndex = 7
Top = 3240
Width = 2295
End
Begin VB.Frame Frame1
Caption = "用户"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1095
Left = 120
TabIndex = 1
Top = 1200
Width = 4455
Begin VB.OptionButton Option2
Caption = "客户"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 540
Left = 2520
TabIndex = 3
Top = 360
Value = -1 'True
Width = 1575
End
Begin VB.OptionButton Option1
Caption = "收费员"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 255
Left = 480
TabIndex = 2
Top = 480
Width = 1575
End
End
Begin VB.Image Image1
Height = 3000
Left = 5040
Picture = "登录界面.frx":0000
Stretch = -1 'True
ToolTipText = "欢迎使用ZQ计费管理系统"
Top = 1440
Width = 2280
End
Begin VB.Label Label3
Caption = "密码:"
BeginProperty Font
Name = "幼圆"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 495
Left = 600
TabIndex = 5
Top = 3360
Width = 1335
End
Begin VB.Label Label2
Caption = "帐号或手机号:"
BeginProperty Font
Name = "幼圆"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 495
Left = 120
TabIndex = 4
Top = 2520
Width = 2175
End
Begin VB.Label Label1
Caption = "电话计费管理系统"
BeginProperty Font
Name = "宋体"
Size = 36
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 975
Left = 600
TabIndex = 0
Top = 240
Width = 6135
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdExit_Click()
End
End Sub
Private Sub cmdOK_Click()
Dim username1 As String, username2 As String
username1 = Text1.Text
If Option1.Value Then
Set Text3.DataSource = Adodc1
Text3.DataField = "口令"
Adodc1.Recordset.MoveFirst
If username1 <> "" Then
username2 = "收费员ID='" & username1 & "'"
Adodc1.Recordset.Find username2
If Adodc1.Recordset.EOF Then
MsgBox "用户名错误请重输", 16, "错误"
Else
If Text2.Text <> Text3.Text Then
MsgBox "密码错误请重输", 16, "错误"
Text2.Text = ""
Else
MDIForm1.Show
Form1.Hide
End If
End If
End If
Else
If Option2.Value Then
Set Text3.DataSource = Adodc2
Text3.DataField = "口令"
Adodc2.Recordset.MoveFirst
If username1 <> "" Then
username2 = "手机号码='" & username1 & "'"
Adodc2.Recordset.Find username2
If Adodc2.Recordset.EOF Then
MsgBox "用户名错误请重输", 16, "错误"
Else
If Text2.Text <> Text3.Text Then
MsgBox "密码错误请重输", 16, "错误"
Text2.Text = ""
Else
MDIForm1.Show
Form1.Hide
End If
End If
End If
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -