Print problemer

Har muligvis rettet den print fejl der er - men mangler at få det testet.
Der er slettet en masse projekter som ikke bliver brugt mere.
Og flyttet rundt på de få projekter som er tilbage.
Dette er V2 og i sit eget repo, så dette er initial commit
This commit is contained in:
2026-07-15 22:40:53 +02:00
commit 170a03e7df
330 changed files with 14118 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EpsonPrinter.Model
{
public class BodyModel
{
public List<BodyProductModel> Products { get; set; }
public decimal TotalPrice { get; set; }
public decimal TotalVat { get; set; }
public int ReceiptNumber { get; set; }
public string ReceiptTime { get; set; }
public string Staff { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EpsonPrinter.Model
{
public class BodyProductModel
{
public string Product { get; set; }
public int NoOfProduct { get; set; }
public decimal Price { get; set; }
public decimal TotalPrice { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using EpsonPrinter.Enums;
namespace EpsonPrinter.Model
{
public class FooterModel
{
public string Value { get; set; }
public PrintStyleModel PrintStyles { get; set; }
public AlignmentEnum TextAlignment { get; set; }
public int FeedingLines { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using EpsonPrinter.Enums;
namespace EpsonPrinter.Model
{
public class HeaderModel
{
public string Value { get; set; }
public PrintStyleModel PrintStyles { get; set; }
public AlignmentEnum TextAlignment { get; set; }
public int FeedingLines { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EpsonPrinter.Model
{
public class PrintStyleModel
{
public bool FontB { get; set; }
public bool Bold { get; set; }
public bool DoubleHeight { get; set; }
public bool DoubleWidth { get; set; }
public bool Underline { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
namespace EpsonPrinter.Model
{
public class ReceiptModel
{
public string LogoBase64 { get; set; }
public List<HeaderModel> Header { get; set; }
public BodyModel BodyModel { get; set; }
public List<FooterModel> Footer { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
using System;
namespace EpsonPrinter.Model
{
public class SaleOfDayDetail
{
public string Category { get; set; }
public decimal TotalSale { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
namespace EpsonPrinter.Model
{
public class SaleOfDayModel
{
public DateTime Date { get; set; }
public int TotalCustomers { get; set; }
public Decimal TotalSale { get; set; }
public List<SaleOfDayDetail> SaleOfDayDetail { get; set; } = new();
}
}