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

📄 delmedic.frm

📁 药品管理系统,药品的进销,药品的过期以及药品系统的备分
💻 FRM
字号:
VERSION 5.00
Begin VB.Form delmedic 
   Caption         =   "删除药品信息"
   ClientHeight    =   5610
   ClientLeft      =   135
   ClientTop       =   420
   ClientWidth     =   7770
   LinkTopic       =   "Form1"
   ScaleHeight     =   5610
   ScaleWidth      =   7770
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "删除药品信息"
      Height          =   4575
      Left            =   720
      TabIndex        =   0
      Top             =   360
      Width           =   6135
      Begin VB.CommandButton Command3 
         Caption         =   "<<药品详细信息"
         Height          =   495
         Left            =   4320
         TabIndex        =   13
         Top             =   1320
         Width           =   1695
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1200
         TabIndex        =   7
         Top             =   240
         Width           =   3975
      End
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   1200
         TabIndex        =   6
         Top             =   960
         Width           =   3975
      End
      Begin VB.TextBox Text3 
         Height          =   375
         Left            =   1200
         TabIndex        =   5
         Top             =   1800
         Width           =   3975
      End
      Begin VB.TextBox Text4 
         Height          =   375
         Left            =   1200
         TabIndex        =   4
         Top             =   2520
         Width           =   3975
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定"
         Default         =   -1  'True
         Height          =   495
         Left            =   1320
         TabIndex        =   3
         Top             =   3960
         Width           =   1575
      End
      Begin VB.CommandButton Command2 
         Caption         =   "取消"
         Height          =   495
         Left            =   3720
         TabIndex        =   2
         Top             =   3960
         Width           =   1575
      End
      Begin VB.TextBox Text5 
         Height          =   375
         Left            =   1200
         TabIndex        =   1
         Top             =   3240
         Width           =   3975
      End
      Begin VB.Label Label1 
         Caption         =   "药品类别:"
         Height          =   375
         Left            =   210
         TabIndex        =   12
         Top             =   360
         Width           =   975
      End
      Begin VB.Label Label2 
         Caption         =   "药品名称:"
         Height          =   375
         Left            =   210
         TabIndex        =   11
         Top             =   1080
         Width           =   975
      End
      Begin VB.Label Label3 
         Caption         =   "药品说明:"
         Height          =   375
         Left            =   210
         TabIndex        =   10
         Top             =   1920
         Width           =   975
      End
      Begin VB.Label Label4 
         Caption         =   "库存数量:"
         Height          =   375
         Left            =   210
         TabIndex        =   9
         Top             =   2640
         Width           =   975
      End
      Begin VB.Label Label5 
         Caption         =   "药品价格:"
         Height          =   375
         Left            =   210
         TabIndex        =   8
         Top             =   3360
         Width           =   975
      End
   End
End
Attribute VB_Name = "delmedic"
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
        Text2.SetFocus
        Exit Sub
    End If
    
    Call openconn
    sqlstr = "delete from medic where leibie='" & Text1.Text & "' and name = '" & Text2.Text & "'"
    Call rs(sqlstr)
    
    Call closeconn
    
    MsgBox "Medic infomation delete Successfully!", vbInformation
        
    Unload Me
End Sub

Private Sub Command2_Click()
  Unload Me
End Sub

Private Sub Command3_Click()

   If Text1.Text = "" Then
        MsgBox "Enter a leibie:", vbCritical
        Text1.SetFocus
        Exit Sub
    End If
    If Text2.Text = "" Then
        MsgBox "Enter a customer ID:", vbCritical
        Text2.SetFocus
        Exit Sub
    End If
    Call openconn
    sqlstr = "select description,qty,inprice from medic where leibie='" & Text1.Text & "' and name = '" & Text2.Text & "' "
    
    Call rs(sqlstr)
    
    If adoRS.EOF Then
        MsgBox "NO medic Selected", vbCritical
    Exit Sub
    End If
        
    Text3.Text = adoRS.Fields("description")
    Text4.Text = adoRS.Fields("qty")
    Text5.Text = adoRS.Fields("inprice")
    Call closeconn
End Sub

⌨️ 快捷键说明

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