lab3-hard-to-lab4-hard #8
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
@ -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 });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user