Class cmdItems
java.lang.Object
com.datecs.fiscalprinter.SDK.model.DatecsFiscalDevice
com.datecs.fiscalprinter.SDK.model.UserLayerV1.cmdItems
public class cmdItems extends DatecsFiscalDevice
Class for Defining and reading items
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classcmdItems.ItemModelstatic classcmdItems.ItemsInfoStore info of device items-data base. -
Constructor Summary
Constructors Constructor Description cmdItems() -
Method Summary
Modifier and Type Method Description booleanDelAllItems()Deleting All Device itemsbooleanDelItemsInRange(int fromItem, int toItem)Item deletingcmdItems.ItemModelGetFirstFoundProgrammed(int startItem)Returns data about the first found programmed itemcmdItems.ItemModelGetFirstFoundWithSales(int startItem)Returns data about the first found item with sales on itintGetFirstNotProgrammed(int startItem)Find the first not programmed itemcmdItems.ItemsInfoGetItemsInformation()Read the Device Items PLU data-base info.cmdItems.ItemModelGetLastFoundProgrammed(int lastPLU)Returns data about the last found programmed itemcmdItems.ItemModelGetLastFoundWithSales(int startItem)Returns data about the last found item with sales on itintGetLastNotProgrammed(int startItem)Find the last not programmed itemcmdItems.ItemModelGetNextFoundWithSales()Returns data for the next found item with sales on it;cmdItems.ItemModelGetNextProgrammed()Returns data for the next found programmed itemcmdItems.ItemModelReadItem(int itemID)Reading item datavoidSaveItem(cmdItems.ItemModel itemModel)voidSaveItem(java.lang.String plu, java.lang.String taxGr, java.lang.String group, java.lang.String sPrice, java.lang.String quantity, boolean replaceQty, java.lang.String name)Save Item data to devicevoidSetItemPrice(int itemID, java.lang.Double newPrice)Change of the available quantity for itemvoidSetItemQuantity(int itemID, java.lang.Double quantity)Change of the available quantity for itemMethods inherited from class com.datecs.fiscalprinter.SDK.model.DatecsFiscalDevice
checkErrorCode, close, getConnectedECRV1, getConnectedModelV2, getConnectedPrinterV1, getCountryCode, getMaxDepartments, getMaxStockGroup, isCheckLastError, isConnectedDeviceV2, isConnectedECR, isConnectedPrinter, isEditItemPrice, isEditItemQTY, isFontSupported, isPaperCuttingDevice, setCheckLastError, setConnectedModel, setConnectedModel, setConnectedModel, setCountryCode
-
Constructor Details
-
cmdItems
public cmdItems()
-
-
Method Details
-
SaveItem
- Parameters:
itemModel-- Throws:
java.lang.Exception
-
SaveItem
public void SaveItem(java.lang.String plu, java.lang.String taxGr, java.lang.String group, java.lang.String sPrice, java.lang.String quantity, boolean replaceQty, java.lang.String name) throws java.lang.ExceptionSave Item data to device- Throws:
java.lang.Exception
-
SetItemQuantity
public void SetItemQuantity(int itemID, java.lang.Double quantity) throws java.lang.ExceptionChange of the available quantity for item- Parameters:
itemID- - Item number (1...999999999);quantity- - Stock quantity (0.001...99999.999);- Throws:
java.lang.Exception
-
SetItemPrice
public void SetItemPrice(int itemID, java.lang.Double newPrice) throws java.lang.ExceptionChange of the available quantity for item- Parameters:
itemID- - Item number (1...999999999);newPrice- - Item price (0.001...99999.999);- Throws:
java.lang.Exception
-
DelItemsInRange
public boolean DelItemsInRange(int fromItem, int toItem) throws java.lang.ExceptionItem deleting- Parameters:
fromItem- - First item to delete (1...999999999)toItem- - last item to delete (1...999999999)- Returns:
- Throws:
java.lang.Exception
-
DelAllItems
public boolean DelAllItems() throws java.lang.ExceptionDeleting All Device items- Returns:
- Throws:
java.lang.Exception
-
ReadItem
Reading item data- Parameters:
itemID- - Item number (1...999999999);- Returns:
- Throws:
java.lang.Exception
-
GetFirstFoundProgrammed
Returns data about the first found programmed item- Parameters:
startItem- Item number (1...999999999) Default: 0- Returns:
- Throws:
java.lang.Exception
-
GetLastFoundProgrammed
Returns data about the last found programmed item- Parameters:
lastPLU- Item number (1...3000). 999999999: 999999999;- Returns:
- Throws:
java.lang.Exception
-
GetNextProgrammed
Returns data for the next found programmed item- Returns:
- Throws:
java.lang.Exception
-
GetFirstFoundWithSales
Returns data about the first found item with sales on it- Parameters:
startItem-- Returns:
- Throws:
java.lang.Exception
-
GetLastFoundWithSales
Returns data about the last found item with sales on it- Parameters:
startItem- - Item number (1...3000). Default: 3000;- Returns:
- Throws:
java.lang.Exception
-
GetNextFoundWithSales
Returns data for the next found item with sales on it;- Returns:
- Throws:
java.lang.Exception
-
GetFirstNotProgrammed
public int GetFirstNotProgrammed(int startItem) throws java.lang.ExceptionFind the first not programmed item- Parameters:
startItem- Item number- Returns:
- - first not programmed item
- Throws:
java.lang.Exception
-
GetLastNotProgrammed
public int GetLastNotProgrammed(int startItem) throws java.lang.ExceptionFind the last not programmed item- Parameters:
startItem- Item number- Returns:
- last not programmed item
- Throws:
java.lang.Exception
-
GetItemsInformation
Read the Device Items PLU data-base info.- Returns:
- Throws:
java.io.IOExceptionFiscalExceptionFiscalException
-