📄 frmstatistics.frm
字号:
Height = 375
Left = 1560
TabIndex = 10
Top = 840
Width = 2175
_ExtentX = 3836
_ExtentY = 661
_Version = 393216
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Format = 58982401
CurrentDate = 39575
End
Begin GetData.XPB btnClear
Height = 495
Left = 2400
TabIndex = 44
Top = 4560
Width = 1335
_ExtentX = 2355
_ExtentY = 873
Caption = " 清 空 "
FontColor = -2147483630
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin GetData.XPB btnPrint
Height = 495
Left = 1440
TabIndex = 45
Top = 5520
Width = 1335
_ExtentX = 2355
_ExtentY = 873
Caption = " 打 印 "
FontColor = -2147483630
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Label Label8
BackStyle = 0 'Transparent
Caption = "诊断医生"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 360
TabIndex = 8
Top = 3780
Width = 1095
End
Begin VB.Label Label7
BackStyle = 0 'Transparent
Caption = "拍片部位"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 360
TabIndex = 7
Top = 3300
Width = 1095
End
Begin VB.Label Label6
BackStyle = 0 'Transparent
Caption = "拍片医生"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 360
TabIndex = 6
Top = 2820
Width = 1095
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "申请医生"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 360
TabIndex = 5
Top = 2340
Width = 1095
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "申请科室"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 360
TabIndex = 4
Top = 1860
Width = 1095
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "患者状态"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 360
TabIndex = 3
Top = 1380
Width = 1095
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "终止日期"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 360
TabIndex = 2
Top = 900
Width = 1095
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "起始日期"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 360
TabIndex = 1
Top = 420
Width = 1095
End
End
End
Attribute VB_Name = "frmStatistics"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'----------------------------------------------------------------------------------------------------
'文件:frmStatistics.frm
'作者:冷家锋
'时间:2008-5-7
'说明:影像统计
'----------------------------------------------------------------------------------------------------
Option Explicit
'Const TABLES = " CHECK_LIST "
'Const WHERE_CONDITION = " where checklist.checknumber = patient.checknumber "
Dim myConn As New ADODB.Connection
Private Sub btnClear_Click(Shift As Integer)
On Error GoTo ErrHandler
lblStartDate.Caption = ""
lblEndDate.Caption = ""
lblPatientState.Caption = ""
lblApplyDepartment.Caption = ""
lblApplyDoctor.Caption = ""
lblPhotoPart.Caption = ""
lblPhotoDoctor.Caption = ""
lblCheckDoctor.Caption = ""
lblCheckCount.Caption = ""
lblTotalFee.Caption = ""
lblFilmCount.Caption = ""
lblFilmPrintedCount.Caption = ""
'---------------------------------------------------------------------------------------------------
dtStartDate.Value = Now
dtEndDate.Value = Now
cmbPatientState.ListIndex = -1
'txtApplyDepartment.Text = ""
cmbApplyDepartment.ListIndex = -1
cmbApplyDoctor.ListIndex = -1
cmbPhotoDoctor.ListIndex = -1
cmbCheckParts.ListIndex = -1
cmbCheckDoctor.ListIndex = -1
Exit Sub
ErrHandler:
MsgBox Err.Description, vbExclamation, "提示"
'---------------------------------------------------------------------------------------------------
End Sub
Private Sub btnGetData_Click(Shift As Integer)
On Error GoTo ErrHandler
lblStartDate.Caption = dtStartDate.Value
lblEndDate.Caption = dtEndDate.Value
lblPatientState.Caption = Trim(cmbPatientState.Text)
lblApplyDepartment.Caption = Trim(cmbApplyDepartment.Text)
lblApplyDoctor.Caption = Trim(cmbApplyDoctor.Text)
lblPhotoDoctor.Caption = Trim(cmbPhotoDoctor.Text)
lblPhotoPart.Caption = Trim(cmbCheckParts.Text)
lblCheckDoctor.Caption = Trim(cmbCheckDoctor.Text)
Call GetStatisticsResults
Exit Sub
ErrHandler:
MsgBox Err.Description, vbExclamation, "提示"
End Sub
'打印统计信息
Private Sub btnPrint_Click(Shifit As Integer)
rptStatistics.Sections("Section4").Controls("Lbl_hospital").Caption = HOSPITAL_NAME
rptStatistics.Sections("Section2").Controls("lblStartDate").Caption = Me.lblStartDate.Caption
rptStatistics.Sections("Section2").Controls("lblEndDate").Caption = Me.lblEndDate.Caption
'患者状态
rptStatistics.Sections("Section2").Controls("lblPatientState").Caption = Me.lblPatientState.Caption
rptStatistics.Sections("Section2").Controls("lblApplyDepartment").Caption = Me.lblApplyDepartment.Caption
rptStatistics.Sections("Section2").Controls("lblApplyDoctor").Caption = Me.lblApplyDoctor.Caption
rptStatistics.Sections("Section2").Controls("lblFilmDoctor").Caption = Me.lblPhotoDoctor.Caption
rptStatistics.Sections("Section2").Controls("lblFilmPart").Caption = Me.lblPhotoPart.Caption
rptStatistics.Sections("Section2").Controls("lblCheckDoctor").Caption = Me.lblCheckDoctor.Caption
rptStatistics.Sections("Section5").Controls("lblCheck").Caption = Me.lblCheckCount.Caption
rptStatistics.Sections("Section5").Controls("lblTotalFee").Caption = Me.lblTotalFee.Caption
rptStatistics.Sections("Section5").Controls("lblFilm").Caption = Me.lblFilmCount.Caption
rptStatistics.Sections("Section5").Controls("lblPicture").Caption = Me.lblFilmPrintedCount.Caption
rptStatistics.Show vbModal
End Sub
Private Sub cmbApplyDepartment_Click()
On Error GoTo ErrHandler
If Trim(cmbApplyDepartment.Text) <> "" Then
Call InitApplyDoctor(cmbApplyDepartment.Text)
End If
Exit Sub
ErrHandler:
MsgBox Err.Description, vbExclamation, "提示"
End Sub
Private Sub Form_Resize()
Me.Left = frmSubLeft.Width
Me.Top = frmSubLeft.Top
Me.Width = RIGHT_WINDOW_WIDTH
Me.Height = RIGHT_WINDOW_HEIGHT
Me.frmCondition.Left = Me.Width - Me.frmCondition.Width
Me.frmCondition.Height = Me.Height
Me.frmResults.Width = Me.Width - Me.frmCondition.Width
Me.lnTop.X2 = Me.frmResults.Width
Me.lnBottom.X2 = Me.frmResults.Width
Me.frmResults.Height = Me.Height
End Sub
Private Sub Form_Activate()
On Error GoTo ErrHandler
dtStartDate.Value = Now
dtEndDate = Now
Call InitApplyDepartment
Exit Sub
ErrHandler:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -