diff --git a/SewingDresses/SewingDressesBusinessLogic/BusinessLogic/OrderLogic.cs b/SewingDresses/SewingDressesBusinessLogic/BusinessLogic/OrderLogic.cs index 67b7b83..561595a 100644 --- a/SewingDresses/SewingDressesBusinessLogic/BusinessLogic/OrderLogic.cs +++ b/SewingDresses/SewingDressesBusinessLogic/BusinessLogic/OrderLogic.cs @@ -101,6 +101,8 @@ namespace SewingDressesBusinessLogic.BusinessLogic _logger.LogWarning("Status change failed"); throw new InvalidOperationException("Невозможно перевести состояние заказа"); } + if (element.ImplementId != null) + element.ImplementId = model.ImplementId; model.Status = status; if (model.Status == OrderStatus.Выдан) model.DateImplement = DateTime.Now; _orderStorage.Update(model); diff --git a/SewingDresses/SewingDressesView/SewingDressesView.csproj b/SewingDresses/SewingDressesView/SewingDressesView.csproj index b630ad1..18a5a43 100644 --- a/SewingDresses/SewingDressesView/SewingDressesView.csproj +++ b/SewingDresses/SewingDressesView/SewingDressesView.csproj @@ -22,4 +22,10 @@ + + + Always + + + \ No newline at end of file diff --git a/SewingDresses/SewingDressesView/nlog.config b/SewingDresses/SewingDressesView/nlog.config new file mode 100644 index 0000000..0c764ed --- /dev/null +++ b/SewingDresses/SewingDressesView/nlog.config @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + \ No newline at end of file