コード例 #1
0
 /// <summary>
 /// Constructor sin parametros
 /// </summary>
 public EgresosBusiness(TokenDto token)
 {
     this.PrinterName           = "";
     this.token                 = token;
     this.printTicketRepository = new PrintTicketRepository();
     this.repository            = new EgresosRepository();
     this.SetPrinterConfig();
 }
コード例 #2
0
 /// <summary>
 /// Constructor sin parametros
 /// </summary>
 public LecturaBusiness(TokenDto token)
 {
     this.PrinterName           = "";
     this.token                 = token;
     this.printTicketRepository = new PrintTicketRepository();
     this.repository            = new LecturaRepository();
     this.SetPrinterConfig();
 }
コード例 #3
0
 /// <summary>
 /// Constructor por default
 /// </summary>
 public PrintTicketEgresosBusiness(TokenDto token)
 {
     try
     {
         this.PrinterName   = "";
         this.repository    = new PrintTicketRepository();
         this.token         = token;
         this.printDocument = new PrintDocument();
         this.SetPrinterConfig();
     }
     catch (Exception exception)
     {
         TryCatchBusinessExecutor tryCatch = new TryCatchBusinessExecutor();
         tryCatch.AddErrorLog <OperationResponse>(exception.Message, exception.StackTrace, "Negocio", exception.ToString(), "Error de impresión");
     }
 }
コード例 #4
0
 /// <summary>
 /// Constructor por default
 /// </summary>
 public PrintTicketBusiness()
 {
     this.PrinterName = "";
     this.repository  = new PrintTicketRepository();
 }