📄 udtpuboagt.dob
字号:
VERSION 5.00
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.UserDocument UdtPubOAGt
ClientHeight = 6090
ClientLeft = 0
ClientTop = 0
ClientWidth = 8010
HScrollSmallChange= 225
ScaleHeight = 6090
ScaleWidth = 8010
VScrollSmallChange= 225
Begin VB.CommandButton Command1
Caption = "63"
Height = 735
Left = 3120
TabIndex = 7
Top = 4980
Width = 1815
End
Begin SHDocVwCtl.WebBrowser WebBrowser1
Height = 3135
Left = 2280
TabIndex = 6
Top = 1500
Width = 5115
ExtentX = 9022
ExtentY = 5530
ViewMode = 0
Offline = 0
Silent = 0
RegisterAsBrowser= 0
RegisterAsDropTarget= 1
AutoArrange = 0 'False
NoClientEdge = 0 'False
AlignLeft = 0 'False
ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
Location = ""
End
Begin VB.PictureBox PicMoving
Appearance = 0 'Flat
BackColor = &H80000016&
ForeColor = &H80000008&
Height = 4155
Left = 7800
ScaleHeight = 4125
ScaleWidth = 45
TabIndex = 5
Top = 1020
Visible = 0 'False
Width = 75
End
Begin VB.PictureBox picState
Height = 315
Left = 1800
ScaleHeight = 255
ScaleWidth = 6015
TabIndex = 4
Top = 660
Width = 6075
End
Begin VB.PictureBox picMain
Height = 3795
Left = 1800
ScaleHeight = 3735
ScaleWidth = 5535
TabIndex = 2
Top = 1020
Width = 5595
End
Begin MSComctlLib.TreeView TvwPower
Height = 4335
Left = 120
TabIndex = 0
Top = 1020
Width = 1575
_ExtentX = 2778
_ExtentY = 7646
_Version = 393217
Indentation = 647
LineStyle = 1
Sorted = -1 'True
Style = 7
Appearance = 1
MouseIcon = "UdtPubOAGT.dox":0000
End
Begin MSComctlLib.ImageList ImageList1
Left = 1980
Top = 5400
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 3
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "UdtPubOAGT.dox":031A
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "UdtPubOAGT.dox":0636
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "UdtPubOAGT.dox":0952
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 555
Left = 0
TabIndex = 3
Top = 0
Width = 8010
_ExtentX = 14129
_ExtentY = 979
ButtonWidth = 609
ButtonHeight = 926
AllowCustomize = 0 'False
Wrappable = 0 'False
Appearance = 1
Style = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 6
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "-"
Style = 3
MixedState = -1 'True
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "63"
Key = "tbGroup"
ImageIndex = 1
BeginProperty ButtonMenus {66833FEC-8583-11D1-B16A-00C0F0283628}
NumButtonMenus = 1
BeginProperty ButtonMenu1 {66833FEE-8583-11D1-B16A-00C0F0283628}
EndProperty
EndProperty
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "64"
Key = "tbUserID"
ImageIndex = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "-"
Style = 3
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "36"
Key = "tbFrash"
ImageIndex = 2
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "-"
Style = 3
EndProperty
EndProperty
End
Begin VB.Image imgMove
Height = 4215
Left = 1680
MousePointer = 9 'Size W E
Top = 1080
Width = 75
End
Begin VB.Label lblPower
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Caption = "63"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 120
TabIndex = 1
Top = 660
Width = 1635
End
Begin VB.Menu sds
Caption = "sdsdsd"
End
End
Attribute VB_Name = "UdtPubOAGt"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Public IsMove As Boolean
Const sglSplitLimit = 500
Private Sub Command1_Click()
WebBrowser1.Navigate App.Path & "\UdtPubOWelcome.vbd"
End Sub
Private Sub imgMove_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
IsMove = True
With imgMove
PicMoving.Move .Left, .Top, 30, .Height
End With
PicMoving.Visible = True
End Sub
Private Sub imgMove_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Dim sglPos As Single
If IsMove = True Then
sglPos = x + imgMove.Left
If sglPos < sglSplitLimit Then
PicMoving.Left = sglSplitLimit
ElseIf sglPos > UserDocument.Width - sglSplitLimit Then
PicMoving.Left = UserDocument.Width - sglSplitLimit
Else
PicMoving.Left = sglPos
End If
'MsgBox X & " " & Y
'IniSize Y
End If
End Sub
Private Sub imgMove_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
IsMove = False
PicMoving.Visible = False
IniSize PicMoving.Left
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
Case "tbGroup"
frmPubOANewGT.Show
Case "tbUserID"
frmPubOAUser.Show
Case "tbFrash"
iniTvw
End Select
End Sub
Private Sub TvwPower_NodeClick(ByVal Node As MSComctlLib.Node)
Dim x As InternetExplorer
PubOAKey = Node.Key
If PubOAKey <> "OAAdmin" Then
PubOAParentKey = Node.Parent.Key
End If
MsgBox "0000"
UserDocument.WebBrowser1.Navigate App.Path & "\UdtPubOAGTList.vbd"
End Sub
Private Sub UserDocument_Initialize()
GLanguageID = "1"
IsMove = False
iniTvw
IniSize 2200
GGetResUdt GLanguageID
End Sub
Public Sub iniTvw()
Dim rstGroup As Recordset
TvwPower.Nodes.Clear
TvwPower.Nodes.Add , , "OAAdmin", LoadResString("66" & GLanguageID)
Set rstGroup = New Recordset
rstGroup.Open "Select * From PubOAGroup Order by GroupID ", GetConnect, adOpenForwardOnly
Do Until rstGroup.EOF
TvwPower.Nodes.Add "OAAdmin", tvwChild, rstGroup![GroupID], rstGroup![GroupID]
rstGroup.MoveNext
Loop
TvwPower.Nodes(TvwPower.Nodes.Count).EnsureVisible
'If TvwPower.Node.Key = "OAAdmin" Then
'End If
Set rstGroup = New Recordset
rstGroup.Open "Select * From PubOAUser Order by UserID ", GetConnect, adOpenForwardOnly
Do Until rstGroup.EOF
TvwPower.Nodes.Add Trim(rstGroup![GroupID]), tvwChild, "U_" & Trim(rstGroup![UserID]), rstGroup![UserID]
rstGroup.MoveNext
Loop
End Sub
Private Sub IniSize(ImgLeft As Integer)
If ImgLeft < 500 Then
ImgLeft = 500
End If
If ImgLeft > UserDocument.Width / 2 Then
ImgLeft = UserDocument.Width / 2
End If
UserDocument.TvwPower.Width = ImgLeft - TvwPower.Left
UserDocument.TvwPower.Height = UserDocument.Height - 1000
UserDocument.lblPower.Width = ImgLeft - TvwPower.Left
UserDocument.imgMove.Left = ImgLeft
UserDocument.imgMove.Height = UserDocument.Height - 1000
UserDocument.picMain.Left = ImgLeft + 50
UserDocument.picMain.Width = UserDocument.Width - picMain.Left - 100
UserDocument.picState.Left = ImgLeft + 50
UserDocument.picState.Width = UserDocument.Width - picMain.Left - 100
UserDocument.picMain.Height = UserDocument.Height - 1000
End Sub
Private Sub UserDocument_Resize()
IniSize 2200
End Sub
Public Sub GGetResUdt(LanguageID As String)
Dim tObj As Control, i As Integer
For Each tObj In UserDocument.Controls
Select Case Trim(LCase(TypeName(tObj)))
Case "commandbutton"
tObj.Caption = LoadResString(Val(tObj.Caption & LanguageID))
Case "treeview"
Case "combobox"
Case "toolbar"
For i = 1 To tObj.Buttons.Count - 1
If tObj.Buttons(i).Caption <> "-" Then
tObj.Buttons(i).Caption = LoadResString(Val(tObj.Buttons(i).Caption & LanguageID))
End If
Next
Case "label"
tObj.Caption = LoadResString(Val(tObj.Caption & LanguageID))
Case "optionbutton"
tObj.Caption = LoadResString(Val(tObj.Caption & LanguageID))
Case "frame"
tObj.Caption = LoadResString(Val(tObj.Caption & LanguageID))
Case "sstab"
For i = 0 To tObj.Tabs - 1
tObj.TabCaption(i) = LoadResString(Val(tObj.TabCaption(i) & LanguageID))
Next i
End Select
Next tObj
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -