lab3-hard-to-lab4-hard #8

Closed
Salikh wants to merge 14 commits from lab3-hard into laba4-hard
4 changed files with 5 additions and 9 deletions
Showing only changes of commit acc8780b88 - Show all commits

View File

@ -17,6 +17,6 @@ namespace MotorPlantContracts.BusinessLogicsContracts
bool Create(ShopBindingModel? model);
bool Update(ShopBindingModel? model);
bool Delete(ShopBindingModel? model);
bool MakeSupply(ShopSearchModel model, IEngineModel dress, int count);
bool MakeSupply(ShopSearchModel model, IEngineModel engine, int count);
}
}

View File

@ -49,12 +49,7 @@ namespace MotorPlantListImplement.Models
{
return;
}
Id = model.Id;
EngineId = model.EngineId;
Count = model.Count;
Sum = model.Sum;
Status = model.Status;
DateCreate = model.DateCreate;
DateImplement = model.DateImplement;
}
public OrderViewModel GetViewModel => new()

View File

@ -32,7 +32,8 @@ namespace MotorPlantView.Forms
catch (Exception ex)
{
_logger.LogError(ex, "Ошибка загрузки компонентов");
}
MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void FormEngines_Load(object sender, EventArgs e)

View File

@ -61,9 +61,9 @@ namespace MotorPlantView
{
if (_engine != null)
{
foreach (var dress in _engine)
foreach (var engine in _engine)
{
dataGridView.Rows.Add(new object[] { dress.Key, dress.Value.Item1.EngineName, dress.Value.Item1.Price, dress.Value.Item2 });
dataGridView.Rows.Add(new object[] { engine.Key, engine.Value.Item1.EngineName, engine.Value.Item1.Price, engine.Value.Item2 });
}
}
}