Cat.AccessDailyLog Method
Gets the daily log from CAT.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Usage
'Usage
Dim sequenceNumber As Integer
Dim type As CatLogs
Dim timeout As Integer
Dim cat1 As Cat
cat1.AccessDailyLog(sequenceNumber, type, timeout)
Syntax
'Declaration
Public MustOverride Sub AccessDailyLog( _
ByVal sequenceNumber As Integer, _
ByVal type As CatLogs, _
ByVal timeout As Integer _
)
public abstract void AccessDailyLog(
int sequenceNumber,
CatLogs type,
int timeout
);
public: abstract Void AccessDailyLog(
Int32 sequenceNumber,
CatLogs^ type,
Int32 timeout
);
public abstract void AccessDailyLog(
int sequenceNumber,
CatLogs type,
int timeout
);
public abstract function AccessDailyLog(
sequenceNumber : int,
type : CatLogs,
timeout : int
) : Void;
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, timeout 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 returns void if successful, and it can throw the following exceptions:
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 timeout 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.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
See Also
Reference
Cat Class
Cat Members
Microsoft.PointOfService Namespace
CapDailyLog
DailyLog