frmmain.frm
资源名称:yf.rar [点击查看]
上传用户:laihaixin
上传日期:2013-01-26
资源大小:1169k
文件大小:6k
源码类别:
医药行业
开发平台:
Visual Basic
- VERSION 5.00
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
- Begin VB.MDIForm frmmain
- Appearance = 0 'Flat
- BackColor = &H00FFFF80&
- Caption = "医院药品器械库房管理"
- ClientHeight = 8970
- ClientLeft = 60
- ClientTop = 630
- ClientWidth = 12015
- Icon = "frmmain.frx":0000
- LinkTopic = "MDIForm1"
- Picture = "frmmain.frx":030A
- StartUpPosition = 2 '屏幕中心
- Begin MSComctlLib.StatusBar StatusBar1
- Align = 2 'Align Bottom
- Height = 300
- Left = 0
- TabIndex = 0
- Top = 8670
- Width = 12015
- _ExtentX = 21193
- _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 = 15531
- EndProperty
- BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- AutoSize = 2
- EndProperty
- EndProperty
- End
- Begin VB.Menu menu1
- Caption = "入库&(I)"
- Begin VB.Menu menu11
- Caption = "库存登记&(N)"
- Shortcut = ^N
- End
- Begin VB.Menu line11
- Caption = "-"
- End
- Begin VB.Menu menu12
- Caption = "库存查看&(S)"
- Shortcut = ^S
- End
- Begin VB.Menu menu13
- Caption = "药品调价&(T)"
- Shortcut = ^T
- End
- Begin VB.Menu line12
- Caption = "-"
- End
- Begin VB.Menu menu14
- Caption = "退出&(E)"
- Shortcut = ^Q
- End
- End
- Begin VB.Menu menu2
- Caption = "出库&(O)"
- Begin VB.Menu menu21
- Caption = "库存调拨&(B)"
- Begin VB.Menu menu211
- Caption = "西药中成药&(X)"
- Shortcut = ^X
- End
- Begin VB.Menu menu212
- Caption = "其它库存品&(Z)"
- Shortcut = ^Z
- End
- End
- Begin VB.Menu line21
- Caption = "-"
- End
- Begin VB.Menu menu22
- Caption = "查看出库情况&(L)"
- Shortcut = ^L
- End
- End
- Begin VB.Menu menu3
- Caption = "数据维护&(R)"
- Begin VB.Menu menu31
- Caption = "报废品清理&(D)"
- Shortcut = ^D
- End
- Begin VB.Menu line31
- Caption = "-"
- End
- Begin VB.Menu menu33
- Caption = "修改库存记录&(R)"
- Shortcut = ^R
- End
- Begin VB.Menu line32
- Caption = "-"
- End
- Begin VB.Menu menu34
- Caption = "更改密码&(P)"
- Shortcut = ^P
- End
- End
- Begin VB.Menu menu4
- Caption = "窗口&(W)"
- Begin VB.Menu menu41
- Caption = "重叠&(C)"
- End
- Begin VB.Menu menu42
- Caption = "水平平铺&(H)"
- End
- Begin VB.Menu menu43
- Caption = "垂直平铺&(V)"
- End
- Begin VB.Menu line41
- Caption = "-"
- End
- Begin VB.Menu menu44
- Caption = "排列图标&(A)"
- End
- End
- Begin VB.Menu menu5
- Caption = "帮助&(H)"
- Begin VB.Menu menu52
- 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
- Public datas As String
- Public titlec As String
- Public kcode As String
- Private Sub MDIForm_Load()
- Dim uname As String
- Dim quan As String
- Dim XO As Long
- Dim YO As Long
- XO = Screen.Width
- YO = Screen.Height
- XO = (XO - Me.Width) / 2
- YO = (YO - Me.Height) / 2
- Me.Move XO, YO
- 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()
- frminput.Show
- End Sub
- Private Sub menu12_Click()
- frmserch.Show
- End Sub
- Private Sub menu13_Click()
- frmprice.Show
- End Sub
- Private Sub menu14_Click()
- End
- End Sub
- Private Sub menu211_Click()
- frmoutput.Show
- End Sub
- Private Sub menu212_Click()
- frmcaoqi.Show
- End Sub
- Private Sub menu22_Click()
- frmsercho.Show
- End Sub
- Private Sub menu31_Click()
- If frmlogin.userright = "0" Then
- frmclear.Show
- Else
- MsgBox "只能超级用户才能执行此操作!"
- End If
- End Sub
- Private Sub menu33_Click()
- If frmlogin.userright = "0" Then
- frmchange.Show
- Else
- MsgBox "只能超级用户才能执行此操作!"
- End If
- End Sub
- Private Sub menu34_Click()
- chpwd.Show
- End Sub
- Private Sub menu41_Click()
- Me.Arrange vbCascade
- End Sub
- Private Sub menu43_Click()
- Me.Arrange vbTileVertical
- End Sub
- Private Sub menu44_Click()
- Me.Arrange vbArrangeIcons
- End Sub
- Private Sub menu51_Click()
- Dim help As Long
- help = StartDoc(App.Path & "help.chm")
- End Sub
- Private Sub menu52_Click()
- frmAbout.Show
- End Sub