?? setmenu.frm
字號(hào):
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 setmenu
BorderStyle = 1 'Fixed Single
Caption = "設(shè)置菜單權(quán)限"
ClientHeight = 6435
ClientLeft = 45
ClientTop = 330
ClientWidth = 7605
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
Picture = "SETMENU.frx":0000
ScaleHeight = 6435
ScaleWidth = 7605
Begin VB.CommandButton Command4
Caption = "保存"
Height = 345
Left = 6045
TabIndex = 7
Top = 4995
Width = 1110
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "SETMENU.frx":0342
Height = 6405
Left = 0
TabIndex = 6
Top = -15
Width = 5490
_ExtentX = 9684
_ExtentY = 11298
_Version = 393216
AllowUpdate = 0 'False
AllowArrows = 0 'False
HeadLines = 2
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
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 = ""
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
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 4785
Top = 4845
Visible = 0 'False
Width = 2235
_ExtentX = 3942
_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 = "catv"
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 Command3
Caption = "刪去"
Height = 345
Left = 6075
TabIndex = 0
Top = 4380
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "加入"
Height = 345
Left = 6075
TabIndex = 5
Top = 3975
Width = 1095
End
Begin VB.TextBox Text2
Height = 330
Left = 5760
TabIndex = 4
Top = 3360
Width = 1680
End
Begin VB.TextBox Text1
Height = 2340
Left = 5745
Locked = -1 'True
MultiLine = -1 'True
TabIndex = 2
Text = "SETMENU.frx":0357
Top = 390
Width = 1725
End
Begin VB.CommandButton Command1
Caption = "關(guān)閉"
Height = 360
Left = 6060
TabIndex = 1
Top = 5520
Width = 1110
End
Begin VB.Label Label1
Caption = "操作員級(jí)別:"
Height = 240
Left = 5850
TabIndex = 3
Top = 2985
Width = 1485
End
End
Attribute VB_Name = "setmenu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'歡迎你下載使用本代碼,本份代碼由程序太平洋提供下載學(xué)習(xí)之用
'聲明:
'1.本站所有代碼的版權(quán)歸原作者所有,如果你使用了在本站下載的源代碼
' 引起的一切糾紛(后果)與本站無(wú)關(guān),請(qǐng)您尊重原作者的勞動(dòng)成果!
'2.若本站在代碼上有侵權(quán)之處請(qǐng)您與站長(zhǎng)聯(lián)系,站長(zhǎng)會(huì)及時(shí)更正。
'網(wǎng)站:http://www.dapha.net
'論壇:http://www.5ivb.net
'Email:dapha@etang.com
'CopyRight 2001-2005 By dapha.net
'整理時(shí)間:2003-12-8 12:22:14
'星級(jí)酒店管理系統(tǒng)最初功能演示版,提供所有星級(jí)酒店管理中的客房管理,
'房態(tài)管理,客史管理,客人資料管理,帳務(wù)管理,報(bào)表管理,餐飲收費(fèi)管理
'菜譜管理,夜審處理,數(shù)據(jù)庫(kù)備份等功能.所有功能皆可以運(yùn)行,(但有一些BUG未處理)
'此代碼完全可以完成星級(jí)酒店上述管理功能.(提供者:帥)
'--------------------------------------------------------------
'代碼編寫(xiě)于:2001.12 系統(tǒng)分析:帥 代碼編寫(xiě):帥 版權(quán)所有:帥
'--------------------------------------------------------------
'本份代碼僅提供給程序太平洋的所有朋友學(xué)習(xí),研究之用.
'其它網(wǎng)站一律不得轉(zhuǎn)載,否則為侵權(quán)行為,本人保留法律追訴權(quán)力.
'這也是本人最早的VB版程序,代碼質(zhì)量不好.望笑納.:)
'--------------------------------------------------------------
'提供日期:2003-05-31 提供者:帥
'--------------------------------------------------------------
'系統(tǒng)提從與ACCESS或SQL相接,在登錄時(shí),選擇全局?jǐn)?shù)據(jù)庫(kù),就與SQL數(shù)據(jù)庫(kù)
'連接,字符串存放在SERVER.DAT文本文件中;選擇本地?cái)?shù)據(jù)庫(kù),與本地ACCESS
'數(shù)據(jù)庫(kù)相連,連接字符串存放在LOCAT.DAT文件中.(當(dāng)前存放為e:\hotel2\room.mdb)
'---------------------------------------------------------------
'將ACCESS中所有表導(dǎo)入SQL中,并將有的表中的ID字段改為自動(dòng)編碼,就可以使用.
'---------------------------------------------------------------------
'
'
Private Sub Command1_Click()
' Data1.Recordset.Close
Unload Me
End Sub
Private Sub Command2_Click()
If Text2.Text <> "" Or (Not IsNull(Text2.Text)) Then
'Adodc1.Recordset.Edit
Adodc1.Recordset.Fields("usertype") = Adodc1.Recordset.Fields("usertype") & Trim(Text2)
'Adodc1.Recordset.Update
End If
End Sub
Private Sub Command3_Click()
Dim jb As String
Dim i As Integer
If Text2.Text <> "" Or (Not IsNull(Text2.Text)) Then
jb = Adodc1.Recordset.Fields("usertype")
For i = 1 To Len(Trim(jb))
If Mid(jb, i, 1) = Trim(Text2.Text) Then
If i <> 1 Then
If i = Len(Trim(jb)) Then
jb = Left(jb, Len(Trim(jb)) - 1)
Else
jb = Left(jb, i) & Right(jb, Len(Trim(jb)) - i - 1)
End If
Else
jb = Right(jb, Len(Trim(jb)) - 1)
End If
End If
Next
If jb = "" Then jb = "1"
'Adodc1.Recordset.Edit
Adodc1.Recordset.Fields("usertype") = jb
'Adodc1.Recordset.Update
End If
End Sub
Private Sub Command4_Click()
Adodc1.Recordset.Update
MsgBox "數(shù)據(jù)已保存!", 64, "提示"
End Sub
Private Sub Form_Load()
Left = 0
Top = 0
Adodc1.ConnectionString = My_PROVIDER
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select menu,name,usertype from 菜單"
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
DataGrid1.ReBind
DataGrid1.Refresh
DataGrid1.Columns(0).Caption = "編號(hào)"
DataGrid1.Columns(1).Caption = "菜單名稱(chēng)"
DataGrid1.Columns(2).Caption = "使用者"
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -