?? 設置操作人員.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form 操作人員設置
BorderStyle = 1 'Fixed Single
Caption = "設置操作人員"
ClientHeight = 2400
ClientLeft = 45
ClientTop = 330
ClientWidth = 6465
LinkTopic = "Form4"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2400
ScaleWidth = 6465
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "刪除"
Height = 285
Left = 4470
TabIndex = 10
Top = 1980
Width = 840
End
Begin VB.CommandButton Command1
Caption = "增加"
Height = 285
Left = 3585
TabIndex = 9
Top = 1980
Width = 840
End
Begin VB.CommandButton Command3
Caption = "關閉"
Height = 285
Left = 5370
TabIndex = 7
Top = 1980
Width = 825
End
Begin VB.Frame Frame1
Height = 1815
Left = 90
TabIndex = 0
Top = 60
Width = 6300
Begin VB.ComboBox Combo1
DataField = "user_type"
DataSource = "Adodc1"
Height = 300
ItemData = "設置操作人員.frx":0000
Left = 4440
List = "設置操作人員.frx":0010
TabIndex = 11
Top = 1080
Width = 1380
End
Begin VB.TextBox Text3
DataField = "userno"
DataSource = "Adodc1"
Height = 345
IMEMode = 3 'DISABLE
Left = 1695
PasswordChar = "*"
TabIndex = 5
Top = 1065
Width = 1335
End
Begin VB.TextBox Text2
DataField = "usertype"
DataSource = "Adodc1"
Height = 345
Left = 4455
TabIndex = 3
Top = 465
Width = 1335
End
Begin VB.TextBox Text1
DataField = "username"
DataSource = "Adodc1"
Height = 345
Left = 1695
TabIndex = 1
Top = 450
Width = 1335
End
Begin VB.Label Label4
Caption = "操作類別:"
Height = 315
Left = 3405
TabIndex = 12
Top = 540
Width = 975
End
Begin VB.Label Label3
Caption = "密 碼:"
Height = 315
Left = 450
TabIndex = 6
Top = 1125
Width = 1140
End
Begin VB.Label Label2
Caption = "操作類型:"
Height = 315
Left = 3435
TabIndex = 4
Top = 1110
Width = 975
End
Begin VB.Label Label1
Caption = "操作員姓名:"
Height = 315
Left = 465
TabIndex = 2
Top = 510
Width = 1140
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 75
Top = 1995
Width = 1905
_ExtentX = 3360
_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 = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "操作員"
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 Label12
Height = 240
Left = 2055
TabIndex = 8
Top = 2055
Width = 1065
End
End
Attribute VB_Name = "操作人員設置"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'星級酒店管理系統最初功能演示版,提供所有星級酒店管理中的客房管理,
'房態管理,客史管理,客人資料管理,帳務管理,報表管理,餐飲收費管理
'菜譜管理,夜審處理,數據庫備份等功能.所有功能皆可以運行,(但有一些BUG未處理)
'此代碼完全可以完成星級酒店上述管理功能.(提供者:帥)
'--------------------------------------------------------------
'代碼編寫于:2001.12 系統分析:帥 代碼編寫:帥 版權所有:帥
'--------------------------------------------------------------
'本份代碼僅提供給程序太平洋的所有朋友學習,研究之用.
'其它網站一律不得轉載,否則為侵權行為,本人保留法律追訴權力.
'這也是本人最早的VB版程序,代碼質量不好.望笑納.:)
'--------------------------------------------------------------
'提供日期:2003-05-31 提供者:帥
'--------------------------------------------------------------
'系統提從與ACCESS或SQL相接,在登錄時,選擇全局數據庫,就與SQL數據庫
'連接,字符串存放在SERVER.DAT文本文件中;選擇本地數據庫,與本地ACCESS
'數據庫相連,連接字符串存放在LOCAT.DAT文件中.(當前存放為e:\hotel2\room.mdb)
'---------------------------------------------------------------
'將ACCESS中所有表導入SQL中,并將有的表中的ID字段改為自動編碼,就可以使用.
'---------------------------------------------------------------------
'
'
Private Sub Adodc1_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
Me.Label12.Caption = CStr(Adodc1.Recordset.AbsolutePosition) & "/" & CStr(Adodc1.Recordset.RecordCount)
End Sub
Private Sub Command1_Click()
If Command1.Caption = "增加" Then
Adodc1.Recordset.AddNew
Command1.Caption = "保存"
Else
Adodc1.Recordset.Update
Command1.Caption = "增加"
End If
End Sub
Private Sub Command2_Click()
If MsgBox("確認您要刪除“" & Adodc1.Recordset.Fields("username") & "”操作員嗎?", 49, "提示") = vbOK Then
Adodc1.Recordset.Delete
If Not Adodc1.Recordset.BOF Then
Adodc1.Recordset.MovePrevious
End If
End If
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Adodc1.ConnectionString = My_PROVIDER
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 用戶 order by username"
Adodc1.Refresh
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -