📄 zjxianxi.frm
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form ZJXianXi
BorderStyle = 3 'Fixed Dialog
ClientHeight = 6825
ClientLeft = 45
ClientTop = 330
ClientWidth = 9510
Icon = "ZJXianXi.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6825
ScaleWidth = 9510
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
WindowState = 2 'Maximized
Begin VB.PictureBox Picture1
FillColor = &H00FFFFFF&
ForeColor = &H00C00000&
Height = 435
Left = 30
ScaleHeight = 375
ScaleWidth = 9375
TabIndex = 4
Top = 3960
Width = 9435
Begin VB.Label Hjtxt
ForeColor = &H000000FF&
Height = 240
Left = 7725
TabIndex = 10
Top = 120
Width = 1590
End
Begin VB.Label SFktxt
ForeColor = &H000000FF&
Height = 240
Left = 3480
TabIndex = 9
Top = 120
Width = 1365
End
Begin VB.Label QkTXt
ForeColor = &H000000FF&
Height = 240
Left = 1290
TabIndex = 8
Top = 105
Width = 1395
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "合计:"
ForeColor = &H00FF0000&
Height = 180
Left = 7200
TabIndex = 7
Top = 120
Width = 450
End
Begin VB.Label Sfklab
AutoSize = -1 'True
Caption = "实付款:"
ForeColor = &H00FF0000&
Height = 180
Left = 2820
TabIndex = 6
Top = 120
Width = 630
End
Begin VB.Label Qklab
AutoSize = -1 'True
Caption = "欠款额:"
ForeColor = &H00FF0000&
Height = 180
Left = 570
TabIndex = 5
Top = 105
Width = 630
End
End
Begin VB.TextBox Text1
DataField = "发票号"
DataSource = "Data1"
Height = 480
Left = -1620
TabIndex = 2
Top = 1410
Visible = 0 'False
Width = 1545
End
Begin VB.Data Data2
Caption = "Data2"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 345
Left = -1710
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 5070
Visible = 0 'False
Width = 1695
End
Begin MSDBGrid.DBGrid DBGrid2
Bindings = "ZJXianXi.frx":0442
Height = 1890
Left = 75
OleObjectBlob = "ZJXianXi.frx":0452
TabIndex = 1
ToolTipText = "按右钮返回!"
Top = 4845
Width = 9450
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 345
Left = -1515
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 3345
Visible = 0 'False
Width = 1515
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "ZJXianXi.frx":1494
Height = 3825
Left = 60
OleObjectBlob = "ZJXianXi.frx":14A4
TabIndex = 0
ToolTipText = "选择要查看的发票,得到更多的信息!"
Top = 0
Width = 9465
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "发票对应的购货明细单"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000080&
Height = 300
Left = 75
TabIndex = 3
Top = 4515
Width = 9405
End
Begin VB.Line Line1
BorderColor = &H00FFFFFF&
BorderWidth = 3
X1 = 90
X2 = 9480
Y1 = 3810
Y2 = 3825
End
End
Attribute VB_Name = "ZJXianXi"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub DBGrid1_Click()
If Trim(Text1.Text) = "" Then Exit Sub
Str1 = Trim(Text1.Text)
Data2.RecordSource = "select * from fpk where 发票号='" & Str1 & "'"
Data2.Refresh
End Sub
Private Sub DBGrid1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 And DBGrid1.Col <> 1 Then
Unload Me
Exit Sub
End If
If DBGrid1.Col = 1 And Button = 2 Then
ZJXianXi.MousePointer = 11
Load Xinxi
ZJXianXi.MousePointer = 0
Xinxi.Show 1
End If
End Sub
Private Sub DBGrid2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
Unload Me
End If
End Sub
Private Sub Form_Load()
On Error GoTo xxx
Data1.DatabaseName = appData
Data2.DatabaseName = appData
If TempRqF = "" And TempRqE = "" Then Exit Sub
If TjZijin.Option1.Value = True Then
ZJXianXi.Caption = TjZijin.RqHide.Text & " 年,销售资金详细情况!"
End If
If TjZijin.Option2.Value = True Then
ZJXianXi.Caption = Year(Date) & " 年 " & TjZijin.RqHide.Text & " 月,销售资金详细情况!"
End If
If TjZijin.Option3.Value = True Then
ZJXianXi.Caption = Year(Date) & " 年 " & Month(Date) & " 月 " & TjZijin.RqHide.Text & " 日,销售资金详细情况!"
'统计表达式
TempStr = "select * from guestfindk "
TempStr = TempStr & "where (日期=#" & TempRqF & "#)"
Data1.RecordSource = TempStr
Data1.Refresh
QkTXt.Caption = TjZijin.Text6.Text
SFktxt.Caption = TjZijin.Text5.Text
Hjtxt.Caption = TjZijin.Text4.Text
Exit Sub
End If
'统计表达式
TempStr = "select * from guestfindk "
TempStr = TempStr & "where (日期>=#" & TempRqF & "# and 日期<#" & TempRqE & "#)"
Data1.RecordSource = TempStr
Data1.Refresh
QkTXt.Caption = TjZijin.Text6.Text
SFktxt.Caption = TjZijin.Text5.Text
Hjtxt.Caption = TjZijin.Text4.Text
Exit Sub
xxx:
MsgBox "日期格式有错误(或)起始日期与结束日期颠倒!", vbOKOnly + 32, "日期错"
Exit Sub
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -