📄 frmpzcl.frm
字号:
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc3"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSAdodcLib.Adodc Adodc2
Height = 330
Left = 3240
Top = 5040
Visible = 0 'False
Width = 1815
_ExtentX = 3201
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=AISKM.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=AISKM.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc2"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSDataGridLib.DataGrid DataGrid2
Height = 3855
Left = -74760
TabIndex = 34
Top = 960
Width = 7335
_ExtentX = 12938
_ExtentY = 6800
_Version = 393216
AllowUpdate = 0 'False
AllowArrows = 0 'False
BackColor = 16777152
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin MSDataGridLib.DataGrid DataGrid3
Height = 3135
Left = -74760
TabIndex = 39
Top = 1560
Width = 6855
_ExtentX = 12091
_ExtentY = 5530
_Version = 393216
AllowUpdate = 0 'False
AllowArrows = 0 'False
BackColor = 16777152
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin VB.Label Label15
Caption = "至"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = -71520
TabIndex = 45
Top = 960
Width = 255
End
Begin VB.Label Label14
Caption = "要查询的凭证日期:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = -74880
TabIndex = 44
Top = 960
Width = 1815
End
Begin VB.Label Label5
Caption = "至"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = -71520
TabIndex = 41
Top = 480
Width = 255
End
Begin VB.Label Label4
Caption = "要查询的凭证号:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = -74760
TabIndex = 40
Top = 480
Width = 1575
End
Begin VB.Label Label13
Caption = "至"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = -71520
TabIndex = 36
Top = 600
Width = 255
End
Begin VB.Label Label12
Caption = "待审核的凭证号:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = -74760
TabIndex = 35
Top = 600
Width = 1575
End
End
End
End
Attribute VB_Name = "frmPzcl"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim flag As Boolean
Dim j As Integer
Dim flag1 As Boolean
'查询
Private Sub Command3_Click()
Dim strSQL As String
If Option1.Value = True Then
Text3.Enabled = True
Text4.Enabled = True
If Text3.Text = "" Or Text4.Text = "" Then
MsgBox "请输入凭证号"
Exit Sub
Else
strSQL = "select * from pzls where 凭证号>=" & Int(Text3.Text) & "and 凭证号<=" & Int(Text4.Text)
End If
ElseIf Option2.Value = True Then
DTPicker2.Enabled = True
DTPicker3.Enabled = True
strSQL = "select * from pzls where 日期>=" & CLng(CDate(DTPicker2.Value)) & "and 日期<=" & CLng(CDate(DTPicker3.Value))
Else
MsgBox "请选择查询方式"
Exit Sub
End If
Adodc4.ConnectionString = ADOcn
Adodc4.CursorLocation = adUseClient
Adodc4.CommandType = adCmdText
Adodc4.RecordSource = strSQL
Adodc4.Refresh
Set DataGrid3.DataSource = Adodc4
'DataGrid3.Columns("凭证号").Text = Format(DataGrid3.Columns("凭证号").Text, "00000")
DataGrid3.Columns("审核标志").Visible = False
DataGrid3.Columns("记账标志").Visible = False
DataGrid3.Refresh
End Sub
'用于销审
Private Sub Command5_Click()
Dim sql As String
Dim rs As New Recordset
Dim i As Integer
sql = "select * from pzls where 凭证号>=" & Int(Text1.Text) & "and 凭证号<=" & Int(Text2.Text)
rs.Open sql, ADOcn, 1, 3
For i = 0 To rs.RecordCount - 1
rs("审核标志") = 0
rs.Update
rs.MoveNext
Next i
MsgBox "销审已成功"
Set rs = Nothing
End Sub
'用于审核,审核标志
Private Sub Command1_Click()
Dim strSQL As String
Dim rs As New Recordset
Dim i As Integer
If Text1.Text = "" Or Text2.Text = "" Then
MsgBox "请输入凭证号"
Exit Sub
End If
If Command1.Caption = "开始查询" Then
Command1.Caption = "开始审核"
Command5.Enabled = True
strSQL = "select * from pzls where 凭证号>=" & Int(Text1.Text) & "and 凭证号<=" & Int(Text2.Text)
Adodc3.ConnectionString = ADOcn
Adodc3.CursorLocation = adUseClient
Adodc3.CommandType = adCmdText
Adodc3.RecordSource = strSQL
Adodc3.Refresh
Set DataGrid2.DataSource = Adodc3
'DataGrid2.Columns("凭证号").Text = Format(DataGrid2.Columns("凭证号").Text, "00000")
DataGrid2.Columns("审核标志").Visible = False
DataGrid2.Columns("记账标志").Visible = False
DataGrid2.Refresh
Else
Command1.Caption = "开始查询"
sql = "select * from pzls where 凭证号>=" & Int(Text1.Text) & "and 凭证号<=" & Int(Text2.Text)
rs.Open sql, ADOcn, 1, 3
For i = 0 To rs.RecordCount - 1
rs("审核标志") = 1
rs.Update
rs.MoveNext
Next i
MsgBox "审核已成功"
Set rs = Nothing
End If
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -