【VB开源代码栏目提醒】:网学会员鉴于大家对VB开源代码十分关注,论文会员在此为大家搜集整理了“frmfygsbm.frm”一文,供大家参考学习
VERSION 5.00
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmfygsbm
BackColor = &H00FF8080&
Caption = "资金归属部门管理"
ClientHeight = 5670
ClientLeft = 60
ClientTop = 345
ClientWidth = 6825
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5670
ScaleWidth = 6825
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton cmdkmlb
Caption = "添加部门"
Height = 375
Index = 0
Left = 240
TabIndex = 9
Top = 840
Width = 1100
End
Begin VB.CommandButton cmdkmlb
Caption = "修改部门"
Height = 375
Index = 1
Left = 1680
TabIndex = 8
Top = 840
Width = 1100
End
Begin VB.CommandButton cmdkmlb
Caption = "
查询部门"
Height = 375
Index = 2
Left = 3120
TabIndex = 7
Top = 840
Width = 1100
End
Begin VB.CommandButton cmdkmlb
Caption = "删除部门"
Height = 375
Index = 3
Left = 4800
TabIndex = 6
Top = 840
Width = 1100
End
Begin VB.CommandButton cmdkmlb
Caption = "下一个"
Height = 375
Index = 4
Left = 240
TabIndex = 5
Top = 1320
Width = 1100
End
Begin VB.CommandButton cmdkmlb
Caption = "上一个"
Height = 375
Index = 5
Left = 1680
TabIndex = 4
Top = 1320
Width = 1100
End
Begin
VB.CommandButton cmdkmlb
Caption = "保存"
Enabled = 0 'False
Height = 375
Index = 6
Left = 3120
TabIndex = 3
Top = 1320
Width = 1100
End
Begin VB.CommandButton cmdkmlb
Caption = "退出"
Height = 375
Index = 7
Left = 4800
TabIndex = 2
Top = 1320
Width = 1100
End
Begin MSDataGridLib.DataGrid DataGrid1
Height = 3015
Left = 240
TabIndex = 0
Top = 1920
Width = 5775
_ExtentX = 10186
_ExtentY = 5318
_Version = 393216
AllowUpdate = 0 'False
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
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 MSDataListLib.DataCombo Dacomdm
Height = 315
Left = 1440
TabIndex = 1
Top = 240
Width = 1575
_ExtentX = 2778
_ExtentY = 556
_Version = 393216
Enabled = 0 'False
Text = "DataCombo1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin MSDataListLib.DataCombo Dacomgsbmmc
CausesValidation= 0 'False
Height = 315
Left = 4560
TabIndex = 10
Top = 240
Width = 1575
_ExtentX = 2778
_ExtentY = 556
_Version = 393216
Text = "DataCombo1"
End
Begin VB.Label Labkhmc
BackStyle = 0 'Transparent
Caption = "部门代码"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 12
Top = 240
Width = 1095
End
Begin VB.Label Lablxr
BackStyle = 0 'Transparent
Caption = "部门名称"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3240
TabIndex = 11
Top = 240
Width = 1095
End
End
Attribute VB_Name = "frmfygsbm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim addrecord As Variant
'Dim usercheck As Boolean
Dim conn As New ADODB.Connection
Dim rsfygsbm As New ADODB.Recordset
'设置费用归属部门管理中按钮的状态
Private Sub setbuttonskh(bval As Boolean)
For i = 0 To 5
cmdkmlb(i).Enabled = bval
Next i
cmdkmlb(6).Enabled = Not bval
Dacomdm.Enabled = Not bval
Dacomgsbmmc.Enabled = Not bval
DataGrid1.Enabled = bval
If bval Then
cmdkmlb(7).Caption = "退出"
Else
cmdkmlb(7).Caption = "取消"
End If
Exit Sub
End Sub
'费用归属部门管理中记录增加或修改后的字段检验
Private Function gsbmcheck() As Boolean
Dim id As Int