Доработка отображения названия модели в заказе
This commit is contained in:
parent
46c1d78dd9
commit
6f5175f2c8
@ -79,6 +79,7 @@ namespace BlacksmithWorkshopView
|
||||
var operationResult = _logicO.CreateOrder(new OrderBindingModel
|
||||
{
|
||||
ManufactureId = Convert.ToInt32(comboBoxManufacture.SelectedValue),
|
||||
ManufactureName = comboBoxManufacture.Text,
|
||||
Count = Convert.ToInt32(textBoxCount.Text),
|
||||
Sum = Convert.ToDouble(textBoxSum.Text)
|
||||
});
|
||||
|
@ -7,6 +7,7 @@ namespace BlacksmithWorkshopContracts.BindingModels
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int ManufactureId { get; set; }
|
||||
public string ManufactureName { get; set; } = string.Empty;
|
||||
public int Count { get; set; }
|
||||
public double Sum { get; set; }
|
||||
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
||||
|
@ -10,6 +10,7 @@ namespace BlacksmithWorkshopListImplement.Models
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
public int ManufactureId { get; private set; }
|
||||
public string ManufactureName { get; private set; } = string.Empty;
|
||||
public int Count { get; private set; }
|
||||
public double Sum { get; private set; }
|
||||
public OrderStatus Status { get; private set; } = OrderStatus.Неизвестен;
|
||||
@ -25,6 +26,7 @@ namespace BlacksmithWorkshopListImplement.Models
|
||||
{
|
||||
Id = model.Id,
|
||||
ManufactureId = model.ManufactureId,
|
||||
ManufactureName = model.ManufactureName,
|
||||
Count = model.Count,
|
||||
Sum = model.Sum,
|
||||
Status = model.Status,
|
||||
@ -61,6 +63,7 @@ namespace BlacksmithWorkshopListImplement.Models
|
||||
{
|
||||
Id = Id,
|
||||
ManufactureId = ManufactureId,
|
||||
ManufactureName = ManufactureName,
|
||||
Count = Count,
|
||||
Sum = Sum,
|
||||
Status = Status,
|
||||
|
Loading…
Reference in New Issue
Block a user