lab 1 ready 100%
This commit is contained in:
parent
e8b8778e62
commit
b9b898380c
@ -82,8 +82,8 @@ namespace ProjectGSM.Forms
|
|||||||
priceNumeric.Value,
|
priceNumeric.Value,
|
||||||
winPriceNumeric.Value,
|
winPriceNumeric.Value,
|
||||||
verdictCheckBox.Checked,
|
verdictCheckBox.Checked,
|
||||||
courtBox.SelectedIndex,
|
((Court)courtBox.SelectedItem).Id,
|
||||||
clientBox.SelectedIndex,
|
((Client)clientBox.SelectedItem).Id,
|
||||||
textBox1.Text);
|
textBox1.Text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ namespace ProjectGSM.Forms
|
|||||||
{
|
{
|
||||||
throw new Exception("Имеются незаполненные поля");
|
throw new Exception("Имеются незаполненные поля");
|
||||||
}
|
}
|
||||||
_statusHistoryRepository.CreateStatusHistory(StatusHistory.CreateEntity(caseBox.SelectedIndex, (Status)statusBox.SelectedIndex!, priceNumeric.Value, dateTimePicker1.Value));
|
_statusHistoryRepository.CreateStatusHistory(StatusHistory.CreateEntity((((Case)caseBox.SelectedItem!)!).Id, (Status)statusBox.SelectedIndex!, priceNumeric.Value, dateTimePicker1.Value));
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
Loading…
Reference in New Issue
Block a user