Cat.AccessDailyLog Method
2/27/2008
Gets the daily log from CAT.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub AccessDailyLog ( _
sequenceNumber As Integer, _
type As CatLogs, _
timeout As Integer _
)
public abstract void AccessDailyLog (
int sequenceNumber,
CatLogs type,
int timeout
)
public:
virtual void AccessDailyLog (
int sequenceNumber,
CatLogs type,
int timeout
) abstract
public abstract void AccessDailyLog (
int sequenceNumber,
CatLogs type,
int timeout
)
public abstract function AccessDailyLog (
sequenceNumber : int,
type : CatLogs,
timeout : int
)
Parameters
- sequenceNumber
The sequence number to get the daily log.
- type
Specifies whether the daily log is intermediate total or final total and erase.
- timeout
The maximum waiting time (in milliseconds) until the response is received from the CAT device. WaitForever, 0, and positive values can be specified.
Remarks
The daily log is retrieved and stored in DailyLog as specified by sequenceNumber.
When timeout is WaitForever, time-out never occurs and the device waits until it receives a response from the CAT.
The application must specify one of the following values for type for daily log type (either intermediate total or adjustment). Legal values depend on the CapDailyLog value.
Value |
Meaning |
Reporting |
Intermediate total. |
ReportingAndSettlement |
Final total and erase. |
AccessDailyLog may cause a PosControlException to be thrown with the following ErrorCodes.
Value |
Meaning |
Illegal |
An invalid or unsupported type or timeout parameter is specified, or CapDailyLog is false. |
Timeout |
No response was received from CAT during the specified time-out time in milliseconds. |
Extended |
The detail code is stored in ErrorCodeExtended. |
Busy |
The CAT device cannot accept any commands now. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.
See Also
Reference
Cat Class
Cat Members
Microsoft.PointOfService Namespace
CapDailyLog
DailyLog