Class cmdEJournal
java.lang.Object
com.datecs.fiscalprinter.SDK.model.DatecsFiscalDevice
com.datecs.fiscalprinter.SDK.model.UserLayerV1.cmdEJournal
public class cmdEJournal extends DatecsFiscalDevice
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classcmdEJournal.EJ_DocumentsFoundData Classstatic classcmdEJournal.EjDocTypePrnDATECS FP-800 / FP-2000 / FP-650 / SK1-21F / SK1-31F/ FMP-10 / FP-550 A All document types.static classcmdEJournal.InfoEJData Class Number - ? DateTime - ? Serial - ? fromZ - ? toZ - ? fromDoc - ? toDoc - ? Size - ? Used - -
Constructor Summary
Constructors Constructor Description cmdEJournal() -
Method Summary
Modifier and Type Method Description voidprintEjDocumentsByDateRange(boolean CondensedFont, java.lang.String StartDataTime, java.lang.String EndDataTime, cmdEJournal.EjDocTypePrn DocType)Printing all document of selected type founded in data rangeintprintEjDocumentsByDateRange(java.lang.String docType, java.lang.String fromDate, java.lang.String toDate)DATECS DP-05, DP-25, DP-35, WP-50, DP-150voidprintEjDocumentsByNumbersRange(boolean CondensedFont, java.lang.String DocNumStart, java.lang.String DocNumEnd, cmdEJournal.EjDocTypePrn DocType)Printing all document of selected type founded in number range DATECS FP-800 / FP-2000 / FP-650 / SK1-21F / SK1-31F/ FMP-10 / FP-550intprintEjDocumentsByNumbersRange(java.lang.String docType, java.lang.String fromNum, java.lang.String toNum)DATECS DP-05, DP-25, DP-35, WP-50, DP-150java.lang.StringprintEjDocumentsInZReport(boolean CondensedFont, java.lang.String StartDocNumber, java.lang.String EndDocNumber, java.lang.String ZreportNumber, cmdEJournal.EjDocTypePrn DocType)Printing the all documents with range StartDocNumber-EndDocNumber, founded in all Z reports with range StartZreport - EndZreport Filter the documents that are selected, depending on DocType argument.*intprintEjDocumentsInZReportRange(java.lang.String startDoc, java.lang.String endDoc, java.lang.String nZstart, java.lang.String nZend, java.lang.String docType)java.lang.StringreadEjDocumentsByDateRange(java.lang.String StartDate, java.lang.String EndDate, cmdEJournal.EjDocTypePrn DocType)Reading all document of selected type founded in data rangejava.lang.StringreadEjDocumentsByDateRange(java.lang.String docType, java.lang.String fromDate, java.lang.String toDate)DATECS DP-05, DP-25, DP-35, WP-50, DP-150java.lang.StringreadEjDocumentsByNumbersRange(java.lang.String DocNumStart, java.lang.String DocNumEnd, cmdEJournal.EjDocTypePrn DocType)Reading all document of selected type founded in number range DATECS FP-800 / FP-2000 / FP-650 / SK1-21F / SK1-31F/ FMP-10 / FP-550java.lang.StringreadEjDocumentsByNumbersRange(java.lang.String docType, java.lang.String fromNum, java.lang.String toNum)DATECS DP-05, DP-25, DP-35, WP-50, DP-150java.lang.StringreadEjDocumentsInZReport(int startDoc, int endDoc, java.lang.String numReportZ, java.lang.String docType)Returns the all documents with range startDoc-endDoc, founded in Z report numReportZ Filter the documents that are selected, depending on DocType argument.*java.lang.StringreadEjDocumentsInZReport(java.lang.String StartDocNumber, java.lang.String EndDocNumber, java.lang.String ZreportNumber, cmdEJournal.EjDocTypePrn DocType)Returns the all documents with range StartDocNumber-EndDocNumber, founded in all Z reports with range StartZreport - EndZreport Filter the documents that are selected, depending on DocType argument.*java.lang.StringreadEjDocumentsInZReports(java.lang.String startDoc, java.lang.String endDoc, java.lang.String nZstart, java.lang.String nZend, java.lang.String docType)Returns the all documents with range startDoc-endDoc, founded in Z reports range Filter the documents that are selected, depending on DocType argument.*cmdEJournal.InfoEJreadEjInfo()Information from EJvoidsetUserBreak(boolean userBreak)Interrupts the thread processbooleanvalidateEj()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
-
printEjDocumentsByDateRange
public void printEjDocumentsByDateRange(boolean CondensedFont, java.lang.String StartDataTime, java.lang.String EndDataTime, cmdEJournal.EjDocTypePrn DocType) throws java.lang.ExceptionPrinting all document of selected type founded in data range- Parameters:
CondensedFont-StartDataTime-EndDataTime-DocType-- Throws:
java.lang.Exception
-
printEjDocumentsByNumbersRange
public void printEjDocumentsByNumbersRange(boolean CondensedFont, java.lang.String DocNumStart, java.lang.String DocNumEnd, cmdEJournal.EjDocTypePrn DocType) throws java.lang.ExceptionPrinting all document of selected type founded in number range DATECS FP-800 / FP-2000 / FP-650 / SK1-21F / SK1-31F/ FMP-10 / FP-550- Parameters:
CondensedFont-DocNumStart-DocNumEnd-DocType-- Throws:
java.lang.Exception
-
readEjDocumentsByNumbersRange
public java.lang.String readEjDocumentsByNumbersRange(java.lang.String DocNumStart, java.lang.String DocNumEnd, cmdEJournal.EjDocTypePrn DocType) throws java.lang.ExceptionReading all document of selected type founded in number range DATECS FP-800 / FP-2000 / FP-650 / SK1-21F / SK1-31F/ FMP-10 / FP-550- Parameters:
DocNumStart- -First document in the period (1...99999999)DocNumEnd- -Last document in the period. (1...99999999).DocType- -Type of document;- Returns:
- Document data lines as a string.
- Throws:
java.lang.Exception
-
readEjDocumentsByDateRange
public java.lang.String readEjDocumentsByDateRange(java.lang.String StartDate, java.lang.String EndDate, cmdEJournal.EjDocTypePrn DocType) throws java.lang.ExceptionReading all document of selected type founded in data range- Parameters:
StartDate- -Date of document to start searchingEndDate- -Date of document to stop searchingDocType- -Type of document filter;- Returns:
- Document data lines as a string.
- Throws:
java.lang.Exception
-
readEjDocumentsInZReport
public java.lang.String readEjDocumentsInZReport(java.lang.String StartDocNumber, java.lang.String EndDocNumber, java.lang.String ZreportNumber, cmdEJournal.EjDocTypePrn DocType) throws java.lang.ExceptionReturns the all documents with range StartDocNumber-EndDocNumber, founded in all Z reports with range StartZreport - EndZreport Filter the documents that are selected, depending on DocType argument.*- Parameters:
StartDocNumber- -First docEndDocNumber- -Last DocZreportNumber- -Begin Z reportDocType- -Type of document filter;- Returns:
- Document data lines as a string.
- Throws:
java.lang.Exception
-
printEjDocumentsInZReport
public java.lang.String printEjDocumentsInZReport(boolean CondensedFont, java.lang.String StartDocNumber, java.lang.String EndDocNumber, java.lang.String ZreportNumber, cmdEJournal.EjDocTypePrn DocType) throws java.lang.ExceptionPrinting the all documents with range StartDocNumber-EndDocNumber, founded in all Z reports with range StartZreport - EndZreport Filter the documents that are selected, depending on DocType argument.*- Parameters:
StartDocNumber- First docEndDocNumber- Last DocZreportNumber- Begin Z reportDocType- -Type of document filter;- Returns:
- Document data lines as a string.
- Throws:
java.lang.Exception
-
readEjInfo
Information from EJ- Returns:
- Throws:
java.lang.Exception
-
validateEj
public boolean validateEj() throws java.lang.Exception- Throws:
java.lang.Exception
-
setUserBreak
public void setUserBreak(boolean userBreak)Interrupts the thread process- Parameters:
userBreak-
-
readEjDocumentsInZReport
public java.lang.String readEjDocumentsInZReport(int startDoc, int endDoc, java.lang.String numReportZ, java.lang.String docType) throws java.lang.ExceptionReturns the all documents with range startDoc-endDoc, founded in Z report numReportZ Filter the documents that are selected, depending on DocType argument.*- Parameters:
docType- -Type of document filter;- Returns:
- Document data lines as a string.
- Throws:
java.lang.Exception
-
readEjDocumentsInZReports
public java.lang.String readEjDocumentsInZReports(java.lang.String startDoc, java.lang.String endDoc, java.lang.String nZstart, java.lang.String nZend, java.lang.String docType) throws java.lang.ExceptionReturns the all documents with range startDoc-endDoc, founded in Z reports range Filter the documents that are selected, depending on DocType argument.*- Parameters:
startDoc-endDoc-nZstart-nZend-docType-docType- -Type of document filter;- Returns:
- Document data lines as a string.
- Throws:
java.lang.Exception
-
readEjDocumentsByNumbersRange
public java.lang.String readEjDocumentsByNumbersRange(java.lang.String docType, java.lang.String fromNum, java.lang.String toNum) throws java.lang.ExceptionDATECS DP-05, DP-25, DP-35, WP-50, DP-150Read the content of the electronic journal as text and (all documents in the range)
- Parameters:
docType- '0'- All. ? '1' - Fiscal receipt (all fiscal receipt, sale, storno, invoice, storno invoice ? '2' - Daily Z report. ? '3' - Cash input / output. ? '4' - Daily X report. ? '5' - Service receipt (all not listed in option 1). ? '6' - Invoice. ? '7' - Storno fiscal receipt. ? '8' - Storno Invoice.fromNum- ? - Initial document number for reading.toNum- ? - Final document number for reading.- Returns:
- Throws:
java.lang.Exception
-
printEjDocumentsByNumbersRange
public int printEjDocumentsByNumbersRange(java.lang.String docType, java.lang.String fromNum, java.lang.String toNum) throws java.lang.ExceptionDATECS DP-05, DP-25, DP-35, WP-50, DP-150Print the content of the electronic journal as text and (all documents in the range)
- Parameters:
docType- '0'- All. '1' - Fiscal receipt (all fiscal receipt, sale, storno, invoice, storno invoice '2' - Daily Z report. '3' - Cash input / output. '4' - Daily X report. '5' - Service receipt (all not listed in option 1). '6' - Invoice. '7' - Storno fiscal receipt. '8' - Storno Invoice.fromNum- ? - Initial document number for reading.toNum- ? - Final document number for reading.- Returns:
- Printed documents count
- Throws:
java.lang.Exception
-
printEjDocumentsInZReportRange
public int printEjDocumentsInZReportRange(java.lang.String startDoc, java.lang.String endDoc, java.lang.String nZstart, java.lang.String nZend, java.lang.String docType) throws java.lang.Exception- Throws:
java.lang.Exception
-
readEjDocumentsByDateRange
public java.lang.String readEjDocumentsByDateRange(java.lang.String docType, java.lang.String fromDate, java.lang.String toDate) throws java.lang.ExceptionDATECS DP-05, DP-25, DP-35, WP-50, DP-150Read the content of the electronic journal as text and (all documents in the range of Date)
- Parameters:
docType- '0'- All, '1' - Fiscal, '2' - DailyZ, '3' - CashIn, '4' - CashOut, '5' - DailyX, '6' - ServiceReceipt, '7' - Invoice, '8' - StornoRec, '9' - StornoInvoice- Returns:
- Throws:
java.lang.Exception
-
printEjDocumentsByDateRange
public int printEjDocumentsByDateRange(java.lang.String docType, java.lang.String fromDate, java.lang.String toDate) throws java.lang.ExceptionDATECS DP-05, DP-25, DP-35, WP-50, DP-150Read the content of the electronic journal as text and (all documents in the range of Date)
- Parameters:
docType- '0'- All, '1' - Fiscal, '2' - DailyZ, '3' - CashIn, '4' - CashOut, '5' - DailyX, '6' - ServiceReceipt, '7' - Invoice, '8' - StornoRec, '9' - StornoInvoice- Returns:
- Printed count
- Throws:
java.lang.Exception
-