📄 frm_bill.frm
字号:
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "AdoUnits"
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 MSAdodcLib.Adodc AdoEmploy
Height = 330
Left = 135
Top = 2940
Visible = 0 'False
Width = 2085
_ExtentX = 3678
_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 = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "AdoEmploy"
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.TextBox Text3
Appearance = 0 'Flat
BackColor = &H80000018&
ForeColor = &H00FF0000&
Height = 210
Left = 1305
TabIndex = 8
Top = 1995
Width = 870
End
Begin MSAdodcLib.Adodc Adodc2
Height = 330
Left = 150
Top = 4230
Visible = 0 'False
Width = 2085
_ExtentX = 3678
_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 = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc2"
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 MSAdodcLib.Adodc Adodc1
Height = 330
Left = 150
Top = 3870
Visible = 0 'False
Width = 2085
_ExtentX = 3678
_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 = ""
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 VB.CommandButton cmdAdd
Caption = "确定(&U)"
Height = 390
Left = 6105
TabIndex = 5
Top = 4935
Width = 1290
End
Begin VB.TextBox Text2
Appearance = 0 'Flat
ForeColor = &H00C00000&
Height = 270
Left = 3090
TabIndex = 4
Top = 4980
Width = 1020
End
Begin MSFlexGridLib.MSFlexGrid MS1
Height = 2955
Left = 15
TabIndex = 0
Top = 1650
Width = 8610
_ExtentX = 15187
_ExtentY = 5212
_Version = 393216
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 315
Left = 7080
TabIndex = 18
Top = 240
Width = 1395
_ExtentX = 2461
_ExtentY = 556
_Version = 393216
Format = 158269441
CurrentDate = 38413
End
Begin VB.Line Line2
BorderColor = &H00FF0000&
X1 = 1995
X2 = 6015
Y1 = 5295
Y2 = 5295
End
Begin VB.Line Line1
BorderColor = &H00FF0000&
X1 = 2865
X2 = 8520
Y1 = 615
Y2 = 615
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "商品进货"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 210
Left = 615
TabIndex = 24
Top = 240
Width = 840
End
Begin VB.Image Image1
Height = 480
Left = 90
Picture = "frm_bill.frx":08CA
Top = 90
Width = 480
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "录单日期:"
Height = 180
Index = 0
Left = 6030
TabIndex = 23
Top = 300
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "供货单位:"
Height = 180
Index = 1
Left = 120
TabIndex = 22
Top = 1080
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "摘 要:"
Height = 180
Index = 4
Left = 135
TabIndex = 21
Top = 1395
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "经手人:"
Height = 180
Index = 5
Left = 135
TabIndex = 20
Top = 765
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "单据编号:"
Height = 180
Index = 6
Left = 2790
TabIndex = 19
Top = 300
Width = 900
End
Begin VB.Label labFactfee
Appearance = 0 'Flat
BackColor = &H00C0E0FF&
BorderStyle = 1 'Fixed Single
ForeColor = &H80000008&
Height = 270
Left = 4845
TabIndex = 13
Top = 4980
Width = 1020
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "差值:"
Height = 180
Left = 4260
TabIndex = 12
Top = 5025
Width = 540
End
Begin VB.Label Label6
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
BorderStyle = 1 'Fixed Single
ForeColor = &H80000008&
Height = 255
Left = 3090
TabIndex = 7
Top = 4680
Width = 1020
End
Begin VB.Label Label5
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
BorderStyle = 1 'Fixed Single
ForeColor = &H80000008&
Height = 255
Left = 975
TabIndex = 6
Top = 4680
Width = 1020
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "付款金额:"
Height = 180
Left = 2100
TabIndex = 3
Top = 5040
Width = 900
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "合计金额:"
Height = 180
Left = 2100
TabIndex = 2
Top = 4725
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "合计数量:"
Height = 180
Left = 90
TabIndex = 1
Top = 4725
Width = 900
End
End
Attribute VB_Name = "frm_stockBill"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdAdd_Click()
Me.MousePointer = 11
Adodc1.RecordSource = "select * from tbS_warehouse_main"
Adodc1.Refresh
For i = 0 To Text1.Count - 2
If Text1(i).Text = "" Then MsgBox "‘经手人’和‘供货单位’不能为空!": Exit Sub
Next i
Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields(0).Value = DTPicker1.Value
Adodc1.Recordset.Fields(1).Value = Text1(0).Text
Adodc1.Recordset.Fields(2).Value = Text1(1).Text
Adodc1.Recordset.Fields(3).Value = Text1(2).Text
Adodc1.Recordset.Fields(4).Value = Text1(3).Text
Adodc1.Recordset.Fields(5).Value = Val(Label6.Caption)
Adodc1.Recordset.Fields(6).Value = Val(Text2.Text)
Adodc1.Recordset.Update
'开始录单《进货明细表》
Adodc2.RecordSource = "select * from tbS_warehouse_detailed"
Adodc2.Refresh
If MS1.TextMatrix(1, 1) <> "" Then
For i = 1 To 99
If MS1.TextMatrix(i, 1) <> "" And MS1.TextMatrix(i, 2) <> "" Then
'添加新记录到"进货明细表"中
With Adodc2.Recordset 'With语句用来在一个单一对象或一个用户定义类型上执行一系列的语句。
.AddNew '开辟数据存储空间
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -