📄 frmqinprint.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmqinprint
Caption = "请款汇总报告"
ClientHeight = 3225
ClientLeft = 2640
ClientTop = 2280
ClientWidth = 6270
Icon = "frmqinprint.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3225
ScaleWidth = 6270
Begin VB.CommandButton CMDHK
Caption = "打发票HK"
Height = 340
Left = 3360
Style = 1 'Graphical
TabIndex = 12
Top = 2640
UseMaskColor = -1 'True
Width = 1215
End
Begin VB.CommandButton Cmdfa
Caption = "打发票NT"
Height = 340
Left = 1920
Style = 1 'Graphical
TabIndex = 11
Top = 2640
UseMaskColor = -1 'True
Width = 1215
End
Begin VB.CommandButton cmdok
Caption = "打请款单"
Height = 340
Left = 720
Style = 1 'Graphical
TabIndex = 5
Top = 2640
UseMaskColor = -1 'True
Width = 1095
End
Begin VB.CommandButton cmdcancel
Caption = "关闭(&C)"
Height = 340
Left = 4680
Style = 1 'Graphical
TabIndex = 4
Top = 2640
UseMaskColor = -1 'True
Width = 1095
End
Begin VB.Frame Frame1
Caption = "参数选项"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 2415
Left = 240
TabIndex = 0
Top = 120
Width = 5775
Begin VB.ComboBox cmbtype
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
ItemData = "frmqinprint.frx":0442
Left = 3720
List = "frmqinprint.frx":0452
TabIndex = 14
Text = "cmbtype"
Top = 1920
Width = 1335
End
Begin VB.TextBox Txtclient
Height = 270
Left = 1440
MaxLength = 100
TabIndex = 8
Top = 600
Width = 2415
End
Begin MSComCtl2.DTPicker DTP2
Height = 375
Left = 3600
TabIndex = 7
Top = 1200
Width = 1455
_ExtentX = 2566
_ExtentY = 661
_Version = 393216
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
CalendarForeColor= 16711680
CalendarTitleBackColor= 255
Format = 61472769
CurrentDate = 36400
End
Begin MSComCtl2.DTPicker DTP1
Height = 375
Left = 1440
TabIndex = 6
Top = 1200
Width = 1575
_ExtentX = 2778
_ExtentY = 661
_Version = 393216
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
CalendarForeColor= 16711680
CalendarTitleBackColor= 255
Format = 61472769
CurrentDate = 36400
End
Begin MSComCtl2.DTPicker DTP3
Height = 375
Left = 1440
TabIndex = 9
Top = 1920
Width = 1575
_ExtentX = 2778
_ExtentY = 661
_Version = 393216
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
CalendarForeColor= 16711680
CalendarTitleBackColor= 255
Format = 61472769
CurrentDate = 36400
End
Begin VB.Label lbl1
Caption = "(注明:请用中文字)"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 255
Index = 1
Left = 3840
TabIndex = 15
Top = 600
Width = 1815
End
Begin VB.Label Label1
Caption = "类型:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 255
Left = 3120
TabIndex = 13
Top = 1920
Width = 615
End
Begin VB.Label lbl4
Caption = "显示日期:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 255
Left = 240
TabIndex = 10
Top = 1920
Width = 1215
End
Begin VB.Label lbl1
Caption = "请款日期:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 255
Index = 2
Left = 240
TabIndex = 3
Top = 1200
Width = 1215
End
Begin VB.Label lbl1
Caption = "客户名称:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 255
Index = 3
Left = 240
TabIndex = 2
Top = 600
Width = 1095
End
Begin VB.Label lbl
Caption = "到:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 255
Index = 0
Left = 3120
TabIndex = 1
Top = 1200
Width = 375
End
End
End
Attribute VB_Name = "frmqinprint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs As Recordset
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub Cmdfa_Click()
Txtclient.Text = Trim(Txtclient.Text)
If Len(Trim(Txtclient.Text)) = 0 Then
sqlcc2 = "select * from qin_view where qty<>0 and (model<>'' and qin_date>=" & "'" & DTP1.value & "'" & " and qin_date<=" & "'" & DTP2.value & "')"
Else
sqlcc2 = "select * from qin_view where qty<>0 and (model<>'' and qin_date>=" & "'" & DTP1.value & "'" & " and qin_date<=" & "'" & DTP2.value & "'" & " and s_name like '%" & Txtclient.Text & "%')"
End If
If Cmbtype.Text <> "全部" Then
sqlcc2 = sqlcc2 & " and typea=" & "'" & Cmbtype.Text & "'"
End If
sqlcc2 = sqlcc2 & " order by qinno"
ARqinfa.Show 1
End Sub
Private Sub CMDHK_Click()
Txtclient.Text = Trim(Txtclient.Text)
If Len(Trim(Txtclient.Text)) = 0 Then
sqlcc2 = "select * from qin_view where qty<>0 and (model<>'' and qin_date>=" & "'" & DTP1.value & "'" & " and qin_date<=" & "'" & DTP2.value & "')"
Else
sqlcc2 = "select * from qin_view where qty<>0 and (model<>'' and qin_date>=" & "'" & DTP1.value & "'" & " and qin_date<=" & "'" & DTP2.value & "'" & " and s_name like '%" & Txtclient.Text & "%')"
End If
If Cmbtype.Text <> "全部" Then
sqlcc2 = sqlcc2 & " and typea=" & "'" & Cmbtype.Text & "'"
End If
sqlcc2 = sqlcc2 & " order by qinno"
ARqinfa1.Show 1
End Sub
Private Sub cmdok_Click()
Me.MousePointer = 11
Txtclient.Text = Trim(Txtclient.Text)
If Len(Trim(Txtclient.Text)) = 0 Then
sqlcc2 = "select * from qin_view where qty<>0 and (model<>'' and qin_date>=" & "'" & DTP1.value & "'" & " and qin_date<=" & "'" & DTP2.value & "')"
Else
sqlcc2 = "select * from qin_view where qty<>0 and (model<>'' and qin_date>=" & "'" & DTP1.value & "'" & " and qin_date<=" & "'" & DTP2.value & "'" & " and s_name like '%" & Txtclient.Text & "%')"
End If
If Cmbtype.Text <> "全部" Then
sqlcc2 = sqlcc2 & " and typea=" & "'" & Cmbtype.Text & "'"
End If
sqlcc2 = sqlcc2 & " order by qinno"
'ARqintotal.Show 1'2002-08-24
Set rs = New Recordset
rs.Open sqlcc2, db, adOpenStatic, adLockOptimistic
If rs.RecordCount > 0 Then
rs.Close
Set rs = Nothing
ARqintotal.Show 1
Else
rs.Close
Set rs = Nothing
MsgBox "不能找到相应的记录!!!", vbCritical + vbOKOnly, MSG2
Me.MousePointer = 0
Exit Sub
End If
Me.MousePointer = 0
End Sub
Private Sub Form_Activate()
Txtclient.SetFocus
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyEscape Then Unload Me
End Sub
Private Sub Form_Load()
DTP1.value = "1/1/2002"
DTP2.value = Date
DTP3.value = Date
Cmbtype.Text = "全部"
End Sub
Private Sub Form_Resize()
'On Error Resume Next
'Me.Top = 0
'Me.Left = 50
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -