📄 form_barcodeformat.frm
字号:
VERSION 5.00
Begin VB.Form form_barcodeFormat
BackColor = &H00C0FFFF&
Caption = "条码格式设置"
ClientHeight = 4170
ClientLeft = 60
ClientTop = 345
ClientWidth = 6090
LinkTopic = "Form1"
LockControls = -1 'True
ScaleHeight = 4170
ScaleWidth = 6090
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton cmdClose
Caption = "&C关闭"
Height = 375
Left = 3360
TabIndex = 6
Top = 3480
Width = 1095
End
Begin VB.CommandButton cmdConfirm
Caption = "&O确定"
Height = 375
Left = 960
TabIndex = 5
Top = 3480
Width = 1095
End
Begin VB.Frame Frame1
BackColor = &H00C0FFFF&
Caption = "条码格式"
Height = 3015
Left = 240
TabIndex = 0
Top = 120
Width = 5655
Begin VB.OptionButton Option1
BackColor = &H00C0FFFF&
Caption = "格式六(F1F2 CCCCC XXXXX WWWWW D 重量为0.000)"
Height = 255
Index = 6
Left = 360
TabIndex = 8
Top = 2640
Width = 4935
End
Begin VB.OptionButton Option1
BackColor = &H00C0FFFF&
Caption = "格式五(F1F2 CCCCC XXXXX WWWWW D 重量为0.00)"
Height = 255
Index = 5
Left = 360
TabIndex = 7
Top = 2400
Width = 4935
End
Begin VB.OptionButton Option1
BackColor = &H00C0FFFF&
Caption = "格式四(F1F2 CCCC WWWWWW D 重量为0.000)"
Height = 255
Index = 4
Left = 360
TabIndex = 4
Top = 2160
Width = 4935
End
Begin VB.OptionButton Option1
BackColor = &H00C0FFFF&
Caption = "格式三(F1F2 CCCC WWWWWW D 重量为0.00)"
Height = 255
Index = 3
Left = 360
TabIndex = 3
Top = 1560
Width = 4935
End
Begin VB.OptionButton Option1
BackColor = &H00C0FFFF&
Caption = "格式二(F1F2 CCCCC WWWWW D 重量为0.000)"
Height = 255
Index = 2
Left = 360
TabIndex = 2
Top = 960
Width = 4935
End
Begin VB.OptionButton Option1
BackColor = &H00C0FFFF&
Caption = "格式一(F1F2 CCCCC WWWWW D 重量为0.00)"
Height = 255
Index = 1
Left = 360
TabIndex = 1
Top = 360
Width = 4935
End
End
End
Attribute VB_Name = "form_barcodeFormat"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub cmdConfirm_Click()
Dim Index As Integer
Dim i As Integer
For i = 1 To 4
If Option1(i).Value = True Then
Index = i
Exit For
End If
Next
g_db.Execute ("update hp_sysParas set paraValue='" + CStr(Index) + "' WHERE paraCode='barcodeFormat'")
' 设置条码格式
setBarcodeFarmat
MsgBox "设置成功!", vbInformation, "提示"
Exit Sub
End Sub
Private Sub Form_Load()
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
Dim intBarcodeFormat As Integer
Dim rsBCFormat As Recordset
Set rsBCFormat = g_db.OpenRecordset("SELECT paraValue FROM hp_sysParas WHERE paraCode='barcodeFormat'")
If rsBCFormat.RecordCount <> 1 Then
MsgBox "设置条形码格式出错,请与管理员联系!", vbInformation, "提示"
End
Else
intBarcodeFormat = CInt(rsBCFormat.Fields("paraValue"))
End If
If intBarcodeFormat > 0 And intBarcodeFormat < 7 Then
Option1(intBarcodeFormat).Value = True
End If
Option1(5).Visible = False
Option1(6).Visible = False
End Sub
Private Sub Form_Unload(Cancel As Integer)
frm_main.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -