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,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,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using EpsonPrinter.Enums;
using ESCPOS_NET.Emitters;
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();
}
}