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

📄 wh_danguanlito.frm

📁 小型医院管理
💻 FRM
字号:
VERSION 5.00
Begin VB.Form wh_danguanlito 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "齐英天肛肠医院综合信息管理系统"
   ClientHeight    =   3765
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3975
   Icon            =   "wh_danguanlito.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3765
   ScaleWidth      =   3975
   StartUpPosition =   2  '屏幕中心
   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        =   12
      Top             =   3120
      Width           =   975
   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        =   11
      Top             =   3120
      Width           =   975
   End
   Begin VB.Frame Frame2 
      Caption         =   "收费项目添加(小项)管理"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2895
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   3375
      Begin VB.ComboBox x_type 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         ItemData        =   "wh_danguanlito.frx":0BC2
         Left            =   1200
         List            =   "wh_danguanlito.frx":0BC4
         TabIndex        =   5
         Top             =   360
         Width           =   1800
      End
      Begin VB.TextBox x_jg 
         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
         Text            =   "0"
         Top             =   2280
         Width           =   1800
      End
      Begin VB.TextBox x_fxm 
         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        =   3
         Top             =   1320
         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_danguanlito.frx":0BC6
         Left            =   1200
         List            =   "wh_danguanlito.frx":0BEE
         TabIndex        =   2
         Top             =   1800
         Width           =   1800
      End
      Begin VB.ComboBox x_dxm 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         ItemData        =   "wh_danguanlito.frx":0C4F
         Left            =   1200
         List            =   "wh_danguanlito.frx":0C51
         TabIndex        =   1
         Top             =   840
         Width           =   1800
      End
      Begin VB.Label Label4 
         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        =   10
         Top             =   480
         Width           =   735
      End
      Begin VB.Label Label5 
         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        =   9
         Top             =   960
         Width           =   840
      End
      Begin VB.Label Label6 
         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             =   2400
         Width           =   735
      End
      Begin VB.Label Label7 
         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             =   1440
         Width           =   840
      End
      Begin VB.Label Label8 
         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             =   1920
         Width           =   735
      End
   End
End
Attribute VB_Name = "wh_danguanlito"
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(x_jg.Text) Then
b1 = MsgBox("警告,单价不能为空或非数字!", vbQuestion, "系统提示!")
x_jg.SetFocus
Exit Sub
End If



Dim rs1 As New ADODB.Recordset
Dim sql1 As String
sql1 = "update 配比表 set 大项='" + Trim(x_dxm.Text) + "',小项='" + Trim(x_fxm.Text) + "',科别='" + Trim(x_kb.Text) + "',价格='" + Trim(x_jg.Text) + "',类型='" + Trim(x_type.Text) + "' where id=" + CStr(Trim(wh_duoguanli.v_id1))
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_duoguanli.v_id1))
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_duoguanli.v_id1))
rs.Open sql, db

If Not rs.EOF Then

x_type.Text = Trim(rs("类型"))
x_dxm.Text = Trim(rs("大项"))
x_fxm.Text = Trim(rs("小项"))
x_kb.Text = Trim(rs("科别"))
x_jg.Text = Trim(rs("价格"))


End If
End Sub

⌨️ 快捷键说明

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