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

📄 frmbatchinput.frm

📁 本系统可用于医院和专业体检中心的健康体检管理
💻 FRM
📖 第 1 页 / 共 3 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{0B81E4A9-BE4E-4AEF-9272-33AB5B51C6FC}#1.0#0"; "XPControls.ocx"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Begin VB.Form frmBatchInput 
   BackColor       =   &H00D3DABC&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "批量录入"
   ClientHeight    =   8130
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   11355
   Icon            =   "frmBatchInput.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   8130
   ScaleWidth      =   11355
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton CmdMB 
      Height          =   315
      Left            =   10050
      Picture         =   "frmBatchInput.frx":1982
      Style           =   1  'Graphical
      TabIndex        =   19
      Top             =   1710
      Visible         =   0   'False
      Width           =   315
   End
   Begin VB.ComboBox CmbInfo 
      Height          =   315
      Left            =   6540
      TabIndex        =   18
      Text            =   "Combo1"
      Top             =   1710
      Visible         =   0   'False
      Width           =   3465
   End
   Begin XPControls.XPCommandButton cmdCancel 
      Height          =   345
      Left            =   9330
      TabIndex        =   13
      Top             =   2415
      Width           =   1095
      _ExtentX        =   1931
      _ExtentY        =   609
      Caption         =   "退出"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin XPControls.XPCommandButton cmdDelete 
      Height          =   345
      Left            =   7185
      TabIndex        =   6
      Top             =   2415
      Width           =   1095
      _ExtentX        =   1931
      _ExtentY        =   609
      Enabled         =   0   'False
      Caption         =   "清除"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSHFlexGrid1 
      Height          =   5025
      Left            =   3570
      TabIndex        =   10
      Top             =   2940
      Width           =   7665
      _ExtentX        =   13520
      _ExtentY        =   8864
      _Version        =   393216
      Cols            =   6
      BackColorBkg    =   12773886
      SelectionMode   =   1
      AllowUserResizing=   3
      RowSizingMode   =   1
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _NumberOfBands  =   1
      _Band(0).Cols   =   6
   End
   Begin VB.Frame fraCondition 
      BackColor       =   &H00D3DABC&
      Caption         =   "批量录入条件"
      Height          =   1275
      Left            =   120
      TabIndex        =   7
      Top             =   60
      Width           =   11055
      Begin VB.TextBox txtStopID 
         Enabled         =   0   'False
         Height          =   315
         Left            =   3420
         TabIndex        =   17
         Top             =   780
         Width           =   1395
      End
      Begin VB.TextBox txtBeginID 
         Enabled         =   0   'False
         Height          =   315
         Left            =   1800
         TabIndex        =   15
         Top             =   780
         Width           =   1395
      End
      Begin VB.OptionButton optHealthID 
         BackColor       =   &H00D3DABC&
         Caption         =   "按系统健康档案号"
         Height          =   435
         Left            =   360
         TabIndex        =   14
         Top             =   720
         Width           =   1365
      End
      Begin MSComCtl2.DTPicker dtpStop 
         Height          =   315
         Left            =   3420
         TabIndex        =   2
         Top             =   330
         Width           =   1395
         _ExtentX        =   2461
         _ExtentY        =   556
         _Version        =   393216
         Enabled         =   0   'False
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Format          =   61997057
         CurrentDate     =   37987
      End
      Begin VB.OptionButton optDate 
         BackColor       =   &H00D3DABC&
         Caption         =   "按日期"
         Height          =   315
         Left            =   360
         TabIndex        =   0
         Top             =   330
         Width           =   915
      End
      Begin VB.OptionButton optDWei 
         BackColor       =   &H00D3DABC&
         Caption         =   "按单位"
         Height          =   285
         Left            =   5340
         TabIndex        =   3
         Top             =   345
         Value           =   -1  'True
         Width           =   915
      End
      Begin VB.ComboBox cmbDWei 
         Height          =   315
         Left            =   6420
         Style           =   2  'Dropdown List
         TabIndex        =   4
         Top             =   330
         Width           =   4455
      End
      Begin MSComCtl2.DTPicker dtpBegin 
         Height          =   315
         Left            =   1800
         TabIndex        =   1
         Top             =   300
         Width           =   1395
         _ExtentX        =   2461
         _ExtentY        =   556
         _Version        =   393216
         Enabled         =   0   'False
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Format          =   61997057
         CurrentDate     =   37987
      End
      Begin VB.Label Label1 
         BackColor       =   &H00FFFFC0&
         BackStyle       =   0  'Transparent
         Caption         =   "-"
         Height          =   255
         Index           =   1
         Left            =   3210
         TabIndex        =   16
         Top             =   810
         Width           =   285
      End
      Begin VB.Label Label1 
         BackColor       =   &H00FFFFC0&
         BackStyle       =   0  'Transparent
         Caption         =   "-"
         Height          =   255
         Index           =   0
         Left            =   3210
         TabIndex        =   11
         Top             =   360
         Width           =   285
      End
   End
   Begin XPControls.XPCommandButton cmdSave 
      Height          =   345
      Left            =   5190
      TabIndex        =   5
      Top             =   2415
      Width           =   1095
      _ExtentX        =   1931
      _ExtentY        =   609
      Enabled         =   0   'False
      Caption         =   "保存"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin MSComctlLib.TreeView tvwDXiang 
      Height          =   6525
      Left            =   120
      TabIndex        =   8
      Top             =   1440
      Width           =   3315
      _ExtentX        =   5847
      _ExtentY        =   11509
      _Version        =   393217
      HideSelection   =   0   'False
      LabelEdit       =   1
      Style           =   7
      Appearance      =   1
   End
   Begin VB.Label lblDWei 
      BackStyle       =   0  'Transparent
      Height          =   255
      Left            =   10410
      TabIndex        =   12
      Top             =   1740
      Width           =   465
   End
   Begin VB.Label lblTitle 
      Alignment       =   1  'Right Justify
      BackStyle       =   0  'Transparent
      Height          =   255
      Left            =   3540
      TabIndex        =   9
      Top             =   1770
      Width           =   2925
   End
End
Attribute VB_Name = "frmBatchInput"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim marrYYID() As String

Private Sub cmbDWei_Click()
On Error GoTo ErrMsg
    Dim Status
    Dim strSQL As String
    Dim rstemp As ADODB.Recordset
    Dim i As Integer
    Dim strYYID As String
    
    If cmbDWei.Text = "" Then Exit Sub
    strYYID = marrYYID(cmbDWei.ItemData(cmbDWei.ListIndex))
    
    strSQL = "select SET_GRXX.GUID as 流水号,HealthID as " & g_strSystemIDTitle _
            & ",SelfBH as " & g_strSelfIDTitle _
            & ",TJSerialNum as 体检序号,YYRXM as 姓名,SET_GRXX.TJRQ as 体检日期" _
            & " from SET_GRXX" _
            & " where SET_GRXX.YYID='" & strYYID & "'"
    If genuVersion = WLB Then
        strSQL = strSQL & " and SET_GRXX.QRDJ=1"
    End If
    strSQL = strSQL & " and SET_GRXX.GUID not in (select GUID from DATA_ZJJL)"
    strSQL = strSQL & " order by 体检日期,cast(TJSerialNum as int)"
    
    RefreshGrid Me, Me.MSHFlexGrid1, strSQL, False
    
    Exit Sub
    
ErrMsg:
    Status = SetError(Err.Number, Err.Description, Err.Source)
    ErrMsg Status
End Sub

Private Sub cmdCancel_Click()

⌨️ 快捷键说明

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