Class cmdEJournal
java.lang.Object
com.datecs.fiscalprinter.SDK.model.DatecsFiscalDevice
com.datecs.fiscalprinter.SDK.model.UserLayerV2.cmdEJournal
public class cmdEJournal extends DatecsFiscalDevice
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classcmdEJournal.EJ_DocumentClass to hold results of Search documents in EJ by datestatic classcmdEJournal.EJ_ParamRangeClass to hold input/output put parameters for searchstatic classcmdEJournal.EjDocumentType -
Constructor Summary
Constructors Constructor Description cmdEJournal() -
Method Summary
Modifier and Type Method Description intEJ_PrintDocument(java.lang.String docNum, cmdEJournal.EjDocumentType documentType)cmdEJournal.EJ_DocumentEJ_SearchDocumentsByDate(java.lang.String StartDate, java.lang.String EndDate, cmdEJournal.EjDocumentType ejDocumentType)intEJ_SetDocumentToRead(java.lang.String DocNum, cmdEJournal.EjDocumentType ejDocumentType)Set document to read;intget_Documents_ByNumbersRange(cmdEJournal.EjDocumentType ejDocumentType, cmdEJournal.EJ_ParamRange range, java.lang.String[] readedDocs)intgetProgressCounterDocs()intgetProgressCounterLines()booleanisUserBreak()intprint_Documents_ByNumbersRange(cmdEJournal.EjDocumentType ejDocumentType, cmdEJournal.EJ_ParamRange range)Print document;cmdEJournal.EJ_ParamRangeset_SearchDocuments_ByDateRange(cmdEJournal.EjDocumentType ejDocumentType, cmdEJournal.EJ_ParamRange in_range)voidsetUserBreak(boolean userBreakPrint)Methods 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
-
cmdEJournal
public cmdEJournal()
-
-
Method Details
-
EJ_SearchDocumentsByDate
public cmdEJournal.EJ_Document EJ_SearchDocumentsByDate(java.lang.String StartDate, java.lang.String EndDate, cmdEJournal.EjDocumentType ejDocumentType) throws java.io.IOException, FiscalException- Parameters:
StartDate-EndDate-ejDocumentType-- Returns:
- Documents found by number in a time range
- Throws:
java.io.IOExceptionFiscalExceptionFiscalException
-
EJ_PrintDocument
public int EJ_PrintDocument(java.lang.String docNum, cmdEJournal.EjDocumentType documentType) throws java.io.IOException, FiscalException- Parameters:
docNum-documentType-- Returns:
- Throws:
java.io.IOExceptionFiscalException
-
EJ_SetDocumentToRead
public int EJ_SetDocumentToRead(java.lang.String DocNum, cmdEJournal.EjDocumentType ejDocumentType) throws java.io.IOException, FiscalExceptionSet document to read;- Parameters:
DocNum-ejDocumentType-- Returns:
- Throws:
java.io.IOExceptionFiscalException
-
set_SearchDocuments_ByDateRange
public cmdEJournal.EJ_ParamRange set_SearchDocuments_ByDateRange(cmdEJournal.EjDocumentType ejDocumentType, cmdEJournal.EJ_ParamRange in_range) throws java.io.IOException, FiscalException- Parameters:
ejDocumentType-in_range- Date/Time range to search- Returns:
- Documents by numbers founded in range StartDate - Start date for searching, see DateTime format described at the beginning of the document; * EndDate - End date for searching, see DateTime format described at the beginning of the document; * FirstDoc - First document in the period, depending "Type" (1...99999999); * LastDoc - Last document in the period, depending "Type" (1...99999999);
- Throws:
java.io.IOExceptionFiscalException
-
get_Documents_ByNumbersRange
public int get_Documents_ByNumbersRange(cmdEJournal.EjDocumentType ejDocumentType, cmdEJournal.EJ_ParamRange range, java.lang.String[] readedDocs) throws java.io.IOException, FiscalException- Parameters:
ejDocumentType-range-readedDocs-- Returns:
- Throws:
java.io.IOExceptionFiscalException
-
print_Documents_ByNumbersRange
public int print_Documents_ByNumbersRange(cmdEJournal.EjDocumentType ejDocumentType, cmdEJournal.EJ_ParamRange range) throws java.io.IOException, FiscalExceptionPrint document;- Parameters:
ejDocumentType-- Returns:
- Throws:
java.io.IOExceptionFiscalException
-
isUserBreak
public boolean isUserBreak()- Returns:
-
setUserBreak
public void setUserBreak(boolean userBreakPrint)- Parameters:
userBreakPrint-
-
getProgressCounterDocs
public int getProgressCounterDocs() -
getProgressCounterLines
public int getProgressCounterLines()
-