Уже ощущается финишная прямая.

This commit is contained in:
Programmist73 2023-05-10 20:18:31 +04:00
parent c36ff898f6
commit 403625b82c
3 changed files with 13 additions and 14 deletions

View File

@ -67,7 +67,7 @@ namespace TransportCompany
if (viewClient != null)
{
comboBoxClients.DisplayMember = "Email";
comboBoxClients.ValueMember = "Id";
comboBoxClients.ValueMember = "MongoId";
comboBoxClients.DataSource = viewClient;
comboBoxClients.SelectedItem = null;
}
@ -75,7 +75,7 @@ namespace TransportCompany
if (viewCargo != null)
{
comboBoxCargos.DisplayMember = "TypeCargo";
comboBoxCargos.ValueMember = "Id";
comboBoxCargos.ValueMember = "MongoId";
comboBoxCargos.DataSource = viewCargo;
comboBoxCargos.SelectedItem = null;
}
@ -83,7 +83,7 @@ namespace TransportCompany
if (viewTransport != null)
{
comboBoxTransports.DisplayMember = "Tranport";
comboBoxTransports.ValueMember = "Id";
comboBoxTransports.ValueMember = "MongoId";
comboBoxTransports.DataSource = viewTransport;
comboBoxTransports.SelectedItem = null;
}

View File

@ -36,10 +36,9 @@ namespace TransportCompany
private void ButtonStartTransfer_Click(object sender, EventArgs e)
{
/*using (var soundPlayer = new SoundPlayer(@"c:\Windows\Media\chimes.wav"))
{
soundPlayer.Play(); // can also use soundPlayer.PlaySync()
}*/
var soundPlayer = new SoundPlayer(@"C:\Users\Programmist73\Desktop\Практика\2-й курс\4-й семестр\СУБД\Лаб. раб. №8\uda_requie.wav");
soundPlayer.PlaySync(); // can also use soundPlayer.PlaySync()
Program.ConnectPostgres();

View File

@ -30,20 +30,20 @@ namespace TransportCompanyContracts.ViewModels
[DisplayName("Почта")]
public string ClientEmail { get; set; } = string.Empty;
public int TransportationId { get; set; }
public int CargoId { get; set; }
[DisplayName("Тип перевозки")]
public string TypeTransportation { get; set; } = string.Empty;
[DisplayName("Объект перевозки")]
public string Cargo { get; set; } = string.Empty;
public int TransportId { get; set; }
[DisplayName("Тип транспорта")]
public string TransportName { get; set; } = string.Empty;
public int CargoId { get; set; }
public int TransportationId { get; set; }
[DisplayName("Объект перевозки")]
public string Cargo { get; set; } = string.Empty;
[DisplayName("Тип перевозки")]
public string TypeTransportation { get; set; } = string.Empty;
[DisplayName("Цена")]
public double Price { get; set; }