📄 frmfphz.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form FrmFPHZ
Caption = "销售汇总"
ClientHeight = 6405
ClientLeft = 3045
ClientTop = 2895
ClientWidth = 13200
LinkTopic = "Form1"
ScaleHeight = 6405
ScaleWidth = 13200
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command9
Caption = "打印发票"
Height = 375
Left = 9960
TabIndex = 20
Top = 4920
Width = 1455
End
Begin VB.CommandButton Command8
Caption = "结 帐"
Height = 375
Left = 11520
TabIndex = 19
Top = 4320
Width = 1455
End
Begin VB.Frame Frame4
Caption = "结帐情况查询"
Height = 735
Left = 9840
TabIndex = 16
Top = 2640
Width = 3255
Begin VB.OptionButton Option3
Caption = "全部"
Height = 375
Left = 2280
TabIndex = 21
Top = 240
Width = 855
End
Begin VB.OptionButton Option2
Caption = "已结"
Height = 375
Left = 1200
TabIndex = 18
Top = 240
Width = 735
End
Begin VB.OptionButton Option1
Caption = "未结"
Height = 375
Left = 120
TabIndex = 17
Top = 240
Width = 735
End
End
Begin VB.CommandButton Command7
Caption = "删 除"
Height = 375
Left = 11520
TabIndex = 15
Top = 3720
Width = 1455
End
Begin VB.CommandButton Command6
Caption = "刷 新"
Height = 375
Left = 11520
TabIndex = 14
Top = 4920
Width = 1455
End
Begin VB.CommandButton Command5
Caption = "退 出"
Height = 375
Left = 11520
TabIndex = 13
Top = 5640
Width = 1455
End
Begin VB.CommandButton Command4
Caption = "打印汇总"
Height = 375
Left = 9960
TabIndex = 12
Top = 4320
Width = 1455
End
Begin VB.CommandButton Command3
Caption = "详细信息"
Height = 375
Left = 9960
TabIndex = 11
Top = 3720
Width = 1455
End
Begin VB.Frame Frame3
Caption = "根据销售日期查询"
Height = 1695
Left = 9840
TabIndex = 5
Top = 960
Width = 3255
Begin VB.CommandButton Command2
Caption = "查 询"
Height = 375
Left = 960
TabIndex = 10
Top = 1200
Width = 1215
End
Begin MSComCtl2.DTPicker DTP2
Height = 375
Left = 960
TabIndex = 9
Top = 720
Width = 1695
_ExtentX = 2990
_ExtentY = 661
_Version = 393216
Format = 74317825
CurrentDate = 38410
End
Begin MSComCtl2.DTPicker DTP1
Height = 375
Left = 960
TabIndex = 8
Top = 240
Width = 1695
_ExtentX = 2990
_ExtentY = 661
_Version = 393216
Format = 74317825
CurrentDate = 38410
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "到:"
Height = 180
Left = 240
TabIndex = 7
Top = 840
Width = 360
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "从:"
Height = 180
Left = 240
TabIndex = 6
Top = 360
Width = 360
End
End
Begin VB.Frame Frame2
Caption = "根据合同编号查询"
Height = 975
Left = 9840
TabIndex = 2
Top = 0
Width = 3255
Begin VB.CommandButton Command1
Caption = "查 询"
Height = 375
Left = 2280
TabIndex = 4
Top = 360
Width = 855
End
Begin VB.TextBox TxtFPHM
Appearance = 0 'Flat
Height = 330
Left = 120
TabIndex = 3
Top = 360
Width = 2055
End
End
Begin VB.Frame Frame1
Caption = "销售汇总"
Height = 6375
Left = 0
TabIndex = 0
Top = 0
Width = 9735
Begin MSFlexGridLib.MSFlexGrid Grid
Height = 6015
Left = 120
TabIndex = 1
Top = 240
Width = 9495
_ExtentX = 16748
_ExtentY = 10610
_Version = 393216
Cols = 8
FixedCols = 0
RowHeightMin = 315
SelectionMode = 1
FormatString = "合 同 编 号|^ 客 户 名 称 |^ 落 单 日 期 |^ 出 货 日 期 |^ 总 金 额 |^ 税 额 |^ 金 税 合 计 |^结帐否"
End
End
End
Attribute VB_Name = "FrmFPHZ"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Rst, RstQD As ADODB.Recordset
Dim RstDel As ADODB.Recordset
Dim SQLTJ, Msgtext As String
Dim CmdFlag As Integer
Private Sub Command1_Click()
If TxtFPHM <> "" Then
SQLTJ = " where 销售ID='" & Trim(TxtFPHM) & "'"
CmdFlag = 1
Call ReSet
Call FillGrid
End If
End Sub
Private Sub Command2_Click()
If DTP1 > DTP2 Then
MsgBox "请正确选择日期,终止日期不能小于起始日期!", vbOKOnly + vbCritical, "提示"
Else
SQLTJ = " where 落单日期>='" & Format(DTP1.Value, "yyyy-mm-dd") & "' and 落单日期<='" & Format(DTP2.Value, "yyyy-mm-dd") & "'"
CmdFlag = 2
Call ReSet
Call FillGrid
End If
End Sub
Private Sub Command3_Click()
' Set RstQD = New ADODB.Recordset
SQL = "select * from fpcx where 销售id='" & Grid.TextMatrix(Grid.RowSel, 0) & "'"
' RstQD.Open SQL, Db, 1, 3
Set RstQD = ExecuteSQL(SQL, Msgtext)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -