📄 hjcxfrm.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form hjcxfrm
BorderStyle = 3 'Fixed Dialog
Caption = "卓资县人民医院处方划价查询"
ClientHeight = 8370
ClientLeft = 45
ClientTop = 435
ClientWidth = 13695
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Moveable = 0 'False
ScaleHeight = 8370
ScaleWidth = 13695
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.Data Data2
Caption = "Data2"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 5040
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 7920
Visible = 0 'False
Width = 2655
End
Begin VB.CommandButton Command1
Caption = "导出或打印查询结果(&P)"
Height = 375
Left = 120
TabIndex = 17
Top = 7920
Width = 2415
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 7680
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 0
Visible = 0 'False
Width = 2055
End
Begin MSAdodcLib.Adodc Adodc3
Height = 375
Left = 2760
Top = 0
Visible = 0 'False
Width = 2895
_ExtentX = 5106
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc3医师"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSAdodcLib.Adodc Adodc2
Height = 375
Left = 0
Top = 0
Visible = 0 'False
Width = 2415
_ExtentX = 4260
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc2科室"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 9960
Top = 0
Visible = 0 'False
Width = 2535
_ExtentX = 4471
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1门诊处方"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Frame Frame2
Height = 6135
Left = 120
TabIndex = 3
Top = 1680
Width = 13455
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "hjcxfrm.frx":0000
Height = 5775
Left = 120
OleObjectBlob = "hjcxfrm.frx":0014
TabIndex = 21
Top = 240
Width = 13215
End
End
Begin VB.Frame Frame1
Caption = "查询选项"
Height = 1095
Left = 120
TabIndex = 2
Top = 480
Width = 13455
Begin VB.TextBox Text2
Height = 270
Left = 12360
MaxLength = 10
TabIndex = 19
ToolTipText = "输入正确完整的日期后回车开始查询"
Top = 720
Width = 1050
End
Begin VB.TextBox Text1
Height = 270
Left = 10965
MaxLength = 10
TabIndex = 18
ToolTipText = "输入日期格式如2005-1-1,表示2005年01月01日!"
Top = 720
Width = 1050
End
Begin VB.OptionButton Option10
Caption = "病房划价日期"
Height = 370
Left = 11900
Style = 1 'Graphical
TabIndex = 16
Top = 240
Width = 1400
End
Begin VB.OptionButton Option9
Caption = "门诊划价日期"
Height = 370
Left = 10424
Style = 1 'Graphical
TabIndex = 15
Top = 240
Width = 1400
End
Begin VB.OptionButton Option6
Caption = "病房医师划价"
Height = 370
Left = 6008
Style = 1 'Graphical
TabIndex = 14
Top = 240
Width = 1400
End
Begin VB.OptionButton Option5
Caption = "病房操作员划价"
Height = 370
Left = 3064
Style = 1 'Graphical
TabIndex = 13
Top = 240
Width = 1400
End
Begin VB.OptionButton Option4
Caption = "全部病房划价"
Height = 370
Left = 120
Style = 1 'Graphical
TabIndex = 12
Top = 240
Width = 1400
End
Begin VB.OptionButton Option3
Caption = "门诊医师划价"
Height = 370
Left = 4536
Style = 1 'Graphical
TabIndex = 11
Top = 240
Width = 1400
End
Begin VB.OptionButton Option2
Caption = "门诊操作员划价"
Height = 370
Left = 1592
Style = 1 'Graphical
TabIndex = 10
Top = 240
Width = 1400
End
Begin VB.OptionButton Option1
Caption = "全部门诊划价"
Height = 370
Left = 120
Style = 1 'Graphical
TabIndex = 9
Top = 650
Width = 1400
End
Begin VB.OptionButton Option7
Caption = "门诊科室划价"
Height = 370
Left = 7480
Style = 1 'Graphical
TabIndex = 8
Top = 240
Width = 1400
End
Begin VB.OptionButton Option8
Caption = "病房科室划价"
Height = 370
Left = 8952
Style = 1 'Graphical
TabIndex = 7
Top = 240
Width = 1400
End
Begin VB.ComboBox Combo1
Height = 300
Left = 2400
TabIndex = 4
Text = "Combo1"
Top = 720
Visible = 0 'False
Width = 1450
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "至"
Height = 180
Left = 12120
TabIndex = 20
Top = 720
Width = 180
End
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "Label3"
ForeColor = &H000000FF&
Height = 180
Left = 11400
TabIndex = 6
Top = 8000
Width = 540
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "(划价未交费)查询结果总额合计:"
ForeColor = &H000000FF&
Height = 180
Left = 8520
TabIndex = 5
Top = 8000
Width = 2880
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "处 方 划 价 查 询"
BeginProperty Font
Name = "隶书"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800080&
Height = 435
Index = 1
Left = 4080
TabIndex = 1
Top = 30
Width = 3990
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "处 方 划 价 查 询"
BeginProperty Font
Name = "隶书"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF80FF&
Height = 435
Index = 0
Left = 4080
TabIndex = 0
Top = 75
Width = 3990
End
End
Attribute VB_Name = "hjcxfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mdbstr3 As String
Dim mzbf
Private Sub Combo1_Click()
On Error GoTo er
If Option2.Value = True Then
Data1.RecordSource = "select * from 门诊处方 where 操作员=" + "'" + Trim(Combo1.Text) + "'" & " and 收费='未'"
Data1.Refresh
zehj = 0
While Data1.Recordset.EOF = False
zehj = zehj + Val(Data1.Recordset.Fields("合计"))
Data1.Recordset.MoveNext
Wend
Adodc1.RecordSource = Data1.RecordSource
Adodc1.Refresh
tchx "门诊处方查询"
Call disp8
Combo1.Visible = False
Option2.Value = False
End If
If Option5.Value = True Then
Data1.RecordSource = "select * from 病房处方 where 操作员=" + "'" + Trim(Combo1.Text) + "'" & " and 收费='未'"
Data1.Refresh
zehj = 0
While Data1.Recordset.EOF = False
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -