?? 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 + -