Диплом: Автоматизация деятельности торговой компании ООО "Энкор инструмент Воронеж"

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам
117
СПИСОК ИСПОЛЬЗОВАННЫХ ИСТОЧНИКОВ
1. Гагарина, Л. Г. Введение в архитектуру программного обеспечения.
Учебное пособие / Л.Г. Гагарина, А.Р. Федоров, П.А. Федоров. М.:
Инфра-М, Форум, 2016. – 320 c.
2. Голицына, О. Л. Программное обеспечение / О.Л. Голицына, И.И. Попов,
Т.Л. Партыка. – М.: Форум, 2013. – 448 c.
3. Гончаров, В. А. Методы оптимизации. Учебное пособие / В.А. Гончаров.
М.: Юрайт, 2015. – 192 c.
4. Громов, А.И. Управление бизнес-процессами: современные методы.
монография / А.И. Громов, А. Фляйшман, В. Шмидт. – Люберцы: Юрайт,
2016. – 367 c.
5. Джестон, Д. Управление бизнес-процессами. Практическое руководство
по успешной реализации проектов / Д. Джестон, Й. Нелис. – М.: Символ,
2015. – 512 c.
6. Затонский, А. В. Программирование и основы алгоритмизации / А.В.
Затонский, Н.В. Бильфельд. – М.: Дрофа, 2014. – 176 c.
7. Карпенко, А. П. Современные алгоритмы оптимизации. Учебное пособие /
А.П. Карпенко.М.: МГТУ им. Н. Э. Баумана, 2014. – 448 c.
8. Лукин, В. В. Технология разработки программного обеспечения. Учебное
пособие / В.В. Лукин, В.Н. Лукин, Т.В. Лукин. Москва: Гостехиздат,
2015. – 286 c.
9. Макаровских, Т. А. Документирование программного обеспечения. В
помощь техническому писателю. Учебное пособие / Т.А. Макаровских. –
М.: Ленанд, 2015. – 266 c.
10. Проектирование информационных систем. Учебник и практикум / Д.В.
Чистов и др. – М.: Юрайт, 2016. – 260 c.
11. Репин, Владимир Бизнес-процессы. Моделирование, внедрение,
управление / Владимир Репин. – М.: Манн, Иванов и Фербер, 2017. 851
c.
12. Рудаков, А. В. Технология разработки программных продуктов. Учебник /
А.В. Рудаков. – М.: Академия, 2013. – 208 c.
118
13. Семакин, И. Г. Основы алгоритмизации и программирования / И.Г.
Семакин, А.П. Шестаков. – М.: Academia, 2013. – 304 c.
14. Семакин, И. Г. Основы алгоритмизации и программирования. Практикум.
Учебное пособие / И.Г. Семакин, А.П. Шестаков. – Москва: Наука, 2014. –
144 c.
15. Соколова, В. В. Вычислительная техника и информационные технологии.
Разработка мобильных приложений. Учебное пособие / В.В. Соколова. –
Москва: Высшая школа, 2016. – 176 c.
16. Принцип работы межсетевого экрана [Электронный ресурс]. – Режим
доступа: https://sivcomsks.com/printsip-raboty-mezhsetevogo-ekrana/ (дата
обращения 11.06.2019)
17. Сайт компании ООО «Энкор» [Электронный ресурс]. – Режим доступа:
http://enkor.ru/ (дата обращения 11.06.2019)
18. Сайт программы «Склад и учет торговых операций и производства»
[Электронный ресурс]. – Режим доступа: www.magistr-co.ru/dlya-
proizvodstva (дата обращения 11.06.2019)
19. Сайт программной системы «Client Shop» [Электронный ресурс]. – Режим
доступа: https://client-shop.com/ (дата обращения 11.06.2019)
20. Сайт облачного сервиса «Прайм» [Электронный ресурс]. – Режим
доступа: https://spark.ru/startup/prajm/press (дата обращения 11.06.2019)
119
ПРИЛОЖЕНИЕ А – SQL СКРИПТ СОЗДАНИЯ БАЗЫ ДАННЫХ
CREATE TABLE operacii
(
kod_operacii integer IDENTITY(1, 1) PRIMARY KEY NOT NULL,
nomer_dogovora varchar(255) NULL,
data_operacii datetime NOT NULL default getdate(),
kod_kontakta integer NOT NULL,
poluchenie_prodaga integer NOT NULL DEFAULT 1
)
go
CREATE TABLE operacii_s_tovarami
(
kod_operacii_s_tovarami integer IDENTITY(1, 1) PRIMARY KEY NOT NULL,
kod_tovara integer NOT NULL,
kod_operacii integer NOT NULL,
cena_edinici_tovara decimal NOT NULL DEFAULT 0.0,
kolichestvo integer NOT NULL DEFAULT 1
)
go
CREATE TABLE kontakti
(
kod_kontakta integer IDENTITY(1, 1) PRIMARY KEY NOT NULL,
familiya_imya_otchestvo varchar(255) NOT NULL,
telefon varchar(50) NULL,
adres varchar(255) NULL,
predpriyatie varchar(255) NULL,
klient_postavshik integer NOT NULL DEFAULT 0
)
go
CREATE TABLE gruppi_tovarov
(
kod_gruppi integer IDENTITY(1, 1) PRIMARY KEY NOT NULL,
nazvanie_gruppi varchar(255) NOT NULL
)
go
CREATE TABLE tovari
(
kod_tovara integer IDENTITY(1, 1) PRIMARY KEY NOT NULL,
nazvanie_tovara varchar(255) NOT NULL,
artikul varchar(50) NULL,
firma varchar(50) NULL,
cena decimal NOT NULL DEFAULT 0.0,
kod_gruppi integer NOT NULL
)
go
CREATE TABLE tovari_na_sklade
(
kod_sklada integer IDENTITY(1, 1) PRIMARY KEY NOT NULL,
kolichestvo integer NOT NULL DEFAULT 1,
kod_tovara integer NOT NULL
120
)
go
CREATE TABLE operatori
(
id_operator integer IDENTITY(1, 1) PRIMARY KEY NOT NULL,
familiya_imya_otchestvo varchar(255) NOT NULL,
login varchar(50) NOT NULL,
parol varchar(50) NOT NULL,
administrator integer NOT NULL DEFAULT 0
)
go
121
ПРИЛОЖЕНИЕ Б – КОД ПРОГРАММЫ
Главный модуль проекта
// glavnaya.cpp: главный файл проекта.
#include "stdafx.h"
#include "glavnaya.h"
#include "login.h"
#include "operacii.h"
#include "kontakti.h"
#include "gruppi_tovarov.h"
#include "tovari.h"
#include "operatori.h"
#include "otchet.h"
using namespace enkor;
namespace enkor
{
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
Application::Run(gcnew Form1());
return 0;
}
void Form1::forma_avtorizacii()
{
login^ myform = gcnew login(this);
myform->ShowDialog();
}
void Form1::nalichie_tovarov()
{
String ^sql;
list_structure out_data = gcnew list_structure();
sql = "select gruppi_tovarov.nazvanie_gruppi, tovari.nazvanie_tovara,
tovari.cena, tovari.artikul, tovari.firma, tovari_na_sklade.kolichestvo from tovari_na_sklade inner join
tovari on tovari_na_sklade.kod_tovara=tovari.kod_tovara inner join gruppi_tovarov on
tovari.kod_gruppi=gruppi_tovarov.kod_gruppi";
bool res = selectFromDb(sql, %out_data);
if(!res)
MessageBox::Show("Ошибка\r\nНе могу прочитать данные о
товарах");
else
{
grd1->Rows->Clear();
for(int i=0; i<out_data.Count; i++)
{
grd1->Rows->Add("", "", "", "", "", "");
122
grd1->Rows[i]->HeaderCell->Value =
Convert::ToString(i+1);
grd1->Rows[i]->Cells[0]->Value = out_data[i][0];
grd1->Rows[i]->Cells[1]->Value = out_data[i][1];
grd1->Rows[i]->Cells[2]->Value = out_data[i][2];
grd1->Rows[i]->Cells[3]->Value = out_data[i][3];
grd1->Rows[i]->Cells[4]->Value = out_data[i][4];
grd1->Rows[i]->Cells[5]->Value = out_data[i][5];
}
}
}
void Form1::zagruzit_operacii()
{
operacii^ myform = gcnew operacii(this);
myform->ShowDialog();
}
void Form1::zagruzit_kontakti()
{
kontakti^ myform = gcnew kontakti(this);
myform->ShowDialog();
}
void Form1::zagruzit_gruppi()
{
gruppi_tovarov^ myform = gcnew gruppi_tovarov(this);
myform->ShowDialog();
}
void Form1::zagruzit_tovari()
{
tovari^ myform = gcnew tovari(this);
myform->ShowDialog();
}
void Form1::zagruzit_otchet()
{
otchet^ myform = gcnew otchet(this);
myform->ShowDialog();
}
void Form1::zagruzit_operatorov()
{
operatori^ myform = gcnew operatori(this);
myform->ShowDialog();
}
void Form1::vigruzit_v_excel(DataGridView^ grd)
{
Microsoft::Office::Interop::Excel::Application^ xla = gcnew
Microsoft::Office::Interop::Excel::Application();
xla->Visible = true;
Microsoft::Office::Interop::Excel::Workbook^ wb = xla->Workbooks-
>Add(Microsoft::Office::Interop::Excel::XlSheetType::xlWorksheet);
123
Microsoft::Office::Interop::Excel::Worksheet^ ws =
(Microsoft::Office::Interop::Excel::Worksheet ^)xla->ActiveSheet;
for(int j=0, k=1; j<grd->ColumnCount; j++)
if(grd->Columns[j]->Visible)
ws->Cells[1, k++] = grd->Columns[j]->HeaderCell->Value;
for(int i=0; i<grd->RowCount; i++)
for(int j=0, k=1; j<grd->ColumnCount; j++)
if(grd->Columns[j]->Visible)
ws->Cells[i+2, k++] = grd->Rows[i]->Cells[j]->Value;
}
}
Модуль управления товарами
#pragma once
#include "glavnaya.h"
namespace enkor {
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>
/// Сводка для tovari
/// </summary>
public ref class tovari : public System::Windows::Forms::Form
{
private: System::Windows::Forms::Label^ label6;
private: System::Windows::Forms::TextBox^ textBox4;
public:
Form1^ mF;
int IDgruppi;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column6;
public:
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column7;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column1;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column2;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column3;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column4;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column5;
public:
int tovarID;
void zagrusit_gruppi_tovarov();
void zagrusit_tovari();
124
void zagrusit_tovar();
void dobavit_zapis();
void udalit_zapis();
void obnovit_zapis();
public:
tovari(Form1^ fM)
{
InitializeComponent();
//
//TODO: добавьте код конструктора
//
mF = fM;
}
protected:
/// <summary>
/// Освободить все используемые ресурсы.
/// </summary>
~tovari()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Label^ label1;
protected:
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::DataGridView^ grd1;
private: System::Windows::Forms::Button^ button3;
private: System::Windows::Forms::Button^ button2;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::TextBox^ textBox3;
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::TextBox^ textBox2;
private: System::Windows::Forms::Label^ label4;
private: System::Windows::Forms::TextBox^ textBox1;
private: System::Windows::Forms::Label^ label3;
private: System::Windows::Forms::DataGridView^ grd2;
private:
/// <summary>
/// Требуется переменная конструктора.
125
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Обязательный метод для поддержки конструктора - не изменяйте
/// содержимое данного метода при помощи редактора кода.
/// </summary>
void InitializeComponent(void)
{
this->label1 = (gcnew System::Windows::Forms::Label());
this->grd2 = (gcnew System::Windows::Forms::DataGridView());
this->label6 = (gcnew System::Windows::Forms::Label());
this->textBox4 = (gcnew System::Windows::Forms::TextBox());
this->button3 = (gcnew System::Windows::Forms::Button());
this->button2 = (gcnew System::Windows::Forms::Button());
this->button1 = (gcnew System::Windows::Forms::Button());
this->textBox3 = (gcnew System::Windows::Forms::TextBox());
this->label5 = (gcnew System::Windows::Forms::Label());
this->textBox2 = (gcnew System::Windows::Forms::TextBox());
this->label4 = (gcnew System::Windows::Forms::Label());
this->textBox1 = (gcnew System::Windows::Forms::TextBox());
this->label3 = (gcnew System::Windows::Forms::Label());
this->label2 = (gcnew System::Windows::Forms::Label());
this->grd1 = (gcnew System::Windows::Forms::DataGridView());
this->Column6 = (gcnew
System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column7 = (gcnew
System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column1 = (gcnew
System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column2 = (gcnew
System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column3 = (gcnew
System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column4 = (gcnew
System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column5 = (gcnew
System::Windows::Forms::DataGridViewTextBoxColumn());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->grd2))-
>BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->grd1))-
>BeginInit();
this->SuspendLayout();
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(12, 9);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(137, 13);
this->label1->TabIndex = 0;
this->label1->Text = L"Укажите группу товаров";
//
// grd2
//
126
this->grd2->AllowUserToAddRows = false;
this->grd2->AllowUserToDeleteRows = false;
this->grd2->AllowUserToResizeRows = false;
this->grd2->BackgroundColor =
System::Drawing::SystemColors::GradientInactiveCaption;
this->grd2->ColumnHeadersHeightSizeMode =
System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;
this->grd2->Columns->AddRange(gcnew cli::array<
System::Windows::Forms::DataGridViewColumn^ >(2) {this->Column6,
this->Column7});
this->grd2->Location = System::Drawing::Point(15, 25);
this->grd2->MultiSelect = false;
this->grd2->Name = L"grd2";
this->grd2->ReadOnly = true;
this->grd2->RowHeadersWidth = 50;
this->grd2->SelectionMode =
System::Windows::Forms::DataGridViewSelectionMode::FullRowSelect;
this->grd2->Size = System::Drawing::Size(608, 133);
this->grd2->TabIndex = 5;
this->grd2->CellClick += gcnew
System::Windows::Forms::DataGridViewCellEventHandler(this, &tovari::grd2_CellClick);
//
// label6
//
this->label6->AutoSize = true;
this->label6->Location = System::Drawing::Point(654, 224);
this->label6->Name = L"label6";
this->label6->Size = System::Drawing::Size(33, 13);
this->label6->TabIndex = 10;
this->label6->Text = L"Цена";
//
// textBox4
//
this->textBox4->Location = System::Drawing::Point(708, 283);
this->textBox4->Name = L"textBox4";
this->textBox4->Size = System::Drawing::Size(158, 20);
this->textBox4->TabIndex = 9;
//
// button3
//
this->button3->Location = System::Drawing::Point(657, 471);
this->button3->Name = L"button3";
this->button3->Size = System::Drawing::Size(209, 23);
this->button3->TabIndex = 8;
this->button3->Text = L"Вставить как новую запись";
this->button3->UseVisualStyleBackColor = true;
this->button3->Click += gcnew System::EventHandler(this,
&tovari::button3_Click);
//
// button2
//
this->button2->Location = System::Drawing::Point(657, 415);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(209, 23);
this->button2->TabIndex = 7;
this->button2->Text = L"Удалить запись";

Смотрите также:

"Автоматизация обработки заявок ООО "Проектно-Строительная Компания"
"Автоматизация процесса аттестации персонала для ООО "Нэт Бай Нэт Холдинг"
"Анализ интернет-активности конкурентов ( на примере конкурентов "Газпром нефть")
"Бухгалтерский учёт и аудит расчётов с подотчётними лицами в организации на примере ООО "ЛОЦ 10""
«Психологическое сопровождение персонала в организации на примере ООО «Крокус»
Cовершенствование деловой оценки персонала в организации (на примере ООО "Даймонд кейтеринг развитие")
IPO - инструмент финансирования деятельности организации. На примере ПАО «Нефтяная компания «Лукойл»
PR как средство продвижения организации (на примере ПАО "Тамбовский завод "Комсомолец им. Н.С. Артемова")
PR-коммуникации в сфере общественного питания (на примере кафе-кондитерской «Cream Cheese»)
SMM как средство повышения эффективности работы учреждений социокультурной сферы (на примере Малого театра)