Lab6_Main_Fix

This commit is contained in:
PIbd-21_Spasskyi_Artem 2023-06-14 23:52:26 +04:00
parent 7e0e8acdec
commit cc1f63a1c8

View File

@ -22,8 +22,6 @@ namespace CarpentryWorkshopFileImplement.Models
public int ClientId { get; private set; }
public string WoodName { get; private set; } = string.Empty;
public int Count { get; private set; }
public double Sum { get; private set; }
@ -47,7 +45,6 @@ namespace CarpentryWorkshopFileImplement.Models
Id = model.Id,
ImplementerId = model.ImplementerId,
WoodId = model.WoodId,
WoodName = model.WoodName,
ClientId = model.ClientId,
Count = model.Count,
Sum = model.Sum,
@ -70,7 +67,6 @@ namespace CarpentryWorkshopFileImplement.Models
ImplementerId = Convert.ToInt32(element.Element("ImplementerId")!.Value),
WoodId = Convert.ToInt32(element.Element("WoodId")!.Value),
ClientId = Convert.ToInt32(element.Element("ClientId")!.Value),
WoodName = element.Element("WoodName")!.Value,
Count = Convert.ToInt32(element.Element("Count")!.Value),
Sum = Convert.ToDouble(element.Element("Sum")!.Value),
Status = (OrderStatus)Enum.Parse(typeof(OrderStatus), element.Element("Status")!.Value),
@ -99,7 +95,6 @@ namespace CarpentryWorkshopFileImplement.Models
ImplementerId = ImplementerId,
WoodId = WoodId,
ClientId = ClientId,
WoodName = WoodName,
Count = Count,
Sum = Sum,
Status = Status,
@ -109,7 +104,6 @@ namespace CarpentryWorkshopFileImplement.Models
public XElement GetXElement => new("Order",
new XAttribute("Id", Id),
new XElement("WoodName", WoodName),
new XElement("WoodId", WoodId.ToString()),
new XElement("ClientId", ClientId.ToString()),
new XElement("ImplementerId", ImplementerId.ToString()),