📄 frmmain.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.MDIForm frmmain
BackColor = &H00FFFFFF&
Caption = "医院门诊收费管理"
ClientHeight = 8010
ClientLeft = 165
ClientTop = 630
ClientWidth = 11880
Icon = "frmmain.frx":0000
LinkTopic = "MDIForm1"
Picture = "frmmain.frx":030A
WindowState = 2 'Maximized
Begin MSAdodcLib.Adodc Adodc1
Align = 1 'Align Top
Height = 375
Left = 0
Top = 0
Visible = 0 'False
Width = 11880
_ExtentX = 20955
_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 = "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 MSComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 300
Left = 0
TabIndex = 0
Top = 7710
Width = 11880
_ExtentX = 20955
_ExtentY = 529
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 2
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 15266
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 2
EndProperty
EndProperty
End
Begin VB.Menu menu1
Caption = "收费管理&(N)"
Begin VB.Menu menu11
Caption = "费用登记&(I)"
Shortcut = ^I
End
Begin VB.Menu line11
Caption = "-"
End
Begin VB.Menu menu12
Caption = "费用查询&(Q)"
Shortcut = ^Q
End
Begin VB.Menu line12
Caption = "-"
End
Begin VB.Menu menu14
Caption = "交班结算&(G)"
Shortcut = {F12}
End
Begin VB.Menu line13
Caption = "-"
End
Begin VB.Menu menu13
Caption = "退出&(E)"
Shortcut = ^E
End
End
Begin VB.Menu menu2
Caption = "数据维护&(R)"
Begin VB.Menu menu21
Caption = "清理数据库&(C)"
Shortcut = ^C
End
Begin VB.Menu line21
Caption = "-"
End
Begin VB.Menu menu22
Caption = "更改密码&(P)"
Shortcut = ^P
End
Begin VB.Menu menu23
Caption = "系统设置&(S)"
Shortcut = ^S
End
End
Begin VB.Menu menu3
Caption = "窗口&(W)"
Begin VB.Menu menu31
Caption = "层叠&(C)"
End
Begin VB.Menu menu32
Caption = "水平平铺&(H)"
End
Begin VB.Menu menu33
Caption = "垂直平铺&(V)"
End
Begin VB.Menu line31
Caption = "-"
End
Begin VB.Menu menu34
Caption = "排列图标&(A)"
End
End
Begin VB.Menu menu4
Caption = "帮助&(H)"
Begin VB.Menu menu41
Caption = "帮助主题&(L)"
Shortcut = {F1}
End
Begin VB.Menu line41
Caption = "-"
End
Begin VB.Menu menu42
Caption = "关于门诊收费管理&(A)..."
End
End
End
Attribute VB_Name = "frmmain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub MDIForm_Load()
Dim uname As String
Dim quan As String
quan = frmlogin.userright
If quan = "0" Then
quan = "【超级用户】"
Else
quan = "【普通用户】"
End If
uname = frmlogin.username
StatusBar1.Panels(1).Text = "当前系统操作人员:" & uname & quan
StatusBar1.Panels(3).Text = "当前系统日期:" & Year(Now()) & "年" & Month(Now()) & "月" & Day(Now()) & "日"
StatusBar1.Panels(2) = "目前没有窗口被激活"
End Sub
Private Sub menu11_Click()
frmsf.Show
End Sub
Private Sub menu12_Click()
frmquery.Show
End Sub
Private Sub menu13_Click()
End
End Sub
Private Sub menu14_Click()
frmjb.Show
End Sub
Private Sub menu21_Click()
Dim respond As String
If frmlogin.userright = "0" Then
respond = MsgBox("此操作将永久删除门诊收费室所有记录!是否继续?", 4, "特别警告")
If respond = vbYes Then
Adodc1.ConnectionString = frmlogin.conn
Adodc1.RecordSource = "select * from mzsf order by ID"
Adodc1.Refresh
Do While Not Adodc1.Recordset.EOF
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
Adodc1.Recordset.UpdateBatch
Loop
End If
Else
MsgBox "只能超级用户才能执行此操作!"
End If
End Sub
Private Sub menu22_Click()
chpwd.Show
End Sub
Private Sub menu23_Click()
If frmlogin.userright = "0" Then
frmsysset.Show
Else
MsgBox "只能超级用户才能执行此操作!"
End If
End Sub
Private Sub menu31_Click()
Me.Arrange vbCascade
End Sub
Private Sub menu32_Click()
Me.Arrange vbTileHorizontal
End Sub
Private Sub menu33_Click()
Me.Arrange vbTileVertical
End Sub
Private Sub menu34_Click()
Me.Arrange vbArrangeIcons
End Sub
Private Sub menu41_Click()
Dim help As Long
help = StartDoc(App.Path & "\help.chm")
End Sub
Private Sub menu42_Click()
frmAbout.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -