📄 frmsetrecord.frm
字号:
VERSION 5.00
Begin VB.Form frmSetRecordCount
BorderStyle = 3 'Fixed Dialog
Caption = "设置考勤机时间"
ClientHeight = 2610
ClientLeft = 45
ClientTop = 330
ClientWidth = 4860
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "frmSetRecord.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2610
ScaleWidth = 4860
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox txtRecordCount
Height = 315
Left = 1755
TabIndex = 5
Text = "0"
Top = 840
Width = 2655
End
Begin VB.ComboBox cboPos
Height = 330
Left = 1755
Style = 2 'Dropdown List
TabIndex = 2
Top = 180
Width = 2745
End
Begin VB.CommandButton cmdCancel
Caption = "取 消"
Height = 450
Index = 1
Left = 2640
TabIndex = 1
Top = 1710
Width = 2115
End
Begin VB.CommandButton cmdSetRecordCount
Caption = "设置考勤机记录总数"
Height = 450
Index = 0
Left = 285
TabIndex = 0
Top = 1710
Width = 2115
End
Begin VB.Label lblRecordCount
Caption = "记录总数:"
Height = 210
Left = 285
TabIndex = 4
Top = 892
Width = 1215
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请选择考勤机:"
Height = 210
Index = 8
Left = 285
TabIndex = 3
Top = 240
Width = 1365
End
End
Attribute VB_Name = "frmSetRecordCount"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'******txtDate
Const mYear = 0
Const mMonth = 1
Const mDay = 2
Const mHour = 3
Const mMinute = 4
Const mSecond = 5
Const mMsg1 = "设置考勤机记录总数出错!"
Const mMsg2 = "设置考勤机记录总数成功!"
Dim mPosNumber As Integer
Private Sub cmdCancel_Click(Index As Integer)
Unload Me
End Sub
Private Sub cmdSetRecordCount_Click(Index As Integer)
Dim nRet As Integer
Dim blnIsOpen As Boolean
Dim intNumber As Integer
Dim nRecordCount As Integer
getItemData cboPos, intNumber
mPosNumber = intNumber
If OpenComm(gCommPort) <> 0 Then
MsgBox mstrOpenCommErr, vbInformation, gTitle
GoTo SetErr
End If
blnIsOpen = True
nRecordCount = txtRecordCount.Text
nRet = POS_SetRecordCount(mPosNumber, nRecordCount)
If nRet <> 0 Then
MsgBox mMsg1, vbInformation, gTitle
GoTo SetErr
Else
MsgBox mMsg2, vbInformation, gTitle
End If
CloseComm
Exit Sub
SetErr:
If blnIsOpen Then
CloseComm
End If
Exit Sub
End Sub
Private Sub Form_Load()
GetPosToCbo cboPos
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -