bajs.frm
来自「这是一个医院管理系统中的院长查询模块」· FRM 代码 · 共 876 行 · 第 1/4 页
FRM
876 行
U = U + Space(26 - DxLen(Data1.Recordset!出院诊断)) + Data1.Recordset!出院诊断 + "│"
U = U + CStr(Data1.Recordset!治疗结果) + Space(10 - DxLen(CStr(Data1.Recordset!治疗结果))) + "│"
U = U + Space(10 - DxLen(CStr(Data1.Recordset!出院日期))) + CStr(Data1.Recordset!出院日期) + "│"
U = U + Data1.Recordset!科室名称 + Space(16 - DxLen(Data1.Recordset!科室名称)) + "│"
U = U + Data1.Recordset!经治医师 + Space(8 - DxLen(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_11() '未录出院病例登记
U1 = "─────┬────┬────┬─────┬─────┬─────┬─────"
V1 = " │ │ │ │ │ │ "
V2 = " 病案号 │ 住院号 │ 姓 名 │ 入院日期 │ 出院日期 │ 科 室 │ 医 师 "
V3 = " │ │ │ │ │ │ "
U2 = "─────┼────┼────┼─────┼─────┼─────┼─────"
U3 = "─────┴────┴────┴─────┴─────┴─────┴─────"
Printer.ScaleMode = 6
Printer.PaperSize = 39
Printer.FontName = "隶书"
Printer.FontSize = 26
Printer.FontUnderline = True
Printer.CurrentX = 15
Printer.Print " 未录出院病例登记 "
Printer.FontName = "宋体"
Printer.FontSize = 11
Printer.FontUnderline = False
Printer.Print
Printer.Print Data1.Caption
Printer.Print U1
Printer.Print V1
Printer.Print V2
Printer.Print V3
iii = 1
Do While Not Data1.Recordset.EOF
Printer.Print U2
U = ""
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(10 - DxLen(Left(CStr(Data1.Recordset!入院日期), 10))) + Left(CStr(Data1.Recordset!入院日期), 10) + "│"
U = U + Space(10 - DxLen(CStr(Data1.Recordset!出院日期))) + CStr(Data1.Recordset!出院日期) + "│"
U = U + Data1.Recordset!科室名称 + Space(10 - DxLen(Data1.Recordset!科室名称)) + "│"
U = U + Data1.Recordset!住院医师 + Space(8 - DxLen(Data1.Recordset!住院医师))
Printer.Print U
iii = iii + 1
If iii > 24 Then
iii = 1
Printer.Print U3
Printer.NewPage
Printer.Print
Printer.Print
Printer.Print
Printer.Print
Printer.Print U1
Printer.Print V1
Printer.Print V2
Printer.Print V3
End If
Data1.Recordset.MoveNext
Loop
Printer.Print U3
Printer.Print " 制表: " + Form3.sbar.Panels(2) + " " + CStr(Date) + " " + CStr(Time)
Printer.EndDoc
End Sub
Sub PRINT_6() '非 手 术 并 发 症 登 记
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_7() ' 手 术 并 发 症 登 记
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_2() '入院初诊与出院诊断不符登记
U1 = "─────┬────┬────┬──┬──┬─────┬───────────────────┬────┬───────────────────┬────┬────┬─────"
V1 = " │ │ │ │ │ │ 入 院 初 步 诊 断 │ │ 出 院 诊 断 │ │ │ "
V2 = " 病案号 │ 住院号 │ 姓 名 │性别│年龄│ 入院日期 ├─────┬─────────────┤经治医师├─────┬─────────────┤入院科室│出院科室│出院日期 "
V3 = " │ │ │ │ │ │ ICD-9 │ 疾 病 名 称 │ │ 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(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(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
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?