Уже ощущается финишная прямая.
This commit is contained in:
parent
c36ff898f6
commit
403625b82c
@ -67,7 +67,7 @@ namespace TransportCompany
|
|||||||
if (viewClient != null)
|
if (viewClient != null)
|
||||||
{
|
{
|
||||||
comboBoxClients.DisplayMember = "Email";
|
comboBoxClients.DisplayMember = "Email";
|
||||||
comboBoxClients.ValueMember = "Id";
|
comboBoxClients.ValueMember = "MongoId";
|
||||||
comboBoxClients.DataSource = viewClient;
|
comboBoxClients.DataSource = viewClient;
|
||||||
comboBoxClients.SelectedItem = null;
|
comboBoxClients.SelectedItem = null;
|
||||||
}
|
}
|
||||||
@ -75,7 +75,7 @@ namespace TransportCompany
|
|||||||
if (viewCargo != null)
|
if (viewCargo != null)
|
||||||
{
|
{
|
||||||
comboBoxCargos.DisplayMember = "TypeCargo";
|
comboBoxCargos.DisplayMember = "TypeCargo";
|
||||||
comboBoxCargos.ValueMember = "Id";
|
comboBoxCargos.ValueMember = "MongoId";
|
||||||
comboBoxCargos.DataSource = viewCargo;
|
comboBoxCargos.DataSource = viewCargo;
|
||||||
comboBoxCargos.SelectedItem = null;
|
comboBoxCargos.SelectedItem = null;
|
||||||
}
|
}
|
||||||
@ -83,7 +83,7 @@ namespace TransportCompany
|
|||||||
if (viewTransport != null)
|
if (viewTransport != null)
|
||||||
{
|
{
|
||||||
comboBoxTransports.DisplayMember = "Tranport";
|
comboBoxTransports.DisplayMember = "Tranport";
|
||||||
comboBoxTransports.ValueMember = "Id";
|
comboBoxTransports.ValueMember = "MongoId";
|
||||||
comboBoxTransports.DataSource = viewTransport;
|
comboBoxTransports.DataSource = viewTransport;
|
||||||
comboBoxTransports.SelectedItem = null;
|
comboBoxTransports.SelectedItem = null;
|
||||||
}
|
}
|
||||||
|
@ -36,10 +36,9 @@ namespace TransportCompany
|
|||||||
|
|
||||||
private void ButtonStartTransfer_Click(object sender, EventArgs e)
|
private void ButtonStartTransfer_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
/*using (var soundPlayer = new SoundPlayer(@"c:\Windows\Media\chimes.wav"))
|
var soundPlayer = new SoundPlayer(@"C:\Users\Programmist73\Desktop\Практика\2-й курс\4-й семестр\СУБД\Лаб. раб. №8\uda_requie.wav");
|
||||||
{
|
|
||||||
soundPlayer.Play(); // can also use soundPlayer.PlaySync()
|
soundPlayer.PlaySync(); // can also use soundPlayer.PlaySync()
|
||||||
}*/
|
|
||||||
|
|
||||||
Program.ConnectPostgres();
|
Program.ConnectPostgres();
|
||||||
|
|
||||||
@ -66,7 +65,7 @@ namespace TransportCompany
|
|||||||
_truckingLogic.TransferData(truckinglist);
|
_truckingLogic.TransferData(truckinglist);
|
||||||
|
|
||||||
MessageBox.Show("Сохранение прошло успешно", "Сообщение", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBox.Show("Сохранение прошло успешно", "Сообщение", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
|
||||||
Program.ConnectPostgres();
|
Program.ConnectPostgres();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,20 +30,20 @@ namespace TransportCompanyContracts.ViewModels
|
|||||||
[DisplayName("Почта")]
|
[DisplayName("Почта")]
|
||||||
public string ClientEmail { get; set; } = string.Empty;
|
public string ClientEmail { get; set; } = string.Empty;
|
||||||
|
|
||||||
public int TransportationId { get; set; }
|
public int CargoId { get; set; }
|
||||||
|
|
||||||
[DisplayName("Тип перевозки")]
|
[DisplayName("Объект перевозки")]
|
||||||
public string TypeTransportation { get; set; } = string.Empty;
|
public string Cargo { get; set; } = string.Empty;
|
||||||
|
|
||||||
public int TransportId { get; set; }
|
public int TransportId { get; set; }
|
||||||
|
|
||||||
[DisplayName("Тип транспорта")]
|
[DisplayName("Тип транспорта")]
|
||||||
public string TransportName { get; set; } = string.Empty;
|
public string TransportName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public int CargoId { get; set; }
|
public int TransportationId { get; set; }
|
||||||
|
|
||||||
[DisplayName("Объект перевозки")]
|
[DisplayName("Тип перевозки")]
|
||||||
public string Cargo { get; set; } = string.Empty;
|
public string TypeTransportation { get; set; } = string.Empty;
|
||||||
|
|
||||||
[DisplayName("Цена")]
|
[DisplayName("Цена")]
|
||||||
public double Price { get; set; }
|
public double Price { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user