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:
18
PointOfSale/Pos.Ui/Pos/Json/BodyModel.cs
Normal file
18
PointOfSale/Pos.Ui/Pos/Json/BodyModel.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pos.Json
|
||||
{
|
||||
public class BodyModel
|
||||
{
|
||||
public ProductModel[] products { get; set; }
|
||||
public float totalPrice { get; set; }
|
||||
public float totalVat { get; set; }
|
||||
public int receiptNumber { get; set; }
|
||||
public string receiptTime { get; set; }
|
||||
public string staff { get; set; }
|
||||
}
|
||||
}
|
||||
16
PointOfSale/Pos.Ui/Pos/Json/FooterModel.cs
Normal file
16
PointOfSale/Pos.Ui/Pos/Json/FooterModel.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pos.Json
|
||||
{
|
||||
public class FooterModel
|
||||
{
|
||||
public string value { get; set; }
|
||||
public PrintStylesModel printStyles { get; set; }
|
||||
public int textAlignment { get; set; }
|
||||
public int feedingLines { get; set; }
|
||||
}
|
||||
}
|
||||
16
PointOfSale/Pos.Ui/Pos/Json/HeaderModel.cs
Normal file
16
PointOfSale/Pos.Ui/Pos/Json/HeaderModel.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pos.Json
|
||||
{
|
||||
public class HeaderModel
|
||||
{
|
||||
public string value { get; set; }
|
||||
public PrintStylesModel printStyles { get; set; }
|
||||
public int textAlignment { get; set; }
|
||||
public int feedingLines { get; set; }
|
||||
}
|
||||
}
|
||||
16
PointOfSale/Pos.Ui/Pos/Json/PosReceipt.cs
Normal file
16
PointOfSale/Pos.Ui/Pos/Json/PosReceipt.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pos.Json
|
||||
{
|
||||
public class PosReceipt
|
||||
{
|
||||
public string logoBase64 { get; set; }
|
||||
public HeaderModel[] header { get; set; }
|
||||
public BodyModel bodyModel { get; set; } = new();
|
||||
public FooterModel[] footer { get; set; }
|
||||
}
|
||||
}
|
||||
17
PointOfSale/Pos.Ui/Pos/Json/PrintStylesModel.cs
Normal file
17
PointOfSale/Pos.Ui/Pos/Json/PrintStylesModel.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pos.Json
|
||||
{
|
||||
public class PrintStylesModel
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
||||
16
PointOfSale/Pos.Ui/Pos/Json/ProductModel.cs
Normal file
16
PointOfSale/Pos.Ui/Pos/Json/ProductModel.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pos.Json
|
||||
{
|
||||
public class ProductModel
|
||||
{
|
||||
public string product { get; set; }
|
||||
public string noOfProduct { get; set; }
|
||||
public float price { get; set; }
|
||||
public float totalPrice { get; set; }
|
||||
}
|
||||
}
|
||||
19
PointOfSale/Pos.Ui/Pos/Json/SaleOfDayModel.cs
Normal file
19
PointOfSale/Pos.Ui/Pos/Json/SaleOfDayModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Pos.Json
|
||||
{
|
||||
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 List<SaleOfDayDetail>();
|
||||
}
|
||||
|
||||
public class SaleOfDayDetail
|
||||
{
|
||||
public string Category { get; set; }
|
||||
public decimal TotalSale { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user