Initial commit

Initial commit til Git.
V2 er deployed
This commit is contained in:
2026-06-13 17:31:50 +02:00
parent 9fcd2b145e
commit 41e23b6184
375 changed files with 15956 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using EpsonPrinter.Model;
using EpsonPrinter.Services;
namespace EpsonPrinter.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class PosPrinterController : ControllerBase
{
/// <summary>
/// PrintReceipt receipt, so far only for all Epson Thermal Printers
/// </summary>
/// PrintStyle is:
/// None
/// FontB
/// Bold
/// DoubleHeight
/// DoubleWidth
/// Underline
/// There is support for any combination of PrintStyles
/// ----------------------------------------
///
///
/// <param name="receiptModel"></param>
[HttpPost]
[Route("Receipt")]
public void PrintReceipt([FromServices] EpsonPrintService epsonPrint, ReceiptModel receiptModel)
{
epsonPrint.PrintReceipt(receiptModel);
}
[HttpPost]
[Route("SaleOfDay")]
public void PrintSaleOfDay([FromServices] EpsonPrintService epsonPrint, SaleOfDayModel saleOfDayModel)
{
epsonPrint.PrintSaleOfDay(saleOfDayModel);
}
}
}