Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
frmSetRecord.frm
Package: 考勤6.rar [view]
Upload User: djzm888
Upload Date: 2013-02-15
Package Size: 867k
Code Size: 4k
Category:
Other Databases
Development Platform:
Visual Basic
- 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