📄 frmselllisting.frm
字号:
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
BeginProperty Column02
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 Column03
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 Column04
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 Column05
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
ColumnWidth = 1335.118
EndProperty
BeginProperty Column01
ColumnWidth = 2415.118
EndProperty
BeginProperty Column02
ColumnWidth = 854.929
EndProperty
BeginProperty Column03
ColumnWidth = 794.835
EndProperty
BeginProperty Column04
ColumnWidth = 705.26
EndProperty
BeginProperty Column05
ColumnWidth = 1275.024
EndProperty
EndProperty
End
Begin VB.Label Label6
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C000&
BackStyle = 0 'Transparent
Caption = "总 计 积 分"
ForeColor = &H00FF0000&
Height = 180
Left = 5880
TabIndex = 8
Top = 3360
Width = 1095
End
End
Begin VB.Label Label9
BackColor = &H00C0C0C0&
Caption = "订单号码"
ForeColor = &H00FF0000&
Height = 255
Left = 240
TabIndex = 13
Top = 240
Width = 855
End
Begin VB.Label Label2
BackColor = &H00C0C0C0&
Caption = "日 期:"
ForeColor = &H00FF0000&
Height = 255
Left = 5760
TabIndex = 12
Top = 240
Width = 735
End
End
Begin VB.Frame Frame3
BackColor = &H00C0C0C0&
ForeColor = &H00FF0000&
Height = 855
Left = 120
TabIndex = 1
Top = 5565
Width = 8175
Begin VB.CommandButton cmdSave
BackColor = &H00C0C0C0&
Caption = "保存"
Height = 375
Left = 5700
Style = 1 'Graphical
TabIndex = 3
Top = 300
Width = 855
End
Begin VB.CommandButton cmdDelete
BackColor = &H00C0C0C0&
Caption = "删除"
Height = 375
Left = 4875
Style = 1 'Graphical
TabIndex = 25
Top = 300
Width = 855
End
Begin VB.CommandButton cmdCancel
BackColor = &H00C0C0C0&
Caption = "取消"
Height = 375
Left = 4050
Style = 1 'Graphical
TabIndex = 5
Top = 300
Width = 855
End
Begin VB.CommandButton cmdClose
BackColor = &H00C0C0C0&
Caption = "退出"
Height = 375
Left = 6900
Style = 1 'Graphical
TabIndex = 4
Top = 300
Width = 1095
End
Begin VB.CommandButton cmdAddNew
BackColor = &H00C0C0C0&
Caption = "新增"
Height = 375
Left = 3215
Style = 1 'Graphical
TabIndex = 2
Top = 300
Width = 855
End
Begin MSAdodcLib.Adodc Adodc1
Height = 390
Left = 150
Top = 285
Width = 2865
_ExtentX = 5054
_ExtentY = 688
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 0
BackColor = 12632256
ForeColor = 16711680
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=C:\SYSTEM\DATABASE\SYSTEM.MDB"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=C:\SYSTEM\DATABASE\SYSTEM.MDB"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 购货清单 order by 订单号码"
Caption = " 购 货 清 单"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
End
Begin MSAdodcLib.Adodc Adodc2
Height = 330
Left = 600
Top = 240
Visible = 0 'False
Width = 2220
_ExtentX = 3916
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
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.3.51;Persist Security Info=False;Data Source=C:\SYSTEM\DATABASE\SYSTEM.MDB"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=C:\SYSTEM\DATABASE\SYSTEM.MDB"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 购货清单明细"
Caption = "购货清单明细"
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 VB.Label Label1
BackColor = &H00C0C0C0&
Caption = "业务员购货清单"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 2760
TabIndex = 0
Top = 120
Width = 3135
End
End
Attribute VB_Name = "frmSellListing"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim InputVar As Boolean
Dim dbEnable As Boolean ' 定义该变量控制双击DataGrid第一列能否打开另一个表单
Dim Sql As String
Dim Sql1 As String
Dim Conn As New ADODB.Connection
Dim Cmd As ADODB.Command
Dim rs As New ADODB.Recordset
Sub LockedOrNo(InputVar As Boolean)
txt订单号码.Locked = InputVar
cmdQuery.Enabled = Not InputVar
txt购货时间.Locked = InputVar
txt业务员姓名.Locked = InputVar
txt业务员工号.Locked = InputVar
cmdSelect.Enabled = Not InputVar
txt总计积分.Locked = InputVar
cmdRecordAddNew.Visible = Not InputVar
cmdRecordDelete.Visible = Not InputVar
cmdRecordModify.Visible = Not InputVar
cmdRecordSave.Visible = Not InputVar
DataGrid1.Enabled = Not InputVar
End Sub
Private Sub Adodc1_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
If Adodc1.Recordset.EOF Then Exit Sub
If Adodc1.Recordset.BOF Then Exit Sub
Sql = "select * from 购货清单明细 where 订单号码= '" & Adodc1.Recordset("订单号码") & "'"
Adodc2.RecordSource = Sql
Adodc2.Refresh
End Sub
Private Sub cmdAddNew_Click()
InputVar = False
LockedOrNo (InputVar)
cmdAddNew.Enabled = False
cmdCancel.Enabled = False
cmdDelete.Enabled = False
cmdSave.Enabled = False
cmdClose.Enabled = False
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -