📄
字号:
Left = 150
TabIndex = 36
Top = 1425
Width = 630
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "发票号:"
Height = 180
Index = 1
Left = 150
TabIndex = 34
Top = 1065
Width = 630
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "会计年度:"
Height = 180
Index = 2
Left = 150
TabIndex = 33
Top = 300
Width = 810
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "发票日期:"
Height = 180
Index = 0
Left = 150
TabIndex = 32
Top = 690
Width = 810
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "会计月份:"
Height = 180
Index = 3
Left = 2820
TabIndex = 31
Top = 300
Width = 810
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "采购物料分类:"
Height = 180
Index = 4
Left = 150
TabIndex = 30
Top = 1800
Width = 1170
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "物料编码:"
Height = 180
Index = 5
Left = 150
TabIndex = 29
Top = 2160
Width = 810
End
Begin VB.Line Line1
X1 = 2760
X2 = 2910
Y1 = 765
Y2 = 765
End
End
Begin VB.Frame Frame5
Height = 3915
Left = -74940
TabIndex = 17
Top = 390
Width = 4575
Begin VB.CommandButton Ydcommand1
Height = 300
Index = 8
Left = 4080
Picture = "采购系统_发票查询条件.frx":222C
Style = 1 'Graphical
TabIndex = 37
Top = 240
Visible = 0 'False
Width = 330
End
Begin VB.CommandButton Ydcommand1
Height = 300
Index = 9
Left = 4080
Picture = "采购系统_发票查询条件.frx":25B6
Style = 1 'Graphical
TabIndex = 20
Top = 630
Visible = 0 'False
Width = 330
End
Begin VB.CommandButton Ydcommand1
Height = 300
Index = 10
Left = 4080
Picture = "采购系统_发票查询条件.frx":2940
Style = 1 'Graphical
TabIndex = 19
Top = 1035
Visible = 0 'False
Width = 330
End
Begin VB.CommandButton Ydcommand1
Height = 300
Index = 11
Left = 4080
Picture = "采购系统_发票查询条件.frx":2CCA
Style = 1 'Graphical
TabIndex = 18
Top = 1425
Visible = 0 'False
Width = 330
End
Begin VB.TextBox LrText
Height = 300
Index = 11
Left = 1050
TabIndex = 11
Text = "11"
Top = 1425
Width = 3045
End
Begin VB.TextBox LrText
Height = 300
Index = 10
Left = 1050
TabIndex = 10
Text = "10"
Top = 1035
Width = 3045
End
Begin VB.TextBox LrText
Height = 300
Index = 9
Left = 1050
TabIndex = 9
Text = "9"
Top = 630
Width = 3045
End
Begin VB.TextBox LrText
BackColor = &H00FFFFFF&
Height = 300
Index = 8
Left = 1050
TabIndex = 8
Text = "8"
Top = 240
Width = 3045
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "订单号:"
Height = 180
Index = 9
Left = 150
TabIndex = 38
Top = 270
Width = 660
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "业务员:"
Height = 180
Index = 7
Left = 150
TabIndex = 23
Top = 1050
Width = 660
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "结算方式:"
Height = 180
Index = 8
Left = 150
TabIndex = 22
Top = 1455
Width = 840
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "部门:"
Height = 180
Index = 6
Left = 150
TabIndex = 21
Top = 630
Width = 480
End
End
End
End
Attribute VB_Name = "Cg_InvoiceQuery"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'******************************************************************
'* 模 块 名 称 :发票列表查询条件
'* 功 能 描 述 :
'* 程序员姓名 :周化江
'* 最后修改人 :周化江
'* 最后修改时间:2001/09/20
'* 备 注:程序中所有依实际情况自定义部分均用[>> <<]括起
'******************************************************************
Dim Tsxx As String '系统信息提示
Private Int_InvoiceType As Integer '发票类型
Private Bln_Refresh As Boolean
Private Int_OldInvoiceType As Integer
Private Collect_TextValue() As New Collection
Private Collect_TagValue() As New Collection
'以下为固定使用变量(文本框)
Dim Textvar() As Variant '存储变体型文本框信息
Dim Textboolean() As Boolean '存储布尔型文本框信息
Dim Textint() As Integer '存储整型文本框信息
Dim Textstr() As String '存储字符型文本框信息
Dim Max_Text_Index As Integer '最大录入文本框索引值
Dim TextGroupCode As String '文本框录入分组编码
Dim TextValiLock As Boolean '文本框失去焦点是否进行有效性控制判断
Dim TextValiJudgeLock() As Boolean '文本框录入有效性判断控制锁
Dim CurTextIndex As Integer '当前文本框索引值
Dim TextChangeLock As Boolean '文本框内容变换控制锁
Dim Bln_Cancel As Boolean '取消按钮信息传递
Private Sub Form_Activate()
If Int_OldInvoiceType <> Me.InvoiceType Then
Int_OldInvoiceType = Me.InvoiceType
Timer1.Enabled = True
End If
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer) '控 制 焦 点 转 移(Fixed)
Dim jdzygs As Integer '控件焦点转移个数
jdzygs = 30
Select Case KeyAscii
Case vbKeyReturn
If Kjjdzy(jdzygs) Then
KeyAscii = 0
End If
Case 39 '屏蔽"'"
KeyAscii = 0
End Select
End Sub
Private Sub Form_Load()
'以下为文本框处理程序(Fixed)
TextGroupCode = "Cg_InvoiceQuery"
Call Drwbkxx(TextGroupCode, Textvar(), Textboolean(), Textint(), Textstr()) '读入文本框录入信息
Call Wbkcsh
'[>>初始化查询条件默认值
LrText(2).Text = Format(Xtrq, "yyyy-mm-dd")
LrText(3).Text = Format(Xtrq, "yyyy-mm-dd")
'<<]
'[>>添加窗体帮助ID
Select Case Me.InvoiceType
Case 1
Cg_InvoiceQuery.HelpContextID = "1102002"
Case 2
Cg_InvoiceQuery.HelpContextID = "1102004"
Case 3
Cg_InvoiceQuery.HelpContextID = "1107003"
Case 4
Cg_InvoiceQuery.HelpContextID = "1107006"
End Select
'<<]
ReDim Collect_TextValue(4) As New Collection
ReDim Collect_TagValue(4) As New Collection
Int_OldInvoiceType = 0
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) '查询条件窗体卸载
Dim frm_temp As Form
Dim int_temp As Integer
'查询条件窗体卸载时判断是否因为结果窗体卸载,如是则卸载,否则隐藏
If UnloadCheck.Value <> 1 Then
Cancel = 1
Int_OldInvoiceType = Me.InvoiceType
Me.Hide
Else
int_temp = 0
For Each frm_temp In Forms
If frm_temp.Name = "Cg_InvoiceZy_List" Or frm_temp.Name = "Cg_InvoiceQCPT_List" Or frm_temp.Name = "Cg_InvoicePt_list" Or frm_temp.Name = "Cg_InvoiceQCZy_List" Then
int_temp = int_temp + 1
End If
Next frm_temp
If int_temp > 1 Then
Cancel = 1
Me.Hide
End If
End If
End Sub
Private Sub QdCommand_Click() '确 定
'录入条件有效性判断(Fixed)
If Not Lrtjyxxpd Then
Exit Sub
End If
Int_OldInvoiceType = Me.InvoiceType
Me.Hide
'[>>激活查询过程结果窗体
Timer2.Enabled = True
If Me.InvoiceType = 1 Then
Cg_InvoiceQCPT_List.Timer1.Enabled = True
Cg_InvoiceQCPT_List.SetFocus
ElseIf Me.InvoiceType = 2 Then
Cg_InvoiceQCZy_List.Timer1.Enabled = True
Cg_InvoiceQCZy_List.SetFocus
ElseIf Me.InvoiceType = 3 Then
Cg_InvoicePt_list.Timer1.Enabled = True
Cg_InvoicePt_list.SetFocus
ElseIf Me.InvoiceType = 4 Then
Cg_InvoiceZy_List.Timer1.Enabled = True
Cg_InvoiceZy_List.SetFocus
End If
'<<]
End Sub
Private Sub QxCommand_Click() '取消(Fixed)
Me.Hide
End Sub
Private Function Lrtjyxxpd() As Boolean '用户录入条件有效性判断
Dim jsqte As Integer
Lrtjyxxpd = False
'对需要进行事后判断的文本框录入内容进行有效性判断 (Fixed)
For jsqte = 0 To Max_Text_Index
If Textint(jsqte, 9) = 0 Or Textint(jsqte, 9) = 2 Then
If Not TextYxxpd(jsqte) Then
Exit Function
End If
End If
Next jsqte
'[>>以下为依据实际情况自定义部分
'查询日期范围应由小到大
If LrText(2).Text > LrText(3).Text And Trim(LrText(3).Text) <> "" Then
Tsxx = "查询发票日期范围应由小到大!"
Call Xtxxts(Tsxx, 0, 4)
LrText(2).SetFocus
Exit Function
End If
'会计月份应在1到12之间
If Trim(LrText(1).Text) <> "" And (S2N(LrText(1).Text) > 12 Or S2N(LrText(1).Text) < 1) Then
Tsxx = "会计月份应该在1到12之间"
Call Xtxxts(Tsxx, 0, 4)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -