/// <summary> /// Constructor sin parametros /// </summary> public EgresosBusiness(TokenDto token) { this.PrinterName = ""; this.token = token; this.printTicketRepository = new PrintTicketRepository(); this.repository = new EgresosRepository(); this.SetPrinterConfig(); }
/// <summary> /// Constructor sin parametros /// </summary> public LecturaBusiness(TokenDto token) { this.PrinterName = ""; this.token = token; this.printTicketRepository = new PrintTicketRepository(); this.repository = new LecturaRepository(); this.SetPrinterConfig(); }
/// <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"); } }
/// <summary> /// Constructor por default /// </summary> public PrintTicketBusiness() { this.PrinterName = ""; this.repository = new PrintTicketRepository(); }