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

📄 form13.frm

📁 现在我国的多数诊所或小型医院的管理水平还停留在纸介质的基础上
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form13 
   Caption         =   "药品编辑"
   ClientHeight    =   4710
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7860
   LinkTopic       =   "Form3"
   ScaleHeight     =   4710
   ScaleWidth      =   7860
   StartUpPosition =   1  '所有者中心
   Begin VB.TextBox Text9 
      Height          =   375
      Left            =   1560
      TabIndex        =   17
      Text            =   "Text2"
      Top             =   2400
      Width           =   1935
   End
   Begin VB.TextBox Text8 
      Height          =   375
      Left            =   4440
      TabIndex        =   16
      Text            =   "Text2"
      Top             =   1800
      Width           =   2895
   End
   Begin VB.TextBox Text7 
      Height          =   375
      Left            =   4440
      TabIndex        =   15
      Text            =   "Text2"
      Top             =   1200
      Width           =   1215
   End
   Begin VB.TextBox Text6 
      Height          =   375
      Left            =   1560
      TabIndex        =   14
      Text            =   "Text2"
      Top             =   1800
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      Caption         =   "药品信息"
      Height          =   3135
      Left            =   120
      TabIndex        =   3
      Top             =   240
      Width           =   7575
      Begin VB.TextBox Text5 
         Height          =   375
         Left            =   1440
         TabIndex        =   13
         Text            =   "Text2"
         Top             =   1080
         Width           =   1815
      End
      Begin VB.TextBox Text4 
         Height          =   375
         Left            =   4320
         TabIndex        =   5
         Text            =   "Text1"
         Top             =   480
         Width           =   2655
      End
      Begin VB.TextBox Text3 
         Height          =   375
         Left            =   1440
         TabIndex        =   4
         Text            =   "Text2"
         Top             =   360
         Width           =   1575
      End
      Begin VB.Label Label9 
         Caption         =   "库存量"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   480
         TabIndex        =   12
         Top             =   2160
         Width           =   975
      End
      Begin VB.Label Label8 
         Caption         =   "有效期"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   3240
         TabIndex        =   11
         Top             =   1560
         Width           =   975
      End
      Begin VB.Label Label7 
         Caption         =   "单价"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   3480
         TabIndex        =   10
         Top             =   960
         Width           =   975
      End
      Begin VB.Label Label6 
         Caption         =   "单位"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   480
         TabIndex        =   9
         Top             =   1560
         Width           =   975
      End
      Begin VB.Label Label5 
         Caption         =   "型号规格"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   360
         TabIndex        =   8
         Top             =   1080
         Width           =   975
      End
      Begin VB.Label Label4 
         Caption         =   "药品编码"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   360
         TabIndex        =   7
         Top             =   480
         Width           =   975
      End
      Begin VB.Label Label3 
         Caption         =   "药品名称"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   3240
         TabIndex        =   6
         Top             =   480
         Width           =   975
      End
   End
   Begin VB.CheckBox ck 
      Caption         =   "连续增加"
      Height          =   375
      Left            =   840
      TabIndex        =   2
      Top             =   3960
      Width           =   1335
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退  出"
      Height          =   495
      Left            =   4920
      TabIndex        =   1
      Top             =   3960
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "保  存"
      Height          =   495
      Left            =   3240
      TabIndex        =   0
      Top             =   3960
      Width           =   1215
   End
End
Attribute VB_Name = "Form13"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim t_ As String
Public Sub setType(t As String)
t_ = t
End Sub

Private Sub Command1_Click()
If Text3 = "" Then
Text3.SetFocus
Exit Sub
End If
If Text4 = "" Then
Text4.SetFocus
Exit Sub
End If
If Text5 = "" Then
Text5.SetFocus
Exit Sub
End If
If t_ = "add" Then
rec_med.AddNew
rec_med.Fields("药品编码") = Text3
rec_med.Fields("药品名称") = Text4
rec_med.Fields("型号规格") = Text5
rec_med.Fields("单位") = Text6
rec_med.Fields("单价") = Text7
rec_med.Fields("有效期") = Text9
rec_med.Fields("库存量") = Text8
End If

If t_ = "modify" Then
rec_med.Fields("药品编码") = Text3
rec_med.Fields("药品名称") = Text4
rec_med.Fields("型号规格") = Text5
rec_med.Fields("单位") = Text6
rec_med.Fields("单价") = Text7
rec_med.Fields("有效期") = Text9
rec_med.Fields("库存量") = Text8
End If

If ck.Value <> 1 Then
Unload Me
End If

Text3 = ""
Text4 = ""
Text5 = ""
Text6 = ""
Text7 = ""
Text8 = ""
Text9 = "2006-1-1"

End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()

Text3 = ""
Text4 = ""
Text5 = ""
Text6 = ""
Text7 = ""
Text8 = ""
Text9 = "2006-1-1"



If t_ = "modify" Then
If rec_med.State = adStateOpen And Not rec_med.EOF And Not rec_med.BOF Then
Text3 = rec_med.Fields("药品编码")
Text4 = rec_med.Fields("药品名称")
Text5 = rec_med.Fields("型号规格")
Text6 = rec_med.Fields("单位")
Text7 = rec_med.Fields("单价")
Text8 = rec_med.Fields("有效期")
Text9 = rec_med.Fields("库存量")
End If
ck.Visible = False
End If

End Sub

⌨️ 快捷键说明

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