Esempio n. 1
0
 public static ITerminalPrinter GetTerminalPrinter()
 {
     if (lptHelper == null)
     {
         SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <SystemConfig>();
         if (config.PrinterType == "并口")
         {
             lptHelper = new FT.Commons.Tools.LPTHelper();
         }
         else if (config.PrinterType == "串口")
         {
             lptHelper = new FT.Commons.Tools.SerialPortHelper();
         }
     }
     return(lptHelper);
 }
Esempio n. 2
0
 public static ITerminalPrinter GetTerminalPrinter()
 {
     if (lptHelper == null)
     {
         SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig<SystemConfig>();
         if(config.PrinterType=="并口")
         {
             lptHelper = new FT.Commons.Tools.LPTHelper();
         }
         else if (config.PrinterType == "串口")
         {
             lptHelper = new FT.Commons.Tools.SerialPortHelper();
         }
     }
     return lptHelper;
 }