bajs.frm
来自「这是一个医院管理系统中的院长查询模块」· FRM 代码 · 共 876 行 · 第 1/4 页
FRM
876 行
Printer.FontUnderline = False
Printer.Print
Printer.CurrentX = 240
Printer.Print "统计日期: " + DATE1 + " 至 " + DATE2
Printer.Print U1
Printer.Print V1
Printer.Print V2
Printer.Print V3
Do While Not Data1.Recordset.EOF
Printer.Print U2
U = ""
NL = CStr(Year(Data1.Recordset!入院日期) - Year(Data1.Recordset!出生日期))
U = U + Space(10 - DxLen(Data1.Recordset!病案号)) + Data1.Recordset!病案号 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!住院号)) + Data1.Recordset!住院号 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!患者姓名)) + Data1.Recordset!患者姓名 + "│"
U = U + Space(3 - DxLen(Data1.Recordset!性别)) + Data1.Recordset!性别 + " │"
U = U + Space(4 - DxLen(CStr(NL))) + CStr(NL) + "│"
U = U + Space(10 - DxLen(CStr(Data1.Recordset!入院日期))) + CStr(Data1.Recordset!入院日期) + "│"
U = U + Space(10 - DxLen(Data1.Recordset!门诊诊断ICD)) + Data1.Recordset!门诊诊断ICD + "│"
U = U + Space(26 - DxLen(Data1.Recordset!门诊诊断)) + Data1.Recordset!门诊诊断 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!门诊医师)) + Data1.Recordset!门诊医师 + "│"
U = U + Space(10 - DxLen(Data1.Recordset!出院诊断ICD)) + Data1.Recordset!出院诊断ICD + "│"
U = U + Space(26 - DxLen(Data1.Recordset!出院诊断)) + Data1.Recordset!出院诊断 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!科室名称)) + Data1.Recordset!科室名称 + "│"
U = U + Space(10 - DxLen(CStr(Data1.Recordset!出院日期))) + CStr(Data1.Recordset!出院日期)
Printer.Print U
Data1.Recordset.MoveNext
Loop
Printer.Print U3
Printer.Print " 制表: " + Form3.sbar.Panels(2) + " " + CStr(Date) + " " + CStr(Time)
Printer.EndDoc
End Sub
Sub PRINT_8() '死亡登记
U1 = "─────┬────┬────┬──┬──┬─────────────┬─────┬─────┬───────────────────┬────┬─────"
V1 = " │ │ │ │ │ │ │ │ 出 院 诊 断 │ │ "
V2 = " 病案号 │ 住院号 │ 姓 名 │性别│年龄│ 工 作 单 位 │ 入院日期 │ 死亡日期 ├─────┬─────────────┤科室名称│经治医师 "
V3 = " │ │ │ │ │ │ │ │ ICD-9 │ 疾 病 名 称 │ │ "
U2 = "─────┼────┼────┼──┼──┼─────────────┼─────┼─────┼─────┼─────────────┼────┼─────"
U3 = "─────┴────┴────┴──┴──┴─────────────┴─────┴─────┴─────┴─────────────┴────┴─────"
Printer.ScaleMode = 6
Printer.PaperSize = 39
Printer.FontName = "隶书"
Printer.FontSize = 26
Printer.FontUnderline = True
Printer.CurrentX = 100
Printer.Print " 死 亡 登 记 "
Printer.FontName = "宋体"
Printer.FontSize = 11
Printer.FontUnderline = False
Printer.Print
Printer.CurrentX = 240
Printer.Print "统计日期: " + DATE1 + " 至 " + DATE2
Printer.Print U1
Printer.Print V1
Printer.Print V2
Printer.Print V3
Do While Not Data1.Recordset.EOF
Printer.Print U2
U = ""
NL = CStr(Year(Data1.Recordset!入院日期) - Year(Data1.Recordset!出生日期))
U = U + Space(10 - DxLen(Data1.Recordset!病案号)) + Data1.Recordset!病案号 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!住院号)) + Data1.Recordset!住院号 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!患者姓名)) + Data1.Recordset!患者姓名 + "│"
U = U + Space(3 - DxLen(Data1.Recordset!性别)) + Data1.Recordset!性别 + " │"
U = U + Space(4 - DxLen(CStr(NL))) + CStr(NL) + "│"
U = U + Space(26 - DxLen(CStr(Data1.Recordset!工作单位))) + CStr(Data1.Recordset!工作单位) + "│"
U = U + Space(10 - DxLen(CStr(Data1.Recordset!入院日期))) + CStr(Data1.Recordset!入院日期) + "│"
U = U + Space(10 - DxLen(CStr(Data1.Recordset!死亡日期))) + CStr(Data1.Recordset!死亡日期) + "│"
U = U + Space(10 - DxLen(Data1.Recordset!ICD9)) + Data1.Recordset!ICD9 + "│"
U = U + Space(26 - DxLen(Data1.Recordset!出院诊断)) + Data1.Recordset!出院诊断 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!科室名称)) + Data1.Recordset!科室名称 + "│"
U = U + CStr(Data1.Recordset!经治医师) + Space(10 - DxLen(CStr(Data1.Recordset!经治医师)))
Printer.Print U
Data1.Recordset.MoveNext
Loop
Printer.Print U3
Printer.Print " 制表: " + Form3.sbar.Panels(2) + " " + CStr(Date) + " " + CStr(Time)
Printer.EndDoc
End Sub
Sub PRINT_9() '重危抢救登记
U1 = "─────┬────┬────┬──┬──┬─────────────┬─────┬─────┬───────────────────┬────┬────┬─────"
V1 = " │ │ │ │ │ │ │ │ 出 院 诊 断 │ │ │ "
V2 = " 病案号 │ 住院号 │ 姓 名 │性别│年龄│ 工 作 单 位 │ 入院日期 │ 出院日期 ├─────┬─────────────┤抢救结果│科室名称│抢救次数 "
V3 = " │ │ │ │ │ │ │ │ ICD-9 │ 疾 病 名 称 │ │ │ "
U2 = "─────┼────┼────┼──┼──┼─────────────┼─────┼─────┼─────┼─────────────┼────┼────┼─────"
U3 = "─────┴────┴────┴──┴──┴─────────────┴─────┴─────┴─────┴─────────────┴────┴────┴─────"
Printer.ScaleMode = 6
Printer.PaperSize = 39
Printer.FontName = "隶书"
Printer.FontSize = 26
Printer.FontUnderline = True
Printer.CurrentX = 100
Printer.Print " 重 危 抢 救 登 记 "
Printer.FontName = "宋体"
Printer.FontSize = 11
Printer.FontUnderline = False
Printer.Print
Printer.CurrentX = 240
Printer.Print "统计日期: " + DATE1 + " 至 " + DATE2
Printer.Print U1
Printer.Print V1
Printer.Print V2
Printer.Print V3
Do While Not Data1.Recordset.EOF
Printer.Print U2
U = ""
NL = CStr(Year(Data1.Recordset!入院日期) - Year(Data1.Recordset!出生日期))
U = U + Space(10 - DxLen(Data1.Recordset!病案号)) + Data1.Recordset!病案号 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!住院号)) + Data1.Recordset!住院号 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!患者姓名)) + Data1.Recordset!患者姓名 + "│"
U = U + Space(3 - DxLen(Data1.Recordset!性别)) + Data1.Recordset!性别 + " │"
U = U + Space(4 - DxLen(CStr(NL))) + CStr(NL) + "│"
U = U + Space(26 - DxLen(CStr(Data1.Recordset!工作单位))) + CStr(Data1.Recordset!工作单位) + "│"
U = U + Space(10 - DxLen(CStr(Data1.Recordset!入院日期))) + CStr(Data1.Recordset!入院日期) + "│"
U = U + Space(10 - DxLen(CStr(Data1.Recordset!出院日期))) + CStr(Data1.Recordset!出院日期) + "│"
U = U + Space(10 - DxLen(Data1.Recordset!ICD9)) + Data1.Recordset!ICD9 + "│"
U = U + Space(26 - DxLen(Data1.Recordset!出院诊断)) + Data1.Recordset!出院诊断 + "│"
If Data1.Recordset!抢救次数 = Data1.Recordset!成功次数 Then
DDCG = "成功"
Else
DDCG = "失败"
End If
U = U + CStr(DDCG) + Space(8 - DxLen(CStr(DDCG))) + "│"
U = U + Space(8 - DxLen(Data1.Recordset!科室名称)) + Data1.Recordset!科室名称 + "│"
U = U + CStr(Data1.Recordset!抢救次数) + Space(10 - DxLen(CStr(Data1.Recordset!抢救次数)))
Printer.Print U
Data1.Recordset.MoveNext
Loop
Printer.Print U3
Printer.Print " 制表: " + Form3.sbar.Panels(2) + " " + CStr(Date) + " " + CStr(Time)
Printer.EndDoc
End Sub
Sub PRINT_5() '院 内 感 染 登 记
U1 = "─────┬────┬────┬──┬──┬─────┬───────────────────┬─────┬─────┬────────┬────┬──────"
V1 = " │ │ │ │ │ │ 院 内 感 染 │ │ │ │ │ "
V2 = " 病案号 │ 住院号 │ 姓 名 │性别│年龄│ 入院日期 ├─────┬─────────────┤ 发生日期 │ 治疗结果 │ 科 室 名 称 │经治医师│出院日期 "
V3 = " │ │ │ │ │ │ ICD-9 │ 疾 病 名 称 │ │ │ │ │ "
U2 = "─────┼────┼────┼──┼──┼─────┼─────┼─────────────┼─────┼─────┼────────┼────┼──────"
U3 = "─────┴────┴────┴──┴──┴─────┴─────┴─────────────┴─────┴─────┴────────┴────┴──────"
Printer.ScaleMode = 6
Printer.PaperSize = 39
Printer.FontName = "隶书"
Printer.FontSize = 26
Printer.FontUnderline = True
Printer.CurrentX = 100
Printer.Print " 院 内 感 染 登 记 "
Printer.FontName = "宋体"
Printer.FontSize = 11
Printer.FontUnderline = False
Printer.Print
Printer.CurrentX = 240
Printer.Print "统计日期: " + DATE1 + " 至 " + DATE2
Printer.Print U1
Printer.Print V1
Printer.Print V2
Printer.Print V3
Do While Not Data1.Recordset.EOF
Printer.Print U2
U = ""
NL = CStr(Year(Data1.Recordset!入院日期) - Year(Data1.Recordset!出生日期))
U = U + Space(10 - DxLen(Data1.Recordset!病案号)) + Data1.Recordset!病案号 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!住院号)) + Data1.Recordset!住院号 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!患者姓名)) + Data1.Recordset!患者姓名 + "│"
U = U + Space(3 - DxLen(Data1.Recordset!性别)) + Data1.Recordset!性别 + " │"
U = U + Space(4 - DxLen(CStr(NL))) + CStr(NL) + "│"
U = U + Space(10 - DxLen(CStr(Data1.Recordset!入院日期))) + CStr(Data1.Recordset!入院日期) + "│"
U = U + Space(10 - DxLen(Data1.Recordset!院内感染ICD)) + Data1.Recordset!院内感染ICD + "│"
U = U + Space(26 - DxLen(Data1.Recordset!院内感染)) + Data1.Recordset!院内感染 + "│"
U = U + Space(10 - DxLen(CStr(Data1.Recordset!发生日期))) + CStr(Data1.Recordset!发生日期) + "│"
U = U + CStr(Data1.Recordset!治疗结果) + Space(10 - DxLen(CStr(Data1.Recordset!治疗结果))) + "│"
U = U + Data1.Recordset!科室名称 + Space(16 - DxLen(Data1.Recordset!科室名称)) + "│"
U = U + Space(8 - DxLen(Data1.Recordset!经治医师)) + Data1.Recordset!经治医师 + "│"
U = U + Space(10 - DxLen(CStr(Data1.Recordset!出院日期))) + CStr(Data1.Recordset!出院日期)
Printer.Print U
Data1.Recordset.MoveNext
Loop
Printer.Print U3
Printer.Print " 制表: " + Form3.sbar.Panels(2) + " " + CStr(Date) + " " + CStr(Time)
Printer.EndDoc
End Sub
Sub PRINT_10() '丙 级 病 例 登 记
U1 = "─────┬────┬────┬──┬──┬─────┬───────────────────┬─────┬─────┬────────┬─────"
V1 = " │ │ │ │ │ │ 出 院 诊 断 │ │ │ │ "
V2 = " 病案号 │ 住院号 │ 姓 名 │性别│年龄│ 入院日期 ├─────┬─────────────┤ 治疗结果 │ 出院日期 │ 科 室 名 称 │经治医师 "
V3 = " │ │ │ │ │ │ ICD-9 │ 疾 病 名 称 │ │ │ │ "
U2 = "─────┼────┼────┼──┼──┼─────┼─────┼─────────────┼─────┼─────┼────────┼─────"
U3 = "─────┴────┴────┴──┴──┴─────┴─────┴─────────────┴─────┴─────┴────────┴─────"
Printer.ScaleMode = 6
Printer.PaperSize = 39
Printer.FontName = "隶书"
Printer.FontSize = 26
Printer.FontUnderline = True
Printer.CurrentX = 100
Printer.Print " 丙 级 病 例 登 记 "
Printer.FontName = "宋体"
Printer.FontSize = 11
Printer.FontUnderline = False
Printer.Print
Printer.CurrentX = 210
Printer.Print "统计日期: " + DATE1 + " 至 " + DATE2
Printer.Print U1
Printer.Print V1
Printer.Print V2
Printer.Print V3
Do While Not Data1.Recordset.EOF
Printer.Print U2
U = ""
NL = CStr(Year(Data1.Recordset!入院日期) - Year(Data1.Recordset!出生日期))
U = U + Space(10 - DxLen(Data1.Recordset!病案号)) + Data1.Recordset!病案号 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!住院号)) + Data1.Recordset!住院号 + "│"
U = U + Space(8 - DxLen(Data1.Recordset!患者姓名)) + Data1.Recordset!患者姓名 + "│"
U = U + Space(3 - DxLen(Data1.Recordset!性别)) + Data1.Recordset!性别 + " │"
U = U + Space(4 - DxLen(CStr(NL))) + CStr(NL) + "│"
U = U + Space(10 - DxLen(CStr(Data1.Recordset!入院日期))) + CStr(Data1.Recordset!入院日期) + "│"
U = U + Space(10 - DxLen(Data1.Recordset!ICD9)) + Data1.Recordset!ICD9 + "│"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?