📄 yk_form_list.frm
字号:
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 = "yk_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 = "yk_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 = "yk_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 = "yk_form_list.frx":0C64
Height = 5100
Left = 90
OleObjectBlob = "yk_form_list.frx":0C73
TabIndex = 0
Top = 1815
Width = 9375
End
End
Attribute VB_Name = "yk_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 "输入年限超出范围", , "提示"
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 e_date.Text > Date Or e_date.Text < "2000-01-01" Then
MsgBox "输入年限超出范围", , "提示"
e_date.Text = Date
e_date.SetFocus
Exit Sub
End If
If report_id = "0" Then
biao.SQL = "drugbank_form_list '" + CStr(b_date.Text) + "','" + CStr(CDate(CDate(e_date) + 1)) + "','" + mkind_code + "','" + drug_att + "','" + little_id + "'"
End If
If report_id = "1" Or report_id = "2" Then
biao.SQL = "drugbank_form_inout '" + CStr(b_date.Text) + "','" + CStr(CDate(CDate(e_date) + 1)) + "','" + mkind_code + "','" + drug_att + "','" + little_id + "','" + report_id + "'"
End If
biao.Refresh
print_COM.Enabled = True
End Sub
Private Sub drug_kind_Click()
If drug_kind.Text = "西 药" Then mkind_code = "A"
If drug_kind.Text = "中成药" Then mkind_code = "B"
If drug_kind.Text = "饮 片" Then mkind_code = "C"
If drug_kind.Text = "材 料" Then mkind_code = "D"
little_id = "%"
sort_big.SQL = "select * from pharmic_greatgenus where G_kind='" + mkind_code + "'order by G_id"
sort_big.Refresh
show_big.ListField = "G_NAME"
show_big.Text = ""
show_little.Text = ""
show_att = ""
drug_att = "%"
sort_att.DataSourceName = dbfname
sort_att.Connect = dbfstr
sort_att.SQL = "select * from pharmic_function where f_kind='" + mkind_code + "'"
sort_att.Refresh
End Sub
Private Sub drug_kind_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
show_att.SetFocus
End If
End Sub
Private Sub Form_Load()
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)
biao.DataSourceName = dbfname
biao.Connect = dbfstr
sort_att.DataSourceName = dbfname
sort_att.Connect = dbfname
sort_little.DataSourceName = dbfname
sort_little.Connect = dbfstr
sort_big.DataSourceName = dbfname
sort_big.Connect = dbfstr
If report_id = "0" Then Me.Caption = "盘点核算表"
If report_id = "1" Then Me.Caption = "入库核算表"
If report_id = "2" Then Me.Caption = "出库核算表"
drug_kind.AddItem "西 药"
drug_kind.AddItem "中成药"
drug_kind.AddItem "饮 片"
drug_kind.AddItem "材 料"
drug_kind.Text = "西 药"
Form3.Enabled = False
Form3.Visible = False
print_COM.Enabled = False
Screen.MousePointer = vbDefault
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -