📄 供货商信息.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form FrmGongHuoShang
BorderStyle = 1 'Fixed Single
Caption = "供货商信息..."
ClientHeight = 7650
ClientLeft = 45
ClientTop = 435
ClientWidth = 10095
Icon = "供货商信息.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 7650
ScaleWidth = 10095
Begin VB.Frame Frame1
Height = 6015
Left = 0
TabIndex = 0
Top = 0
Width = 9855
Begin VB.Frame Frame2
Height = 4695
Left = 120
TabIndex = 12
Top = 120
Width = 9615
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 2640
Top = 1440
Visible = 0 'False
Width = 2175
_ExtentX = 3836
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=Bookdate;Data Source=127.0.0.1"
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=Bookdate;Data Source=127.0.0.1"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = "sa"
Password = ""
RecordSource = "GongHuoShang"
Caption = "Adodc1"
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 DataGrid
Bindings = "供货商信息.frx":058A
Height = 4455
Left = 120
TabIndex = 13
Top = 120
Width = 9375
_ExtentX = 16536
_ExtentY = 7858
_Version = 393216
AllowUpdate = 0 'False
HeadLines = 1
RowHeight = 17
FormatLocked = -1 'True
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
Caption = "供 货 商 信 息 浏 览"
ColumnCount = 5
BeginProperty Column00
DataField = "pro_id"
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 = "pro_name"
Caption = "供货商姓名"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = "pro_acl"
Caption = "供货商帐号"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "pro_bank"
Caption = "开户行"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column04
DataField = "pro_company"
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
ColumnWidth = 1094.74
EndProperty
BeginProperty Column01
ColumnWidth = 2085.166
EndProperty
BeginProperty Column02
ColumnWidth = 2085.166
EndProperty
BeginProperty Column03
ColumnWidth = 2085.166
EndProperty
BeginProperty Column04
ColumnWidth = 2085.166
EndProperty
EndProperty
End
End
Begin VB.Frame Frame3
Caption = "信息浏览:"
ForeColor = &H00FF0000&
Height = 975
Left = 120
TabIndex = 7
Top = 4920
Width = 4455
Begin VB.CommandButton CmdFirst
Caption = "第一条"
Height = 300
Left = 240
TabIndex = 11
Top = 360
Width = 800
End
Begin VB.CommandButton CmdPrevious
Caption = "前一条"
Height = 300
Left = 1275
TabIndex = 10
Top = 370
Width = 800
End
Begin VB.CommandButton CmdNext
Caption = "后一条"
Height = 300
Left = 2325
TabIndex = 9
Top = 370
Width = 800
End
Begin VB.CommandButton CmdLast
Caption = "末一条"
Height = 300
Left = 3360
TabIndex = 8
Top = 370
Width = 800
End
End
Begin VB.Frame Frame4
Caption = "数据操作:"
ForeColor = &H00FF0000&
Height = 975
Left = 4680
TabIndex = 1
Top = 4920
Width = 5055
Begin VB.CommandButton CmdAdd
Caption = "添加"
Height = 300
Left = 240
TabIndex = 6
Top = 360
Width = 800
End
Begin VB.CommandButton CmdShanChu
Caption = "删除"
Height = 300
Left = 1170
TabIndex = 5
Top = 360
Width = 800
End
Begin VB.CommandButton CmdEdit
Caption = "编辑"
Height = 300
Left = 2100
TabIndex = 4
Top = 360
Width = 800
End
Begin VB.CommandButton CmdSave
Caption = "保存"
Enabled = 0 'False
Height = 300
Left = 3030
TabIndex = 3
Top = 360
Width = 800
End
Begin VB.CommandButton CmdExit
Caption = "退出"
Height = 300
Left = 3960
TabIndex = 2
Top = 360
Width = 800
End
End
End
End
Attribute VB_Name = "FrmGongHuoShang"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
FrmGongHuoShang.Left = 1000
FrmGongHuoShang.Top = 66
FrmGongHuoShang.Height = 6600
FrmGongHuoShang.Width = 10125
End Sub
Private Sub CmdAdd_Click()
CmdSave.Enabled = True
frmAddGongShang.Show
frmAddGongShang.FramAddGongHuoShang.Visible = True
frmAddGongShang.FramEdit.Visible = False
End Sub
Private Sub CmdEdit_Click()
CmdSave.Enabled = True
frmAddGongShang.Show
frmAddGongShang.FramAddGongHuoShang.Visible = False
frmAddGongShang.FramEdit.Visible = True
End Sub
Private Sub CmdExit_Click()
'Adodc1.Recordset.CancelUpdate
'Adodc1.Recordset.Delete
Adodc1.Refresh
Unload Me
End Sub
Private Sub CmdFirst_Click()
Adodc1.Recordset.MoveFirst
End Sub
Private Sub CmdLast_Click()
Adodc1.Recordset.MoveLast
End Sub
Private Sub CmdNext_Click()
If Adodc1.Recordset.AbsolutePosition = Adodc1.Recordset.RecordCount Then
Adodc1.Recordset.MoveLast
Else
Adodc1.Recordset.MoveNext
End If
End Sub
Private Sub CmdPrevious_Click()
If Adodc1.Recordset.AbsolutePosition = 1 Then
Adodc1.Recordset.MoveFirst
Else
Adodc1.Recordset.MovePrevious
End If
End Sub
Private Sub CmdSave_Click()
Adodc1.Recordset.Update
Adodc1.Refresh
MsgBox "信息保存成功!", vbOKOnly + vbInformation, "保存信息"
CmdSave.Enabled = False
End Sub
Private Sub CmdShanChu_Click()
If MsgBox("确定要删除此行吗?", vbYesNo + vbQuestion, "删除记录") = vbYes Then
Adodc1.Recordset.Delete
Adodc1.Recordset.Update
Adodc1.Refresh
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -