📄 frmstore.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{E3AE1957-12AC-4DB7-8CE4-EB281F9E0359}#1.0#0"; "XPButton.ocx"
Object = "{FDAC2480-F4ED-4632-AA78-DCA210A74E49}#6.0#0"; "SPR32X60.ocx"
Object = "{4932CEF1-2CAA-11D2-A165-0060081C43D9}#2.0#0"; "Actbar2.ocx"
Begin VB.Form frmstore
AutoRedraw = -1 'True
Caption = "Form2"
ClientHeight = 6420
ClientLeft = 1680
ClientTop = 2655
ClientWidth = 7860
LinkTopic = "Form2"
MDIChild = -1 'True
ScaleHeight = 6420
ScaleWidth = 7860
Begin ActiveBar2LibraryCtl.ActiveBar2 Abar
Align = 1 'Align Top
Height = 6420
Left = 0
TabIndex = 0
Top = 0
Width = 7860
_LayoutVersion = 1
_ExtentX = 13864
_ExtentY = 11324
_DataPath = ""
Bands = "frmstore.frx":0000
Begin VB.PictureBox Pic
Height = 6255
Left = 30
ScaleHeight = 6195
ScaleWidth = 8805
TabIndex = 1
Top = 210
Width = 8865
Begin VB.Data kcData
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 285
Left = 420
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 6540
Width = 1140
End
Begin FPSpread.vaSpread fpsp
Bindings = "frmstore.frx":0260
Height = 5385
Left = 180
TabIndex = 5
Top = 240
Width = 4005
_Version = 393216
_ExtentX = 7064
_ExtentY = 9499
_StockProps = 64
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
SpreadDesigner = "frmstore.frx":0275
End
Begin VB.Frame Fredit
Caption = "进货"
Enabled = 0 'False
Height = 5595
Left = 4380
TabIndex = 2
Top = 90
Width = 3375
Begin VB.TextBox Tdw
BackColor = &H00FFFFFF&
ForeColor = &H000000FF&
Height = 300
Left = 1140
MaxLength = 8
TabIndex = 20
ToolTipText = "禁止修改"
Top = 1380
Width = 1125
End
Begin VB.TextBox Tje
BackColor = &H00FFFFFF&
Enabled = 0 'False
ForeColor = &H000000FF&
Height = 300
Left = 1140
MaxLength = 8
TabIndex = 18
ToolTipText = "禁止修改"
Top = 2820
Width = 1125
End
Begin VB.VScrollBar VSsl
Height = 315
LargeChange = 10
Left = 1590
Max = 1
Min = 20
TabIndex = 10
Top = 2280
Value = 4
Width = 225
End
Begin VB.TextBox Tsl
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
Enabled = 0 'False
ForeColor = &H00000000&
Height = 270
Left = 1140
TabIndex = 9
Text = "1"
Top = 2310
Width = 495
End
Begin VB.ComboBox Cname
Height = 300
Left = 1140
Style = 2 'Dropdown List
TabIndex = 8
Top = 960
Width = 1695
End
Begin VB.ComboBox Ctype
Height = 300
Left = 1140
Style = 2 'Dropdown List
TabIndex = 7
Top = 510
Width = 1695
End
Begin VB.TextBox tDJ
BackColor = &H00FFFFFF&
ForeColor = &H000000FF&
Height = 300
Left = 1140
MaxLength = 8
TabIndex = 6
ToolTipText = "禁止修改"
Top = 1830
Width = 1125
End
Begin XPButton.Button cok
Height = 345
Left = 600
TabIndex = 3
Top = 4680
Width = 945
_ExtentX = 1667
_ExtentY = 609
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
End
Begin XPButton.Button ccancle
Height = 345
Left = 1890
TabIndex = 4
Top = 4680
Width = 945
_ExtentX = 1667
_ExtentY = 609
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
End
Begin MSComCtl2.DTPicker tpDate
Height = 300
Left = 1140
TabIndex = 11
Top = 3270
Width = 1290
_ExtentX = 2275
_ExtentY = 529
_Version = 393216
Format = 19726337
CurrentDate = 36847
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "金额(元):"
Height = 180
Index = 6
Left = 150
TabIndex = 19
Top = 2910
Width = 810
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "物品名称:"
Height = 180
Index = 2
Left = 330
TabIndex = 17
Top = 1020
Width = 810
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "所购数量:"
Height = 180
Index = 5
Left = 180
TabIndex = 16
Top = 2400
Width = 810
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "单价(元):"
Height = 180
Index = 4
Left = 210
TabIndex = 15
Top = 1920
Width = 810
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "物品分类:"
ForeColor = &H000000FF&
Height = 180
Index = 1
Left = 360
TabIndex = 14
Top = 540
Width = 810
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "单位:"
Height = 180
Index = 3
Left = 585
TabIndex = 13
Top = 1470
Width = 450
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "日期:"
Height = 180
Index = 7
Left = 525
TabIndex = 12
Top = 3360
Width = 450
End
End
End
End
End
Attribute VB_Name = "frmstore"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rst As Recordset
Dim dbs As Database
Private Sub ABar_ToolClick(ByVal Tool As ActiveBar2LibraryCtl.Tool)
'On Error GoTo er
Select Case Tool.Name
Case "m_add"
CurrOp = "add"
Fredit.Enabled = True
fpsp.Enabled = False
SetEnable True
Abar.Tools("m_add").Enabled = False
Abar.Tools("m_modify").Enabled = False
Abar.Tools("m_del").Enabled = False
Abar.Tools("m_print").Enabled = False
Case "m_del"
If MsgBox("是否删除进货项:" & Tname.Text & "?", vbQuestion + vbYesNo, "进货项删除") = vbYes Then
dbs.Execute "delete from StoreListtmp where 名称 = '" & Cname.Text & "'"
rst.Requery
InitGrid
End If
Case "m_modify"
CurrOp = "modify"
Fredit.Enabled = True
fpsp.Enabled = False
Abar.Tools("m_add").Enabled = False
Abar.Tools("m_modify").Enabled = False
Abar.Tools("m_del").Enabled = False
Abar.Tools("m_print").Enabled = False
Case "m_print"
InitGrid
tmp = "进货项名称" & Space(10) & "容纳人数" & Space(10) & "台位费"
Printer.Print tmp
Printer.Print "========================================="
Do While Not rst.EOF
tmp = rst!siteName & Space(10) & rst!PersonerN & Space(10) & rst!SitePay
Printer.Print tmp
rst.MoveNext
Loop
Case "m_exit"
Unload Me
End Select
Exit Sub
er:
ErrorHandle ""
End Sub
Private Sub Ctype_Click()
SetNU
End Sub
Private Sub Form_Activate()
InitGrid
End Sub
Private Sub Form_Load()
Dim t As ActiveBar2LibraryCtl.Tool
Dim b As ActiveBar2LibraryCtl.Band
Dim keys(0) As New ShortCut
GetFormSet Me, frmMain
Debug.Print Me.Width
Abar.ClientAreaControl = Pic
Me.Icon = LoadResPicture(227, vbResIcon)
Me.Caption = "进货项管理"
Set Tool = Abar.Tools.Add(0, "Separator")
With Tool
.Caption = ""
.Category = "Format"
.ControlType = ddTTSeparator
End With
Set b = Abar.Bands.Add("toolsMain")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -