📄 jianyishu.frm
字号:
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 4680
TabIndex = 10
Top = 1680
Width = 120
End
Begin VB.Label v_car
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 2160
TabIndex = 9
Top = 1680
Width = 120
End
Begin VB.Label Label8
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "卡号:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1440
TabIndex = 8
Top = 1680
Width = 720
End
Begin VB.Label Label7
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "检查结果:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 10920
TabIndex = 7
Top = 6720
Visible = 0 'False
Width = 1275
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "主要症状:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1440
TabIndex = 6
Top = 5040
Width = 1275
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "主要病史:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1440
TabIndex = 5
Top = 3480
Width = 1275
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "年龄:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1440
TabIndex = 4
Top = 2160
Width = 720
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "性别:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 6720
TabIndex = 3
Top = 1680
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "姓名:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 3960
TabIndex = 2
Top = 1680
Width = 720
End
Begin VB.Label v_sj
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "时间"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 9600
TabIndex = 1
Top = 12000
Width = 480
End
Begin VB.Line Line1
X1 = 1920
X2 = 9960
Y1 = 960
Y2 = 960
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "齐英天肛肠医院诊断建议书"
BeginProperty Font
Name = "黑体"
Size = 18
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 3600
TabIndex = 0
Top = 360
Width = 4500
End
End
Attribute VB_Name = "jianyishu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Command1.Visible = False
Me.PrintForm
Unload Me
End Sub
Private Sub Form_Load()
v_sj.Caption = Date
v_car.Caption = jiancha.t_car
Dim sql As String
sql = "select * from 患者信息 where 卡号='" & Trim(v_car.Caption) & "'"
Dim rs As New ADODB.Recordset
rs.Open sql, db
If Not rs.EOF Then
v_name.Caption = Trim(rs("姓名"))
v_sex.Caption = Trim(rs("性别"))
v_old.Caption = Trim(rs("年龄"))
v_address.Caption = Trim(rs("地址"))
v_tel.Caption = Trim(rs("电话"))
Dim sql1 As String
sql1 = "select * from 检查结果 where 卡号='" & Trim(v_car.Caption) & "' order by -id"
Dim rs1 As New ADODB.Recordset
rs1.Open sql1, db
If Not rs1.EOF Then
v_jieguo.Caption = Trim(rs1("检查结果"))
v_jianyi.Caption = Trim(rs1("建议"))
v_bs.Caption = Trim(rs1("既往史"))
v_zz.Caption = Trim(rs1("现病史"))
End If
Set rs1 = Nothing
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -