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

📄 cw_hedui.frm

📁 小型医院管理
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form cw_hedui 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "铁东区妇幼保健院信息管理系统"
   ClientHeight    =   6975
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   8280
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6975
   ScaleWidth      =   8280
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "打  印"
      Height          =   375
      Left            =   6600
      TabIndex        =   8
      Top             =   720
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "详细信息"
      Height          =   5415
      Left            =   120
      TabIndex        =   6
      Top             =   1200
      Width           =   7815
      Begin MSAdodcLib.Adodc Adodc1 
         Height          =   375
         Left            =   1320
         Top             =   3360
         Visible         =   0   'False
         Width           =   1200
         _ExtentX        =   2117
         _ExtentY        =   661
         ConnectMode     =   0
         CursorLocation  =   3
         IsolationLevel  =   -1
         ConnectionTimeout=   15
         CommandTimeout  =   30
         CursorType      =   3
         LockType        =   3
         CommandType     =   8
         CursorOptions   =   0
         CacheSize       =   50
         MaxRecords      =   0
         BOFAction       =   0
         EOFAction       =   0
         ConnectStringType=   1
         Appearance      =   1
         BackColor       =   -2147483643
         ForeColor       =   -2147483640
         Orientation     =   0
         Enabled         =   -1
         Connect         =   ""
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   ""
         Caption         =   "Adodc1"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         _Version        =   393216
      End
      Begin MSDataGridLib.DataGrid DataGrid1 
         Height          =   4935
         Left            =   240
         TabIndex        =   7
         Top             =   360
         Width           =   7455
         _ExtentX        =   13150
         _ExtentY        =   8705
         _Version        =   393216
         HeadLines       =   1
         RowHeight       =   15
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   2
         BeginProperty Column00 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column01 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         SplitCount      =   1
         BeginProperty Split0 
            BeginProperty Column00 
            EndProperty
            BeginProperty Column01 
            EndProperty
         EndProperty
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "核  对"
      Height          =   375
      Left            =   5280
      TabIndex        =   5
      Top             =   720
      Width           =   1095
   End
   Begin MSComCtl2.DTPicker sj 
      Height          =   375
      Left            =   3600
      TabIndex        =   4
      Top             =   720
      Width           =   1335
      _ExtentX        =   2355
      _ExtentY        =   661
      _Version        =   393216
      Format          =   57475073
      CurrentDate     =   38070
   End
   Begin VB.ComboBox caozuo 
      Height          =   300
      Left            =   1200
      TabIndex        =   1
      Text            =   "选择人名"
      Top             =   720
      Width           =   1455
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      Caption         =   "元"
      Height          =   180
      Left            =   6720
      TabIndex        =   11
      Top             =   6720
      Width           =   180
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "总计"
      Height          =   180
      Left            =   5400
      TabIndex        =   10
      Top             =   6720
      Width           =   360
   End
   Begin VB.Label jine 
      AutoSize        =   -1  'True
      Caption         =   "0"
      Height          =   180
      Left            =   5880
      TabIndex        =   9
      Top             =   6720
      Width           =   810
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "时间"
      Height          =   180
      Left            =   3000
      TabIndex        =   3
      Top             =   720
      Width           =   360
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "收款员"
      Height          =   180
      Left            =   360
      TabIndex        =   2
      Top             =   720
      Width           =   540
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "数据核对"
      BeginProperty Font 
         Name            =   "黑体"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   300
      Left            =   3000
      TabIndex        =   0
      Top             =   120
      Width           =   1260
   End
End
Attribute VB_Name = "cw_hedui"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()


type1 = "作废"


Dim sql As String

sql = "select 姓名,金额,日期,操作员,类别 from 收费表 where 操作员='" & Trim(caozuo.Text) & "' and 日期='" & CStr(sj.Value) & "' and 类别<>'" & Trim(type1) & "'"
Dim rs As New ADODB.Recordset
rs.Open sql, db

If Not rs.EOF Then

'总计1金额

Dim sql1 As String
sql1 = "select sum(金额) as 金额 from 收费表 where 操作员='" & Trim(caozuo.Text) & "' and 日期='" & CStr(sj.Value) & "'and 类别<>'" & Trim(type1) & "' "
Dim rs1 As New ADODB.Recordset
rs1.Open sql1, db

jine.Caption = rs1("金额")


Set DataGrid1.DataSource = rs
Else
b1 = MsgBox("没有找到指定记录?", vbQuestion, "系统提示!")
Exit Sub
End If


Adodc1.CommandType = adCmdText
Adodc1.ConnectionString = db
Adodc1.RecordSource = sql
Set DataGrid1.DataSource = Adodc1
Adodc1.Refresh
End Sub

Private Sub Command2_Click()


Set 数据核对表.DataSource = Adodc1
数据核对表.Sections.Item("section4").Controls.Item("count").Caption = jine.Caption

数据核对表.Show
End Sub

Private Sub Form_Load()

sj.Value = Date

v_bumen1 = "收款"

Dim rs48 As New ADODB.Recordset
Dim sql48 As String

sql48 = "select distinct(姓名) from 人名 where 部门 = '" + v_bumen1 + "'"
rs48.Open sql48, db

While Not rs48.EOF
caozuo.AddItem IIf(IsNull(rs48!姓名), "", rs48!姓名)
rs48.MoveNext
Wend

End Sub

⌨️ 快捷键说明

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