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

📄 addmedic.frm

📁 药品管理系统,药品的进销,药品的过期以及药品系统的备分
💻 FRM
字号:
VERSION 5.00
Begin VB.Form addmedic 
   Caption         =   "添加药品信息"
   ClientHeight    =   5445
   ClientLeft      =   285
   ClientTop       =   420
   ClientWidth     =   8070
   LinkTopic       =   "Form1"
   ScaleHeight     =   5445
   ScaleWidth      =   8070
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "添加药品信息"
      Height          =   4575
      Left            =   1080
      TabIndex        =   0
      Top             =   480
      Width           =   6135
      Begin VB.TextBox Text5 
         Height          =   375
         Left            =   1200
         TabIndex        =   12
         Top             =   3240
         Width           =   3975
      End
      Begin VB.CommandButton Command2 
         Caption         =   "取消"
         Height          =   495
         Left            =   3720
         TabIndex        =   11
         Top             =   3960
         Width           =   1575
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定"
         Default         =   -1  'True
         Height          =   495
         Left            =   1320
         TabIndex        =   10
         Top             =   3960
         Width           =   1575
      End
      Begin VB.TextBox Text4 
         Height          =   375
         Left            =   1200
         TabIndex        =   9
         Top             =   2520
         Width           =   3975
      End
      Begin VB.TextBox Text3 
         Height          =   375
         Left            =   1200
         TabIndex        =   8
         Top             =   1800
         Width           =   3975
      End
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   1200
         TabIndex        =   7
         Top             =   960
         Width           =   3975
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1200
         TabIndex        =   6
         Top             =   240
         Width           =   3975
      End
      Begin VB.Label Label5 
         Caption         =   "药品价格:"
         Height          =   375
         Left            =   210
         TabIndex        =   5
         Top             =   3360
         Width           =   975
      End
      Begin VB.Label Label4 
         Caption         =   "库存数量:"
         Height          =   375
         Left            =   210
         TabIndex        =   4
         Top             =   2640
         Width           =   975
      End
      Begin VB.Label Label3 
         Caption         =   "药品说明:"
         Height          =   375
         Left            =   210
         TabIndex        =   3
         Top             =   1920
         Width           =   975
      End
      Begin VB.Label Label2 
         Caption         =   "药品名称:"
         Height          =   375
         Left            =   210
         TabIndex        =   2
         Top             =   1080
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "药品类别:"
         Height          =   375
         Left            =   210
         TabIndex        =   1
         Top             =   360
         Width           =   975
      End
   End
End
Attribute VB_Name = "addmedic"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub command1_Click()
   If Text1.Text = "" Then
        MsgBox "Enter a Leibie Please:", vbCritical
        Text1.SetFocus
        Exit Sub
    End If

   If Text2.Text = "" Then
        MsgBox "Enter a Name Please:", vbCritical
        Text1.SetFocus
        Exit Sub
    End If
    
    Call openconn
    sqlstr = "insert into medic values('" & Text1.Text & "','" & Text2.Text & "','" & Text3.Text & "','" & Text4.Text & "','" & Text5.Text & "')"
    Call rs(sqlstr)
    Call closeconn
    
    MsgBox "MedicInfo Create Successfully!", vbInformation
        
    Unload Me
End Sub


Private Sub Command2_Click()
   Unload Me
End Sub


⌨️ 快捷键说明

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