Example #1
0
 private static void Status(PrinterStatus objStatus)
 {
     Epic950Status objStatus1 = (Epic950Status)objStatus;
     System.Console.WriteLine("Is Chasis Open:" + objStatus1.IsChasisOpen());
     System.Console.WriteLine("Is Level Low:" + objStatus1.IsLevelLow());
     System.Console.WriteLine("Is Out Of Ticket:" + objStatus1.IsOutOfTicket());
     System.Console.WriteLine("Is Paper Jam:" + objStatus1.IsPaperJam());
     System.Console.WriteLine("Is Printer Head Up:" + objStatus1.IsPrinterHeadCorrectlyPlaced());
     System.Console.WriteLine("Is Printer Ready:" + objStatus1.IsPrinterReady());
     System.Console.WriteLine("Is Ticket In Path:" + objStatus1.IsTicketInPath());
     System.Console.WriteLine("Is Ticket Loaded:" + objStatus1.IsTicketLoaded());
     System.Console.WriteLine("Is Top Of Form:" + objStatus1.IsTopOfForm());
     System.Console.WriteLine("Is Top Of Form1:" + objStatus1.IsTopOfForm1());
 }
Example #2
0
 private void Status(PrinterStatus objStatus)
 {
     lock (monitor)
     {
         printerStatus = 1; // Indicates Normal Status.
         printerStatusDesc = "Printer Ready.";
         Epic950Status objStatus1 = (Epic950Status)objStatus;
         if (!objStatus1.IsPrinterReady())
         {
             printerStatus = 3; // Indicates Error Status.
             printerStatusDesc = "Printer Not Ready -";
             if (objStatus1.IsChasisOpen())
                 printerStatusDesc += "Chasis is open.";
             if (objStatus1.IsOutOfTicket())
                 printerStatusDesc += "Out of Ticket.";
             if (objStatus1.IsPaperJam())
                 printerStatusDesc += "Paper Jam.";
             if (objStatus1.IsPrinterHeadCorrectlyPlaced())
                 printerStatusDesc += "Printer head up.";
             if (!objStatus1.IsTicketLoaded())
                 printerStatusDesc += "No Tickets Loaded.";
             if (!objStatus1.IsTopOfForm())
                 printerStatusDesc += "Not found top of form. Paper not correctly placed.";
         }
         else
         {
             if (objStatus1.IsLevelLow())
             {
                 printerStatus = 2; // Indicates Warning Status.
                 printerStatusDesc = "Printer Paper Level Low.";
             }
         }
     }
     //System.Console.WriteLine("Is Chasis Open:" + objStatus1.IsChasisOpen());
     //System.Console.WriteLine("Is Level Low:" + objStatus1.IsLevelLow());
     //System.Console.WriteLine("Is Out Of Ticket:" + objStatus1.IsOutOfTicket());
     //System.Console.WriteLine("Is Paper Jam:" + objStatus1.IsPaperJam());
     //System.Console.WriteLine("Is Printer Head Up:" + objStatus1.IsPrinterHeadCorrectlyPlaced());
     //System.Console.WriteLine("Is Printer Ready:" + objStatus1.IsPrinterReady());
     //System.Console.WriteLine("Is Ticket In Path:" + objStatus1.IsTicketInPath());
     //System.Console.WriteLine("Is Ticket Loaded:" + objStatus1.IsTicketLoaded());
     //System.Console.WriteLine("Is Top Of Form:" + objStatus1.IsTopOfForm());
     //System.Console.WriteLine("Is Top Of Form1:" + objStatus1.IsTopOfForm1());
 }