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

📄 changemedic.frm

📁 药品管理系统,药品的进销,药品的过期以及药品系统的备分
💻 FRM
字号:
VERSION 5.00
Begin VB.Form changemedic 
   Caption         =   "修改药品信息"
   ClientHeight    =   5700
   ClientLeft      =   285
   ClientTop       =   420
   ClientWidth     =   9600
   LinkTopic       =   "Form1"
   ScaleHeight     =   5700
   ScaleWidth      =   9600
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "修改药品信息"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   5295
      Left            =   960
      TabIndex        =   0
      Top             =   0
      Width           =   6975
      Begin VB.TextBox Text5 
         Height          =   375
         Left            =   960
         TabIndex        =   13
         Top             =   3840
         Width           =   3735
      End
      Begin VB.TextBox Text4 
         Height          =   375
         Left            =   1080
         TabIndex        =   12
         Top             =   3000
         Width           =   3735
      End
      Begin VB.CommandButton Command3 
         Caption         =   "<<药品详细信息"
         Height          =   495
         Left            =   5040
         TabIndex        =   11
         Top             =   960
         Width           =   1695
      End
      Begin VB.CommandButton Command2 
         Caption         =   "取消"
         Height          =   375
         Left            =   3360
         TabIndex        =   10
         Top             =   4560
         Width           =   1455
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确认"
         Height          =   375
         Left            =   1080
         TabIndex        =   9
         Top             =   4560
         Width           =   1455
      End
      Begin VB.TextBox Text3 
         Height          =   375
         Left            =   1080
         TabIndex        =   8
         Top             =   2280
         Width           =   3855
      End
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   1080
         TabIndex        =   7
         Top             =   1440
         Width           =   3855
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1080
         TabIndex        =   6
         Top             =   600
         Width           =   3855
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "药品价格:"
         Height          =   180
         Left            =   120
         TabIndex        =   5
         Top             =   3960
         Width           =   900
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "库存数量:"
         Height          =   180
         Left            =   120
         TabIndex        =   4
         Top             =   3150
         Width           =   900
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "药品说明:"
         Height          =   180
         Left            =   120
         TabIndex        =   3
         Top             =   2340
         Width           =   900
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "药品名称:"
         Height          =   180
         Left            =   120
         TabIndex        =   2
         Top             =   1530
         Width           =   900
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "药品类别:"
         Height          =   180
         Left            =   120
         TabIndex        =   1
         Top             =   720
         Width           =   900
      End
   End
End
Attribute VB_Name = "changemedic"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub command1_Click()
   If Not IsNumeric(Text4.Text) Then
       MsgBox "Medic Dues Have to be Number Format!", vbCritical
       Text4.SetFocus
    Exit Sub
    End If
    

    
    If CCur(Text4.Text) < 0 Then
        MsgBox "Cannot Enter Negative Values In Dues!", vbCritical
        Text4.SetFocus
        Exit Sub
    End If
    
        
    Call openconn
    
   sqlstr = "update medic set dues=" & CCur(Text4.Text) & " where medicid = '" & Text1.Text & "'"
    
    
    Call rs(sqlstr)
    
    Call closeconn
    
    MsgBox "Medic Dues Saved 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

⌨️ 快捷键说明

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