📄 frmchainselectgoods.frm
字号:
VERSION 5.00
Object = "{8D650141-6025-11D1-BC40-0000C042AEC0}#3.0#0"; "SSDW3B32.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmChainSelectGoods
BorderStyle = 3 'Fixed Dialog
Caption = "分店商品信息"
ClientHeight = 7620
ClientLeft = 45
ClientTop = 330
ClientWidth = 12090
Icon = "frmChainSelectGoods.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7620
ScaleWidth = 12090
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.TextBox txtBS
Height = 270
Left = 9420
TabIndex = 21
Text = "1"
Top = 6090
Width = 780
End
Begin VB.CommandButton Command4
Caption = "加倍(&B)"
Height = 285
Left = 10230
TabIndex = 20
Top = 6090
Width = 825
End
Begin MSComCtl2.DTPicker dtpEnd
Height = 330
Left = 10035
TabIndex = 17
Top = 5190
Width = 1725
_ExtentX = 3043
_ExtentY = 582
_Version = 393216
Format = 24707073
CurrentDate = 37121
End
Begin MSComCtl2.DTPicker dtpBegin
Height = 345
Left = 7290
TabIndex = 16
Top = 5175
Width = 1845
_ExtentX = 3254
_ExtentY = 609
_Version = 393216
Format = 24707073
CurrentDate = 37121
End
Begin VB.CommandButton cmdSum
Caption = "计算(&C)"
Height = 300
Left = 10245
TabIndex = 13
Top = 5685
Width = 825
End
Begin VB.TextBox txtSum
Height = 270
Left = 9435
TabIndex = 12
Top = 5700
Width = 765
End
Begin VB.TextBox txtMSG
BackColor = &H80000018&
Height = 360
Left = 2280
Locked = -1 'True
TabIndex = 9
Top = 6330
Width = 6135
End
Begin VB.TextBox txtPrc
Height = 285
Left = 6360
TabIndex = 3
Top = 5925
Width = 1995
End
Begin VB.CommandButton Command3
Caption = "..."
Height = 315
Left = 4965
TabIndex = 7
Top = 5955
Width = 465
End
Begin VB.TextBox txtCode
Height = 300
Left = 2265
TabIndex = 0
Top = 5940
Width = 2700
End
Begin VB.CommandButton Command2
Caption = "取消[&C]"
Height = 420
Left = 5040
TabIndex = 5
Top = 6810
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "确定[&O]"
Height = 390
Left = 2970
TabIndex = 4
Top = 6825
Width = 1485
End
Begin SSDataWidgets_B.SSDBGrid grdDET
Height = 2730
Left = 6075
TabIndex = 1
Top = 30
Width = 6015
_Version = 196617
DataMode = 2
Col.Count = 0
AllowAddNew = -1 'True
MultiLine = 0 'False
RowHeight = 450
Columns(0).Width= 3200
Columns(0).DataType= 8
Columns(0).FieldLen= 4096
_ExtentX = 10610
_ExtentY = 4815
_StockProps = 79
Caption = "商品选择信息"
BackColor = -2147483624
End
Begin SSDataWidgets_B.SSDBGrid grdStock
Height = 2700
Left = 0
TabIndex = 8
Top = 15
Width = 6060
_Version = 196617
DataMode = 2
Col.Count = 0
AllowAddNew = -1 'True
MultiLine = 0 'False
RowHeight = 450
Columns(0).Width= 3200
Columns(0).DataType= 8
Columns(0).FieldLen= 4096
_ExtentX = 10689
_ExtentY = 4762
_StockProps = 79
Caption = "库存商品信息"
BackColor = -2147483624
End
Begin SSDataWidgets_B.SSDBGrid grdChainStore
Height = 2730
Left = 15
TabIndex = 14
Top = 2745
Width = 6015
_Version = 196617
DataMode = 2
Col.Count = 0
AllowAddNew = -1 'True
MultiLine = 0 'False
RowHeight = 450
Columns(0).Width= 3200
Columns(0).DataType= 8
Columns(0).FieldLen= 4096
_ExtentX = 10610
_ExtentY = 4815
_StockProps = 79
Caption = "分店商品信息"
BackColor = -2147483624
End
Begin SSDataWidgets_B.SSDBGrid grdSale
Height = 2355
Left = 6045
TabIndex = 15
Top = 2775
Width = 6015
_Version = 196617
DataMode = 2
Col.Count = 0
AllowAddNew = -1 'True
MultiLine = 0 'False
RowHeight = 450
Columns(0).Width= 3200
Columns(0).DataType= 8
Columns(0).FieldLen= 4096
_ExtentX = 10610
_ExtentY = 4154
_StockProps = 79
Caption = "商品销售情况"
BackColor = -2147483624
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "件数:"
Height = 180
Left = 8730
TabIndex = 22
Top = 6165
Width = 450
End
Begin VB.Label Label6
Caption = "时间止"
Height = 195
Left = 9285
TabIndex = 19
Top = 5190
Width = 435
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "时间起"
Height = 180
Left = 6315
TabIndex = 18
Top = 5205
Width = 540
End
Begin VB.Label Label4
Caption = "合计:"
Height = 165
Left = 8715
TabIndex = 11
Top = 5715
Width = 570
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "商品名称"
Height = 180
Left = 1410
TabIndex = 10
Top = 6405
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "单价[&P]"
Height = 180
Left = 5655
TabIndex = 2
Top = 5985
Width = 630
End
Begin VB.Label Label1
Caption = "商品编码"
Height = 195
Left = 1335
TabIndex = 6
Top = 6000
Width = 1065
End
End
Attribute VB_Name = "frmChainSelectGoods"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public R As String
Public GCode As String
Public vPrc
Public SType As String
Public ChainCode As String
Private Sub cmdSum_Click()
Dim i, j, sum
Dim vBm As Variant
On Error Resume Next
sum = 0
' grdDET.Update
'
' vBm = grdDET.Bookmark
' grdDET.MoveFirst
'
' For j = 0 To grdDET.Rows - 1
' For i = 1 To grdDET.Columns.Count - 1
' If grdDET.Columns(i).CellValue(grdDET.GetBookmark(j)) <> "" Then sum = sum + grdDET.Columns(i).CellValue(grdDET.GetBookmark(j))
' Next i
' Next j
' txtSum.Text = sum
' grdDET.Bookmark = vBm
grdDET.Update
grdDET.MoveFirst
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -