MainMenu.cs 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using System.Data.SqlClient;
  11. namespace Transportation
  12. {
  13. public partial class MainMenu : Form
  14. {
  15. SqlCommand query = null;
  16. SqlDataAdapter dataAdapter = null;
  17. DataSet dataSet = null;
  18. static public string vehicleIndex;
  19. static public string driverIndex;
  20. static public string executorIndex;
  21. static public string logisticianIndex;
  22. static public string requestIndex;
  23. static public double sort;
  24. public MainMenu()
  25. {
  26. InitializeComponent();
  27. }
  28. private void Form1_Load(object sender, EventArgs e)
  29. {
  30. dbhelper.openConnection(ref dbhelper.sqlConnection);
  31. dataAdapter = new SqlDataAdapter("select code_vehicle as 'Код автомобиля', (executors.surname_executor + ' ' + executors.name_executor + ' ' + executors.midname_executor) as 'ФИО исполнителя', brand_vehicle as 'Марка автомобиля', model_vehicle as 'Модель автомобиля', number_vehicle as 'Гос. номер автомобиля', name_category as 'Категория прицепа', volume_body as 'Тоннаж', length_body as 'Длина автомобиля', width_body as 'Ширина автомобиля', height_body as 'Высота автомобиля' from vehicles, executors, category_trailer where vehicles.code_executor = executors.code_executor and vehicles.code_category = category_trailer.code_category", dbhelper.sqlConnection);
  32. dataSet = new DataSet();
  33. dataAdapter.Fill(dataSet);
  34. VehiclesDGV.DataSource = dataSet.Tables[0];
  35. dataAdapter = new SqlDataAdapter("select code_driver as 'Код водителя', (executors.surname_executor + ' ' + executors.name_executor + ' ' + executors.midname_executor) as 'ФИО исполнителя', surname_driver as 'Фамилия водителя', name_driver as 'Имя водителя', midname_driver as 'Отчество водителя', number_passport_driver as 'Серия-номер паспорта', place_passport_driver as 'Место выдачи паспорта', date_passport_driver as 'Дата выдачи паспорта', code_passport_driver as 'Код подразделения', number_driverlicense as 'Серия-номер вод. удостоверения', telephone_driver as 'Телефон водителя' from executors, drivers where drivers.code_executor = executors.code_executor", dbhelper.sqlConnection);
  36. dataSet = new DataSet();
  37. dataAdapter.Fill(dataSet);
  38. DriversDGV.DataSource = dataSet.Tables[0];
  39. dataAdapter = new SqlDataAdapter("select code_executor as 'Код исполнителя', surname_executor as 'Фамилия исполнителя', name_executor as 'Имя исполнителя', midname_executor as 'Отчество исполнителя' from Executors", dbhelper.sqlConnection);
  40. dataSet = new DataSet();
  41. dataAdapter.Fill(dataSet);
  42. ExecutorsDGV.DataSource = dataSet.Tables[0];
  43. dataAdapter = new SqlDataAdapter("select code_logistician as 'Код логиста', surname_logistician as 'Фамилия логиста', name_logistician as 'Имя логиста', midname_logistician as 'Отчество логиста', number_passport_logistician as 'Серия-номер паспорта', place_passport_logistician as 'Место выдачи паспорта', date_passport_logistician as 'Дата выдачи паспорта', code_passport_logistician as 'Код подразделения', telephone_logistician as 'Телефон логиста' from Logisticians", dbhelper.sqlConnection);
  44. dataSet = new DataSet();
  45. dataAdapter.Fill(dataSet);
  46. LogisticiansDGV.DataSource = dataSet.Tables[0];
  47. dataAdapter = new SqlDataAdapter("select code_request as 'Код заявки', (executors.surname_executor + ' ' + executors.name_executor + ' ' + executors.midname_executor) as 'ФИО исполнителя', (drivers.surname_driver + ' ' + drivers.name_driver + ' ' + drivers.midname_driver) as 'ФИО водителя', (vehicles.brand_vehicle + ' ' + vehicles.model_vehicle + ' ' + vehicles.number_vehicle) as 'Автомобиль', (logisticians.surname_logistician + ' ' + logisticians.name_logistician + ' ' + logisticians.midname_logistician) as 'ФИО логиста', date_loading as 'Дата загрузки', place_loading as 'Место загрузки', fullname_shipper as 'ФИО грузоотправителя', telephone_shipper as 'Телефон грузоотправителя', name_cargo as 'Наименования груза', transportation_conditions as 'Условия транспортировки', date_unloading as 'Дата разгрузки', place_unloading as 'Место разгрузки', fullname_consignee as 'ФИО грузополучателя', route_town_request as 'Маршрут (города)', route_mileage_request as 'Маршрут (километраж)', transportation_format as 'Формат транспортировки', payment_request as 'Оплата заявки', payment_conditions_request as 'Условия оплаты' from Requests, executors, drivers, vehicles, logisticians where requests.code_executor = executors.code_executor and requests.code_driver = drivers.code_driver and requests.code_vehicle = vehicles.code_vehicle and requests.code_logistician = logisticians.code_logistician", dbhelper.sqlConnection);
  48. dataSet = new DataSet();
  49. dataAdapter.Fill(dataSet);
  50. RequestsDGV.DataSource = dataSet.Tables[0];
  51. }
  52. private void AddVehicleTSMI_Click(object sender, EventArgs e)
  53. {
  54. AddVehicle add = new AddVehicle();
  55. add.Show();
  56. add.FormClosing += (obj, args) =>
  57. {
  58. dataAdapter = new SqlDataAdapter("select code_vehicle as 'Код автомобиля', (executors.surname_executor + ' ' + executors.name_executor + ' ' + executors.midname_executor) as 'ФИО исполнителя', brand_vehicle as 'Марка автомобиля', model_vehicle as 'Модель автомобиля', number_vehicle as 'Гос. номер автомобиля', name_category as 'Категория прицепа', volume_body as 'Тоннаж', length_body as 'Длина автомобиля', width_body as 'Ширина автомобиля', height_body as 'Высота автомобиля' from vehicles, executors, category_trailer where vehicles.code_executor = executors.code_executor and vehicles.code_category = category_trailer.code_category", dbhelper.sqlConnection);
  59. dataSet = new DataSet();
  60. dataAdapter.Fill(dataSet);
  61. VehiclesDGV.DataSource = dataSet.Tables[0];
  62. };
  63. }
  64. private void ChangeVehicleTSMI_Click(object sender, EventArgs e)
  65. {
  66. vehicleIndex = VehiclesDGV.Rows[VehiclesDGV.CurrentCell.RowIndex].Cells[0].Value.ToString();
  67. UpdateVehicle update = new UpdateVehicle();
  68. update.Show();
  69. update.FormClosing += (obj, args) =>
  70. {
  71. dataAdapter = new SqlDataAdapter("select code_vehicle as 'Код автомобиля', (executors.surname_executor + ' ' + executors.name_executor + ' ' + executors.midname_executor) as 'ФИО исполнителя', brand_vehicle as 'Марка автомобиля', model_vehicle as 'Модель автомобиля', number_vehicle as 'Гос. номер автомобиля', name_category as 'Категория прицепа', volume_body as 'Тоннаж', length_body as 'Длина автомобиля', width_body as 'Ширина автомобиля', height_body as 'Высота автомобиля' from vehicles, executors, category_trailer where vehicles.code_executor = executors.code_executor and vehicles.code_category = category_trailer.code_category", dbhelper.sqlConnection);
  72. dataSet = new DataSet();
  73. dataAdapter.Fill(dataSet);
  74. VehiclesDGV.DataSource = dataSet.Tables[0];
  75. };
  76. }
  77. private void DropVehicleTSMI_Click(object sender, EventArgs e)
  78. {
  79. var res = MessageBox.Show("Подтвердите удаление данных", "Подтверждение", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  80. if (res == DialogResult.Yes)
  81. {
  82. vehicleIndex = VehiclesDGV.Rows[VehiclesDGV.CurrentCell.RowIndex].Cells[0].Value.ToString();
  83. query = new SqlCommand($"delete from vehicles where code_vehicle like '{vehicleIndex}'", dbhelper.sqlConnection);
  84. query.ExecuteNonQuery();
  85. dataAdapter = new SqlDataAdapter("select code_vehicle as 'Код автомобиля', (executors.surname_executor + ' ' + executors.name_executor + ' ' + executors.midname_executor) as 'ФИО исполнителя', brand_vehicle as 'Марка автомобиля', model_vehicle as 'Модель автомобиля', number_vehicle as 'Гос. номер автомобиля', name_category as 'Категория прицепа', volume_body as 'Тоннаж', length_body as 'Длина автомобиля', width_body as 'Ширина автомобиля', height_body as 'Высота автомобиля' from vehicles, executors, category_trailer where vehicles.code_executor = executors.code_executor and vehicles.code_category = category_trailer.code_category", dbhelper.sqlConnection);
  86. dataSet = new DataSet();
  87. dataAdapter.Fill(dataSet);
  88. VehiclesDGV.DataSource = dataSet.Tables[0];
  89. }
  90. }
  91. private void AddDriverTSMI_Click(object sender, EventArgs e)
  92. {
  93. AddDriver add = new AddDriver();
  94. add.Show();
  95. add.FormClosing += (obj, args) =>
  96. {
  97. dataAdapter = new SqlDataAdapter("select code_driver as 'Код водителя', (executors.surname_executor + ' ' + executors.name_executor + ' ' + executors.midname_executor) as 'ФИО исполнителя', surname_driver as 'Фамилия водителя', name_driver as 'Имя водителя', midname_driver as 'Отчество водителя', number_passport_driver as 'Серия-номер паспорта', place_passport_driver as 'Место выдачи паспорта', date_passport_driver as 'Дата выдачи паспорта', code_passport_driver as 'Код подразделения', number_driverlicense as 'Серия-номер вод. удостоверения', telephone_driver as 'Телефон водителя' from executors, drivers where drivers.code_executor = executors.code_executor", dbhelper.sqlConnection);
  98. dataSet = new DataSet();
  99. dataAdapter.Fill(dataSet);
  100. DriversDGV.DataSource = dataSet.Tables[0];
  101. };
  102. }
  103. private void ChangeDriverTSMI_Click(object sender, EventArgs e)
  104. {
  105. driverIndex = DriversDGV.Rows[DriversDGV.CurrentCell.RowIndex].Cells[0].Value.ToString();
  106. UpdateDrivers update = new UpdateDrivers();
  107. update.Show();
  108. update.FormClosing += (obj, args) =>
  109. {
  110. dataAdapter = new SqlDataAdapter("select code_driver as 'Код водителя', (executors.surname_executor + ' ' + executors.name_executor + ' ' + executors.midname_executor) as 'ФИО исполнителя', surname_driver as 'Фамилия водителя', name_driver as 'Имя водителя', midname_driver as 'Отчество водителя', number_passport_driver as 'Серия-номер паспорта', place_passport_driver as 'Место выдачи паспорта', date_passport_driver as 'Дата выдачи паспорта', code_passport_driver as 'Код подразделения', number_driverlicense as 'Серия-номер вод. удостоверения', telephone_driver as 'Телефон водителя' from executors, drivers where drivers.code_executor = executors.code_executor", dbhelper.sqlConnection);
  111. dataSet = new DataSet();
  112. dataAdapter.Fill(dataSet);
  113. DriversDGV.DataSource = dataSet.Tables[0];
  114. };
  115. }
  116. private void DropDriverTSMI_Click(object sender, EventArgs e)
  117. {
  118. var res = MessageBox.Show("Подтвердите удаление данных", "Подтверждение", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  119. if (res == DialogResult.Yes)
  120. {
  121. driverIndex = DriversDGV.Rows[DriversDGV.CurrentCell.RowIndex].Cells[0].Value.ToString();
  122. query = new SqlCommand($"delete from drivers where code_driver like '{driverIndex}'", dbhelper.sqlConnection);
  123. query.ExecuteNonQuery();
  124. dataAdapter = new SqlDataAdapter("select code_driver as 'Код водителя', (executors.surname_executor + ' ' + executors.name_executor + ' ' + executors.midname_executor) as 'ФИО исполнителя', surname_driver as 'Фамилия водителя', name_driver as 'Имя водителя', midname_driver as 'Отчество водителя', number_passport_driver as 'Серия-номер паспорта', place_passport_driver as 'Место выдачи паспорта', date_passport_driver as 'Дата выдачи паспорта', code_passport_driver as 'Код подразделения', number_driverlicense as 'Серия-номер вод. удостоверения', telephone_driver as 'Телефон водителя' from executors, drivers where drivers.code_executor = executors.code_executor", dbhelper.sqlConnection);
  125. dataSet = new DataSet();
  126. dataAdapter.Fill(dataSet);
  127. DriversDGV.DataSource = dataSet.Tables[0];
  128. }
  129. }
  130. private void AddExecutorTSMI_Click(object sender, EventArgs e)
  131. {
  132. AddExecutor add = new AddExecutor();
  133. add.Show();
  134. add.FormClosing += (obj, args) =>
  135. {
  136. dataAdapter = new SqlDataAdapter("select code_executor as 'Код исполнителя', surname_executor as 'Фамилия исполнителя', name_executor as 'Имя исполнителя', midname_executor as 'Отчество исполнителя' from Executors", dbhelper.sqlConnection);
  137. dataSet = new DataSet();
  138. dataAdapter.Fill(dataSet);
  139. ExecutorsDGV.DataSource = dataSet.Tables[0];
  140. };
  141. }
  142. private void UpdateExecutorTSMI_Click(object sender, EventArgs e)
  143. {
  144. executorIndex = ExecutorsDGV.Rows[ExecutorsDGV.CurrentCell.RowIndex].Cells[0].Value.ToString();
  145. UpdateExecutor update = new UpdateExecutor();
  146. update.Show();
  147. update.FormClosing += (obj, args) =>
  148. {
  149. dataAdapter = new SqlDataAdapter("select code_executor as 'Код исполнителя', surname_executor as 'Фамилия исполнителя', name_executor as 'Имя исполнителя', midname_executor as 'Отчество исполнителя' from Executors", dbhelper.sqlConnection);
  150. dataSet = new DataSet();
  151. dataAdapter.Fill(dataSet);
  152. ExecutorsDGV.DataSource = dataSet.Tables[0];
  153. };
  154. }
  155. private void DropExecutorTSMI_Click(object sender, EventArgs e)
  156. {
  157. var res = MessageBox.Show("Подтвердите удаление данных", "Подтверждение", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  158. if (res == DialogResult.Yes)
  159. {
  160. executorIndex = ExecutorsDGV.Rows[ExecutorsDGV.CurrentCell.RowIndex].Cells[0].Value.ToString();
  161. query = new SqlCommand($"delete from executors where code_executor like '{executorIndex}'", dbhelper.sqlConnection);
  162. query.ExecuteNonQuery();
  163. dataAdapter = new SqlDataAdapter("select code_executor as 'Код исполнителя', surname_executor as 'Фамилия исполнителя', name_executor as 'Имя исполнителя', midname_executor as 'Отчество исполнителя' from Executors", dbhelper.sqlConnection);
  164. dataSet = new DataSet();
  165. dataAdapter.Fill(dataSet);
  166. ExecutorsDGV.DataSource = dataSet.Tables[0];
  167. }
  168. }
  169. private void AddLogisticianTSMI_Click(object sender, EventArgs e)
  170. {
  171. AddLogistician add = new AddLogistician();
  172. add.Show();
  173. add.FormClosing += (obj, args) =>
  174. {
  175. dataAdapter = new SqlDataAdapter("select code_logistician as 'Код логиста', surname_logistician as 'Фамилия логиста', name_logistician as 'Имя логиста', midname_logistician as 'Отчество логиста', number_passport_logistician as 'Серия-номер паспорта', place_passport_logistician as 'Место выдачи паспорта', date_passport_logistician as 'Дата выдачи паспорта', code_passport_logistician as 'Код подразделения', telephone_logistician as 'Телефон логиста' from Logisticians", dbhelper.sqlConnection);
  176. dataSet = new DataSet();
  177. dataAdapter.Fill(dataSet);
  178. LogisticiansDGV.DataSource = dataSet.Tables[0];
  179. };
  180. }
  181. private void UpdateLogisticianTSMI_Click(object sender, EventArgs e)
  182. {
  183. logisticianIndex = LogisticiansDGV.Rows[LogisticiansDGV.CurrentCell.RowIndex].Cells[0].Value.ToString();
  184. UpdateLogistician update = new UpdateLogistician();
  185. update.Show();
  186. update.FormClosing += (obj, args) =>
  187. {
  188. dataAdapter = new SqlDataAdapter("select code_logistician as 'Код логиста', surname_logistician as 'Фамилия логиста', name_logistician as 'Имя логиста', midname_logistician as 'Отчество логиста', number_passport_logistician as 'Серия-номер паспорта', place_passport_logistician as 'Место выдачи паспорта', date_passport_logistician as 'Дата выдачи паспорта', code_passport_logistician as 'Код подразделения', telephone_logistician as 'Телефон логиста' from Logisticians", dbhelper.sqlConnection);
  189. dataSet = new DataSet();
  190. dataAdapter.Fill(dataSet);
  191. LogisticiansDGV.DataSource = dataSet.Tables[0];
  192. };
  193. }
  194. private void DropLogisticianTSMI_Click(object sender, EventArgs e)
  195. {
  196. var res = MessageBox.Show("Подтвердите удаление данных", "Подтверждение", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  197. if (res == DialogResult.Yes)
  198. {
  199. logisticianIndex = LogisticiansDGV.Rows[LogisticiansDGV.CurrentCell.RowIndex].Cells[0].Value.ToString();
  200. query = new SqlCommand($"delete from logisticians where code_logistician like '{logisticianIndex}'", dbhelper.sqlConnection);
  201. query.ExecuteNonQuery();
  202. dataAdapter = new SqlDataAdapter("select code_logistician as 'Код логиста', surname_logistician as 'Фамилия логиста', name_logistician as 'Имя логиста', midname_logistician as 'Отчество логиста', number_passport_logistician as 'Серия-номер паспорта', place_passport_logistician as 'Место выдачи паспорта', date_passport_logistician as 'Дата выдачи паспорта', code_passport_logistician as 'Код подразделения', telephone_logistician as 'Телефон логиста' from Logisticians", dbhelper.sqlConnection);
  203. dataSet = new DataSet();
  204. dataAdapter.Fill(dataSet);
  205. LogisticiansDGV.DataSource = dataSet.Tables[0];
  206. }
  207. }
  208. private void check_Click(object sender, EventArgs e)
  209. {
  210. sort = Convert.ToDouble(volume.Value);
  211. SortingVehicle add = new SortingVehicle();
  212. add.Show();
  213. }
  214. private void AddRequestTSMI_Click(object sender, EventArgs e)
  215. {
  216. AddRequest add = new AddRequest();
  217. add.Show();
  218. add.FormClosing += (obj, args) =>
  219. {
  220. dataAdapter = new SqlDataAdapter("select code_request as 'Код заявки', (executors.surname_executor + ' ' + executors.name_executor + ' ' + executors.midname_executor) as 'ФИО исполнителя', (drivers.surname_driver + ' ' + drivers.name_driver + ' ' + drivers.midname_driver) as 'ФИО водителя', (vehicles.brand_vehicle + ' ' + vehicles.model_vehicle + ' ' + vehicles.number_vehicle) as 'Автомобиль', (logisticians.surname_logistician + ' ' + logisticians.name_logistician + ' ' + logisticians.midname_logistician) as 'ФИО логиста', date_loading as 'Дата загрузки', place_loading as 'Место загрузки', fullname_shipper as 'ФИО грузоотправителя', telephone_shipper as 'Телефон грузоотправителя', name_cargo as 'Наименования груза', transportation_conditions as 'Условия транспортировки', date_unloading as 'Дата разгрузки', place_unloading as 'Место разгрузки', fullname_consignee as 'ФИО грузополучателя', route_town_request as 'Маршрут (города)', route_mileage_request as 'Маршрут (километраж)', transportation_format as 'Формат транспортировки', payment_request as 'Оплата заявки', payment_conditions_request as 'Условия оплаты' from Requests, executors, drivers, vehicles, logisticians where requests.code_executor = executors.code_executor and requests.code_driver = drivers.code_driver and requests.code_vehicle = vehicles.code_vehicle and requests.code_logistician = logisticians.code_logistician", dbhelper.sqlConnection);
  221. dataSet = new DataSet();
  222. dataAdapter.Fill(dataSet);
  223. RequestsDGV.DataSource = dataSet.Tables[0];
  224. };
  225. }
  226. private void UpdateRequestTSMI_Click(object sender, EventArgs e)
  227. {
  228. requestIndex = RequestsDGV.Rows[RequestsDGV.CurrentCell.RowIndex].Cells[0].Value.ToString();
  229. UpdateRequest update = new UpdateRequest();
  230. update.Show();
  231. update.FormClosing += (obj, args) =>
  232. {
  233. dataAdapter = new SqlDataAdapter("select code_request as 'Код заявки', (executors.surname_executor + ' ' + executors.name_executor + ' ' + executors.midname_executor) as 'ФИО исполнителя', (drivers.surname_driver + ' ' + drivers.name_driver + ' ' + drivers.midname_driver) as 'ФИО водителя', (vehicles.brand_vehicle + ' ' + vehicles.model_vehicle + ' ' + vehicles.number_vehicle) as 'Автомобиль', (logisticians.surname_logistician + ' ' + logisticians.name_logistician + ' ' + logisticians.midname_logistician) as 'ФИО логиста', date_loading as 'Дата загрузки', place_loading as 'Место загрузки', fullname_shipper as 'ФИО грузоотправителя', telephone_shipper as 'Телефон грузоотправителя', name_cargo as 'Наименования груза', transportation_conditions as 'Условия транспортировки', date_unloading as 'Дата разгрузки', place_unloading as 'Место разгрузки', fullname_consignee as 'ФИО грузополучателя', route_town_request as 'Маршрут (города)', route_mileage_request as 'Маршрут (километраж)', transportation_format as 'Формат транспортировки', payment_request as 'Оплата заявки', payment_conditions_request as 'Условия оплаты' from Requests, executors, drivers, vehicles, logisticians where requests.code_executor = executors.code_executor and requests.code_driver = drivers.code_driver and requests.code_vehicle = vehicles.code_vehicle and requests.code_logistician = logisticians.code_logistician", dbhelper.sqlConnection);
  234. dataSet = new DataSet();
  235. dataAdapter.Fill(dataSet);
  236. RequestsDGV.DataSource = dataSet.Tables[0];
  237. };
  238. }
  239. private void DropRequestTSMI_Click(object sender, EventArgs e)
  240. {
  241. var res = MessageBox.Show("Подтвердите удаление данных", "Подтверждение", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  242. if (res == DialogResult.Yes)
  243. {
  244. requestIndex = RequestsDGV.Rows[RequestsDGV.CurrentCell.RowIndex].Cells[0].Value.ToString();
  245. query = new SqlCommand($"delete from requests where code_request like '{requestIndex}'", dbhelper.sqlConnection);
  246. query.ExecuteNonQuery();
  247. dataAdapter = new SqlDataAdapter("select code_request as 'Код заявки', (executors.surname_executor + ' ' + executors.name_executor + ' ' + executors.midname_executor) as 'ФИО исполнителя', (drivers.surname_driver + ' ' + drivers.name_driver + ' ' + drivers.midname_driver) as 'ФИО водителя', (vehicles.brand_vehicle + ' ' + vehicles.model_vehicle + ' ' + vehicles.number_vehicle) as 'Автомобиль', (logisticians.surname_logistician + ' ' + logisticians.name_logistician + ' ' + logisticians.midname_logistician) as 'ФИО логиста', date_loading as 'Дата загрузки', place_loading as 'Место загрузки', fullname_shipper as 'ФИО грузоотправителя', telephone_shipper as 'Телефон грузоотправителя', name_cargo as 'Наименования груза', transportation_conditions as 'Условия транспортировки', date_unloading as 'Дата разгрузки', place_unloading as 'Место разгрузки', fullname_consignee as 'ФИО грузополучателя', route_town_request as 'Маршрут (города)', route_mileage_request as 'Маршрут (километраж)', transportation_format as 'Формат транспортировки', payment_request as 'Оплата заявки', payment_conditions_request as 'Условия оплаты' from Requests, executors, drivers, vehicles, logisticians where requests.code_executor = executors.code_executor and requests.code_driver = drivers.code_driver and requests.code_vehicle = vehicles.code_vehicle and requests.code_logistician = logisticians.code_logistician", dbhelper.sqlConnection);
  248. dataSet = new DataSet();
  249. dataAdapter.Fill(dataSet);
  250. RequestsDGV.DataSource = dataSet.Tables[0];
  251. }
  252. }
  253. }
  254. }