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

📄 medicsell.frm

📁 药品管理系统,药品的进销,药品的过期以及药品系统的备分
💻 FRM
字号:
VERSION 5.00
Begin VB.Form medicsell 
   Caption         =   "销售药品"
   ClientHeight    =   5595
   ClientLeft      =   210
   ClientTop       =   420
   ClientWidth     =   7965
   LinkTopic       =   "Form1"
   ScaleHeight     =   5595
   ScaleWidth      =   7965
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   495
      Left            =   3240
      TabIndex        =   11
      Top             =   4920
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Default         =   -1  'True
      Height          =   495
      Left            =   1440
      TabIndex        =   10
      Top             =   4920
      Width           =   1455
   End
   Begin VB.TextBox Text5 
      Height          =   495
      Left            =   1440
      TabIndex        =   9
      Top             =   3960
      Width           =   3375
   End
   Begin VB.TextBox Text4 
      Height          =   495
      Left            =   1440
      TabIndex        =   8
      Top             =   3120
      Width           =   3375
   End
   Begin VB.TextBox Text3 
      Height          =   495
      Left            =   1440
      TabIndex        =   7
      Top             =   2160
      Width           =   3375
   End
   Begin VB.TextBox Text2 
      Height          =   495
      Left            =   1440
      TabIndex        =   6
      Top             =   1320
      Width           =   3375
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Left            =   1440
      TabIndex        =   4
      Top             =   600
      Width           =   3375
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      Caption         =   "数量:"
      Height          =   180
      Left            =   660
      TabIndex        =   5
      Top             =   2295
      Width           =   540
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "销售日期:"
      Height          =   180
      Left            =   300
      TabIndex        =   3
      Top             =   4080
      Width           =   900
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "销售价:"
      Height          =   180
      Left            =   480
      TabIndex        =   2
      Top             =   3288
      Width           =   720
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "会员号:"
      Height          =   180
      Left            =   480
      TabIndex        =   1
      Top             =   1511
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "药品名:"
      Height          =   180
      Left            =   480
      TabIndex        =   0
      Top             =   720
      Width           =   720
   End
End
Attribute VB_Name = "medicsell"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub command1_Click()
    Call opencon
    sqlstr="insert into selling values('"&Text1.Text&"' , '"&Text2.Text&"','"&Text3.Text&"','"&Text4.Text&"','"&Text5.Text&"')"
    Call rs(sqlstr)
    Call closecomm
    
    Call openconn
    sqlstr = "update selling set qty=qty - val(Text3.text) where leibie='" & Text1.Text & "' and name = '" & Text2.Text & "'"
    Call rs(sqlstr)
    
    Call closeconn
    
    MsgBox "Medic sell Successfully!", vbInformation
        
    Unload Me
End Sub

Private Sub command2_Click()
  Unload Me
End Sub


⌨️ 快捷键说明

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