Автоматизированная информационная система турагенства

Автор работы: Пользователь скрыл имя, 02 Ноября 2012 в 23:03, курсовая работа

Описание

Современные автоматизированные системы предназначены для использования менеджерами турагентств для работы с клиентами и поставщиками: оформление туров, подготовка заявок туристов, выписка путевок, подготовка отчетов туроператорам.
Актуальность данного проекта заключается в том, что разработка и внедрение автоматизированной системы работы с клиентами турфирмы будет являться одним из основных источников существования туристического предприятия. Поэтому целью курсовой работы является разработка автоматизированной информационной системы «AMEGA».

Содержание

Введение..…………………………………………..…………….……....5
1. Разработка информационной системы “Турфирма”:
1.1 Анализ требований……………………………….…………......6
1.2 Проектирование……………………………………………..…..7
1.3 Кодирование……………………………………………...….…11
1.4 Разработка пользовательского интерфейса……………………12
1.5 Инструкция пользователя…………………………………..…20
1.6 Тестирование………………………………………………..….21
Заключение…..……………………………………………………..…....27
Список используемых источников……………....……………….…..28
Приложение А Листинг программы……….…………….…………...29

Работа состоит из  1 файл

курсовик.doc

— 1.63 Мб (Скачать документ)

                                break;

                            default:

                                break;

                        }

                    }

                    break;

                case modeBD.oteli:

                    using (var fnu = new fOtel())

                    {

                        switch (fnu.ShowDialog(this))

                        {

                            case DialogResult.OK:

                                this.us5.Insert(fnu.Results);

                                this.us5.UpdateData();

                                break;

                            default:

                                break;

                        }

                    }

                    break;

                case modeBD.tur:

                    using (var fnu = new fTur())

                    {

                        switch (fnu.ShowDialog(this))

                        {

                            case DialogResult.OK:

                                this.us6.Insert(fnu.Results);

                                this.us6.UpdateData();

                                break;

                            default:

                                break;

                        }

                    }

                    break;

                case modeBD.zakazi:

                    using (var fnu = new fZakaz())

                    {

                        switch (fnu.ShowDialog(this))

                        {

                            case DialogResult.OK:

                                this.us7.Insert(fnu.Results);

                                this.us7.UpdateData();

                                break;

                            default:

                                break;

                        }

                    }

                    break;

                case modeBD.about:

                default:

                    break;

            }

            this.Enabled = true;

        }

        private void удалитьВыбранныеToolStripMenuItem_Click(object sender, EventArgs e)

        {

            switch (this._mode)

            {

                case modeBD.sotrud:

                    us1.DeleteSelected();

                    break;

                case modeBD.clients:

                    us2.DeleteSelected();

                    break;

                case modeBD.strani:

                    us3.DeleteSelected();

                    break;

                case modeBD.kurorti:

                    us4.DeleteSelected();

                    break;

                case modeBD.oteli:

                    us5.DeleteSelected();

                    break;

                case modeBD.tur:

                    us6.DeleteSelected();

                    break;

                case modeBD.zakazi:

                    us7.DeleteSelected();

                    break;

                case modeBD.about:

                default:

                    break;

            }

        }

        private void очиститьТаблицуToolStripMenuItem_Click(object sender, EventArgs e)

        {

            switch (this._mode)

            {

                case modeBD.sotrud:

                    us1.ClearTable();

                    break;

                case modeBD.clients:

                    us2.ClearTable();

                    break;

                case modeBD.strani:

                    us3.ClearTable();

                    break;

                case modeBD.kurorti:

                    us4.ClearTable();

                    break;

                case modeBD.oteli:

                    us5.ClearTable();

                    break;

                case modeBD.tur:

                    us6.ClearTable();

                    break;

                case modeBD.zakazi:

                    us7.ClearTable();

                    break;

                case modeBD.about:

                default:

                    break;

            }

        }

//============= 

        public void SetItemMenu(modeBD newItem)

        {

            UserControl cr = null;

            this._mode = newItem;

            switch (newItem)

            {

                case modeBD.about:

                    оПрограммеToolStripMenuItem.Enabled = false;

                    управлениеToolStripMenuItem.Enabled = false;

                    сотрудникиToolStripMenuItem.Enabled = true;

                    клиентыToolStripMenuItem.Enabled = true;

                    страныToolStripMenuItem.Enabled = true;

                    курортыToolStripMenuItem.Enabled = true;

                    отелиToolStripMenuItem.Enabled = true;

                    турыToolStripMenuItem.Enabled = true;

                    заказыToolStripMenuItem.Enabled = true;

                    cr = bl;

                    break;

                case modeBD.sotrud:

                   оПрограммеToolStripMenuItem.Enabled = true;

                    управлениеToolStripMenuItem.Enabled = true;

                    сотрудникиToolStripMenuItem.Enabled = false;

                    клиентыToolStripMenuItem.Enabled = true;

                    страныToolStripMenuItem.Enabled = true;

                    курортыToolStripMenuItem.Enabled = true;

                    отелиToolStripMenuItem.Enabled = true;

                    турыToolStripMenuItem.Enabled = true;

                    заказыToolStripMenuItem.Enabled = true;

                    cr = us1;

                    us1.UpdateData();

                    break;

                case modeBD.clients:

                    оПрограммеToolStripMenuItem.Enabled = true;

                    управлениеToolStripMenuItem.Enabled = true;

                    сотрудникиToolStripMenuItem.Enabled = true;

                    клиентыToolStripMenuItem.Enabled = false;

                    страныToolStripMenuItem.Enabled = true;

                    курортыToolStripMenuItem.Enabled = true;

                    отелиToolStripMenuItem.Enabled = true;

                    турыToolStripMenuItem.Enabled = true;

                    заказыToolStripMenuItem.Enabled = true;

                    cr = us2;

                    us2.UpdateData();

                    break;

                case modeBD.strani:

                    оПрограммеToolStripMenuItem.Enabled = true;

                    управлениеToolStripMenuItem.Enabled = true;

                    сотрудникиToolStripMenuItem.Enabled = true;

                    клиентыToolStripMenuItem.Enabled = true;

                    страныToolStripMenuItem.Enabled = false;

                    курортыToolStripMenuItem.Enabled = true;

                    отелиToolStripMenuItem.Enabled = true;

                    турыToolStripMenuItem.Enabled = true;

                    заказыToolStripMenuItem.Enabled = true;

                    cr = us3;

                    us3.UpdateData();

                    break;

                case modeBD.kurorti:

                    оПрограммеToolStripMenuItem.Enabled = true;

                    управлениеToolStripMenuItem.Enabled = true;

                    сотрудникиToolStripMenuItem.Enabled = true;

                    клиентыToolStripMenuItem.Enabled = true;

                   страныToolStripMenuItem.Enabled = true;

                    курортыToolStripMenuItem.Enabled = false;

                    отелиToolStripMenuItem.Enabled = true;

                    турыToolStripMenuItem.Enabled = true;

                    заказыToolStripMenuItem.Enabled = true;

                    cr = us4;

                    us4.UpdateData();

                    break;

                case modeBD.oteli:

                    оПрограммеToolStripMenuItem.Enabled = true;

                    управлениеToolStripMenuItem.Enabled = true;

                    сотрудникиToolStripMenuItem.Enabled = true;

                    клиентыToolStripMenuItem.Enabled = true;

                    страныToolStripMenuItem.Enabled = true;

                    курортыToolStripMenuItem.Enabled = true;

                    отелиToolStripMenuItem.Enabled = false;

                    турыToolStripMenuItem.Enabled = true;

                    заказыToolStripMenuItem.Enabled = true;

                    cr = us5;

                    us5.UpdateData();

                    break;

                case modeBD.tur:

                    оПрограммеToolStripMenuItem.Enabled = true;

                    управлениеToolStripMenuItem.Enabled = true;

                    сотрудникиToolStripMenuItem.Enabled = true;

                    клиентыToolStripMenuItem.Enabled = true;

                    страныToolStripMenuItem.Enabled = true;

                    курортыToolStripMenuItem.Enabled = true;

                    отелиToolStripMenuItem.Enabled = true;

                    турыToolStripMenuItem.Enabled = false;

                    заказыToolStripMenuItem.Enabled = true;

                    cr = us6;

                    us6.UpdateData();

                    break;

                case modeBD.zakazi:

                   оПрограммеToolStripMenuItem.Enabled = true;

                    управлениеToolStripMenuItem.Enabled = true;

                    сотрудникиToolStripMenuItem.Enabled = true;

                    клиентыToolStripMenuItem.Enabled = true;

                    страныToolStripMenuItem.Enabled = true;

                    курортыToolStripMenuItem.Enabled = true;

                    отелиToolStripMenuItem.Enabled = true;

                    турыToolStripMenuItem.Enabled = true;

                    заказыToolStripMenuItem.Enabled = false;

                    cr = us7;

                    us7.UpdateData();

                    break;

                default:

                    break;

            }

 

            cr.Parent = this.panel1;

            cr.Dock = DockStyle.Fill;

            cr.Size = this.panel1.ClientSize;

            cr.BringToFront();

            cr.Show();

        }

        private void SearchnClean(bool clean)

        {

            switch (this._mode)

            {

                case modeBD.sotrud:

                    us1.ShowSearch(clean);

                    break;

                case modeBD.clients:

                    us2.ShowSearch(clean);

                    break;

                case modeBD.strani:

                    us3.ShowSearch(clean);

                    break;

                case modeBD.kurorti:

                    us4.ShowSearch(clean);

                    break;

                case modeBD.oteli:

                    us5.ShowSearch(clean);

                    break;

                case modeBD.tur:

                    us6.ShowSearch(clean);

                    break;

                case modeBD.zakazi:

                    us7.ShowSearch(clean);

                    break;

                case modeBD.about:

                default:

                    break;

            }

        }

       

    }

}

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

 

namespace TurA.Forms

{

    public partial class fZakaz : Form

    {

        public fZakaz()

        {

            InitializeComponent();

        }

 

        public object[] Results

        {

            get

            {

                return new object[]

                {

                    this.numericUpDown1.Value,

                    new DateTime(this.dateTimePicker1.Value.Year, this.dateTimePicker1.Value.Month, this.dateTimePicker1.Value.Day, this.dateTimePicker2.Value.Hour, this.dateTimePicker2.Value.Minute,this.dateTimePicker2.Value.Second ),

                    this.comboBox3.SelectedValue,

                    this.comboBox2.SelectedValue,

                    this.comboBox1.SelectedValue

                };

            }

        }

 

        private void button3_Click(object sender, EventArgs e)

        {

            if (this.numericUpDown1.Value == this.numericUpDown1.Minimum ||

                this.comboBox1.SelectedIndex == -1 ||

                this.comboBox2.SelectedIndex == -1 ||

                this.comboBox3.SelectedIndex == -1 )

            {

                MessageBox.Show(this, "Проверьте правильность указанных данных!", "Внимание", MessageBoxButtons.OK, MessageBoxIcon.Error);

                return;

            }

            else

            {

                this.DialogResult = DialogResult.OK;

            }

        }

 

        private void button2_Click(object sender, EventArgs e)

        {

            this.Clear();

        }

 

        private void Clear()

        {

            this.comboBox1.SelectedIndex = this.comboBox2.SelectedIndex = this.comboBox3.SelectedIndex = -1;

            this.numericUpDown1.Value = this.numericUpDown1.Minimum;

            this.dateTimePicker1.Value = this.dateTimePicker2.Value = DateTime.Now;

        }

 

        private void button1_Click(object sender, EventArgs e)

        {

            this.Close();

        }

 

        private void fZakaz_Load(object sender, EventArgs e)

        {

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

            this.selecter_turiTableAdapter.Fill(this.tutuDataSet.Selecter_turi);

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

            this.selecter_sotrudnikiTableAdapter.Fill(this.tutuDataSet.Selecter_sotrudniki);

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

            this.selecter_klientiTableAdapter.Fill(this.tutuDataSet.Selecter_klienti);

 

            this.Clear();

        }

    }

}

 

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

 

namespace TurA.Forms

{

    public partial class fTur : Form

    {

        public fTur()

        {

            InitializeComponent();

        }

 

        public object[] Results

        {

            get

            {

                return new object[] {

                    this.numericUpDown1.Value,

                    new DateTime(this.dateTimePicker1.Value.Year,

                        this.dateTimePicker1.Value.Month,

                        this.dateTimePicker1.Value.Day,

                        this.dateTimePicker2.Value.Hour,

                        this.dateTimePicker2.Value.Minute,

                        this.dateTimePicker2.Value.Second),

                    new DateTime(this.dateTimePicker3.Value.Year,

                        this.dateTimePicker3.Value.Month,

                        this.dateTimePicker3.Value.Day,

                        this.dateTimePicker4.Value.Hour,

Информация о работе Автоматизированная информационная система турагенства