⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 denglu.frm

📁 一个医药进存销程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form denglu 
   Caption         =   "医药进销存管理系统"
   ClientHeight    =   2250
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4035
   LinkTopic       =   "Form1"
   ScaleHeight     =   2250
   ScaleWidth      =   4035
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Height          =   2175
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   3975
      Begin VB.CommandButton Command2 
         Caption         =   "取  消"
         Height          =   375
         Left            =   2400
         TabIndex        =   6
         Top             =   1680
         Width           =   975
      End
      Begin VB.CommandButton Command1 
         Caption         =   "登  录"
         Default         =   -1  'True
         Height          =   375
         Left            =   1320
         TabIndex        =   5
         Top             =   1680
         Width           =   975
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   1560
         TabIndex        =   4
         Text            =   "Combo1"
         Top             =   600
         Width           =   1815
      End
      Begin VB.TextBox Text1 
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   1560
         PasswordChar    =   "*"
         TabIndex        =   1
         Top             =   1200
         Width           =   1815
      End
      Begin VB.Label Label3 
         Caption         =   "Version1.0"
         Height          =   255
         Left            =   120
         TabIndex        =   7
         Top             =   1800
         Width           =   1095
      End
      Begin VB.Image Image1 
         Height          =   240
         Left            =   240
         Picture         =   "denglu.frx":0000
         Top             =   240
         Width           =   450
      End
      Begin VB.Label Label2 
         Caption         =   "登录密码:"
         Height          =   375
         Left            =   360
         TabIndex        =   3
         Top             =   1200
         Width           =   1215
      End
      Begin VB.Label Label1 
         Caption         =   "登录名称:"
         Height          =   375
         Left            =   360
         TabIndex        =   2
         Top             =   600
         Width           =   1215
      End
   End
End
Attribute VB_Name = "denglu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Trecordset As New ADODB.Recordset

Private Sub Command1_Click()
    'open the DSN
    With Trecordset
         Set .ActiveConnection = SGWConnection
         .CursorLocation = adUseServer
         .CursorType = adOpenKeyset
         .LockType = adLockOptimistic
         .Source = "Select * from yuangong where name='" & Trim(Combo1.Text) & "' and password='" & Trim(Text1.Text) & "'"
         .Open
    End With
    If Trecordset.RecordCount > 0 Then
       If Trecordset.Fields("guanliyuan") = 1 Then
          quanxian = 1
       Else
          quanxian = 0
       End If
       YuanGong = Trim(Combo1.Text)
       Load SGWMain
       SGWMain.Show
       Unload Me
    Else
       Unload Me
    End If
End Sub

Private Sub Command2_Click()
    Unload Me
End Sub

Private Sub Form_Load()
    'set the window in the middle
    Me.Left = (Screen.Width - Me.Width) / 2
    Me.Top = (Screen.Height - Me.Height) / 2
    '********
    'open the DSN
    With Trecordset
         Set .ActiveConnection = SGWConnection
         .CursorLocation = adUseServer
         .CursorType = adOpenKeyset
         .LockType = adLockOptimistic
         .Source = "Select * from yuangong order by id desc"
         .Open
    End With
    Do While Not Trecordset.EOF
       Combo1.Text = Trecordset.Fields("name")
       Combo1.AddItem Trecordset.Fields("name")
    Trecordset.MoveNext
    Loop
    Trecordset.Close

    
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -