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

📄 wh_dgl.frm

📁 小型医院管理
💻 FRM
字号:
VERSION 5.00
Begin VB.Form wh_dgl 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "齐英天肛肠外科"
   ClientHeight    =   3150
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4050
   Icon            =   "wh_dgl.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3150
   ScaleWidth      =   4050
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      Caption         =   "单项收费项目录入"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2055
      Left            =   240
      TabIndex        =   2
      Top             =   240
      Width           =   3495
      Begin VB.TextBox v_jiage 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   1200
         TabIndex        =   5
         Text            =   "0"
         Top             =   960
         Width           =   1800
      End
      Begin VB.TextBox v_xiangmu 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   1200
         TabIndex        =   4
         Top             =   360
         Width           =   1800
      End
      Begin VB.ComboBox x_kb 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         ItemData        =   "wh_dgl.frx":0BC2
         Left            =   1200
         List            =   "wh_dgl.frx":0BE1
         TabIndex        =   3
         Top             =   1560
         Width           =   1800
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "类   别"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   240
         TabIndex        =   8
         Top             =   1560
         Width           =   735
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "项目名称"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   240
         TabIndex        =   7
         Top             =   480
         Width           =   840
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "价    格"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   240
         TabIndex        =   6
         Top             =   1080
         Width           =   840
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "修  改"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   720
      TabIndex        =   1
      Top             =   2520
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "删  除"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2040
      TabIndex        =   0
      Top             =   2520
      Width           =   1095
   End
End
Attribute VB_Name = "wh_dgl"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()

 b1 = MsgBox("您确实修改吗?", vbOKCancel, "系统提示!")
If b1 = 1 Then

If Not IsNumeric(v_jiage.Text) Then
b1 = MsgBox("警告,单价不能为空或非数字!", vbQuestion, "系统提示!")
v_jiage.SetFocus
Exit Sub
End If



Dim rs1 As New ADODB.Recordset
Dim sql1 As String
sql1 = "update 单收费明细 set 项目='" + Trim(v_xiangmu.Text) + "',价格='" + Trim(v_jiage.Text) + "',科别='" + Trim(x_kb.Text) + "' where id=" + CStr(Trim(wh_danguanli.v_id2))
rs1.Open sql1, db
b1 = MsgBox("恭喜,数据修改成功!", vbInformation, "系统提示!")
Unload Me
End If

End Sub

Private Sub Command2_Click()
b1 = MsgBox("您确实删除吗?", vbOKCancel, "系统提示!")
If b1 = 1 Then


Dim rs As New ADODB.Recordset
Dim sql As String
sql = "delete 单收费明细 where id= " + CStr(Trim(wh_danguanli.v_id2))
rs.Open sql, db


b1 = MsgBox("恭喜,数据删除成功!", vbInformation, "系统提示!")
Unload Me
End If


End Sub

Private Sub Form_Load()

Dim rs As New ADODB.Recordset
Dim sql As String
sql = "select * from 单收费明细 where id= " + CStr(Trim(wh_danguanli.v_id2))
rs.Open sql, db

If Not rs.EOF Then

v_xiangmu.Text = Trim(rs("项目"))
v_jiage.Text = Trim(rs("价格"))
x_kb.Text = Trim(rs("科别"))

End If


End Sub

⌨️ 快捷键说明

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