📄 searchgoods9.frm
字号:
_Version = 393216
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Format = 70909953
CurrentDate = 38281
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 375
Index = 2
Left = 1920
TabIndex = 19
Top = 3840
Width = 1575
_ExtentX = 2778
_ExtentY = 661
_Version = 393216
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Format = 70909953
CurrentDate = 38281
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 375
Index = 3
Left = 4200
TabIndex = 20
Top = 3840
Width = 1575
_ExtentX = 2778
_ExtentY = 661
_Version = 393216
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Format = 70909953
CurrentDate = 38281
End
Begin VB.Label Label2
Caption = "到"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 1
Left = 3960
TabIndex = 27
Top = 1680
Width = 375
End
Begin VB.Label Label1
Caption = "请输入查询条件:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 26
Top = 360
Width = 2535
End
Begin VB.Label Label2
Caption = "自"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 0
Left = 1680
TabIndex = 25
Top = 1680
Width = 375
End
Begin VB.Label Label2
Caption = "到"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 2
Left = 3960
TabIndex = 24
Top = 2520
Width = 375
End
Begin VB.Label Label2
Caption = "自"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 3
Left = 1680
TabIndex = 23
Top = 2520
Width = 375
End
Begin VB.Label Label2
Caption = "自"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 4
Left = 1680
TabIndex = 22
Top = 3960
Width = 375
End
Begin VB.Label Label2
Caption = "到"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 5
Left = 3960
TabIndex = 21
Top = 3960
Width = 375
End
End
Begin VB.CommandButton Command2
Caption = "放 弃"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3360
TabIndex = 1
Top = 4560
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "确 定"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1440
TabIndex = 0
Top = 4560
Width = 1095
End
Begin BSE_Engine.BSE BSE1
Left = 1440
Top = 4560
_ExtentX = 6588
_ExtentY = 1085
End
End
Attribute VB_Name = "SearchGoods9"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim Filters As String
Dim TempSQL As String
If Check1(6).Value = 1 Then
'Filter by name
If Filters <> "" Then Filters = Filters & " and " Else Filters = Filters & " Where "
Filters = Filters & "billnum like " & Quote("X%")
End If
If Check1(7).Value = 1 Then
'Filter by name
If Filters <> "" Then Filters = Filters & " and " Else Filters = Filters & " Where "
Filters = Filters & "billnum like " & Quote("T%")
End If
If Check1(0).Value = 1 Then
'Filter by name
If Filters <> "" Then Filters = Filters & " and " Else Filters = Filters & " Where "
Filters = Filters & "billnum = " & Quote(Text1(0).Text)
End If
If Check1(1).Value = 1 Then
'Filter by name
If Filters <> "" Then Filters = Filters & " and " Else Filters = Filters & " Where "
Filters = Filters & "buygoodsunit = " & Quote(Text1(1).Text)
End If
If Check1(2).Value = 1 Then
'Filter by name
If Filters <> "" Then Filters = Filters & " and " Else Filters = Filters & " Where "
Filters = Filters & "selldate >= " & Quote(DTPicker1(0).Value) & " and selldate <= " & Quote(DTPicker1(1).Value)
End If
If Check1(3).Value = 1 Then
'Filter by name
If Filters <> "" Then Filters = Filters & " and " Else Filters = Filters & " Where "
Filters = Filters & "principal = " & Quote(Text1(2).Text)
End If
If Check1(4).Value = 1 Then
'Filter by name
If Filters <> "" Then Filters = Filters & " and " Else Filters = Filters & " Where "
Filters = Filters & "sendgoodsman = " & Quote(Text1(3).Text)
End If
If Check1(5).Value = 1 Then
'Filter by name
If Filters <> "" Then Filters = Filters & " and " Else Filters = Filters & " Where "
Filters = Filters & "operateman = " & Quote(Text1(4).Text)
End If
If Check1(8).Value = 1 Then
'Filter by name
If Filters <> "" Then Filters = Filters & " and " Else Filters = Filters & " Where "
Filters = Filters & "lookthrough >= " & Quote(DTPicker1(2).Value) & " and lookthrough <= " & Quote(DTPicker1(3).Value)
End If
TempSQL = VarInitData.DisplaySQLVal(19)
TempSQL = TempSQL & Filters
'StockHistory.ctllstAddress.ClearAllColors
VarInitData.LoadData SellHistory.lstAddress, TempSQL
Unload Me
VarInitData.DealListView SellHistory.lstAddress, SellHistory.lstAddressIndex
VarInitData.CheckSendBackGoods SellHistory.ctllstAddress
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim i As Integer
VarInitData.InitBSE BSE1, 0
For i = 0 To 3
DTPicker1(i).Value = Date
Next i
End Sub
Private Sub Form_Unload(Cancel As Integer)
If BSE1.EngineStarted Then BSE1.EndSubClassing
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -