Сделали 1ую часть лабы
This commit is contained in:
parent
c2b44d351c
commit
9226bb13b9
@ -51,7 +51,13 @@ namespace ProjectTourAgency.Forms
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void LoadList() => dataGridViewData.DataSource = _addMoneyRepository.ReadAddMoneys();
|
private void LoadList()
|
||||||
|
{
|
||||||
|
dataGridViewData.DataSource = _addMoneyRepository.ReadAddMoneys();
|
||||||
|
dataGridViewData.Columns["Date"].DefaultCellStyle.Format = "dd.MM.yy";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private bool TryGetIdentifierFromSelectedRow(out int id)
|
private bool TryGetIdentifierFromSelectedRow(out int id)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using ProjectTourAgency.Repositories;
|
using ProjectTourAgency.Implementations;
|
||||||
|
using ProjectTourAgency.Repositories;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
@ -93,8 +94,13 @@ namespace ProjectTourAgency.Forms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadList() => dataGridViewData.DataSource = _clientRepository.ReadClients();
|
private void LoadList()
|
||||||
|
{
|
||||||
|
dataGridViewData.DataSource = _clientRepository.ReadClients();
|
||||||
|
dataGridViewData.Columns["Id"].Visible = false;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
private bool TryGetIdentifierFromSelectedRow(out int id)
|
private bool TryGetIdentifierFromSelectedRow(out int id)
|
||||||
{
|
{
|
||||||
id = 0;
|
id = 0;
|
||||||
|
@ -95,8 +95,13 @@ namespace ProjectTourAgency.Forms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadList() => dataGridViewData.DataSource = _employeeRepository.ReadEmployees();
|
private void LoadList()
|
||||||
|
{
|
||||||
|
dataGridViewData.DataSource = _employeeRepository.ReadEmployees();
|
||||||
|
dataGridViewData.Columns["Id"].Visible = false;
|
||||||
|
dataGridViewData.Columns["EmployeeName"].Visible = false;
|
||||||
|
|
||||||
|
}
|
||||||
private bool TryGetIdentifierFromSelectedRow(out int id)
|
private bool TryGetIdentifierFromSelectedRow(out int id)
|
||||||
{
|
{
|
||||||
id = 0;
|
id = 0;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using ProjectRouteAgency.Repositories;
|
using ProjectRouteAgency.Repositories;
|
||||||
|
using ProjectTourAgency.Implementations;
|
||||||
using ProjectTourAgency.Repositories;
|
using ProjectTourAgency.Repositories;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@ -94,8 +95,13 @@ namespace ProjectTourAgency.Forms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadList() => dataGridViewData.DataSource = _routeRepository.ReadRoutes();
|
private void LoadList()
|
||||||
|
{
|
||||||
|
dataGridViewData.DataSource = _routeRepository.ReadRoutes();
|
||||||
|
dataGridViewData.Columns["Id"].Visible = false;
|
||||||
|
dataGridViewData.Columns["DepartureDestination"].Visible = false;
|
||||||
|
|
||||||
|
}
|
||||||
private bool TryGetIdentifierFromSelectedRow(out int id)
|
private bool TryGetIdentifierFromSelectedRow(out int id)
|
||||||
{
|
{
|
||||||
id = 0;
|
id = 0;
|
||||||
|
@ -114,7 +114,7 @@ LEFT JOIN
|
|||||||
}
|
}
|
||||||
ct.Add(tours);
|
ct.Add(tours);
|
||||||
return clientTour;
|
return clientTour;
|
||||||
}, splitOn: "ClientId", param: new { dateFrom, dateTo, tourId, clientId });
|
}, splitOn: "ClientId");
|
||||||
_logger.LogDebug("Полученные объекты: {json}", JsonConvert.SerializeObject(tours));
|
_logger.LogDebug("Полученные объекты: {json}", JsonConvert.SerializeObject(tours));
|
||||||
|
|
||||||
return clientTourDict.Select(x =>
|
return clientTourDict.Select(x =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user