共用方式為


ScaleBasic Class

Definition

public abstract class ScaleBasic : Microsoft.PointOfService.Scale, IDisposable
type ScaleBasic = class
    inherit Scale
    interface IDisposable
Public MustInherit Class ScaleBasic
Inherits Scale
Implements IDisposable
Inheritance
Implements

Constructors

ScaleBasic()

Fields

ExtendedErrorFirmwareBadFile

Indicates the specified firmware file or files exist, but one or more of those files are either not in the correct format or are corrupted.

(Inherited from PosCommon)
ExtendedErrorOverWeight

Indicates the weight was over MaximumWeight.

(Inherited from Scale)
ExtendedErrorSameWeight

Indicates the scale is reporting that the item/weight on the scale is identical to the previously reported item/weight (that is, the item has not been removed from the scale).

(Inherited from Scale)
ExtendedErrorStatistics

Indicates a specified statistic could not be reset or updated.

(Inherited from PosCommon)
ExtendedErrorStatisticsDependency (Inherited from PosCommon)
ExtendedErrorUnderZero

Indicates the scale is reporting a weight that is less than zero due to a calibration error.

(Inherited from Scale)
StatisticCommunicationErrorCount

Holds the programmatic name of the Communication Error Count common statistic.

(Inherited from PosCommon)
StatisticDeviceCategory

Holds the programmatic name of the Device Category common statistic.

(Inherited from PosCommon)
StatisticFirmwareRevision

Holds the programmatic name of the Firmware Revision common statistic.

(Inherited from PosCommon)
StatisticGoodWeightReadCount

Indicates good weight read count for statistics reporting.

(Inherited from Scale)
StatisticHoursPoweredCount

Holds the programmatic name of the Hours Powered On common statistic.

(Inherited from PosCommon)
StatisticInstallationDate

Holds the programmatic name of the Installation Date common statistic.

(Inherited from PosCommon)
StatisticInterface

Holds the programmatic name of the Interface common statistic.

(Inherited from PosCommon)
StatisticManufactureDate

Holds the programmatic name of the Manufacture Date common statistic.

(Inherited from PosCommon)
StatisticManufacturerName

Holds the programmatic name of the Manufacturer Name common statistic.

(Inherited from PosCommon)
StatisticMechanicalRevision

Holds the programmatic name of the Mechanical Revision common statistic.

(Inherited from PosCommon)
StatisticModelName

Holds the programmatic name of the Model Name common statistic.

(Inherited from PosCommon)
StatisticSerialNumber

Holds the programmatic name of the Serial Number common statistic.

(Inherited from PosCommon)
StatisticUnifiedPOSVersion

Holds the programmatic name of the Unified POS Version common statistic.

(Inherited from PosCommon)
StatusNotReady

Indicates the scale is not ready to weigh.

(Inherited from Scale)
StatusPowerOff

Indicates that the device’s power is turned off or it is detached from the terminal.

(Inherited from PosCommon)
StatusPowerOffline

Indicates that the device is powered on but is either not ready or unable to respond to requests.

(Inherited from PosCommon)
StatusPowerOffOffline

Indicates that either the device’s power is off or it is offline.

(Inherited from PosCommon)
StatusPowerOnline

Indicates that the device’s power is turned on and it is ready for use.

(Inherited from PosCommon)
StatusStableWeight

Indicates scale weight is stable.

(Inherited from Scale)
StatusUpdateFirmwareComplete

Indicates the update firmware process has completed successfully.

(Inherited from PosCommon)
StatusUpdateFirmwareCompleteDeviceNotRestored

Indicates the update firmware process succeeded. However, the Service Object and/or the physical device cannot be returned to the state they were in before the update firmware process started.

(Inherited from PosCommon)
StatusUpdateFirmwareFailedDeviceNeedsFirmware

Indicates the update firmware process failed. The device will not be operational until another attempt to update the firmware is successful.

(Inherited from PosCommon)
StatusUpdateFirmwareFailedDeviceOk

Indicates the update firmware process failed. However, the device is still operational.

(Inherited from PosCommon)
StatusUpdateFirmwareFailedDeviceUnknown

Indicates the update firmware process failed. The device is in an indeterminate state.

(Inherited from PosCommon)
StatusUpdateFirmwareFailedDeviceUnrecoverable

Indicates the update firmware process failed. The device is either unusable or unrecoverable through software.

(Inherited from PosCommon)
StatusUpdateFirmwareProgress

Indicates the update firmware process has completed 1 to 100 percent successfully.

(Inherited from PosCommon)
StatusWeightOverWeight

Indicates scale weight is overweight.

(Inherited from Scale)
StatusWeightUnderZero

Indicates scale weight is less than zero.

(Inherited from Scale)
StatusWeightUnstable

Indicates the scale weight is unstable.

(Inherited from Scale)
StatusWeightZero

Indicates the scale weight is zero.

(Inherited from Scale)
WaitForever

Used as the value for a timeout parameter in common and device-specific methods to indicate the method should wait until it receives a response, instead of timing out.

(Inherited from PosCommon)

Properties

AsyncMode

Indicates whether ReadWeight is performed asynchronously.

(Inherited from Scale)
AutoDisable
CapCompareFirmwareVersion
CapDisplay

Indicates whether a scale has a display.

(Inherited from Scale)
CapDisplayText

Indicates whether a scale can display text.

(Inherited from Scale)
CapFreezeValue

Indicates whether a scale supports the freezeValue method.

(Inherited from Scale)
CapPowerReporting
CapPriceCalculating

Indicates whether a scale can calculate prices.

(Inherited from Scale)
CapReadLiveWeightWithTare

Indicates whether a scale supports live weight measurements incorporating a tare value.

(Inherited from Scale)
CapSetPriceCalculationMode

Indicates whether a scale supports different methods to calculate price.

(Inherited from Scale)
CapSetUnitPriceWithWeightUnit

Indicates whether a scale can use different weight unit types apart from the default scale weight unite types..

(Inherited from Scale)
CapSpecialTare

Indicates whether a scale can use different tare values in replacement of or in addition to the default scale tare value used in determining the net weight.

(Inherited from Scale)
CapStatisticsReporting
CapStatusUpdate (Inherited from Scale)
CapTarePriority

Indicates whether a scale can use multiple tare values in a certain ranking order for the calculation of net weight and item price.

(Inherited from Scale)
CapTareWeight

Indicates whether a scale supports a tare.

(Inherited from Scale)
CapUpdateFirmware
CapUpdateStatistics
CapZeroScale

Indicates whether an application can set scale weight to zero.

(Inherited from Scale)
CheckHealthText

Gets a string that indicates the health of the device.

(Inherited from PosCommon)
Claimed
CommonProperties
Compatibility (Inherited from PosDevice)
DataCount
DataEventEnabled
DeviceDescription
DeviceEnabled
DeviceInstanceId (Inherited from PosCommon)
DeviceName
DevicePath

Gets or sets the hardware path of a device.

(Inherited from PosCommon)
ErrorCount
ExternallyClaimed
FreezeEvents
HardwareId (Inherited from PosCommon)
IsExclusiveUseDevice

Indicates whether the Scale is an exclusive-use device.

(Inherited from Scale)
MaxDisplayTextChars

Holds the number of characters that can be displayed.

(Inherited from Scale)
MaximumWeight

Holds the maximum weight measurement possible from the scale.

(Inherited from Scale)
MinimumWeight

Holds the minimum weight measurement possible from the scale.

(Inherited from Scale)
PowerNotify
PowerState
SalesPrice

Holds the sales price read from a price-calculating scale.

(Inherited from Scale)
ScaleLiveWeight (Inherited from Scale)
ServiceObjectDescription
ServiceObjectVersion
State
StatusNotify (Inherited from Scale)
SynchronizingObject

Gets or sets the object that is used to marshal the event handler calls issued because of a POS event.

(Inherited from PosCommon)
TareWeight

Holds the tare weight of scale data.

(Inherited from Scale)
UnitPrice

Holds the unit price of the article to be weighed.

(Inherited from Scale)
WeightUnit

Holds the unit of weight of scale data.

(Inherited from Scale)
ZeroValid

Indicates whether an application can report a valid weight as zero.

(Inherited from Scale)

Methods

CheckHealth(HealthCheckLevel)

Tests the state of a device.

(Inherited from PosCommon)
Claim(Int32)
ClearInput()
ClearInputImpl()
Close()
CompareFirmwareVersion(String)

Determines whether the version of the specified firmware is newer than, older than, or the same as the version of firmware in the physical device.

(Inherited from PosCommon)
CreateStatistic(String, Boolean, String)
CreateStatistic(String, Boolean)
DeleteConfigurationProperty(String)

Deletes the specified property from the XML configuration file.

(Inherited from PosCommon)
DirectIO(Int32, Int32, Object)

Used to communicate directly with the Service Object.

(Inherited from PosCommon)
DisplayText(String)

Updates display text.

(Inherited from Scale)
Dispose()
Dispose(Boolean)
DoPriceCalculating(Int32, Int32, Decimal, Decimal, Int32, Int32, Int32, Decimal, Int32) (Inherited from Scale)
FreezeValue(Int32, Boolean) (Inherited from Scale)
GetConfigurationProperty(String)

Used by the Service Object to retrieve the specified property from the XML configuration file.

(Inherited from PosCommon)
GetStatisticValue(String)
IncrementStatistic(String, Int32)
IncrementStatistic(String)
Invoke(Delegate, Object[])

Used by the Service Objects to raise an event.

(Inherited from PosCommon)
Open()
PreFireEvent(DataEventArgs)
PreFireEvent(DeviceErrorEventArgs)
PreFireEvent(DirectIOEventArgs)
PreFireEvent(StatusUpdateEventArgs)
QueueEvent(DataEventArgs)
QueueEvent(DeviceErrorEventArgs)
QueueEvent(DirectIOEventArgs)
QueueEvent(StatusUpdateEventArgs)
QueueEventAndWait(DeviceErrorEventArgs)
QueueEventAndWait(DirectIOEventArgs)
ReadLiveWeightWithTare(Int32, Int32, Int32) (Inherited from Scale)
ReadWeight(Int32)

Reads a weight from the scale.

(Inherited from Scale)
Release()
ResetStatistic(String)
ResetStatistics()
ResetStatistics(StatisticCategories)
ResetStatistics(String[])
RetrieveStatistic(String)
RetrieveStatistics()
RetrieveStatistics(StatisticCategories)
RetrieveStatistics(String[])
SetConfigurationProperty(String, String)

Sets a property value (or create a new property) in the XML configuration file.

(Inherited from PosCommon)
SetPriceCalculationMode(PriceCalculationMode) (Inherited from Scale)
SetSpecialTare(SpecialTare, Int32) (Inherited from Scale)
SetStatisticHandlers(String, GetStatistic, SetStatistic)
SetStatisticValue(String, Object)
SetTarePriority(TarePriority) (Inherited from Scale)
SetUnitPriceWithWeightUnit(Decimal, Int32, Int32, Int32) (Inherited from Scale)
UpdateFirmware(String)

Updates the firmware of a device with the version of the firmware contained or defined in the file specified by the firmwareFileName parameter regardless of whether that firmware’s version is newer than, older than, or the same as the version of the firmware already in the device.

(Inherited from PosCommon)
UpdateStatistic(String, Object)
UpdateStatistics(Statistic[])
UpdateStatistics(StatisticCategories, Object)
VerifyState(Boolean, Boolean)
ZeroScale()

Sets the scale weight to zero.

(Inherited from Scale)

Events

DataEvent
DeviceAddedEvent (Inherited from PosCommon)
DeviceRemovedEvent (Inherited from PosCommon)
DirectIOEvent
ErrorEvent
StateChangedEvent
StatusUpdateEvent

Applies to