📄 frmbillno.frm
字号:
VERSION 5.00
Begin VB.Form frmBillNo
Caption = "单据编号"
ClientHeight = 2835
ClientLeft = 60
ClientTop = 345
ClientWidth = 3765
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2835
ScaleWidth = 3765
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton cmdNo
Caption = "取消"
Height = 375
Left = 1980
TabIndex = 4
Top = 2340
Width = 1455
End
Begin VB.CommandButton cmdOk
Caption = "确定"
Height = 375
Left = 420
TabIndex = 3
Top = 2340
Width = 1455
End
Begin VB.ListBox List1
Height = 1680
Left = 180
TabIndex = 2
Top = 540
Width = 3375
End
Begin VB.OptionButton Option2
Caption = "已提交单据"
Height = 255
Left = 2040
TabIndex = 1
Top = 180
Width = 1275
End
Begin VB.OptionButton Option1
Caption = "未提交单据"
Height = 255
Left = 360
TabIndex = 0
Top = 180
Width = 1275
End
End
Attribute VB_Name = "frmBillNo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdNo_Click()
strBillNo = ""
Unload Me
End Sub
Private Sub CmdOk_Click()
If Me.List1.Text <> "" Then
If Me.Option1.Value = True Then
strBillNo = Me.List1.Text & "|" & "0"
Else
strBillNo = Me.List1.Text & "|" & "1"
End If
End If
Unload Me
End Sub
Private Sub Form_Load()
Me.Option1.Value = True
Dim rstBillNo As Recordset
strBillNo = ""
Set rstBillNo = New Recordset
rstBillNo.Open "Select Evidence_Number From local_Inventory_Evidence Where Type=" & strBillType & " Order by Evidence_Number Desc ", GetCNLocal, adOpenForwardOnly
Me.List1.Clear
Do Until rstBillNo.EOF
Me.List1.AddItem rstBillNo![Evidence_Number]
rstBillNo.MoveNext
Loop
End Sub
Private Sub List1_DblClick()
'CmdOk_Click
End Sub
Private Sub Option1_Click()
Form_Load
End Sub
Private Sub Option2_Click()
Me.Option2.Value = True
Dim rstBillNo As Recordset
Set rstBillNo = New Recordset
rstBillNo.Open "Select Evidence_Number From Inventory_Evidence Where Type=" & strBillType & " and Left(Evidence_Number,3)<>'sys' Order by Evidence_Number Desc ", GetCNClient, adOpenForwardOnly
Me.List1.Clear
Do Until rstBillNo.EOF
Me.List1.AddItem rstBillNo![Evidence_Number]
rstBillNo.MoveNext
Loop
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -