📄 frmspmx.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmSPMX
Caption = "商品销售明细"
ClientHeight = 5640
ClientLeft = 60
ClientTop = 345
ClientWidth = 7650
LinkTopic = "Form1"
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 5640
ScaleWidth = 7650
WindowState = 2 'Maximized
Begin VB.TextBox Text2
BackColor = &H00C0E0FF&
Height = 285
Left = 105
TabIndex = 2
Top = 915
Width = 4665
End
Begin MSHierarchicalFlexGridLib.MSHFlexGrid MFG
Bindings = "frmSPMX.frx":0000
Height = 4260
Left = 60
TabIndex = 0
Top = 1320
Width = 7530
_ExtentX = 13282
_ExtentY = 7514
_Version = 393216
Cols = 7
FixedCols = 0
MergeCells = 2
_NumberOfBands = 1
_Band(0).Cols = 7
_Band(0).GridLinesBand= 1
_Band(0).TextStyleBand= 0
_Band(0).TextStyleHeader= 0
_Band(0)._NumMapCols= 26
_Band(0)._MapCol(0)._Name= "货品资料.货品代码"
_Band(0)._MapCol(0)._Caption= "货品代码"
_Band(0)._MapCol(0)._RSIndex= 0
_Band(0)._MapCol(0)._Hidden= -1 'True
_Band(0)._MapCol(1)._Name= "货品名称"
_Band(0)._MapCol(1)._RSIndex= 1
_Band(0)._MapCol(2)._Name= "规格型号"
_Band(0)._MapCol(2)._RSIndex= 2
_Band(0)._MapCol(2)._Hidden= -1 'True
_Band(0)._MapCol(3)._Name= "英文名称"
_Band(0)._MapCol(3)._RSIndex= 3
_Band(0)._MapCol(3)._Hidden= -1 'True
_Band(0)._MapCol(4)._Name= "货品分类"
_Band(0)._MapCol(4)._RSIndex= 4
_Band(0)._MapCol(4)._Hidden= -1 'True
_Band(0)._MapCol(5)._Name= "商标品牌"
_Band(0)._MapCol(5)._RSIndex= 5
_Band(0)._MapCol(5)._Hidden= -1 'True
_Band(0)._MapCol(6)._Name= "货品产地"
_Band(0)._MapCol(6)._RSIndex= 6
_Band(0)._MapCol(6)._Hidden= -1 'True
_Band(0)._MapCol(7)._Name= "计量单位"
_Band(0)._MapCol(7)._RSIndex= 7
_Band(0)._MapCol(7)._Hidden= -1 'True
_Band(0)._MapCol(8)._Name= "重量"
_Band(0)._MapCol(8)._RSIndex= 8
_Band(0)._MapCol(8)._Hidden= -1 'True
_Band(0)._MapCol(9)._Name= "体积"
_Band(0)._MapCol(9)._RSIndex= 9
_Band(0)._MapCol(9)._Hidden= -1 'True
_Band(0)._MapCol(10)._Name= "厂价"
_Band(0)._MapCol(10)._RSIndex= 10
_Band(0)._MapCol(10)._Alignment= 7
_Band(0)._MapCol(10)._Hidden= -1 'True
_Band(0)._MapCol(11)._Name= "参考成本"
_Band(0)._MapCol(11)._RSIndex= 11
_Band(0)._MapCol(11)._Alignment= 7
_Band(0)._MapCol(11)._Hidden= -1 'True
_Band(0)._MapCol(12)._Name= "现价值"
_Band(0)._MapCol(12)._RSIndex= 12
_Band(0)._MapCol(12)._Alignment= 7
_Band(0)._MapCol(12)._Hidden= -1 'True
_Band(0)._MapCol(13)._Name= "销售定价"
_Band(0)._MapCol(13)._RSIndex= 13
_Band(0)._MapCol(13)._Alignment= 7
_Band(0)._MapCol(13)._Hidden= -1 'True
_Band(0)._MapCol(14)._Name= "批发定价"
_Band(0)._MapCol(14)._RSIndex= 14
_Band(0)._MapCol(14)._Alignment= 7
_Band(0)._MapCol(14)._Hidden= -1 'True
_Band(0)._MapCol(15)._Name= "调货定价"
_Band(0)._MapCol(15)._RSIndex= 15
_Band(0)._MapCol(15)._Alignment= 7
_Band(0)._MapCol(15)._Hidden= -1 'True
_Band(0)._MapCol(16)._Name= "最高库存"
_Band(0)._MapCol(16)._RSIndex= 16
_Band(0)._MapCol(16)._Alignment= 7
_Band(0)._MapCol(16)._Hidden= -1 'True
_Band(0)._MapCol(17)._Name= "最底库存"
_Band(0)._MapCol(17)._RSIndex= 17
_Band(0)._MapCol(17)._Alignment= 7
_Band(0)._MapCol(17)._Hidden= -1 'True
_Band(0)._MapCol(18)._Name= "出货时间"
_Band(0)._MapCol(18)._RSIndex= 19
_Band(0)._MapCol(19)._Name= "出货单编号"
_Band(0)._MapCol(19)._RSIndex= 18
_Band(0)._MapCol(19)._Alignment= 7
_Band(0)._MapCol(20)._Name= "购货单位"
_Band(0)._MapCol(20)._RSIndex= 20
_Band(0)._MapCol(20)._Hidden= -1 'True
_Band(0)._MapCol(21)._Name= "销售性质"
_Band(0)._MapCol(21)._RSIndex= 21
_Band(0)._MapCol(22)._Name= "出货单.货品代码"
_Band(0)._MapCol(22)._RSIndex= 22
_Band(0)._MapCol(22)._Hidden= -1 'True
_Band(0)._MapCol(23)._Name= "数量"
_Band(0)._MapCol(23)._RSIndex= 23
_Band(0)._MapCol(23)._Alignment= 7
_Band(0)._MapCol(24)._Name= "实售价"
_Band(0)._MapCol(24)._RSIndex= 24
_Band(0)._MapCol(24)._Alignment= 7
_Band(0)._MapCol(25)._Name= "小计"
_Band(0)._MapCol(25)._RSIndex= 25
_Band(0)._MapCol(25)._Alignment= 7
End
Begin MSAdodcLib.Adodc ADO
Height = 345
Left = 5250
Top = 900
Visible = 0 'False
Width = 1905
_ExtentX = 3360
_ExtentY = 609
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 = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
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 MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 795
Left = 0
TabIndex = 1
Top = 0
Width = 7650
_ExtentX = 13494
_ExtentY = 1402
ButtonWidth = 1032
ButtonHeight = 1349
Appearance = 1
Style = 1
ImageList = "ImageList2"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 6
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "打印"
ImageIndex = 10
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "退出"
ImageIndex = 9
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Object.Visible = 0 'False
Caption = "确定"
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Object.Visible = 0 'False
Caption = "取消"
EndProperty
EndProperty
BorderStyle = 1
End
Begin MSComctlLib.ImageList ImageList2
Left = 6735
Top = -60
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 12
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSPMX.frx":0012
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSPMX.frx":0466
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSPMX.frx":08BA
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSPMX.frx":0D0E
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSPMX.frx":1162
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSPMX.frx":15B6
Key = ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSPMX.frx":1A0A
Key = ""
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSPMX.frx":1E5E
Key = ""
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSPMX.frx":22B2
Key = ""
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSPMX.frx":4FBC
Key = ""
EndProperty
BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSPMX.frx":6CC6
Key = ""
EndProperty
BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSPMX.frx":97D0
Key = ""
EndProperty
EndProperty
End
End
Attribute VB_Name = "frmSPMX"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
ADO.ConnectionString = g_cnnStr
MFG.MergeCol(0) = True
MFG.MergeCol(1) = True
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
ADO.RecordSource = "select * from 货品资料,出货单 where 货品资料.货品代码=出货单.货品代码 and 货品资料.货品代码='" & Text2.Text & "' order by 出货单编号"
ADO.Refresh
If ADO.Recordset.EOF Then
MsgBox "您输入的货品不存在!"
End If
End If
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Caption
Case "打印"
'DE.rsHPMX_分组.Filter = "出货单.货品代码='" & Text2.Text & "'"
drHPMX.Show
Case "退出"
Unload Me
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -