Fixes
This commit is contained in:
parent
0fd7b8dc85
commit
a1de87096f
@ -193,7 +193,7 @@ orderStorage)
|
||||
|
||||
model.Status = newStatus;
|
||||
|
||||
if (model.Status == OrderStatus.Выдан)
|
||||
if (model.Status == OrderStatus.Готов)
|
||||
{
|
||||
model.DateImplement = DateTime.Now;
|
||||
}
|
||||
@ -201,6 +201,7 @@ orderStorage)
|
||||
{
|
||||
model.DateImplement = element.DateImplement;
|
||||
}
|
||||
|
||||
CheckModel(model, false);
|
||||
if (_orderStorage.Update(model) == null)
|
||||
{
|
||||
|
@ -106,7 +106,7 @@ namespace AircraftPlantBusinessLogic.BusinessLogics
|
||||
// делаем работу
|
||||
Thread.Sleep(implementer.WorkExperience * _rnd.Next(100, 1000) * order.Count);
|
||||
_logger.LogDebug("DoWork. Worker {Id} finish order {Order}", implementer.Id, order.Id);
|
||||
_orderLogic.FinishOrder(new OrderBindingModel
|
||||
_orderLogic.DeliveryOrder(new OrderBindingModel
|
||||
{
|
||||
Id = order.Id
|
||||
});
|
||||
@ -156,7 +156,7 @@ namespace AircraftPlantBusinessLogic.BusinessLogics
|
||||
// доделываем работу
|
||||
Thread.Sleep(implementer.WorkExperience * _rnd.Next(100, 300) * runOrder.Count);
|
||||
_logger.LogDebug("DoWork. Worker {Id} finish order {Order}", implementer.Id, runOrder.Id);
|
||||
_orderLogic.FinishOrder(new OrderBindingModel
|
||||
_orderLogic.DeliveryOrder(new OrderBindingModel
|
||||
{
|
||||
Id = runOrder.Id
|
||||
});
|
||||
|
@ -103,9 +103,9 @@
|
||||
labelWorkExperience.AutoSize = true;
|
||||
labelWorkExperience.Location = new Point(12, 72);
|
||||
labelWorkExperience.Name = "labelWorkExperience";
|
||||
labelWorkExperience.Size = new Size(38, 15);
|
||||
labelWorkExperience.Size = new Size(84, 15);
|
||||
labelWorkExperience.TabIndex = 7;
|
||||
labelWorkExperience.Text = "label1";
|
||||
labelWorkExperience.Text = "Опыт работы:";
|
||||
//
|
||||
// labelQualification
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user