Initial commit
Initial commit til Git. V2 er deployed
This commit is contained in:
18
PointOfSale/EpsonPrinterLinux/Model/BodyModel.cs
Normal file
18
PointOfSale/EpsonPrinterLinux/Model/BodyModel.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
||||
15
PointOfSale/EpsonPrinterLinux/Model/BodyProductModel.cs
Normal file
15
PointOfSale/EpsonPrinterLinux/Model/BodyProductModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
16
PointOfSale/EpsonPrinterLinux/Model/FooterModel.cs
Normal file
16
PointOfSale/EpsonPrinterLinux/Model/FooterModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
16
PointOfSale/EpsonPrinterLinux/Model/HeaderModel.cs
Normal file
16
PointOfSale/EpsonPrinterLinux/Model/HeaderModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
16
PointOfSale/EpsonPrinterLinux/Model/PrintStyleModel.cs
Normal file
16
PointOfSale/EpsonPrinterLinux/Model/PrintStyleModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
13
PointOfSale/EpsonPrinterLinux/Model/ReceiptModel.cs
Normal file
13
PointOfSale/EpsonPrinterLinux/Model/ReceiptModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
10
PointOfSale/EpsonPrinterLinux/Model/SaleOfDayDetail.cs
Normal file
10
PointOfSale/EpsonPrinterLinux/Model/SaleOfDayDetail.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace EpsonPrinter.Model
|
||||
{
|
||||
public class SaleOfDayDetail
|
||||
{
|
||||
public string Category { get; set; }
|
||||
public decimal TotalSale { get; set; }
|
||||
}
|
||||
}
|
||||
14
PointOfSale/EpsonPrinterLinux/Model/SaleOfDayModel.cs
Normal file
14
PointOfSale/EpsonPrinterLinux/Model/SaleOfDayModel.cs
Normal 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();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user