📄 yj3_form_list.frm
字号:
Caption = "药品类型:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000006&
Height = 255
Index = 0
Left = 2925
TabIndex = 9
Top = 240
Width = 1110
End
End
Begin MSRDC.MSRDC biao
Height = 330
Left = 2160
Top = 4680
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
_Version = 393216
Options = 0
CursorDriver = 1
BOFAction = 0
EOFAction = 0
RecordsetType = 1
LockType = 3
QueryType = 0
Prompt = 3
Appearance = 1
QueryTimeout = 30
RowsetSize = 100
LoginTimeout = 15
KeysetSize = 0
MaxRows = 0
ErrorThreshold = -1
BatchSize = 15
BackColor = -2147483643
ForeColor = -2147483640
Enabled = -1 'True
ReadOnly = 0 'False
Appearance = -1 'True
DataSourceName = ""
RecordSource = ""
UserName = ""
Password = ""
Connect = ""
LogMessages = ""
Caption = "biao"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.CommandButton quit_com
Caption = "退 出"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1050
Left = 8220
Picture = "yj3_form_list.frx":0346
Style = 1 'Graphical
TabIndex = 3
Top = 690
Width = 1110
End
Begin VB.CommandButton print_com
Caption = "打 印"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1050
Left = 6975
Picture = "yj3_form_list.frx":0650
Style = 1 'Graphical
TabIndex = 2
Top = 690
Width = 1110
End
Begin VB.CommandButton browse_com
Caption = "浏 览"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1050
Left = 5730
Picture = "yj3_form_list.frx":095A
Style = 1 'Graphical
TabIndex = 1
Top = 690
Width = 1110
End
Begin MSRDC.MSRDC sort_att
Height = 405
Left = 3855
Top = 2850
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 714
_Version = 393216
Options = 0
CursorDriver = 1
BOFAction = 0
EOFAction = 0
RecordsetType = 1
LockType = 3
QueryType = 0
Prompt = 3
Appearance = 1
QueryTimeout = 30
RowsetSize = 100
LoginTimeout = 15
KeysetSize = 0
MaxRows = 0
ErrorThreshold = -1
BatchSize = 15
BackColor = -2147483643
ForeColor = -2147483640
Enabled = -1 'True
ReadOnly = 0 'False
Appearance = -1 'True
DataSourceName = ""
RecordSource = ""
UserName = ""
Password = ""
Connect = ""
LogMessages = ""
Caption = "MSRDC1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin MSRDC.MSRDC sort_big
Height = 345
Left = 1785
Top = 2160
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 609
_Version = 393216
Options = 0
CursorDriver = 1
BOFAction = 0
EOFAction = 0
RecordsetType = 1
LockType = 3
QueryType = 0
Prompt = 3
Appearance = 1
QueryTimeout = 30
RowsetSize = 100
LoginTimeout = 15
KeysetSize = 0
MaxRows = 0
ErrorThreshold = -1
BatchSize = 15
BackColor = -2147483643
ForeColor = -2147483640
Enabled = -1 'True
ReadOnly = 0 'False
Appearance = -1 'True
DataSourceName = ""
RecordSource = ""
UserName = ""
Password = ""
Connect = ""
LogMessages = ""
Caption = "MSRDC1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin MSRDC.MSRDC sort_little
Height = 330
Left = 150
Top = 2940
Visible = 0 'False
Width = 1320
_ExtentX = 2328
_ExtentY = 582
_Version = 393216
Options = 0
CursorDriver = 1
BOFAction = 0
EOFAction = 0
RecordsetType = 1
LockType = 3
QueryType = 0
Prompt = 3
Appearance = 1
QueryTimeout = 30
RowsetSize = 100
LoginTimeout = 15
KeysetSize = 0
MaxRows = 0
ErrorThreshold = -1
BatchSize = 15
BackColor = -2147483643
ForeColor = -2147483640
Enabled = -1 'True
ReadOnly = 0 'False
Appearance = -1 'True
DataSourceName = ""
RecordSource = ""
UserName = ""
Password = ""
Connect = ""
LogMessages = ""
Caption = "MSRDC1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "yj3_form_list.frx":0C64
Height = 5100
Left = 90
OleObjectBlob = "yj3_form_list.frx":0C73
TabIndex = 0
Top = 1815
Width = 9375
End
End
Attribute VB_Name = "yj3_form_list"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mkind_code As String
Dim drug_att As String
Dim big_id As String
Dim little_id As String
Dim in_position As String
Private Sub browse_com_Click()
Dim sss As String
Dim mm As String
Dim nn As String
If Not IsDate(b_date.Text) Then
MsgBox "起始日期错误", , "错误"
b_date.Text = Date
b_date.Text = DateAdd("m", -1, b_date.Text)
b_date.Text = DateAdd("d", 1, b_date.Text)
b_date.SetFocus
Exit Sub
End If
If Not IsDate(e_date.Text) Then
MsgBox "终止日期错误", , "错误"
e_date.Text = Date
e_date.SetFocus
Exit Sub
End If
If e_date < b_date Then
MsgBox "结束日期应晚于起始日期,请重输日期!", vbInformation, "提示"
b_date.Text = Date
b_date.Text = DateAdd("m", -1, b_date.Text)
e_date.Text = Date
b_date.Text = DateAdd("d", 1, b_date.Text)
b_date.SetFocus
Exit Sub
End If
If b_date.Text > Date Or b_date.Text < "2000-01-01" Then
MsgBox "输入年限超出范围", , "提示"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -