Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
ОТЧЕТ(КУРСОВОЙ).doc
Скачиваний:
17
Добавлен:
05.03.2016
Размер:
2 Mб
Скачать

2 Програмна документація

    1. Порадник системного програміста

      1. Архітектура програми

Була створена база даних у СКБД MS SQL Server 2005, яка складається із чотирьох таблиць. Таблиці наведені на рисунках 1-4.

Рисунок 1 – Таблиця «Країна»

Рисунок 2 – Таблиця «Порт»

Рисунок 3 – Таблиця «Судно»

Рисунок 4 – Таблиця «Відвідування»

Дві таблиці можуть бути пов'язані один з одним по ключу. Одна з цих зв'язаних таблиць є головною (master), а інша - допоміжної, деталізує (detail).

Схема взаємозв'язків між представленнями в MS Visual С++ 2005 у вигляді діаграми даних, представлена ​​на рисунку 5.

Рисунок 5 – Діаграма даних

Для представлень були використані наступні запити:

  • для представлення Kraina: SELECT UK_Kraina, Materik, Stolica FROM dbo.Kraina;

  • для представлення Port: SELECT UK_Port, UK_Kraina, Nazva, Misto, Tip FROM dbo.Port;

  • для представлення Sudno: SELECT UK_Sudno, Nazva, Tip, UK_Port FROM dbo.Sudno;

  • для представлення Vidviduvannya: SELECT UK_VP, UK_Sudno, UK_Port, Data_pributtya, Data_vidplittya, Meta FROM dbo.Vidviduvannya;

для представлення DataTable1:SELECTVidviduvannya.UK_VP,Vidviduvannya.UK_Sudno, Vidviduvannya.UK_Port,Vidviduvannya.Data_pributtya, Vidviduvannya.Data_vidplittya,Vidviduvannya.Meta, Sudno.Nazva, Sudno.Tip, Port.Nazva AS Expr1, Port.Misto, Port.Tip AS Expr2, Kraina.Materik, Kraina.Stolica

FROM Port INNER JOIN

Sudno ON Port.UK_Port = Sudno.UK_Port INNER JOIN

Vidviduvannya ON Port.UK_Port = Vidviduvannya.UK_Port INNER JOIN

Kraina ON Port.UK_Kraina = Kraina.UK_Kraina.

При розробці застосування «Країна» була використана мова моделювання Unified Modeling Language (UML), заснована на технології об'єктного моделювання (CASE-технології проектування програмних комплексів в галузі розробки програмного забезпечення). Мова UML дозволяє відобразити всі взаємозв'язки модельованого об'єкта, його інтерфейси, а так само особливості реалізації, які визначають внутрішню структуру і функції.

Діаграма класів (class diagram) використовується для моделювання статичної структури класів системи. Діаграма реалізована в ПП Sparx Systems Enterprise Architect 7.5. На діаграмі відображаються статичні аспекти структурної побудови системи (рисунок 6).

Програма складається з п'яти класів, які є похідними від классу System::Windows::Forms::Form, тобто мають графічний інтерфейс. Далі приведений детальний опис кожного з класів.

Клас «Form1» становить головне вікно програми. Він має наступні методи:

  • private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) - призначений для відображення кнопок;

  • private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) -призначений для відкриття записів Kraina;

  • private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) призначений для відкриття записів Port;

  • private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) - призначений для відкриття записів Sudno;

  • private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) - призначений для відкриття VP;

  • private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) - призначений для закриття Form1;

  • Клас «Kraina» призначений для відображення та корегування даних у представленні kraina та містить наступні методи:

  • private: System::Void Kraina_Load(System::Object^ sender, System::EventArgs^ e) призначений для відображення даних з представлення kraina у сітці даних;

  • private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) -призначений для Фільтру за Столицею;

  • private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) - призначений для Отмени;

  • private: System::Void сохранитьToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) - призначений для збереження інформації;

  • private: System::Void вихідToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) - призначений для закриття вікна Країна;

  • Клас «Port» призначений для відображення та корегування даних у представленні port та містить наступні методи:

  • private: System::Void Port_Load(System::Object^ sender, System::EventArgs^ e) призначений для відображення даних з представлення port у сітці даних;

  • private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) -призначений для Фільтру за Типом;

  • private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) - призначений для Отмени;

  • private: System::Void сохранитьToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) - призначений для збереження інформації;

  • private: System::Void вихідToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) - призначений для закриття вікна Порт;

  • Клас «Sudno» призначений для відображення та корегування даних у представленні sudno та містить наступні методи:

  • private: System::Void Sudno_Load(System::Object^ sender, System::EventArgs^ e) призначений для відображення даних з представлення sudno у сітці даних;

  • private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) -призначений для Фільтру за Назвою;

  • private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) - призначений для Отмени;

  • private: System::Void сохранитьToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) - призначений для збереження інформації;

  • private: System::Void вихідToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) - призначений для закриття вікна Судно;

  • Клас «VP» призначений для відображення та корегування даних у представленні VP та містить наступні методи:

  • private: System::Void VP_Load(System::Object^ sender, System::EventArgs^ e) призначений для відображення даних з представлення відвідування порту у сітці даних;

  • private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) -призначений для Фільтру за Датою прибуття;

  • private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) - призначений для Отмени;

  • private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) –призначений для корегуання даних

  • private: System::Void сохранитьToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) - призначений для збереження інформації;

  • private: System::Void вихідToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) - призначений для закриття вікна Країна;

Рисунок 6 – Діаграма класів

      1. Установка та перевірка програми

        1. Вимоги до апаратного та програмного забезпечення

Для нормального функціонування програми необхідне виконання наступних вимог щодо параметрів ПК: процесор Intel Pentium, AMD Athlon, AMD Sempron, оперативний запам’ятовуючий пристрій – 256 Mб, 20 Мб вільного дискового простору, відеокарта з можливістю відображення 256 кольорів. Якщо ці вимоги не будуть виконані, програма може функціонувати некоректно.

Вимоги до програмного забезпечення:

На комп’ютері повинно бути встановлено наступне програмне забезпечення: операційна система Microsoft Windows (98, ME, 2000, XP, Vista, Windows 7), платформа Microsoft.NET (версія 2.0 або вище), MS SQL Server 2005.

        1. Встановлення та видалення програми

Для роботи з програмою необхідно виконати інсталяцію файлу Setup до комп’ютеру, після чого у меню «Пуск» та на робочому столі з’являться ярлики для запуску програми.

Для роботи з програмою необхідно приєднати створену базу даних до баз даних SQL Server 2005. Для цього потрібно виконати наступні кроки. Запустити Microsoft SQL Server Management Studio Express 9.00.2047.00. Приєднатися до серверу (рис. 7).

Рисунок 7–Приєднання до серверу

Наступний крок це з'єднання з базою даних (рис.8).

Рисунок 8 – З'єднання з базою даних

Перевірка підключення бази даних (рис.9)

Рисунок 9–Перевірка підключення бази даних

Подвійним клацанням лівої клавіші миші можна виконати запуск програми.

Видалення програми виконується через меню «Пуск-Панель інструментів», тобто як для інших встановлених програм.

    1. Порадник користувача

      1. Призначення програми

Дана програма призначена для ведення записів про альбоми, фотографії, теми та періоди зйомок, додавання фотографій у альбом та перегляду фотографій. Вона дозволяє фільтрувати інформацію про альбоми за періодами та темами.

      1. Виконання програми

Запуск програми.

Запуск програми в операційній системі сімейства Windows здійснюється одним з стандартних способів:

  • подвійним клацанням лівою кнопкою миші на ярлику програми;

  • викликом контекстного меню з вибором його пункту «Открыть»;

  • натисканням кнопки «Пуск» панелі завдань з подальшим вибором пункту «Усі програми» та подвійним клацанням лівою кнопкою миші на ярлику програми.

Після запуску програми на екрані монітора з'являється головне вікно. (рис. 10).

Рисунок 10 – Головне вікно програми

Основні елементи графічного інтерфейсу програми:

Графічний інтерфейс програми складається з головного вікна (рис.10) та додаткових вікон.

Головне вікно програми має меню, кнопки.

Меню програми містить усі команди для керування її виконанням.

Воно має наступну структуру: "Країна", "Порт", "Судно", "Відвідування порту".

Робота з програмою.

Фільтр за періодом.

Для фільтрування за столицею натисніть на перемикач "Фільтр стоицею", буде відкрите наступне вікно (рис. 11).

Рисунок 11 – Фільтрування за столицею

Після вибору введеня потрібної столиці, натискання на кнопку "Фільтр за столицею" можна побачити відфільтровану за столицею інформацію (рис.12).

Рисунок 12 – Результат фільтрування за періодом

Фільтр за темою.

Для фільтрування за Типом порту натисніть на перемикач "Фільтр за типом", буде відкрите наступне вікно (рис. 13).

Рисунок 13 – Фільтрування за типом

Після введення необхідного типу, натискання на кнопку "Фильтр за типом" можна побачити відфільтровану за типом інформацію (рис.14).

Рисунок 14 – Результат фільтрування за типом

Фільтр за Датою.

Для фільтрування за датою прибуття натисніть на перемикач "Фільтр за датою", буде відкрите наступне вікно (рис. 15).

Рисунок 16 – Фільтрування за датою

Після введеня потрібної дати прибуття, натискання на кнопку "Фільтр за датою" можна побачити відфільтровану за датою інформацію (рис.16).

Рисунок 16 – Фільтрування за датою

Відміна фільтрації.

Для відміни фільтрації натисніть на перемикач "Отмена", фільтрація буде відмінена (рис. 17).

Рисунок 17 – Результат відміни фільтрування

Пересування по записах.

Для пересування по записах натисніть кнопку "Меню", "Вихід" після чого відкриється головне меню (рис. 18-19).

Рисунок 18 – Результат переходу до головного меню та вибору необхідного

вікна

Рисунок 19 – Результат переходу до Меню

Додавання даних у Відвідування порту.

Для додавання даних у Відвідування порту виберіть "Назву Судна", "Назву Порту", "Дату Прибуття", "Дату Відплиття" та введіть мету після чого натисніть кнопку "Добавить запись". (рис. 19).

Рисунок 19 – Форма додавання даних

Зміна та збереження записів.

Для зміни записі у таблиці виберіть потрібний запис та відкорегуйте на потрібну (рис. 20-21).

Рисунок 20 – Форма корегування даних

Рисунок 21 – Зміна даних

Для збереження нового запису виберіть "Меню", "Сохранить" (рис.22-23)

Рисунок 22 – Збереження нових даних

Рисунок 23 – Збережений відкорегований новий запис

2.2.3 Повідомлення оператору

У программі не передбачені повідомлення оператору, так як вони не порібні.

ВИСНОВКИ

Під час написання курсового проекту я більш детально вивчив і отримав навички роботи в середовищі програмування MS Visual C++.

Система може працювати досить стабільно, була правильно вибрана СКБД, що гарантує функціональність і безпеку даних. Розроблено зручний і функціональний інтерфейс, використані різні довідкові матеріали, а так само деякі нестандартні компоненти, програма наповнена різноманітними функціями. Крім того, проект може бути розширений і на підставі його можливе створення потужної автоматизованої системи для масового використання.

 При написанні курсового проекту враховувалися концептуальні вимоги до системи. Розроблена автоматизована система «Порт», що дозволяє спростити роботу користувача при роботі з інформацією про судна.

Використання графічного інтерфейсу програми дозволяє користувачеві швидко зрозуміти, як функціонує програма, як нею користуватися, тому вона має наочний вигляд, легка у використанні, дані після закінчення роботи користувача оновлюються, інтерфейс супроводжується підказками. Перевагою такої програми є і те, що вся інформація зберігається в комп'ютері.

Під час написання програми вона була протестована. Всі помилки були виявлені і усунені під час тестування, тобто програма готова до використання.

Програма була виконана з частковим урахуванням всіх вимог і потреб користувача у відповідності з поставленим завданням. Не було реалізовано: модальне діалогове вікно «Про програму» з інформацією про розробника програми; немає спливаючих підказок операторові; сортування інформації за різними реквізитами.

Під час розроблення курсового проекту я досяг всіх поставлених цілей на початку: закріпив знання дисципліни «Об'єктно-орієнтоване програмування», склав досить просту у використанні і працездатну автоматизовану систему. Закріпив навички роботи з текстовим редактором Word, навички оформлення звітів, навички розробки автоматизованих систем, а також роботи в середовищі об'єктно-орієнтованої мови програмування MS Visual C++.

     Отже, підводячи підсумок курсового проекту можна сміливо сказати, що поставлені цілі були виконані.

Листінг програми

#pragma once

#include "Kraina.h"

#include "Port.h"

#include "Sudno.h"

#include "VP.h"

namespace Filatov_Kursoviy {

using namespace System;

using namespace System::ComponentModel;

using namespace System::Collections;

using namespace System::Windows::Forms;

using namespace System::Data;

using namespace System::Drawing;

/// <summary>

/// Summary for Form1

///

/// WARNING: If you change the name of this class, you will need to change the

/// 'Resource File Name' property for the managed resource compiler tool

/// associated with all .resx files this class depends on. Otherwise,

/// the designers will not be able to interact properly with localized

/// resources associated with this form.

/// </summary>

public ref class Form1 : public System::Windows::Forms::Form

{

public:

Form1(void)

{

InitializeComponent();

//

//TODO: Add the constructor code here

//

}

protected:

/// <summary>

/// Clean up any resources being used.

/// </summary>

~Form1()

{

if (components)

{

delete components;

}

}

private: System::Windows::Forms::Button^ button1;

protected:

private: System::Windows::Forms::Button^ button2;

private: System::Windows::Forms::Button^ button3;

private: System::Windows::Forms::Button^ button4;

private: System::Windows::Forms::Button^ button5;

private: System::Windows::Forms::Label^ label1;

private:

/// <summary>

/// Required designer variable.

/// </summary>

System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

void InitializeComponent(void)

{

this->button1 = (gcnew System::Windows::Forms::Button());

this->button2 = (gcnew System::Windows::Forms::Button());

this->button3 = (gcnew System::Windows::Forms::Button());

this->button4 = (gcnew System::Windows::Forms::Button());

this->button5 = (gcnew System::Windows::Forms::Button());

this->label1 = (gcnew System::Windows::Forms::Label());

this->SuspendLayout();

//

// button1

//

this->button1->Font = (gcnew System::Drawing::Font(L"Times New Roman", 11.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(0)));

this->button1->Location = System::Drawing::Point(15, 62);

this->button1->Name = L"button1";

this->button1->Size = System::Drawing::Size(177, 48);

this->button1->TabIndex = 0;

this->button1->Text = L"Країна";

this->button1->UseVisualStyleBackColor = true;

this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);

//

// button2

//

this->button2->Font = (gcnew System::Drawing::Font(L"Times New Roman", 11.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(0)));

this->button2->Location = System::Drawing::Point(15, 126);

this->button2->Name = L"button2";

this->button2->Size = System::Drawing::Size(176, 44);

this->button2->TabIndex = 1;

this->button2->Text = L"Порт";

this->button2->UseVisualStyleBackColor = true;

this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);

//

// button3

//

this->button3->Font = (gcnew System::Drawing::Font(L"Times New Roman", 11.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(0)));

this->button3->Location = System::Drawing::Point(14, 186);

this->button3->Name = L"button3";

this->button3->Size = System::Drawing::Size(175, 47);

this->button3->TabIndex = 2;

this->button3->Text = L"Судно";

this->button3->UseVisualStyleBackColor = true;

this->button3->Click += gcnew System::EventHandler(this, &Form1::button3_Click);

//

// button4

//

this->button4->Font = (gcnew System::Drawing::Font(L"Times New Roman", 11.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(0)));

this->button4->Location = System::Drawing::Point(15, 239);

this->button4->Name = L"button4";

this->button4->Size = System::Drawing::Size(175, 49);

this->button4->TabIndex = 3;

this->button4->Text = L"Відвідування порту";

this->button4->UseVisualStyleBackColor = true;

this->button4->Click += gcnew System::EventHandler(this, &Form1::button4_Click);

//

// button5

//

this->button5->Font = (gcnew System::Drawing::Font(L"Pristina", 11.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(0)));

this->button5->ForeColor = System::Drawing::Color::Red;

this->button5->Location = System::Drawing::Point(222, 296);

this->button5->Name = L"button5";

this->button5->Size = System::Drawing::Size(175, 40);

this->button5->TabIndex = 4;

this->button5->Text = L"Вихід";

this->button5->UseVisualStyleBackColor = true;

this->button5->Click += gcnew System::EventHandler(this, &Form1::button5_Click);

//

// label1

//

this->label1->AutoSize = true;

this->label1->Font = (gcnew System::Drawing::Font(L"Arial Rounded MT Bold", 24, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(0)));

this->label1->ForeColor = System::Drawing::SystemColors::ButtonHighlight;

this->label1->Location = System::Drawing::Point(74, 9);

this->label1->Name = L"label1";

this->label1->Size = System::Drawing::Size(238, 37);

this->label1->TabIndex = 5;

this->label1->Text = L"Морський Порт";

this->label1->Click += gcnew System::EventHandler(this, &Form1::label1_Click);

//

// Form1

//

this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);

this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;

this->BackColor = System::Drawing::SystemColors::ActiveCaption;

this->ClientSize = System::Drawing::Size(409, 348);

this->Controls->Add(this->label1);

this->Controls->Add(this->button5);

this->Controls->Add(this->button4);

this->Controls->Add(this->button3);

this->Controls->Add(this->button2);

this->Controls->Add(this->button1);

this->Name = L"Form1";

this->Text = L"Курсовий проект Філатова Дмитра";

this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);

this->ResumeLayout(false);

this->PerformLayout();

}

#pragma endregion

private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) {

this->Close();

}

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {

Kraina^ fopm=gcnew Kraina();

fopm->Show();

}

private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {

}

private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {

Port^ fopm=gcnew Port();

fopm->Show();

}

private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {

Sudno^ fopm=gcnew Sudno();

fopm->Show();

}

private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {

VP^ fopm=gcnew VP();

fopm->Show();

}

private: System::Void label1_Click(System::Object^ sender, System::EventArgs^ e) {

}

};

}

#pragma once

using namespace System;

using namespace System::ComponentModel;

using namespace System::Collections;

using namespace System::Windows::Forms;

using namespace System::Data;

using namespace System::Drawing;

using System::String;

namespace Filatov_Kursoviy {

/// <summary>

/// Summary for Kraina

///

/// WARNING: If you change the name of this class, you will need to change the

/// 'Resource File Name' property for the managed resource compiler tool

/// associated with all .resx files this class depends on. Otherwise,

/// the designers will not be able to interact properly with localized

/// resources associated with this form.

/// </summary>

public ref class Kraina : public System::Windows::Forms::Form

{

public:

Kraina(void)

{

InitializeComponent();

//

//TODO: Add the constructor code here

//

}

protected:

/// <summary>

/// Clean up any resources being used.

/// </summary>

~Kraina()

{

if (components)

{

delete components;

}

}

private: System::Windows::Forms::MenuStrip^ menuStrip1;

protected:

private: System::Windows::Forms::ToolStripMenuItem^ менюToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ сохранитьToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ вихідToolStripMenuItem;

private: System::Windows::Forms::DataGridView^ dataGridView1;

private: System::Windows::Forms::DataGridView^ dataGridView2;

private: Filatov_Kursoviy::FilatovDataSet^ FilatovDataSet;

private: System::Windows::Forms::BindingSource^ krainaBindingSource;

private: Filatov_Kursoviy::FilatovDataSetTableAdapters::KrainaTableAdapter^ KrainaTableAdapter;

private: System::Windows::Forms::BindingSource^ krainaPortBindingSource;

private: Filatov_Kursoviy::FilatovDataSetTableAdapters::PortTableAdapter^ PortTableAdapter;

private: System::Windows::Forms::Button^ button1;

private: System::Windows::Forms::Button^ button2;

private: System::Windows::Forms::TextBox^ textBox1;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKKrainaDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ materikDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ stolicaDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKPortDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKKrainaDataGridViewTextBoxColumn1;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ nazvaDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ mistoDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ tipDataGridViewTextBoxColumn;

private: System::ComponentModel::IContainer^ components;

private:

/// <summary>

/// Required designer variable.

/// </summary>

#pragma region Windows Form Designer generated code

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

void InitializeComponent(void)

{

this->components = (gcnew System::ComponentModel::Container());

this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());

this->менюToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->сохранитьToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->вихідToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->dataGridView1 = (gcnew System::Windows::Forms::DataGridView());

this->uKKrainaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->materikDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->stolicaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->krainaBindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));

this->FilatovDataSet = (gcnew Filatov_Kursoviy::FilatovDataSet());

this->dataGridView2 = (gcnew System::Windows::Forms::DataGridView());

this->uKPortDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->uKKrainaDataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->nazvaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->mistoDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->tipDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->krainaPortBindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));

this->button1 = (gcnew System::Windows::Forms::Button());

this->button2 = (gcnew System::Windows::Forms::Button());

this->textBox1 = (gcnew System::Windows::Forms::TextBox());

this->KrainaTableAdapter = (gcnew Filatov_Kursoviy::FilatovDataSetTableAdapters::KrainaTableAdapter());

this->PortTableAdapter = (gcnew Filatov_Kursoviy::FilatovDataSetTableAdapters::PortTableAdapter());

this->menuStrip1->SuspendLayout();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView1))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->krainaBindingSource))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->FilatovDataSet))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView2))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->krainaPortBindingSource))->BeginInit();

this->SuspendLayout();

//

// menuStrip1

//

this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->менюToolStripMenuItem});

this->menuStrip1->Location = System::Drawing::Point(0, 0);

this->menuStrip1->Name = L"menuStrip1";

this->menuStrip1->Size = System::Drawing::Size(457, 24);

this->menuStrip1->TabIndex = 0;

this->menuStrip1->Text = L"menuStrip1";

//

// менюToolStripMenuItem

//

this->менюToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->сохранитьToolStripMenuItem,

this->вихідToolStripMenuItem});

this->менюToolStripMenuItem->Name = L"менюToolStripMenuItem";

this->менюToolStripMenuItem->Size = System::Drawing::Size(53, 20);

this->менюToolStripMenuItem->Text = L"Меню";

//

// сохранитьToolStripMenuItem

//

this->сохранитьToolStripMenuItem->Name = L"сохранитьToolStripMenuItem";

this->сохранитьToolStripMenuItem->Size = System::Drawing::Size(132, 22);

this->сохранитьToolStripMenuItem->Text = L"Сохранить";

this->сохранитьToolStripMenuItem->Click += gcnew System::EventHandler(this, &Kraina::сохранитьToolStripMenuItem_Click);

//

// вихідToolStripMenuItem

//

this->вихідToolStripMenuItem->Name = L"вихідToolStripMenuItem";

this->вихідToolStripMenuItem->Size = System::Drawing::Size(132, 22);

this->вихідToolStripMenuItem->Text = L"Вихід";

this->вихідToolStripMenuItem->Click += gcnew System::EventHandler(this, &Kraina::вихідToolStripMenuItem_Click);

//

// dataGridView1

//

this->dataGridView1->AutoGenerateColumns = false;

this->dataGridView1->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;

this->dataGridView1->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(3) {this->uKKrainaDataGridViewTextBoxColumn,

this->materikDataGridViewTextBoxColumn, this->stolicaDataGridViewTextBoxColumn});

this->dataGridView1->DataSource = this->krainaBindingSource;

this->dataGridView1->Location = System::Drawing::Point(13, 68);

this->dataGridView1->Name = L"dataGridView1";

this->dataGridView1->Size = System::Drawing::Size(423, 199);

this->dataGridView1->TabIndex = 1;

//

// uKKrainaDataGridViewTextBoxColumn

//

this->uKKrainaDataGridViewTextBoxColumn->DataPropertyName = L"UK_Kraina";

this->uKKrainaDataGridViewTextBoxColumn->HeaderText = L"UK_Kraina";

this->uKKrainaDataGridViewTextBoxColumn->Name = L"uKKrainaDataGridViewTextBoxColumn";

this->uKKrainaDataGridViewTextBoxColumn->Visible = false;

//

// materikDataGridViewTextBoxColumn

//

this->materikDataGridViewTextBoxColumn->DataPropertyName = L"Materik";

this->materikDataGridViewTextBoxColumn->HeaderText = L"Материк";

this->materikDataGridViewTextBoxColumn->Name = L"materikDataGridViewTextBoxColumn";

//

// stolicaDataGridViewTextBoxColumn

//

this->stolicaDataGridViewTextBoxColumn->DataPropertyName = L"Stolica";

this->stolicaDataGridViewTextBoxColumn->HeaderText = L"Столиця";

this->stolicaDataGridViewTextBoxColumn->Name = L"stolicaDataGridViewTextBoxColumn";

//

// krainaBindingSource

//

this->krainaBindingSource->DataMember = L"Kraina";

this->krainaBindingSource->DataSource = this->FilatovDataSet;

//

// FilatovDataSet

//

this->FilatovDataSet->DataSetName = L"FilatovDataSet";

this->FilatovDataSet->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;

//

// dataGridView2

//

this->dataGridView2->AutoGenerateColumns = false;

this->dataGridView2->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;

this->dataGridView2->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(5) {this->uKPortDataGridViewTextBoxColumn,

this->uKKrainaDataGridViewTextBoxColumn1, this->nazvaDataGridViewTextBoxColumn, this->mistoDataGridViewTextBoxColumn, this->tipDataGridViewTextBoxColumn});

this->dataGridView2->DataSource = this->krainaPortBindingSource;

this->dataGridView2->Location = System::Drawing::Point(13, 273);

this->dataGridView2->Name = L"dataGridView2";

this->dataGridView2->Size = System::Drawing::Size(423, 72);

this->dataGridView2->TabIndex = 2;

//

// uKPortDataGridViewTextBoxColumn

//

this->uKPortDataGridViewTextBoxColumn->DataPropertyName = L"UK_Port";

this->uKPortDataGridViewTextBoxColumn->HeaderText = L"UK_Port";

this->uKPortDataGridViewTextBoxColumn->Name = L"uKPortDataGridViewTextBoxColumn";

this->uKPortDataGridViewTextBoxColumn->Visible = false;

//

// uKKrainaDataGridViewTextBoxColumn1

//

this->uKKrainaDataGridViewTextBoxColumn1->DataPropertyName = L"UK_Kraina";

this->uKKrainaDataGridViewTextBoxColumn1->HeaderText = L"UK_Kraina";

this->uKKrainaDataGridViewTextBoxColumn1->Name = L"uKKrainaDataGridViewTextBoxColumn1";

this->uKKrainaDataGridViewTextBoxColumn1->Visible = false;

//

// nazvaDataGridViewTextBoxColumn

//

this->nazvaDataGridViewTextBoxColumn->DataPropertyName = L"Nazva";

this->nazvaDataGridViewTextBoxColumn->HeaderText = L"Назва";

this->nazvaDataGridViewTextBoxColumn->Name = L"nazvaDataGridViewTextBoxColumn";

//

// mistoDataGridViewTextBoxColumn

//

this->mistoDataGridViewTextBoxColumn->DataPropertyName = L"Misto";

this->mistoDataGridViewTextBoxColumn->HeaderText = L"Місто";

this->mistoDataGridViewTextBoxColumn->Name = L"mistoDataGridViewTextBoxColumn";

//

// tipDataGridViewTextBoxColumn

//

this->tipDataGridViewTextBoxColumn->DataPropertyName = L"Tip";

this->tipDataGridViewTextBoxColumn->HeaderText = L"Тип";

this->tipDataGridViewTextBoxColumn->Name = L"tipDataGridViewTextBoxColumn";

//

// krainaPortBindingSource

//

this->krainaPortBindingSource->DataMember = L"Kraina_Port";

this->krainaPortBindingSource->DataSource = this->krainaBindingSource;

//

// button1

//

this->button1->Location = System::Drawing::Point(12, 33);

this->button1->Name = L"button1";

this->button1->Size = System::Drawing::Size(131, 27);

this->button1->TabIndex = 3;

this->button1->Text = L"Фільтр за Столицею";

this->button1->UseVisualStyleBackColor = true;

this->button1->Click += gcnew System::EventHandler(this, &Kraina::button1_Click);

//

// button2

//

this->button2->Location = System::Drawing::Point(156, 32);

this->button2->Name = L"button2";

this->button2->Size = System::Drawing::Size(127, 26);

this->button2->TabIndex = 4;

this->button2->Text = L"Отмена";

this->button2->UseVisualStyleBackColor = true;

this->button2->Click += gcnew System::EventHandler(this, &Kraina::button2_Click);

//

// textBox1

//

this->textBox1->Location = System::Drawing::Point(289, 36);

this->textBox1->Name = L"textBox1";

this->textBox1->Size = System::Drawing::Size(147, 20);

this->textBox1->TabIndex = 5;

//

// KrainaTableAdapter

//

this->KrainaTableAdapter->ClearBeforeFill = true;

//

// PortTableAdapter

//

this->PortTableAdapter->ClearBeforeFill = true;

//

// Kraina

//

this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);

this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;

this->ClientSize = System::Drawing::Size(457, 372);

this->Controls->Add(this->textBox1);

this->Controls->Add(this->button2);

this->Controls->Add(this->button1);

this->Controls->Add(this->dataGridView2);

this->Controls->Add(this->dataGridView1);

this->Controls->Add(this->menuStrip1);

this->MainMenuStrip = this->menuStrip1;

this->Name = L"Kraina";

this->Text = L"Країна";

this->Load += gcnew System::EventHandler(this, &Kraina::Kraina_Load);

this->menuStrip1->ResumeLayout(false);

this->menuStrip1->PerformLayout();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView1))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->krainaBindingSource))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->FilatovDataSet))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView2))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->krainaPortBindingSource))->EndInit();

this->ResumeLayout(false);

this->PerformLayout();

}

#pragma endregion

private: System::Void Kraina_Load(System::Object^ sender, System::EventArgs^ e) {

// TODO: This line of code loads data into the 'FilatovDataSet.Port' table. You can move, or remove it, as needed.

this->PortTableAdapter->Fill(this->FilatovDataSet->Port);

// TODO: This line of code loads data into the 'FilatovDataSet.Kraina' table. You can move, or remove it, as needed.

this->KrainaTableAdapter->Fill(this->FilatovDataSet->Kraina);

// TODO: This line of code loads data into the 'FilatovDataSet.Port' table. You can move, or remove it, as needed.

this->PortTableAdapter->Fill(this->FilatovDataSet->Port);

// TODO: This line of code loads data into the 'FilatovDataSet.Kraina' table. You can move, or remove it, as needed.

this->KrainaTableAdapter->Fill(this->FilatovDataSet->Kraina);

}

private: System::Void вихідToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->Close();

}

private: System::Void сохранитьToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->KrainaTableAdapter->Update(this->FilatovDataSet->Kraina);

this->PortTableAdapter->Update(this->FilatovDataSet->Port);

}

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {

String^ expression;

expression = "Stolica="+"'"+this->textBox1->Text+"'";

this->krainaBindingSource->Filter=expression;

}

private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {

String^ expression;

expression = "";

this->krainaBindingSource->Filter=expression;

}

};

}

#pragma once

using namespace System;

using namespace System::ComponentModel;

using namespace System::Collections;

using namespace System::Windows::Forms;

using namespace System::Data;

using namespace System::Drawing;

using Microsoft::Reporting::WinForms::ReportDataSource;

namespace Filatov_Kursoviy {

/// <summary>

/// Summary for OT

///

/// WARNING: If you change the name of this class, you will need to change the

/// 'Resource File Name' property for the managed resource compiler tool

/// associated with all .resx files this class depends on. Otherwise,

/// the designers will not be able to interact properly with localized

/// resources associated with this form.

/// </summary>

public ref class OT : public System::Windows::Forms::Form

{

public:

OT(void)

{

InitializeComponent();

//

//TODO: Add the constructor code here

//

}

protected:

/// <summary>

/// Clean up any resources being used.

/// </summary>

~OT()

{

if (components)

{

delete components;

}

}

private: Microsoft::Reporting::WinForms::ReportViewer^ reportViewer1;

private: Filatov_Kursoviy::FilatovDataSet^ FilatovDataSet;

private: System::Windows::Forms::BindingSource^ dataTable1BindingSource;

private: Filatov_Kursoviy::FilatovDataSetTableAdapters::DataTable1TableAdapter^ DataTable1TableAdapter;

private: System::Windows::Forms::ColorDialog^ colorDialog1;

private: System::ComponentModel::IContainer^ components;

protected:

private:

/// <summary>

/// Required designer variable.

/// </summary>

#pragma region Windows Form Designer generated code

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

void InitializeComponent(void)

{

this->components = (gcnew System::ComponentModel::Container());

Microsoft::Reporting::WinForms::ReportDataSource^ reportDataSource1 = (gcnew Microsoft::Reporting::WinForms::ReportDataSource());

this->dataTable1BindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));

this->FilatovDataSet = (gcnew Filatov_Kursoviy::FilatovDataSet());

this->reportViewer1 = (gcnew Microsoft::Reporting::WinForms::ReportViewer());

this->DataTable1TableAdapter = (gcnew Filatov_Kursoviy::FilatovDataSetTableAdapters::DataTable1TableAdapter());

this->colorDialog1 = (gcnew System::Windows::Forms::ColorDialog());

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataTable1BindingSource))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->FilatovDataSet))->BeginInit();

this->SuspendLayout();

//

// dataTable1BindingSource

//

this->dataTable1BindingSource->DataMember = L"DataTable1";

this->dataTable1BindingSource->DataSource = this->FilatovDataSet;

//

// FilatovDataSet

//

this->FilatovDataSet->DataSetName = L"FilatovDataSet";

this->FilatovDataSet->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;

//

// reportViewer1

//

reportDataSource1->Name = L"FilatovDataSet_DataTable1";

reportDataSource1->Value = this->dataTable1BindingSource;

this->reportViewer1->LocalReport->DataSources->Add(reportDataSource1);

this->reportViewer1->LocalReport->ReportEmbeddedResource = L"Report1.rdlc";

this->reportViewer1->Location = System::Drawing::Point(6, 6);

this->reportViewer1->Name = L"reportViewer1";

this->reportViewer1->Size = System::Drawing::Size(1150, 344);

this->reportViewer1->TabIndex = 0;

this->reportViewer1->Load += gcnew System::EventHandler(this, &OT::reportViewer1_Load);

//

// DataTable1TableAdapter

//

this->DataTable1TableAdapter->ClearBeforeFill = true;

//

// OT

//

this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);

this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;

this->ClientSize = System::Drawing::Size(1168, 362);

this->Controls->Add(this->reportViewer1);

this->Name = L"OT";

this->Text = L"Отчет";

this->Load += gcnew System::EventHandler(this, &OT::OT_Load);

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataTable1BindingSource))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->FilatovDataSet))->EndInit();

this->ResumeLayout(false);

}

#pragma endregion

private: System::Void OT_Load(System::Object^ sender, System::EventArgs^ e) {

// TODO: This line of code loads data into the 'FilatovDataSet.DataTable1' table. You can move, or remove it, as needed.

this->DataTable1TableAdapter->Fill(this->FilatovDataSet->DataTable1);

// TODO: This line of code loads data into the 'FilatovDataSet.DataTable1' table. You can move, or remove it, as needed.

this->DataTable1TableAdapter->Fill(this->FilatovDataSet->DataTable1);

this->DataTable1TableAdapter->Fill(this->FilatovDataSet->DataTable1);

this->reportViewer1->LocalReport->ReportPath = "Report1.rdlc";

ReportDataSource^ ds = gcnew ReportDataSource();

ds->Name = "FilatovDataSet_DataTable1";

ds->Value = dataTable1BindingSource;

reportViewer1->LocalReport->DataSources->Add(ds);

this->reportViewer1->RefreshReport();

}

private: System::Void reportViewer1_Load(System::Object^ sender, System::EventArgs^ e) {

}

};

}

#pragma once

using namespace System;

using namespace System::ComponentModel;

using namespace System::Collections;

using namespace System::Windows::Forms;

using namespace System::Data;

using namespace System::Drawing;

namespace Filatov_Kursoviy {

/// <summary>

/// Summary for Port

///

/// WARNING: If you change the name of this class, you will need to change the

/// 'Resource File Name' property for the managed resource compiler tool

/// associated with all .resx files this class depends on. Otherwise,

/// the designers will not be able to interact properly with localized

/// resources associated with this form.

/// </summary>

public ref class Port : public System::Windows::Forms::Form

{

public:

Port(void)

{

InitializeComponent();

//

//TODO: Add the constructor code here

//

}

protected:

/// <summary>

/// Clean up any resources being used.

/// </summary>

~Port()

{

if (components)

{

delete components;

}

}

private: System::Windows::Forms::DataGridView^ dataGridView1;

protected:

private: Filatov_Kursoviy::FilatovDataSet^ FilatovDataSet;

private: System::Windows::Forms::BindingSource^ portBindingSource;

private: Filatov_Kursoviy::FilatovDataSetTableAdapters::PortTableAdapter^ PortTableAdapter;

private: System::Windows::Forms::DataGridView^ dataGridView2;

private: System::Windows::Forms::BindingSource^ portSudnoBindingSource;

private: Filatov_Kursoviy::FilatovDataSetTableAdapters::SudnoTableAdapter^ SudnoTableAdapter;

private: System::Windows::Forms::MenuStrip^ menuStrip1;

private: System::Windows::Forms::ToolStripMenuItem^ менюToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ сохранитьToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ вихідToolStripMenuItem;

private: System::Windows::Forms::Button^ button1;

private: System::Windows::Forms::Button^ button2;

private: System::Windows::Forms::TextBox^ textBox1;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKPortDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKKrainaDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ nazvaDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ mistoDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ tipDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKSudnoDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ nazvaDataGridViewTextBoxColumn1;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ tipDataGridViewTextBoxColumn1;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKPortDataGridViewTextBoxColumn1;

private: System::ComponentModel::IContainer^ components;

private:

/// <summary>

/// Required designer variable.

/// </summary>

#pragma region Windows Form Designer generated code

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

void InitializeComponent(void)

{

this->components = (gcnew System::ComponentModel::Container());

this->dataGridView1 = (gcnew System::Windows::Forms::DataGridView());

this->dataGridView2 = (gcnew System::Windows::Forms::DataGridView());

this->portSudnoBindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));

this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());

this->менюToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->сохранитьToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->вихідToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->button1 = (gcnew System::Windows::Forms::Button());

this->button2 = (gcnew System::Windows::Forms::Button());

this->textBox1 = (gcnew System::Windows::Forms::TextBox());

this->uKSudnoDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->nazvaDataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->tipDataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->uKPortDataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->portBindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));

this->FilatovDataSet = (gcnew Filatov_Kursoviy::FilatovDataSet());

this->uKPortDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->uKKrainaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->nazvaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->mistoDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->tipDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->PortTableAdapter = (gcnew Filatov_Kursoviy::FilatovDataSetTableAdapters::PortTableAdapter());

this->SudnoTableAdapter = (gcnew Filatov_Kursoviy::FilatovDataSetTableAdapters::SudnoTableAdapter());

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView1))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView2))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->portSudnoBindingSource))->BeginInit();

this->menuStrip1->SuspendLayout();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->portBindingSource))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->FilatovDataSet))->BeginInit();

this->SuspendLayout();

//

// dataGridView1

//

this->dataGridView1->AutoGenerateColumns = false;

this->dataGridView1->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;

this->dataGridView1->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(5) {this->uKPortDataGridViewTextBoxColumn,

this->uKKrainaDataGridViewTextBoxColumn, this->nazvaDataGridViewTextBoxColumn, this->mistoDataGridViewTextBoxColumn, this->tipDataGridViewTextBoxColumn});

this->dataGridView1->DataSource = this->portBindingSource;

this->dataGridView1->Location = System::Drawing::Point(12, 75);

this->dataGridView1->Name = L"dataGridView1";

this->dataGridView1->Size = System::Drawing::Size(423, 199);

this->dataGridView1->TabIndex = 0;

//

// dataGridView2

//

this->dataGridView2->AutoGenerateColumns = false;

this->dataGridView2->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;

this->dataGridView2->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(4) {this->uKSudnoDataGridViewTextBoxColumn,

this->nazvaDataGridViewTextBoxColumn1, this->tipDataGridViewTextBoxColumn1, this->uKPortDataGridViewTextBoxColumn1});

this->dataGridView2->DataSource = this->portSudnoBindingSource;

this->dataGridView2->Location = System::Drawing::Point(12, 280);

this->dataGridView2->Name = L"dataGridView2";

this->dataGridView2->Size = System::Drawing::Size(423, 72);

this->dataGridView2->TabIndex = 1;

//

// portSudnoBindingSource

//

this->portSudnoBindingSource->DataMember = L"Port_Sudno";

this->portSudnoBindingSource->DataSource = this->portBindingSource;

//

// menuStrip1

//

this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->менюToolStripMenuItem});

this->menuStrip1->Location = System::Drawing::Point(0, 0);

this->menuStrip1->Name = L"menuStrip1";

this->menuStrip1->Size = System::Drawing::Size(457, 24);

this->menuStrip1->TabIndex = 2;

this->menuStrip1->Text = L"menuStrip1";

//

// менюToolStripMenuItem

//

this->менюToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->сохранитьToolStripMenuItem,

this->вихідToolStripMenuItem});

this->менюToolStripMenuItem->Name = L"менюToolStripMenuItem";

this->менюToolStripMenuItem->Size = System::Drawing::Size(53, 20);

this->менюToolStripMenuItem->Text = L"Меню";

//

// сохранитьToolStripMenuItem

//

this->сохранитьToolStripMenuItem->Name = L"сохранитьToolStripMenuItem";

this->сохранитьToolStripMenuItem->Size = System::Drawing::Size(132, 22);

this->сохранитьToolStripMenuItem->Text = L"Сохранить";

this->сохранитьToolStripMenuItem->Click += gcnew System::EventHandler(this, &Port::сохранитьToolStripMenuItem_Click);

//

// вихідToolStripMenuItem

//

this->вихідToolStripMenuItem->Name = L"вихідToolStripMenuItem";

this->вихідToolStripMenuItem->Size = System::Drawing::Size(132, 22);

this->вихідToolStripMenuItem->Text = L"Вихід";

this->вихідToolStripMenuItem->Click += gcnew System::EventHandler(this, &Port::вихідToolStripMenuItem_Click);

//

// button1

//

this->button1->Location = System::Drawing::Point(12, 33);

this->button1->Name = L"button1";

this->button1->Size = System::Drawing::Size(113, 26);

this->button1->TabIndex = 3;

this->button1->Text = L"Фільтр за Типом";

this->button1->UseVisualStyleBackColor = true;

this->button1->Click += gcnew System::EventHandler(this, &Port::button1_Click);

//

// button2

//

this->button2->Location = System::Drawing::Point(131, 33);

this->button2->Name = L"button2";

this->button2->Size = System::Drawing::Size(115, 26);

this->button2->TabIndex = 4;

this->button2->Text = L"Отмена";

this->button2->UseVisualStyleBackColor = true;

this->button2->Click += gcnew System::EventHandler(this, &Port::button2_Click);

//

// textBox1

//

this->textBox1->Location = System::Drawing::Point(264, 37);

this->textBox1->Name = L"textBox1";

this->textBox1->Size = System::Drawing::Size(147, 20);

this->textBox1->TabIndex = 5;

//

// uKSudnoDataGridViewTextBoxColumn

//

this->uKSudnoDataGridViewTextBoxColumn->DataPropertyName = L"UK_Sudno";

this->uKSudnoDataGridViewTextBoxColumn->HeaderText = L"UK_Sudno";

this->uKSudnoDataGridViewTextBoxColumn->Name = L"uKSudnoDataGridViewTextBoxColumn";

this->uKSudnoDataGridViewTextBoxColumn->Visible = false;

//

// nazvaDataGridViewTextBoxColumn1

//

this->nazvaDataGridViewTextBoxColumn1->DataPropertyName = L"Nazva";

this->nazvaDataGridViewTextBoxColumn1->HeaderText = L"Назва";

this->nazvaDataGridViewTextBoxColumn1->Name = L"nazvaDataGridViewTextBoxColumn1";

//

// tipDataGridViewTextBoxColumn1

//

this->tipDataGridViewTextBoxColumn1->DataPropertyName = L"Tip";

this->tipDataGridViewTextBoxColumn1->HeaderText = L"Тип";

this->tipDataGridViewTextBoxColumn1->Name = L"tipDataGridViewTextBoxColumn1";

//

// uKPortDataGridViewTextBoxColumn1

//

this->uKPortDataGridViewTextBoxColumn1->DataPropertyName = L"UK_Port";

this->uKPortDataGridViewTextBoxColumn1->HeaderText = L"UK_Port";

this->uKPortDataGridViewTextBoxColumn1->Name = L"uKPortDataGridViewTextBoxColumn1";

this->uKPortDataGridViewTextBoxColumn1->Visible = false;

//

// portBindingSource

//

this->portBindingSource->DataMember = L"Port";

this->portBindingSource->DataSource = this->FilatovDataSet;

//

// FilatovDataSet

//

this->FilatovDataSet->DataSetName = L"FilatovDataSet";

this->FilatovDataSet->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;

//

// uKPortDataGridViewTextBoxColumn

//

this->uKPortDataGridViewTextBoxColumn->DataPropertyName = L"UK_Port";

this->uKPortDataGridViewTextBoxColumn->HeaderText = L"UK_Port";

this->uKPortDataGridViewTextBoxColumn->Name = L"uKPortDataGridViewTextBoxColumn";

this->uKPortDataGridViewTextBoxColumn->Visible = false;

//

// uKKrainaDataGridViewTextBoxColumn

//

this->uKKrainaDataGridViewTextBoxColumn->DataPropertyName = L"UK_Kraina";

this->uKKrainaDataGridViewTextBoxColumn->HeaderText = L"UK_Kraina";

this->uKKrainaDataGridViewTextBoxColumn->Name = L"uKKrainaDataGridViewTextBoxColumn";

this->uKKrainaDataGridViewTextBoxColumn->Visible = false;

//

// nazvaDataGridViewTextBoxColumn

//

this->nazvaDataGridViewTextBoxColumn->DataPropertyName = L"Nazva";

this->nazvaDataGridViewTextBoxColumn->HeaderText = L"Назва";

this->nazvaDataGridViewTextBoxColumn->Name = L"nazvaDataGridViewTextBoxColumn";

//

// mistoDataGridViewTextBoxColumn

//

this->mistoDataGridViewTextBoxColumn->DataPropertyName = L"Misto";

this->mistoDataGridViewTextBoxColumn->HeaderText = L"Місто";

this->mistoDataGridViewTextBoxColumn->Name = L"mistoDataGridViewTextBoxColumn";

//

// tipDataGridViewTextBoxColumn

//

this->tipDataGridViewTextBoxColumn->DataPropertyName = L"Tip";

this->tipDataGridViewTextBoxColumn->HeaderText = L"Тип";

this->tipDataGridViewTextBoxColumn->Name = L"tipDataGridViewTextBoxColumn";

//

// PortTableAdapter

//

this->PortTableAdapter->ClearBeforeFill = true;

//

// SudnoTableAdapter

//

this->SudnoTableAdapter->ClearBeforeFill = true;

//

// Port

//

this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);

this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;

this->ClientSize = System::Drawing::Size(457, 372);

this->Controls->Add(this->textBox1);

this->Controls->Add(this->button2);

this->Controls->Add(this->button1);

this->Controls->Add(this->dataGridView2);

this->Controls->Add(this->dataGridView1);

this->Controls->Add(this->menuStrip1);

this->MainMenuStrip = this->menuStrip1;

this->Name = L"Port";

this->Text = L"Порт";

this->Load += gcnew System::EventHandler(this, &Port::Port_Load);

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView1))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView2))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->portSudnoBindingSource))->EndInit();

this->menuStrip1->ResumeLayout(false);

this->menuStrip1->PerformLayout();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->portBindingSource))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->FilatovDataSet))->EndInit();

this->ResumeLayout(false);

this->PerformLayout();

}

#pragma endregion

private: System::Void Port_Load(System::Object^ sender, System::EventArgs^ e) {

// TODO: This line of code loads data into the 'FilatovDataSet.Sudno' table. You can move, or remove it, as needed.

this->SudnoTableAdapter->Fill(this->FilatovDataSet->Sudno);

// TODO: This line of code loads data into the 'FilatovDataSet.Port' table. You can move, or remove it, as needed.

this->PortTableAdapter->Fill(this->FilatovDataSet->Port);

}

private: System::Void вихідToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->Close();

}

private: System::Void сохранитьToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->SudnoTableAdapter->Update(this->FilatovDataSet->Sudno);

this->PortTableAdapter->Update(this->FilatovDataSet->Port);

}

private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {

String^ expression;

expression = "";

this->portBindingSource->Filter=expression;

}

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {

String^ expression;

expression = "Tip="+"'"+this->textBox1->Text+"'";

this->portBindingSource->Filter=expression;

}

};

}

#pragma once

using namespace System;

using namespace System::ComponentModel;

using namespace System::Collections;

using namespace System::Windows::Forms;

using namespace System::Data;

using namespace System::Drawing;

using System::String;

namespace Filatov_Kursoviy {

/// <summary>

/// Summary for Sudno

///

/// WARNING: If you change the name of this class, you will need to change the

/// 'Resource File Name' property for the managed resource compiler tool

/// associated with all .resx files this class depends on. Otherwise,

/// the designers will not be able to interact properly with localized

/// resources associated with this form.

/// </summary>

public ref class Sudno : public System::Windows::Forms::Form

{

public:

Sudno(void)

{

InitializeComponent();

//

//TODO: Add the constructor code here

//

}

protected:

/// <summary>

/// Clean up any resources being used.

/// </summary>

~Sudno()

{

if (components)

{

delete components;

}

}

private: System::Windows::Forms::DataGridView^ dataGridView1;

protected:

private: Filatov_Kursoviy::FilatovDataSet^ FilatovDataSet;

private: System::Windows::Forms::BindingSource^ sudnoBindingSource;

private: Filatov_Kursoviy::FilatovDataSetTableAdapters::SudnoTableAdapter^ SudnoTableAdapter;

private: System::Windows::Forms::DataGridView^ dataGridView2;

private: System::Windows::Forms::BindingSource^ sudnoVidviduvannyaBindingSource;

private: Filatov_Kursoviy::FilatovDataSetTableAdapters::VidviduvannyaTableAdapter^ VidviduvannyaTableAdapter;

private: System::Windows::Forms::Button^ button1;

private: System::Windows::Forms::Button^ button2;

private: System::Windows::Forms::TextBox^ textBox1;

private: System::Windows::Forms::MenuStrip^ menuStrip1;

private: System::Windows::Forms::ToolStripMenuItem^ менюToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ сохранитьToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ вихідToolStripMenuItem;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKSudnoDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ nazvaDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ tipDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKPortDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKVPDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKSudnoDataGridViewTextBoxColumn1;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKPortDataGridViewTextBoxColumn1;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ datapributtyaDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ datavidplittyaDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ metaDataGridViewTextBoxColumn;

private: System::ComponentModel::IContainer^ components;

private:

/// <summary>

/// Required designer variable.

/// </summary>

#pragma region Windows Form Designer generated code

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

void InitializeComponent(void)

{

this->components = (gcnew System::ComponentModel::Container());

this->dataGridView1 = (gcnew System::Windows::Forms::DataGridView());

this->dataGridView2 = (gcnew System::Windows::Forms::DataGridView());

this->sudnoVidviduvannyaBindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));

this->button1 = (gcnew System::Windows::Forms::Button());

this->button2 = (gcnew System::Windows::Forms::Button());

this->textBox1 = (gcnew System::Windows::Forms::TextBox());

this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());

this->менюToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->сохранитьToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->вихідToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->uKVPDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->uKSudnoDataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->uKPortDataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->datapributtyaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->datavidplittyaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->metaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->sudnoBindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));

this->FilatovDataSet = (gcnew Filatov_Kursoviy::FilatovDataSet());

this->uKSudnoDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->nazvaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->tipDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->uKPortDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->SudnoTableAdapter = (gcnew Filatov_Kursoviy::FilatovDataSetTableAdapters::SudnoTableAdapter());

this->VidviduvannyaTableAdapter = (gcnew Filatov_Kursoviy::FilatovDataSetTableAdapters::VidviduvannyaTableAdapter());

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView1))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView2))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->sudnoVidviduvannyaBindingSource))->BeginInit();

this->menuStrip1->SuspendLayout();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->sudnoBindingSource))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->FilatovDataSet))->BeginInit();

this->SuspendLayout();

//

// dataGridView1

//

this->dataGridView1->AutoGenerateColumns = false;

this->dataGridView1->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;

this->dataGridView1->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(4) {this->uKSudnoDataGridViewTextBoxColumn,

this->nazvaDataGridViewTextBoxColumn, this->tipDataGridViewTextBoxColumn, this->uKPortDataGridViewTextBoxColumn});

this->dataGridView1->DataSource = this->sudnoBindingSource;

this->dataGridView1->Location = System::Drawing::Point(12, 59);

this->dataGridView1->Name = L"dataGridView1";

this->dataGridView1->Size = System::Drawing::Size(611, 156);

this->dataGridView1->TabIndex = 0;

//

// dataGridView2

//

this->dataGridView2->AutoGenerateColumns = false;

this->dataGridView2->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;

this->dataGridView2->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(6) {this->uKVPDataGridViewTextBoxColumn,

this->uKSudnoDataGridViewTextBoxColumn1, this->uKPortDataGridViewTextBoxColumn1, this->datapributtyaDataGridViewTextBoxColumn,

this->datavidplittyaDataGridViewTextBoxColumn, this->metaDataGridViewTextBoxColumn});

this->dataGridView2->DataSource = this->sudnoVidviduvannyaBindingSource;

this->dataGridView2->Location = System::Drawing::Point(11, 221);

this->dataGridView2->Name = L"dataGridView2";

this->dataGridView2->Size = System::Drawing::Size(609, 141);

this->dataGridView2->TabIndex = 1;

//

// sudnoVidviduvannyaBindingSource

//

this->sudnoVidviduvannyaBindingSource->DataMember = L"Sudno_Vidviduvannya";

this->sudnoVidviduvannyaBindingSource->DataSource = this->sudnoBindingSource;

//

// button1

//

this->button1->Location = System::Drawing::Point(12, 25);

this->button1->Name = L"button1";

this->button1->Size = System::Drawing::Size(125, 28);

this->button1->TabIndex = 2;

this->button1->Text = L"Фільтр за Назвою";

this->button1->UseVisualStyleBackColor = true;

this->button1->Click += gcnew System::EventHandler(this, &Sudno::button1_Click);

//

// button2

//

this->button2->Location = System::Drawing::Point(154, 25);

this->button2->Name = L"button2";

this->button2->Size = System::Drawing::Size(132, 28);

this->button2->TabIndex = 3;

this->button2->Text = L"Отмена";

this->button2->UseVisualStyleBackColor = true;

this->button2->Click += gcnew System::EventHandler(this, &Sudno::button2_Click);

//

// textBox1

//

this->textBox1->Location = System::Drawing::Point(307, 25);

this->textBox1->Name = L"textBox1";

this->textBox1->Size = System::Drawing::Size(276, 20);

this->textBox1->TabIndex = 4;

//

// menuStrip1

//

this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->менюToolStripMenuItem});

this->menuStrip1->Location = System::Drawing::Point(0, 0);

this->menuStrip1->Name = L"menuStrip1";

this->menuStrip1->Size = System::Drawing::Size(630, 24);

this->menuStrip1->TabIndex = 5;

this->menuStrip1->Text = L"menuStrip1";

//

// менюToolStripMenuItem

//

this->менюToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->сохранитьToolStripMenuItem,

this->вихідToolStripMenuItem});

this->менюToolStripMenuItem->Name = L"менюToolStripMenuItem";

this->менюToolStripMenuItem->Size = System::Drawing::Size(53, 20);

this->менюToolStripMenuItem->Text = L"Меню";

//

// сохранитьToolStripMenuItem

//

this->сохранитьToolStripMenuItem->Name = L"сохранитьToolStripMenuItem";

this->сохранитьToolStripMenuItem->Size = System::Drawing::Size(132, 22);

this->сохранитьToolStripMenuItem->Text = L"Сохранить";

this->сохранитьToolStripMenuItem->Click += gcnew System::EventHandler(this, &Sudno::сохранитьToolStripMenuItem_Click);

//

// вихідToolStripMenuItem

//

this->вихідToolStripMenuItem->Name = L"вихідToolStripMenuItem";

this->вихідToolStripMenuItem->Size = System::Drawing::Size(132, 22);

this->вихідToolStripMenuItem->Text = L"Вихід";

this->вихідToolStripMenuItem->Click += gcnew System::EventHandler(this, &Sudno::вихідToolStripMenuItem_Click);

//

// uKVPDataGridViewTextBoxColumn

//

this->uKVPDataGridViewTextBoxColumn->DataPropertyName = L"UK_VP";

this->uKVPDataGridViewTextBoxColumn->HeaderText = L"UK_VP";

this->uKVPDataGridViewTextBoxColumn->Name = L"uKVPDataGridViewTextBoxColumn";

this->uKVPDataGridViewTextBoxColumn->Visible = false;

//

// uKSudnoDataGridViewTextBoxColumn1

//

this->uKSudnoDataGridViewTextBoxColumn1->DataPropertyName = L"UK_Sudno";

this->uKSudnoDataGridViewTextBoxColumn1->HeaderText = L"UK_Sudno";

this->uKSudnoDataGridViewTextBoxColumn1->Name = L"uKSudnoDataGridViewTextBoxColumn1";

this->uKSudnoDataGridViewTextBoxColumn1->Visible = false;

//

// uKPortDataGridViewTextBoxColumn1

//

this->uKPortDataGridViewTextBoxColumn1->DataPropertyName = L"UK_Port";

this->uKPortDataGridViewTextBoxColumn1->HeaderText = L"UK_Port";

this->uKPortDataGridViewTextBoxColumn1->Name = L"uKPortDataGridViewTextBoxColumn1";

this->uKPortDataGridViewTextBoxColumn1->Visible = false;

//

// datapributtyaDataGridViewTextBoxColumn

//

this->datapributtyaDataGridViewTextBoxColumn->DataPropertyName = L"Data_pributtya";

this->datapributtyaDataGridViewTextBoxColumn->HeaderText = L"Дата_Прибуття";

this->datapributtyaDataGridViewTextBoxColumn->Name = L"datapributtyaDataGridViewTextBoxColumn";

//

// datavidplittyaDataGridViewTextBoxColumn

//

this->datavidplittyaDataGridViewTextBoxColumn->DataPropertyName = L"Data_vidplittya";

this->datavidplittyaDataGridViewTextBoxColumn->HeaderText = L"Дата_Відплиття";

this->datavidplittyaDataGridViewTextBoxColumn->Name = L"datavidplittyaDataGridViewTextBoxColumn";

//

// metaDataGridViewTextBoxColumn

//

this->metaDataGridViewTextBoxColumn->DataPropertyName = L"Meta";

this->metaDataGridViewTextBoxColumn->HeaderText = L"Мета";

this->metaDataGridViewTextBoxColumn->Name = L"metaDataGridViewTextBoxColumn";

//

// sudnoBindingSource

//

this->sudnoBindingSource->DataMember = L"Sudno";

this->sudnoBindingSource->DataSource = this->FilatovDataSet;

//

// FilatovDataSet

//

this->FilatovDataSet->DataSetName = L"FilatovDataSet";

this->FilatovDataSet->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;

//

// uKSudnoDataGridViewTextBoxColumn

//

this->uKSudnoDataGridViewTextBoxColumn->DataPropertyName = L"UK_Sudno";

this->uKSudnoDataGridViewTextBoxColumn->HeaderText = L"UK_Sudno";

this->uKSudnoDataGridViewTextBoxColumn->Name = L"uKSudnoDataGridViewTextBoxColumn";

this->uKSudnoDataGridViewTextBoxColumn->Visible = false;

//

// nazvaDataGridViewTextBoxColumn

//

this->nazvaDataGridViewTextBoxColumn->DataPropertyName = L"Nazva";

this->nazvaDataGridViewTextBoxColumn->HeaderText = L"Назва";

this->nazvaDataGridViewTextBoxColumn->Name = L"nazvaDataGridViewTextBoxColumn";

//

// tipDataGridViewTextBoxColumn

//

this->tipDataGridViewTextBoxColumn->DataPropertyName = L"Tip";

this->tipDataGridViewTextBoxColumn->HeaderText = L"Тип";

this->tipDataGridViewTextBoxColumn->Name = L"tipDataGridViewTextBoxColumn";

//

// uKPortDataGridViewTextBoxColumn

//

this->uKPortDataGridViewTextBoxColumn->DataPropertyName = L"UK_Port";

this->uKPortDataGridViewTextBoxColumn->HeaderText = L"UK_Port";

this->uKPortDataGridViewTextBoxColumn->Name = L"uKPortDataGridViewTextBoxColumn";

this->uKPortDataGridViewTextBoxColumn->Visible = false;

//

// SudnoTableAdapter

//

this->SudnoTableAdapter->ClearBeforeFill = true;

//

// VidviduvannyaTableAdapter

//

this->VidviduvannyaTableAdapter->ClearBeforeFill = true;

//

// Sudno

//

this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);

this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;

this->ClientSize = System::Drawing::Size(630, 420);

this->Controls->Add(this->textBox1);

this->Controls->Add(this->button2);

this->Controls->Add(this->button1);

this->Controls->Add(this->dataGridView2);

this->Controls->Add(this->dataGridView1);

this->Controls->Add(this->menuStrip1);

this->MainMenuStrip = this->menuStrip1;

this->Name = L"Sudno";

this->Text = L"Судно";

this->Load += gcnew System::EventHandler(this, &Sudno::Sudno_Load);

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView1))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView2))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->sudnoVidviduvannyaBindingSource))->EndInit();

this->menuStrip1->ResumeLayout(false);

this->menuStrip1->PerformLayout();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->sudnoBindingSource))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->FilatovDataSet))->EndInit();

this->ResumeLayout(false);

this->PerformLayout();

}

#pragma endregion

private: System::Void Sudno_Load(System::Object^ sender, System::EventArgs^ e) {

// TODO: This line of code loads data into the 'FilatovDataSet.Vidviduvannya' table. You can move, or remove it, as needed.

this->VidviduvannyaTableAdapter->Fill(this->FilatovDataSet->Vidviduvannya);

// TODO: This line of code loads data into the 'FilatovDataSet.Sudno' table. You can move, or remove it, as needed.

this->SudnoTableAdapter->Fill(this->FilatovDataSet->Sudno);

}

private: System::Void вихідToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->Close();

}

private: System::Void сохранитьToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->SudnoTableAdapter->Update(this->FilatovDataSet->Sudno);

this->VidviduvannyaTableAdapter->Update(this->FilatovDataSet->Vidviduvannya);

}

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {

String^ expression;

expression = "Nazva="+"'"+this->textBox1->Text+"'";

this->sudnoBindingSource->Filter=expression;

}

private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {

String^ expression;

expression = "";

this->sudnoBindingSource->Filter=expression;

}

};

}

#pragma once

#include "OT.h"

using namespace System;

using namespace System::ComponentModel;

using namespace System::Collections;

using namespace System::Windows::Forms;

using namespace System::Data;

using namespace System::Drawing;

using System::String;

namespace Filatov_Kursoviy {

/// <summary>

/// Summary for VP

///

/// WARNING: If you change the name of this class, you will need to change the

/// 'Resource File Name' property for the managed resource compiler tool

/// associated with all .resx files this class depends on. Otherwise,

/// the designers will not be able to interact properly with localized

/// resources associated with this form.

/// </summary>

public ref class VP : public System::Windows::Forms::Form

{

public:

VP(void)

{

InitializeComponent();

//

//TODO: Add the constructor code here

//

}

protected:

/// <summary>

/// Clean up any resources being used.

/// </summary>

~VP()

{

if (components)

{

delete components;

}

}

protected:

private: System::Windows::Forms::MenuStrip^ menuStrip1;

private: Filatov_Kursoviy::FilatovDataSet^ FilatovDataSet;

private: System::Windows::Forms::DataGridView^ dataGridView1;

private: System::Windows::Forms::BindingSource^ dataTable1BindingSource;

private: Filatov_Kursoviy::FilatovDataSetTableAdapters::DataTable1TableAdapter^ DataTable1TableAdapter;

private: System::Windows::Forms::ToolStripMenuItem^ менюToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ вихідToolStripMenuItem;

private: System::Windows::Forms::Button^ button1;

private: System::Windows::Forms::Button^ button2;

private: System::Windows::Forms::TextBox^ textBox1;

private: System::Windows::Forms::ToolStripMenuItem^ отчетToolStripMenuItem;

private: System::Windows::Forms::ComboBox^ comboBox2;

private: System::Windows::Forms::BindingSource^ vidviduvannyaBindingSource;

private: Filatov_Kursoviy::FilatovDataSetTableAdapters::VidviduvannyaTableAdapter^ VidviduvannyaTableAdapter;

private: System::Windows::Forms::BindingSource^ vidviduvannyaBindingSource1;

private: System::Windows::Forms::DateTimePicker^ dateTimePicker1;

private: System::Windows::Forms::DateTimePicker^ dateTimePicker2;

private: System::Windows::Forms::Button^ button3;

private: System::Windows::Forms::ComboBox^ comboBox1;

private: System::Windows::Forms::BindingSource^ vidviduvannyaBindingSource2;

private: System::Windows::Forms::BindingSource^ sudnoBindingSource;

private: Filatov_Kursoviy::FilatovDataSetTableAdapters::SudnoTableAdapter^ SudnoTableAdapter;

private: System::Windows::Forms::BindingSource^ portBindingSource;

private: Filatov_Kursoviy::FilatovDataSetTableAdapters::PortTableAdapter^ PortTableAdapter;

private: System::Windows::Forms::TextBox^ textBox2;

private: System::Windows::Forms::Label^ label1;

private: System::Windows::Forms::Label^ label2;

private: System::Windows::Forms::Label^ label3;

private: System::Windows::Forms::Label^ label4;

private: System::Windows::Forms::Label^ label5;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKVPDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKSudnoDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ uKPortDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ datapributtyaDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ datavidplittyaDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ metaDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ nazvaDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ tipDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ expr1DataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ mistoDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ expr2DataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ materikDataGridViewTextBoxColumn;

private: System::Windows::Forms::DataGridViewTextBoxColumn^ stolicaDataGridViewTextBoxColumn;

private: System::ComponentModel::IContainer^ components;

private:

/// <summary>

/// Required designer variable.

/// </summary>

#pragma region Windows Form Designer generated code

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

void InitializeComponent(void)

{

this->components = (gcnew System::ComponentModel::Container());

this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());

this->менюToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->отчетToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->вихідToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->dataGridView1 = (gcnew System::Windows::Forms::DataGridView());

this->dataTable1BindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));

this->FilatovDataSet = (gcnew Filatov_Kursoviy::FilatovDataSet());

this->button1 = (gcnew System::Windows::Forms::Button());

this->button2 = (gcnew System::Windows::Forms::Button());

this->textBox1 = (gcnew System::Windows::Forms::TextBox());

this->DataTable1TableAdapter = (gcnew Filatov_Kursoviy::FilatovDataSetTableAdapters::DataTable1TableAdapter());

this->comboBox2 = (gcnew System::Windows::Forms::ComboBox());

this->sudnoBindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));

this->vidviduvannyaBindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));

this->VidviduvannyaTableAdapter = (gcnew Filatov_Kursoviy::FilatovDataSetTableAdapters::VidviduvannyaTableAdapter());

this->vidviduvannyaBindingSource1 = (gcnew System::Windows::Forms::BindingSource(this->components));

this->dateTimePicker1 = (gcnew System::Windows::Forms::DateTimePicker());

this->dateTimePicker2 = (gcnew System::Windows::Forms::DateTimePicker());

this->button3 = (gcnew System::Windows::Forms::Button());

this->comboBox1 = (gcnew System::Windows::Forms::ComboBox());

this->portBindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));

this->vidviduvannyaBindingSource2 = (gcnew System::Windows::Forms::BindingSource(this->components));

this->SudnoTableAdapter = (gcnew Filatov_Kursoviy::FilatovDataSetTableAdapters::SudnoTableAdapter());

this->PortTableAdapter = (gcnew Filatov_Kursoviy::FilatovDataSetTableAdapters::PortTableAdapter());

this->textBox2 = (gcnew System::Windows::Forms::TextBox());

this->label1 = (gcnew System::Windows::Forms::Label());

this->label2 = (gcnew System::Windows::Forms::Label());

this->label3 = (gcnew System::Windows::Forms::Label());

this->label4 = (gcnew System::Windows::Forms::Label());

this->label5 = (gcnew System::Windows::Forms::Label());

this->uKVPDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->uKSudnoDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->uKPortDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->datapributtyaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->datavidplittyaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->metaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->nazvaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->tipDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->expr1DataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->mistoDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->expr2DataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->materikDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->stolicaDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());

this->menuStrip1->SuspendLayout();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView1))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataTable1BindingSource))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->FilatovDataSet))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->sudnoBindingSource))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->vidviduvannyaBindingSource))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->vidviduvannyaBindingSource1))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->portBindingSource))->BeginInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->vidviduvannyaBindingSource2))->BeginInit();

this->SuspendLayout();

//

// menuStrip1

//

this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->менюToolStripMenuItem});

this->menuStrip1->Location = System::Drawing::Point(0, 0);

this->menuStrip1->Name = L"menuStrip1";

this->menuStrip1->Size = System::Drawing::Size(1024, 24);

this->menuStrip1->TabIndex = 1;

this->menuStrip1->Text = L"menuStrip1";

//

// менюToolStripMenuItem

//

this->менюToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->отчетToolStripMenuItem,

this->вихідToolStripMenuItem});

this->менюToolStripMenuItem->Name = L"менюToolStripMenuItem";

this->менюToolStripMenuItem->Size = System::Drawing::Size(53, 20);

this->менюToolStripMenuItem->Text = L"Меню";

//

// отчетToolStripMenuItem

//

this->отчетToolStripMenuItem->Name = L"отчетToolStripMenuItem";

this->отчетToolStripMenuItem->Size = System::Drawing::Size(106, 22);

this->отчетToolStripMenuItem->Text = L"Отчет";

this->отчетToolStripMenuItem->Click += gcnew System::EventHandler(this, &VP::отчетToolStripMenuItem_Click);

//

// вихідToolStripMenuItem

//

this->вихідToolStripMenuItem->Name = L"вихідToolStripMenuItem";

this->вихідToolStripMenuItem->Size = System::Drawing::Size(106, 22);

this->вихідToolStripMenuItem->Text = L"Вихід";

this->вихідToolStripMenuItem->Click += gcnew System::EventHandler(this, &VP::вихідToolStripMenuItem_Click_1);

//

// dataGridView1

//

this->dataGridView1->AutoGenerateColumns = false;

this->dataGridView1->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;

this->dataGridView1->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(13) {this->uKVPDataGridViewTextBoxColumn,

this->uKSudnoDataGridViewTextBoxColumn, this->uKPortDataGridViewTextBoxColumn, this->datapributtyaDataGridViewTextBoxColumn,

this->datavidplittyaDataGridViewTextBoxColumn, this->metaDataGridViewTextBoxColumn, this->nazvaDataGridViewTextBoxColumn, this->tipDataGridViewTextBoxColumn,

this->expr1DataGridViewTextBoxColumn, this->mistoDataGridViewTextBoxColumn, this->expr2DataGridViewTextBoxColumn, this->materikDataGridViewTextBoxColumn,

this->stolicaDataGridViewTextBoxColumn});

this->dataGridView1->DataSource = this->dataTable1BindingSource;

this->dataGridView1->Location = System::Drawing::Point(9, 96);

this->dataGridView1->Name = L"dataGridView1";

this->dataGridView1->Size = System::Drawing::Size(695, 274);

this->dataGridView1->TabIndex = 2;

//

// dataTable1BindingSource

//

this->dataTable1BindingSource->DataMember = L"DataTable1";

this->dataTable1BindingSource->DataSource = this->FilatovDataSet;

//

// FilatovDataSet

//

this->FilatovDataSet->DataSetName = L"FilatovDataSet";

this->FilatovDataSet->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;

//

// button1

//

this->button1->Location = System::Drawing::Point(12, 36);

this->button1->Name = L"button1";

this->button1->Size = System::Drawing::Size(162, 30);

this->button1->TabIndex = 3;

this->button1->Text = L"Фільтр за Датою прибуття";

this->button1->UseVisualStyleBackColor = true;

this->button1->Click += gcnew System::EventHandler(this, &VP::button1_Click_1);

//

// button2

//

this->button2->Location = System::Drawing::Point(190, 36);

this->button2->Name = L"button2";

this->button2->Size = System::Drawing::Size(117, 30);

this->button2->TabIndex = 4;

this->button2->Text = L"Отмена";

this->button2->UseVisualStyleBackColor = true;

this->button2->Click += gcnew System::EventHandler(this, &VP::button2_Click_1);

//

// textBox1

//

this->textBox1->Location = System::Drawing::Point(334, 36);

this->textBox1->Name = L"textBox1";

this->textBox1->Size = System::Drawing::Size(296, 20);

this->textBox1->TabIndex = 5;

//

// DataTable1TableAdapter

//

this->DataTable1TableAdapter->ClearBeforeFill = true;

//

// comboBox2

//

this->comboBox2->DataSource = this->sudnoBindingSource;

this->comboBox2->DisplayMember = L"Nazva";

this->comboBox2->FormattingEnabled = true;

this->comboBox2->Location = System::Drawing::Point(780, 96);

this->comboBox2->Name = L"comboBox2";

this->comboBox2->Size = System::Drawing::Size(130, 21);

this->comboBox2->TabIndex = 7;

this->comboBox2->ValueMember = L"UK_Sudno";

this->comboBox2->SelectedIndexChanged += gcnew System::EventHandler(this, &VP::comboBox2_SelectedIndexChanged);

//

// sudnoBindingSource

//

this->sudnoBindingSource->DataMember = L"Sudno";

this->sudnoBindingSource->DataSource = this->FilatovDataSet;

//

// vidviduvannyaBindingSource

//

this->vidviduvannyaBindingSource->DataMember = L"Vidviduvannya";

this->vidviduvannyaBindingSource->DataSource = this->FilatovDataSet;

//

// VidviduvannyaTableAdapter

//

this->VidviduvannyaTableAdapter->ClearBeforeFill = true;

//

// vidviduvannyaBindingSource1

//

this->vidviduvannyaBindingSource1->DataMember = L"Vidviduvannya";

this->vidviduvannyaBindingSource1->DataSource = this->FilatovDataSet;

//

// dateTimePicker1

//

this->dateTimePicker1->Location = System::Drawing::Point(783, 195);

this->dateTimePicker1->Name = L"dateTimePicker1";

this->dateTimePicker1->Size = System::Drawing::Size(153, 20);

this->dateTimePicker1->TabIndex = 9;

this->dateTimePicker1->ValueChanged += gcnew System::EventHandler(this, &VP::dateTimePicker1_ValueChanged);

//

// dateTimePicker2

//

this->dateTimePicker2->Location = System::Drawing::Point(783, 252);

this->dateTimePicker2->Name = L"dateTimePicker2";

this->dateTimePicker2->Size = System::Drawing::Size(153, 20);

this->dateTimePicker2->TabIndex = 10;

//

// button3

//

this->button3->Location = System::Drawing::Point(786, 351);

this->button3->Name = L"button3";

this->button3->Size = System::Drawing::Size(150, 34);

this->button3->TabIndex = 11;

this->button3->Text = L"Добавить запись";

this->button3->UseVisualStyleBackColor = true;

this->button3->Click += gcnew System::EventHandler(this, &VP::button3_Click);

//

// comboBox1

//

this->comboBox1->DataSource = this->portBindingSource;

this->comboBox1->DisplayMember = L"Nazva";

this->comboBox1->FormattingEnabled = true;

this->comboBox1->Location = System::Drawing::Point(783, 146);

this->comboBox1->Name = L"comboBox1";

this->comboBox1->Size = System::Drawing::Size(127, 21);

this->comboBox1->TabIndex = 12;

this->comboBox1->ValueMember = L"UK_Port";

//

// portBindingSource

//

this->portBindingSource->DataMember = L"Port";

this->portBindingSource->DataSource = this->FilatovDataSet;

//

// vidviduvannyaBindingSource2

//

this->vidviduvannyaBindingSource2->DataMember = L"Vidviduvannya";

this->vidviduvannyaBindingSource2->DataSource = this->FilatovDataSet;

//

// SudnoTableAdapter

//

this->SudnoTableAdapter->ClearBeforeFill = true;

//

// PortTableAdapter

//

this->PortTableAdapter->ClearBeforeFill = true;

//

// textBox2

//

this->textBox2->Location = System::Drawing::Point(783, 314);

this->textBox2->Name = L"textBox2";

this->textBox2->Size = System::Drawing::Size(153, 20);

this->textBox2->TabIndex = 13;

//

// label1

//

this->label1->AutoSize = true;

this->label1->Location = System::Drawing::Point(777, 80);

this->label1->Name = L"label1";

this->label1->Size = System::Drawing::Size(72, 13);

this->label1->TabIndex = 14;

this->label1->Text = L"Назва Судна";

//

// label2

//

this->label2->AutoSize = true;

this->label2->Location = System::Drawing::Point(783, 298);

this->label2->Name = L"label2";

this->label2->Size = System::Drawing::Size(33, 13);

this->label2->TabIndex = 15;

this->label2->Text = L"Мета";

//

// label3

//

this->label3->AutoSize = true;

this->label3->Location = System::Drawing::Point(780, 236);

this->label3->Name = L"label3";

this->label3->Size = System::Drawing::Size(85, 13);

this->label3->TabIndex = 16;

this->label3->Text = L"Дата Відплиття";

//

// label4

//

this->label4->AutoSize = true;

this->label4->Location = System::Drawing::Point(780, 179);

this->label4->Name = L"label4";

this->label4->Size = System::Drawing::Size(83, 13);

this->label4->TabIndex = 17;

this->label4->Text = L"Дата Прибуття";

//

// label5

//

this->label5->AutoSize = true;

this->label5->Location = System::Drawing::Point(780, 130);

this->label5->Name = L"label5";

this->label5->Size = System::Drawing::Size(72, 13);

this->label5->TabIndex = 18;

this->label5->Text = L"Назва Порту";

//

// uKVPDataGridViewTextBoxColumn

//

this->uKVPDataGridViewTextBoxColumn->DataPropertyName = L"UK_VP";

this->uKVPDataGridViewTextBoxColumn->HeaderText = L"UK_VP";

this->uKVPDataGridViewTextBoxColumn->Name = L"uKVPDataGridViewTextBoxColumn";

this->uKVPDataGridViewTextBoxColumn->Visible = false;

//

// uKSudnoDataGridViewTextBoxColumn

//

this->uKSudnoDataGridViewTextBoxColumn->DataPropertyName = L"UK_Sudno";

this->uKSudnoDataGridViewTextBoxColumn->HeaderText = L"UK_Sudno";

this->uKSudnoDataGridViewTextBoxColumn->Name = L"uKSudnoDataGridViewTextBoxColumn";

this->uKSudnoDataGridViewTextBoxColumn->Visible = false;

//

// uKPortDataGridViewTextBoxColumn

//

this->uKPortDataGridViewTextBoxColumn->DataPropertyName = L"UK_Port";

this->uKPortDataGridViewTextBoxColumn->HeaderText = L"UK_Port";

this->uKPortDataGridViewTextBoxColumn->Name = L"uKPortDataGridViewTextBoxColumn";

this->uKPortDataGridViewTextBoxColumn->Visible = false;

//

// datapributtyaDataGridViewTextBoxColumn

//

this->datapributtyaDataGridViewTextBoxColumn->DataPropertyName = L"Data_pributtya";

this->datapributtyaDataGridViewTextBoxColumn->HeaderText = L"Дата_прибуття";

this->datapributtyaDataGridViewTextBoxColumn->Name = L"datapributtyaDataGridViewTextBoxColumn";

//

// datavidplittyaDataGridViewTextBoxColumn

//

this->datavidplittyaDataGridViewTextBoxColumn->DataPropertyName = L"Data_vidplittya";

this->datavidplittyaDataGridViewTextBoxColumn->HeaderText = L"Дата_відплиття";

this->datavidplittyaDataGridViewTextBoxColumn->Name = L"datavidplittyaDataGridViewTextBoxColumn";

//

// metaDataGridViewTextBoxColumn

//

this->metaDataGridViewTextBoxColumn->DataPropertyName = L"Meta";

this->metaDataGridViewTextBoxColumn->HeaderText = L"Мета";

this->metaDataGridViewTextBoxColumn->Name = L"metaDataGridViewTextBoxColumn";

//

// nazvaDataGridViewTextBoxColumn

//

this->nazvaDataGridViewTextBoxColumn->DataPropertyName = L"Nazva";

this->nazvaDataGridViewTextBoxColumn->HeaderText = L" Назва Судна";

this->nazvaDataGridViewTextBoxColumn->Name = L"nazvaDataGridViewTextBoxColumn";

//

// tipDataGridViewTextBoxColumn

//

this->tipDataGridViewTextBoxColumn->DataPropertyName = L"Tip";

this->tipDataGridViewTextBoxColumn->HeaderText = L"Тип";

this->tipDataGridViewTextBoxColumn->Name = L"tipDataGridViewTextBoxColumn";

//

// expr1DataGridViewTextBoxColumn

//

this->expr1DataGridViewTextBoxColumn->DataPropertyName = L"Expr1";

this->expr1DataGridViewTextBoxColumn->HeaderText = L"Назва порту";

this->expr1DataGridViewTextBoxColumn->Name = L"expr1DataGridViewTextBoxColumn";

//

// mistoDataGridViewTextBoxColumn

//

this->mistoDataGridViewTextBoxColumn->DataPropertyName = L"Misto";

this->mistoDataGridViewTextBoxColumn->HeaderText = L"Місто";

this->mistoDataGridViewTextBoxColumn->Name = L"mistoDataGridViewTextBoxColumn";

//

// expr2DataGridViewTextBoxColumn

//

this->expr2DataGridViewTextBoxColumn->DataPropertyName = L"Expr2";

this->expr2DataGridViewTextBoxColumn->HeaderText = L"Тип порту";

this->expr2DataGridViewTextBoxColumn->Name = L"expr2DataGridViewTextBoxColumn";

//

// materikDataGridViewTextBoxColumn

//

this->materikDataGridViewTextBoxColumn->DataPropertyName = L"Materik";

this->materikDataGridViewTextBoxColumn->HeaderText = L"Материк";

this->materikDataGridViewTextBoxColumn->Name = L"materikDataGridViewTextBoxColumn";

//

// stolicaDataGridViewTextBoxColumn

//

this->stolicaDataGridViewTextBoxColumn->DataPropertyName = L"Stolica";

this->stolicaDataGridViewTextBoxColumn->HeaderText = L"Столиця";

this->stolicaDataGridViewTextBoxColumn->Name = L"stolicaDataGridViewTextBoxColumn";

//

// VP

//

this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);

this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;

this->ClientSize = System::Drawing::Size(1024, 410);

this->Controls->Add(this->label5);

this->Controls->Add(this->label4);

this->Controls->Add(this->label3);

this->Controls->Add(this->label2);

this->Controls->Add(this->label1);

this->Controls->Add(this->textBox2);

this->Controls->Add(this->comboBox1);

this->Controls->Add(this->button3);

this->Controls->Add(this->dateTimePicker2);

this->Controls->Add(this->dateTimePicker1);

this->Controls->Add(this->comboBox2);

this->Controls->Add(this->textBox1);

this->Controls->Add(this->button2);

this->Controls->Add(this->button1);

this->Controls->Add(this->dataGridView1);

this->Controls->Add(this->menuStrip1);

this->MainMenuStrip = this->menuStrip1;

this->Name = L"VP";

this->Text = L"Відвідування порту";

this->Load += gcnew System::EventHandler(this, &VP::VP_Load);

this->menuStrip1->ResumeLayout(false);

this->menuStrip1->PerformLayout();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView1))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataTable1BindingSource))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->FilatovDataSet))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->sudnoBindingSource))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->vidviduvannyaBindingSource))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->vidviduvannyaBindingSource1))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->portBindingSource))->EndInit();

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->vidviduvannyaBindingSource2))->EndInit();

this->ResumeLayout(false);

this->PerformLayout();

}

#pragma endregion

private: System::Void VP_Load(System::Object^ sender, System::EventArgs^ e) {

// TODO: This line of code loads data into the 'FilatovDataSet.Port' table. You can move, or remove it, as needed.

this->PortTableAdapter->Fill(this->FilatovDataSet->Port);

// TODO: This line of code loads data into the 'FilatovDataSet.Sudno' table. You can move, or remove it, as needed.

this->SudnoTableAdapter->Fill(this->FilatovDataSet->Sudno);

// TODO: This line of code loads data into the 'FilatovDataSet.Vidviduvannya' table. You can move, or remove it, as needed.

this->VidviduvannyaTableAdapter->Fill(this->FilatovDataSet->Vidviduvannya);

// TODO: This line of code loads data into the 'FilatovDataSet.DataTable1' table. You can move, or remove it, as needed.

this->DataTable1TableAdapter->Fill(this->FilatovDataSet->DataTable1);

}

private: System::Void вихідToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->Close();

}

private: System::Void сохранитьToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

}

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {

}

private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {

}

private: System::Void вихідToolStripMenuItem_Click_1(System::Object^ sender, System::EventArgs^ e) {

this->Close();

}

private: System::Void сохранитьToolStripMenuItem_Click_1(System::Object^ sender, System::EventArgs^ e) {

}

private: System::Void button1_Click_1(System::Object^ sender, System::EventArgs^ e) {

String^ expression;

expression = "data_pributtya="+"'"+this->textBox1->Text+"'";

this->dataTable1BindingSource->Filter=expression;

}

private: System::Void button2_Click_1(System::Object^ sender, System::EventArgs^ e) {

String^ expression;

expression = "";

this->dataTable1BindingSource->Filter=expression;

}

private: System::Void отчетToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

OT^ fopm=gcnew OT();

fopm->Show();

}

private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {

DataTable^ sk=this->FilatovDataSet->Vidviduvannya;

DataRow^ wr = sk->NewRow();

wr["UK_Sudno"]=this->comboBox1->SelectedValue;

wr["UK_Port"]=this->comboBox2->SelectedValue;

wr["Data_pributtya"]=this->dateTimePicker1->Value;

wr["Data_vidplittya"]=this->dateTimePicker2->Value;

wr["Meta"]=(String^)this->textBox2->Text;

sk->Rows->Add(wr);

this->VidviduvannyaTableAdapter->Update(this->FilatovDataSet->Vidviduvannya);

this->DataTable1TableAdapter->Fill(this->FilatovDataSet->DataTable1);

}

private: System::Void dateTimePicker1_ValueChanged(System::Object^ sender, System::EventArgs^ e) {

}

private: System::Void comboBox2_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {

}

};

}