📄 分部浏览.frm
字号:
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column07
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 Column08
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
ScrollBars = 2
AllowRowSizing = 0 'False
AllowSizing = 0 'False
BeginProperty Column00
Alignment = 2
ColumnAllowSizing= 0 'False
ColumnWidth = 65.008
EndProperty
BeginProperty Column01
Alignment = 2
ColumnAllowSizing= 0 'False
ColumnWidth = 65.008
EndProperty
BeginProperty Column02
Alignment = 1
ColumnAllowSizing= 0 'False
ColumnWidth = 87.005
EndProperty
BeginProperty Column03
Alignment = 2
ColumnAllowSizing= 0 'False
ColumnWidth = 111.987
EndProperty
BeginProperty Column04
Alignment = 1
ColumnAllowSizing= 0 'False
ColumnWidth = 91.994
EndProperty
BeginProperty Column05
Alignment = 1
ColumnAllowSizing= 0 'False
ColumnWidth = 82.016
EndProperty
BeginProperty Column06
Alignment = 1
ColumnAllowSizing= 0 'False
ColumnWidth = 87.005
EndProperty
BeginProperty Column07
Alignment = 2
ColumnAllowSizing= 0 'False
ColumnWidth = 69.997
EndProperty
BeginProperty Column08
Alignment = 2
ColumnAllowSizing= 0 'False
ColumnWidth = 65.991
EndProperty
EndProperty
End
Begin MSComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 345
Left = 0
TabIndex = 6
Top = 7200
Width = 11925
_ExtentX = 21034
_ExtentY = 609
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 4
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 4339
Picture = "分部浏览.frx":0457
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 4339
Picture = "分部浏览.frx":05B1
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Alignment = 2
AutoSize = 1
Object.Width = 6103
MinWidth = 4304
Picture = "分部浏览.frx":0A03
EndProperty
BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Alignment = 2
AutoSize = 1
Object.Width = 6103
MinWidth = 4304
Picture = "分部浏览.frx":0E55
EndProperty
EndProperty
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
BeginProperty Font
Name = "隶书"
Size = 26.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 525
Left = 3270
TabIndex = 7
Top = 90
Width = 285
End
Begin VB.Shape Shape1
BorderColor = &H0000FFFF&
BorderWidth = 2
FillColor = &H00000040&
Height = 615
Left = 2700
Shape = 4 'Rounded Rectangle
Top = 60
Width = 6225
End
Begin VB.Line Line1
BorderColor = &H80000005&
BorderWidth = 3
X1 = 2
X2 = 800
Y1 = 54
Y2 = 54
End
End
Attribute VB_Name = "分部浏览"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Num As Integer
Private Sub Form_Load()
On Error GoTo X1
Me.Left = 0: Me.Top = 0
Label1.Caption = 主程序.LabelName
Label1.Left = (Me.ScaleWidth - Label1.Width) / 2
Shape1.Left = (Me.ScaleWidth - Shape1.Width) / 2
Label1.Caption = 主程序.LabelName
Adodc1.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=DSN=商场帐务;APP=Visual Basic;WSID=YAO_WEI_SERVER;DATABASE=商场帐务;Trusted_Connection=Yes"
Adodc1.RecordSource = 主程序.FileName
Adodc1.Refresh
Adodc1.Recordset.MoveLast
Adodc1.Recordset.MoveFirst
Num = Adodc1.Recordset.RecordCount
StatusBar1.Panels(1).Text = "记录总数: " & Num
StatusBar1.Panels(2).Text = "当前记录: " & 1
StatusBar1.Panels(3).Text = "今天日期: " & Format(Date, "yyyy 年 m 月 d 日")
StatusBar1.Panels(4).Text = "当前时间: " & Time
Exit Sub
X1:
Timer2.Enabled = True
StatusBar1.Panels(1).Text = "记录总数: " & 0
StatusBar1.Panels(2).Text = "当前记录: " & 0
StatusBar1.Panels(3).Text = "今天日期: " & Format(Date, "yyyy 年 m 月 d 日")
StatusBar1.Panels(4).Text = "当前时间: " & Time
End Sub
Private Sub Command1_Click()
Adodc1.Recordset.MoveFirst
StatusBar1.Panels(2).Text = "当前记录: " & Adodc1.Recordset.AbsolutePosition
End Sub
Private Sub Command2_Click()
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.AbsolutePosition = adPosBOF Then
Adodc1.Recordset.MoveFirst
StatusBar1.Panels(2).Text = "当前记录: " & 1
MsgBox "已经是第一条记录 ! ", vbExclamation
Else
StatusBar1.Panels(2).Text = "当前记录: " & Adodc1.Recordset.AbsolutePosition
End If
End Sub
Private Sub Command3_Click()
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.AbsolutePosition = adPosEOF Then
Adodc1.Recordset.MoveLast
StatusBar1.Panels(2).Text = "当前记录: " & Num
MsgBox "已经是最后一条记录 ! ", vbExclamation
Else
StatusBar1.Panels(2).Text = "当前记录: " & Adodc1.Recordset.AbsolutePosition
End If
End Sub
Private Sub Command4_Click()
Adodc1.Recordset.MoveLast
StatusBar1.Panels(2).Text = "当前记录: " & Adodc1.Recordset.AbsolutePosition
End Sub
Private Sub Command5_Click()
Adodc1.Recordset.Close
Unload Me
主程序.Show
End Sub
Private Sub DataGrid1_SelChange(Cancel As Integer)
StatusBar1.Panels(2).Text = "当前记录: " & Adodc1.Recordset.AbsolutePosition
End Sub
Private Sub Timer1_Timer()
StatusBar1.Panels(4).Text = "当前时间: " & Time
End Sub
Private Sub Timer2_Timer()
MsgBox " 没有数据 ! ", vbExclamation
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -