Пример #1
0
 public static IState PrintEJZReport(int id)
 {
     cr.State = WaitingState.Instance();
     DisplayAdapter.Cashier.Show(PosMessage.WRITING_EJ_DOCUMENT_REPORT);
     cr.Printer.PrintEJZReport(id);
     return(Continue());
 }
Пример #2
0
        public static IState PrintEJPeriodicByZNumber(int firstZNumber, int firstDocId, int lastZNumber, int lastDocId, bool hardcopy)
        {
            cr.State = WaitingState.Instance();
            DisplayAdapter.Cashier.Show(PosMessage.WRITING_EJ_PERIODIC_REPORT_BETWEEN_ZNO);
            IPrinterResponse response = cr.Printer.PrintEJPeriodic(firstZNumber, firstDocId, lastZNumber, lastDocId, hardcopy);

            cr.DataConnector.SaveReport(String.Format("EKURAPORU{0:D4}{1:D4}{2:D4}{3:D4}", firstZNumber, firstDocId, lastZNumber, lastDocId), response.Detail);
            return(Continue());
        }
Пример #3
0
        public static IState PrintEJDocumentById(int zno, int docId, bool hardcopy)
        {
            cr.State = WaitingState.Instance();
            DisplayAdapter.Cashier.Show(PosMessage.WRITING_EJ_DOCUMENT_REPORT);
            IPrinterResponse response = cr.Printer.PrintEJDocument(zno, docId, hardcopy);

            cr.DataConnector.SaveReport(String.Format("EKURAPORU{0:D4}{1:D4}", zno, docId), response.Detail);
            return(Continue());
        }
Пример #4
0
        public static IState PrintEJDocumentByTime(DateTime documentDate, bool hardcopy)
        {
            cr.State = WaitingState.Instance();
            DisplayAdapter.Cashier.Show(PosMessage.WRITING_EJ_DOCUMENT_REPORT);
            IPrinterResponse response = cr.Printer.PrintEJDocument(documentDate, hardcopy);

            cr.DataConnector.SaveReport(String.Format("EKURAPORU{0:ddMMyyyyHHmm}", documentDate), response.Detail);
            return(Continue());
        }