frmMain.vb
上传用户:wj57717022
上传日期:2014-12-16
资源大小:4093k
文件大小:31k
- Imports localJxc.jxcmanage
- Imports System.Data.SqlClient
- Imports System.Configuration
- Public Class frmMain
- Inherits System.Windows.Forms.Form
- #Region " Windows 窗体设计器生成的代码 "
- Public Sub New()
- MyBase.New()
- '该调用是 Windows 窗体设计器所必需的。
- InitializeComponent()
- '在 InitializeComponent() 调用之后添加任何初始化
- End Sub
- '窗体重写 dispose 以清理组件列表。
- Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If Not (components Is Nothing) Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
- 'Windows 窗体设计器所必需的
- Private components As System.ComponentModel.IContainer
- '注意: 以下过程是 Windows 窗体设计器所必需的
- '可以使用 Windows 窗体设计器修改此过程。
- '不要使用代码编辑器修改它。
- Friend WithEvents StatusBar1 As System.Windows.Forms.StatusBar
- Friend WithEvents MainMenu As System.Windows.Forms.MainMenu
- Friend WithEvents MenuItem1 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem2 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem3 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem4 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem5 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem6 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem7 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem8 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem9 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem10 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem11 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem12 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem13 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem14 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem15 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem16 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem17 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem18 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem19 As System.Windows.Forms.MenuItem
- Friend WithEvents tbrManager As System.Windows.Forms.ToolBar
- Friend WithEvents tbrck As System.Windows.Forms.ToolBarButton
- Friend WithEvents rbrrk As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrkc As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrQuery As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrcp As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrkh As System.Windows.Forms.ToolBarButton
- Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
- Friend WithEvents StatusBarPanel1 As System.Windows.Forms.StatusBarPanel
- Friend WithEvents StatusBarPanel2 As System.Windows.Forms.StatusBarPanel
- Friend WithEvents StatusBarPanel3 As System.Windows.Forms.StatusBarPanel
- Friend WithEvents tbrsprtor As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrconn As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrData As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrSprtors As System.Windows.Forms.ToolBarButton
- Friend WithEvents StatusBarPanel4 As System.Windows.Forms.StatusBarPanel
- Friend WithEvents ProgressBar1 As System.Windows.Forms.ProgressBar
- Friend WithEvents Timer1 As System.Windows.Forms.Timer
- Friend WithEvents tbrSystem As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrExit As System.Windows.Forms.ToolBarButton
- Friend WithEvents MenuItem20 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem21 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem22 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem23 As System.Windows.Forms.MenuItem
- Friend WithEvents StatusBarPanel5 As System.Windows.Forms.StatusBarPanel
- Friend WithEvents MenuItem24 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem25 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem26 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem27 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem28 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem29 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem30 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem31 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem32 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem33 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem34 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem35 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem36 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem37 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem38 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem39 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem40 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem41 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem42 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem43 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem44 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem45 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem46 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem47 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem48 As System.Windows.Forms.MenuItem
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- Me.components = New System.ComponentModel.Container
- Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmMain))
- Me.StatusBar1 = New System.Windows.Forms.StatusBar
- Me.StatusBarPanel1 = New System.Windows.Forms.StatusBarPanel
- Me.StatusBarPanel2 = New System.Windows.Forms.StatusBarPanel
- Me.StatusBarPanel3 = New System.Windows.Forms.StatusBarPanel
- Me.StatusBarPanel4 = New System.Windows.Forms.StatusBarPanel
- Me.StatusBarPanel5 = New System.Windows.Forms.StatusBarPanel
- Me.MainMenu = New System.Windows.Forms.MainMenu
- Me.MenuItem1 = New System.Windows.Forms.MenuItem
- Me.MenuItem2 = New System.Windows.Forms.MenuItem
- Me.MenuItem3 = New System.Windows.Forms.MenuItem
- Me.MenuItem4 = New System.Windows.Forms.MenuItem
- Me.MenuItem6 = New System.Windows.Forms.MenuItem
- Me.MenuItem7 = New System.Windows.Forms.MenuItem
- Me.MenuItem5 = New System.Windows.Forms.MenuItem
- Me.MenuItem8 = New System.Windows.Forms.MenuItem
- Me.MenuItem9 = New System.Windows.Forms.MenuItem
- Me.MenuItem10 = New System.Windows.Forms.MenuItem
- Me.MenuItem11 = New System.Windows.Forms.MenuItem
- Me.MenuItem12 = New System.Windows.Forms.MenuItem
- Me.MenuItem13 = New System.Windows.Forms.MenuItem
- Me.MenuItem14 = New System.Windows.Forms.MenuItem
- Me.MenuItem24 = New System.Windows.Forms.MenuItem
- Me.MenuItem20 = New System.Windows.Forms.MenuItem
- Me.MenuItem21 = New System.Windows.Forms.MenuItem
- Me.MenuItem22 = New System.Windows.Forms.MenuItem
- Me.MenuItem15 = New System.Windows.Forms.MenuItem
- Me.MenuItem16 = New System.Windows.Forms.MenuItem
- Me.MenuItem23 = New System.Windows.Forms.MenuItem
- Me.MenuItem17 = New System.Windows.Forms.MenuItem
- Me.MenuItem18 = New System.Windows.Forms.MenuItem
- Me.MenuItem28 = New System.Windows.Forms.MenuItem
- Me.MenuItem29 = New System.Windows.Forms.MenuItem
- Me.MenuItem30 = New System.Windows.Forms.MenuItem
- Me.MenuItem31 = New System.Windows.Forms.MenuItem
- Me.MenuItem32 = New System.Windows.Forms.MenuItem
- Me.MenuItem33 = New System.Windows.Forms.MenuItem
- Me.MenuItem34 = New System.Windows.Forms.MenuItem
- Me.MenuItem35 = New System.Windows.Forms.MenuItem
- Me.MenuItem19 = New System.Windows.Forms.MenuItem
- Me.MenuItem36 = New System.Windows.Forms.MenuItem
- Me.MenuItem37 = New System.Windows.Forms.MenuItem
- Me.MenuItem38 = New System.Windows.Forms.MenuItem
- Me.MenuItem39 = New System.Windows.Forms.MenuItem
- Me.MenuItem40 = New System.Windows.Forms.MenuItem
- Me.MenuItem41 = New System.Windows.Forms.MenuItem
- Me.MenuItem42 = New System.Windows.Forms.MenuItem
- Me.MenuItem43 = New System.Windows.Forms.MenuItem
- Me.MenuItem44 = New System.Windows.Forms.MenuItem
- Me.MenuItem45 = New System.Windows.Forms.MenuItem
- Me.MenuItem46 = New System.Windows.Forms.MenuItem
- Me.MenuItem47 = New System.Windows.Forms.MenuItem
- Me.MenuItem48 = New System.Windows.Forms.MenuItem
- Me.MenuItem25 = New System.Windows.Forms.MenuItem
- Me.MenuItem26 = New System.Windows.Forms.MenuItem
- Me.MenuItem27 = New System.Windows.Forms.MenuItem
- Me.tbrManager = New System.Windows.Forms.ToolBar
- Me.tbrck = New System.Windows.Forms.ToolBarButton
- Me.rbrrk = New System.Windows.Forms.ToolBarButton
- Me.tbrkc = New System.Windows.Forms.ToolBarButton
- Me.tbrQuery = New System.Windows.Forms.ToolBarButton
- Me.tbrcp = New System.Windows.Forms.ToolBarButton
- Me.tbrkh = New System.Windows.Forms.ToolBarButton
- Me.tbrsprtor = New System.Windows.Forms.ToolBarButton
- Me.tbrconn = New System.Windows.Forms.ToolBarButton
- Me.tbrData = New System.Windows.Forms.ToolBarButton
- Me.tbrSprtors = New System.Windows.Forms.ToolBarButton
- Me.tbrSystem = New System.Windows.Forms.ToolBarButton
- Me.tbrExit = New System.Windows.Forms.ToolBarButton
- Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
- Me.ProgressBar1 = New System.Windows.Forms.ProgressBar
- Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
- CType(Me.StatusBarPanel1, System.ComponentModel.ISupportInitialize).BeginInit()
- CType(Me.StatusBarPanel2, System.ComponentModel.ISupportInitialize).BeginInit()
- CType(Me.StatusBarPanel3, System.ComponentModel.ISupportInitialize).BeginInit()
- CType(Me.StatusBarPanel4, System.ComponentModel.ISupportInitialize).BeginInit()
- CType(Me.StatusBarPanel5, System.ComponentModel.ISupportInitialize).BeginInit()
- Me.SuspendLayout()
- '
- 'StatusBar1
- '
- Me.StatusBar1.Location = New System.Drawing.Point(0, 606)
- Me.StatusBar1.Name = "StatusBar1"
- Me.StatusBar1.Panels.AddRange(New System.Windows.Forms.StatusBarPanel() {Me.StatusBarPanel1, Me.StatusBarPanel2, Me.StatusBarPanel3, Me.StatusBarPanel4, Me.StatusBarPanel5})
- Me.StatusBar1.ShowPanels = True
- Me.StatusBar1.Size = New System.Drawing.Size(1028, 21)
- Me.StatusBar1.TabIndex = 0
- '
- 'StatusBarPanel1
- '
- Me.StatusBarPanel1.Text = "欢迎您使用本软件!"
- Me.StatusBarPanel1.Width = 200
- '
- 'StatusBarPanel2
- '
- Me.StatusBarPanel2.Width = 120
- '
- 'StatusBarPanel3
- '
- Me.StatusBarPanel3.Width = 120
- '
- 'StatusBarPanel4
- '
- Me.StatusBarPanel4.Text = "QQ:103851272"
- '
- 'StatusBarPanel5
- '
- Me.StatusBarPanel5.Width = 300
- '
- 'MainMenu
- '
- Me.MainMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem1, Me.MenuItem4, Me.MenuItem5, Me.MenuItem10, Me.MenuItem13, Me.MenuItem20, Me.MenuItem15, Me.MenuItem17, Me.MenuItem19, Me.MenuItem25, Me.MenuItem27})
- '
- 'MenuItem1
- '
- Me.MenuItem1.Index = 0
- Me.MenuItem1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem2, Me.MenuItem3})
- Me.MenuItem1.Text = "基本信息"
- '
- 'MenuItem2
- '
- Me.MenuItem2.Index = 0
- Me.MenuItem2.Shortcut = System.Windows.Forms.Shortcut.F1
- Me.MenuItem2.Text = "药品信息"
- '
- 'MenuItem3
- '
- Me.MenuItem3.Index = 1
- Me.MenuItem3.Shortcut = System.Windows.Forms.Shortcut.F2
- Me.MenuItem3.Text = "客户信息"
- '
- 'MenuItem4
- '
- Me.MenuItem4.Index = 1
- Me.MenuItem4.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem6, Me.MenuItem7})
- Me.MenuItem4.Text = "采购管理"
- '
- 'MenuItem6
- '
- Me.MenuItem6.Index = 0
- Me.MenuItem6.Shortcut = System.Windows.Forms.Shortcut.F3
- Me.MenuItem6.Text = "采购登记"
- '
- 'MenuItem7
- '
- Me.MenuItem7.Index = 1
- Me.MenuItem7.Shortcut = System.Windows.Forms.Shortcut.F4
- Me.MenuItem7.Text = "采购查询"
- '
- 'MenuItem5
- '
- Me.MenuItem5.Index = 2
- Me.MenuItem5.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem8, Me.MenuItem9})
- Me.MenuItem5.Text = "销售管理"
- '
- 'MenuItem8
- '
- Me.MenuItem8.Index = 0
- Me.MenuItem8.Shortcut = System.Windows.Forms.Shortcut.F5
- Me.MenuItem8.Text = "销售登记"
- '
- 'MenuItem9
- '
- Me.MenuItem9.Index = 1
- Me.MenuItem9.Shortcut = System.Windows.Forms.Shortcut.F6
- Me.MenuItem9.Text = "销售查询"
- '
- 'MenuItem10
- '
- Me.MenuItem10.Index = 3
- Me.MenuItem10.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem11, Me.MenuItem12})
- Me.MenuItem10.Shortcut = System.Windows.Forms.Shortcut.F7
- Me.MenuItem10.Text = "库存管理"
- '
- 'MenuItem11
- '
- Me.MenuItem11.Index = 0
- Me.MenuItem11.Shortcut = System.Windows.Forms.Shortcut.F7
- Me.MenuItem11.Text = "库存盘点"
- '
- 'MenuItem12
- '
- Me.MenuItem12.Index = 1
- Me.MenuItem12.Shortcut = System.Windows.Forms.Shortcut.F8
- Me.MenuItem12.Text = "库存查询打印"
- '
- 'MenuItem13
- '
- Me.MenuItem13.Index = 4
- Me.MenuItem13.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem14, Me.MenuItem24})
- Me.MenuItem13.Text = "综合统计管理"
- '
- 'MenuItem14
- '
- Me.MenuItem14.Index = 0
- Me.MenuItem14.Shortcut = System.Windows.Forms.Shortcut.F9
- Me.MenuItem14.Text = "票据重打"
- '
- 'MenuItem24
- '
- Me.MenuItem24.Index = 1
- Me.MenuItem24.Text = "通用查询"
- '
- 'MenuItem20
- '
- Me.MenuItem20.Index = 5
- Me.MenuItem20.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem21, Me.MenuItem22})
- Me.MenuItem20.Text = "系统管理"
- '
- 'MenuItem21
- '
- Me.MenuItem21.Index = 0
- Me.MenuItem21.Text = "采购维护"
- '
- 'MenuItem22
- '
- Me.MenuItem22.Index = 1
- Me.MenuItem22.Text = "销售维护"
- '
- 'MenuItem15
- '
- Me.MenuItem15.Index = 6
- Me.MenuItem15.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem16, Me.MenuItem23})
- Me.MenuItem15.Text = "系统设置"
- '
- 'MenuItem16
- '
- Me.MenuItem16.Index = 0
- Me.MenuItem16.Shortcut = System.Windows.Forms.Shortcut.F10
- Me.MenuItem16.Text = "用户登记"
- '
- 'MenuItem23
- '
- Me.MenuItem23.Index = 1
- Me.MenuItem23.Text = "权限设置"
- '
- 'MenuItem17
- '
- Me.MenuItem17.Index = 7
- Me.MenuItem17.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem18, Me.MenuItem28, Me.MenuItem29, Me.MenuItem30, Me.MenuItem31, Me.MenuItem32, Me.MenuItem33, Me.MenuItem34, Me.MenuItem35})
- Me.MenuItem17.Text = "门店配送管理"
- '
- 'MenuItem18
- '
- Me.MenuItem18.Index = 0
- Me.MenuItem18.Text = "配送中心管理"
- '
- 'MenuItem28
- '
- Me.MenuItem28.Index = 1
- Me.MenuItem28.Text = "配送对象管理"
- '
- 'MenuItem29
- '
- Me.MenuItem29.Index = 2
- Me.MenuItem29.Text = "新店铺货管理"
- '
- 'MenuItem30
- '
- Me.MenuItem30.Index = 3
- Me.MenuItem30.Text = "批复补货申请"
- '
- 'MenuItem31
- '
- Me.MenuItem31.Index = 4
- Me.MenuItem31.Text = "门店配送管理"
- '
- 'MenuItem32
- '
- Me.MenuItem32.Index = 5
- Me.MenuItem32.Text = "门店退货管理"
- '
- 'MenuItem33
- '
- Me.MenuItem33.Index = 6
- Me.MenuItem33.Text = "-"
- '
- 'MenuItem34
- '
- Me.MenuItem34.Index = 7
- Me.MenuItem34.Text = "中心配送结算"
- '
- 'MenuItem35
- '
- Me.MenuItem35.Index = 8
- Me.MenuItem35.Text = "中心查询统计"
- '
- 'MenuItem19
- '
- Me.MenuItem19.Index = 8
- Me.MenuItem19.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem36, Me.MenuItem37, Me.MenuItem38, Me.MenuItem39, Me.MenuItem40, Me.MenuItem41, Me.MenuItem42, Me.MenuItem43, Me.MenuItem44, Me.MenuItem45, Me.MenuItem46, Me.MenuItem47, Me.MenuItem48})
- Me.MenuItem19.Text = "门店零售管理"
- '
- 'MenuItem36
- '
- Me.MenuItem36.Index = 0
- Me.MenuItem36.Text = "门店基本资料"
- '
- 'MenuItem37
- '
- Me.MenuItem37.Index = 1
- Me.MenuItem37.Text = "门店补货申请"
- '
- 'MenuItem38
- '
- Me.MenuItem38.Index = 2
- Me.MenuItem38.Text = "门店收货管理"
- '
- 'MenuItem39
- '
- Me.MenuItem39.Index = 3
- Me.MenuItem39.Text = "门店退货管理"
- '
- 'MenuItem40
- '
- Me.MenuItem40.Index = 4
- Me.MenuItem40.Text = "-"
- '
- 'MenuItem41
- '
- Me.MenuItem41.Index = 5
- Me.MenuItem41.Text = "门店零售收银"
- '
- 'MenuItem42
- '
- Me.MenuItem42.Index = 6
- Me.MenuItem42.Text = "门店零售查询"
- '
- 'MenuItem43
- '
- Me.MenuItem43.Index = 7
- Me.MenuItem43.Text = "-"
- '
- 'MenuItem44
- '
- Me.MenuItem44.Index = 8
- Me.MenuItem44.Text = "门店结算管理"
- '
- 'MenuItem45
- '
- Me.MenuItem45.Index = 9
- Me.MenuItem45.Text = "门店促销管理"
- '
- 'MenuItem46
- '
- Me.MenuItem46.Index = 10
- Me.MenuItem46.Text = "-"
- '
- 'MenuItem47
- '
- Me.MenuItem47.Index = 11
- Me.MenuItem47.Text = "处方库管理"
- '
- 'MenuItem48
- '
- Me.MenuItem48.Index = 12
- Me.MenuItem48.Text = "处方库查询"
- '
- 'MenuItem25
- '
- Me.MenuItem25.Index = 9
- Me.MenuItem25.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem26})
- Me.MenuItem25.Text = "帮助"
- '
- 'MenuItem26
- '
- Me.MenuItem26.Index = 0
- Me.MenuItem26.Text = "关于"
- '
- 'MenuItem27
- '
- Me.MenuItem27.Index = 10
- Me.MenuItem27.Text = "退出"
- '
- 'tbrManager
- '
- Me.tbrManager.AccessibleRole = System.Windows.Forms.AccessibleRole.Grip
- Me.tbrManager.Appearance = System.Windows.Forms.ToolBarAppearance.Flat
- Me.tbrManager.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.tbrck, Me.rbrrk, Me.tbrkc, Me.tbrQuery, Me.tbrcp, Me.tbrkh, Me.tbrsprtor, Me.tbrconn, Me.tbrData, Me.tbrSprtors, Me.tbrSystem, Me.tbrExit})
- Me.tbrManager.DropDownArrows = True
- Me.tbrManager.ImageList = Me.ImageList1
- Me.tbrManager.Location = New System.Drawing.Point(0, 0)
- Me.tbrManager.Name = "tbrManager"
- Me.tbrManager.ShowToolTips = True
- Me.tbrManager.Size = New System.Drawing.Size(1028, 44)
- Me.tbrManager.TabIndex = 1
- '
- 'tbrck
- '
- Me.tbrck.ImageIndex = 19
- Me.tbrck.Text = "销售开单"
- '
- 'rbrrk
- '
- Me.rbrrk.ImageIndex = 13
- Me.rbrrk.Text = "入库管理"
- '
- 'tbrkc
- '
- Me.tbrkc.ImageIndex = 16
- Me.tbrkc.Text = "库存管理"
- '
- 'tbrQuery
- '
- Me.tbrQuery.ImageIndex = 20
- Me.tbrQuery.Text = "报表管理"
- '
- 'tbrcp
- '
- Me.tbrcp.ImageIndex = 26
- Me.tbrcp.Text = "药品信息"
- '
- 'tbrkh
- '
- Me.tbrkh.ImageIndex = 24
- Me.tbrkh.Text = "客户管理"
- '
- 'tbrsprtor
- '
- Me.tbrsprtor.ImageIndex = 15
- Me.tbrsprtor.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- Me.tbrsprtor.Text = "退出"
- '
- 'tbrconn
- '
- Me.tbrconn.ImageIndex = 28
- Me.tbrconn.Text = "连机检测"
- '
- 'tbrData
- '
- Me.tbrData.Enabled = False
- Me.tbrData.ImageIndex = 22
- Me.tbrData.Text = "上报数据"
- '
- 'tbrSprtors
- '
- Me.tbrSprtors.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbrSystem
- '
- Me.tbrSystem.ImageIndex = 12
- Me.tbrSystem.Text = "系统管理"
- '
- 'tbrExit
- '
- Me.tbrExit.ImageIndex = 14
- Me.tbrExit.Text = "退出"
- '
- 'ImageList1
- '
- Me.ImageList1.ImageSize = New System.Drawing.Size(16, 16)
- Me.ImageList1.ImageStream = CType(resources.GetObject("ImageList1.ImageStream"), System.Windows.Forms.ImageListStreamer)
- Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
- '
- 'ProgressBar1
- '
- Me.ProgressBar1.Location = New System.Drawing.Point(736, 8)
- Me.ProgressBar1.Name = "ProgressBar1"
- Me.ProgressBar1.Size = New System.Drawing.Size(232, 32)
- Me.ProgressBar1.TabIndex = 3
- '
- 'frmMain
- '
- Me.AutoScaleBaseSize = New System.Drawing.Size(8, 18)
- Me.ClientSize = New System.Drawing.Size(1028, 627)
- Me.Controls.Add(Me.ProgressBar1)
- Me.Controls.Add(Me.tbrManager)
- Me.Controls.Add(Me.StatusBar1)
- Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D
- Me.HelpButton = True
- Me.IsMdiContainer = True
- Me.Menu = Me.MainMenu
- Me.Name = "frmMain"
- Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
- CType(Me.StatusBarPanel1, System.ComponentModel.ISupportInitialize).EndInit()
- CType(Me.StatusBarPanel2, System.ComponentModel.ISupportInitialize).EndInit()
- CType(Me.StatusBarPanel3, System.ComponentModel.ISupportInitialize).EndInit()
- CType(Me.StatusBarPanel4, System.ComponentModel.ISupportInitialize).EndInit()
- CType(Me.StatusBarPanel5, System.ComponentModel.ISupportInitialize).EndInit()
- Me.ResumeLayout(False)
- End Sub
- #End Region
- Shared Sub Main()
- Dim secity As New localJxc.Encryption
- If secity.readregedit() = True Then
- Application.Run(New frmLogin)
- Else
- Application.Run(New frmregedit)
- End If
- End Sub
- Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- Dim frmloginer As New frmLogin
- StatusBar1.Panels(0).Text = "欢迎使用本软件!"
- StatusBar1.Panels(1).Text = Now.ToLongDateString
- StatusBar1.Panels(2).Text = Now.ToLongTimeString
- StatusBar1.Panels(4).Text = "当前的操作人员是:" & frmloginer.struser
- Dim menuinstance As New MenuItemClass
- Dim frmmaininst As New frmMain
- Dim lsweb As New jxcmanage
- 'Dim t As Hashtable = menuinstance.GetMenuItemsNameAndText(frmmaininst, frmmaininst.MainMenu)
- 'For Each o As System.Collections.DictionaryEntry In t
- 'Next
- Dim lsuser As String
- lsuser = frmloginer.struser
- Dim lsObject As jxcmanage
- Dim cn As System.Data.SqlClient.SqlConnection = New SqlConnection(ConfigurationSettings.AppSettings.Get("constr"))
- cn.Open()
- Dim cmdmenu As New SqlClient.SqlCommand
- cmdmenu.Connection = cn
- cmdmenu.CommandText = "select [name],boolean from wz_menu where username ='" & lsuser & "' and boolean ='0'"
- Dim drd As SqlDataReader = cmdmenu.ExecuteReader()
- Do While drd.Read()
- Dim mi As MenuItem
- Dim smi As MenuItem
- For Each mi In Me.Menu.MenuItems
- If drd.GetString(0).Trim = mi.Text.Trim Then
- mi.Visible = False
- End If
- For Each smi In mi.MenuItems
- 'If drd.GetString(0).Trim <> smi.Text.Trim Then
- 'smi.Enabled = False
- 'End If
- Next
- Next
- Loop
- End Sub
- Private Sub tbrManager_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles tbrManager.ButtonClick
- Select Case e.Button.Text
- Case "销售开单"
- Dim frminstancer As New frmCk
- frminstancer.MdiParent = Me
- frminstancer.Show()
- frminstancer.add()
- frminstancer.tbnEnable("tbrAdd.Enabled = False", frminstancer.tbrCk)
- Case "入库管理"
- Dim frminstancer As New frmrk
- frminstancer.Show()
- frminstancer.add()
- frminstancer.tbnEnable("tbrAdd.Enabled = False", frminstancer.tbrRk)
- Case "库存管理"
- Dim frmkcer As frmKCQuery = New frmKCQuery
- frmkcer.Show()
- Case "报表管理"
- Dim startformer As New StartForm
- startformer.Show()
- Case "药品信息"
- Dim frmcper As frmCp = New frmCp
- frmcper.Show()
- Case "客户管理"
- Dim frmkher As frmkh = New frmkh
- frmkher.Show()
- Case "连机检测"
- Dim localconn As jxcmanage
- If localconn.IsConnected = True Then
- tbrManager.Buttons(7).Enabled = False
- tbrManager.Buttons(8).Enabled = True
- Else
- tbrManager.Buttons(8).Enabled = False
- End If
- Case "上报数据"
- Dim localconn As New jxcmanage
- tbrManager.Buttons(8).Enabled = False
- Dim Lcount As Int16
- Lcount = localconn.returncount("sp_addwebdata")
- If Lcount <= 0 Then
- MessageBox.Show("上传数据失败!请重新上传数据", "提示", MessageBoxButtons.OK)
- Else
- Dim i As Int16
- ProgressBar1.Maximum = Lcount
- For i = 0 To ProgressBar1.Maximum
- ProgressBar1.Value = i
- Timer1_Timer()
- Next i
- MessageBox.Show("上传数据" & Lcount & "条记录", "提示", MessageBoxButtons.OK)
- tbrManager.Buttons(7).Enabled = True
- End If
- Case "系统管理"
- Dim frmcommqueryer As New frmCommQuery
- frmcommqueryer.Show()
- Case "退出"
- Application.Exit()
- End Select
- End Sub
- Private Sub Timer1_Timer()
- ProgressBar1.Value = ProgressBar1.Value
- If ProgressBar1.Value = ProgressBar1.Maximum - 1 Then Timer1.Enabled = False
- End Sub
- Private Sub MenuItem11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem11.Click
- Dim frmpder As New frmPd
- frmpder.Show()
- End Sub
- Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem2.Click
- Dim frmmeder As New frmCp
- frmmeder.Show()
- End Sub
- Private Sub MenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem3.Click
- Dim frmkher As New frmkh
- frmkher.Show()
- End Sub
- Private Sub MenuItem6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem6.Click
- Dim frminstancer As New frmrk
- frminstancer.Show()
- frminstancer.add()
- frminstancer.tbnEnable("tbrAdd.Enabled = False", frminstancer.tbrRk)
- End Sub
- Private Sub MenuItem7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem7.Click
- Dim frmrkqueryer As New frmRkQuery
- frmrkqueryer.Show()
- End Sub
- Private Sub MenuItem8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem8.Click
- Dim frminstancer As New frmCk
- frminstancer.Show()
- frminstancer.add()
- frminstancer.tbnEnable("tbrAdd.Enabled = False", frminstancer.tbrCk)
- End Sub
- Private Sub MenuItem9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem9.Click
- Dim frmckqueryer As New frmCkQuery
- frmckqueryer.Show()
- End Sub
- Private Sub MenuItem12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem12.Click
- Dim frmkcer As New frmkcmanage
- frmkcer.Show()
- End Sub
- Private Sub MenuItem21_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem21.Click
- Dim frmrker As New frmrkmanage
- frmrker.Show()
- End Sub
- Private Sub MenuItem22_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem22.Click
- Dim frmcker As New frmckmanage
- frmcker.Show()
- End Sub
- Private Sub MenuItem16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem16.Click
- Dim frmer As New frmPerson
- frmer.Show()
- End Sub
- Private Sub MenuItem19_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem19.Click
- End Sub
- Private Sub MenuItem18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem18.Click
-
- End Sub
- Private Sub MenuItem23_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem23.Click
- Dim frmqxer As New frmQx
- frmqxer.Show()
- End Sub
- Private Sub MenuItem14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem14.Click
- 'Dim frmbillqueryer As New frmbillquery
- 'frmbillqueryer.Show()
- End Sub
- Private Sub MenuItem24_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem24.Click
- Dim frmcommqueryer As New frmCommQuery
- frmcommqueryer.Show()
- End Sub
- Private Sub MenuItem20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem20.Click
- End Sub
- Private Sub MenuItem27_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem27.Click
- Me.Close()
- End Sub
- Private Sub MenuItem26_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem26.Click
- Dim frmabouter As New frmAbout
- frmabouter.Show()
- End Sub
- End Class